Skip to content

Instantly share code, notes, and snippets.

@FibreFoX
Created June 7, 2026 09:45
Show Gist options
  • Select an option

  • Save FibreFoX/27e30e6e8e42dc6c86f3cdf1b3fe1199 to your computer and use it in GitHub Desktop.

Select an option

Save FibreFoX/27e30e6e8e42dc6c86f3cdf1b3fe1199 to your computer and use it in GitHub Desktop.
Running latest HashCat with AMD ROCm GPUs using Docker finally is easy

HashCat has finally support for modern AMD GPUs using HIP gives a lot more performanc since v7.0.0

Please make sure your system is running all the required AMD ROCm drivers (v6.x Linux Kernel, sadly Kernel v7.x is not yet supported)

I got inspired by https://github.com/dizcza/docker-hashcat/blob/master/Dockerfile and adjusted the instructions to build upon latest ROCm-enabled AMD docker images

Instructions

Build the image

docker build -t rocm-hashcat .

Run the built image

docker run --rm -it -v /dev/dri:/dev/dri --device /dev/kfd -v $(pwd):/source rocm-hashcat

Running HashCat (with auto-detection)

hashcat -a 3 /source/hashes.txt
FROM rocm/dev-ubuntu-24.04:7.2.4-complete
# Update & install packages for installing hashcat
RUN apt-get update && \
apt-get install -y wget make clinfo build-essential git libcurl4-openssl-dev libssl-dev zlib1g-dev libcurl4-openssl-dev libssl-dev pciutils libpcap-dev
# Fetch PCI IDs list to display proper GPU names
RUN update-pciids
WORKDIR /root
RUN git clone https://github.com/hashcat/hashcat.git && cd hashcat && git checkout v7.1.2 && make install -j6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment