Skip to main content
DARKPC.NET

Verify Kali Downloads With Signed Checksums

Use Kali's current signing-key guidance to authenticate a checksum manifest, then compare a selected ISO against its signed entry.

Difficulty Beginner

What you will verify

A matching hash detects corruption. Authenticating the manifest establishes which publisher signed that expected hash. You will complete both steps before writing the image to a disk. Use a separate working directory and a trusted Linux computer with GnuPG and GNU coreutils. Allow disk space for the entire download.

Gather files for one release

From Kali's official download directions, obtain your image, SHA256SUMS and the detached SHA256SUMS.gpg signature for that same release. Follow Kali's linked secure download instructions to obtain the current signing key and validate its full fingerprint. The project can rotate keys. Refer to its current documentation when fingerprints or expiry dates differ.

Verify in an isolated keyring

Save the official key file as kali-signing-key.asc in your working directory. View the fingerprint before importing. Compare it to the complete fingerprint in Kali's secure download instructions. Only continue after they match.

keyring=$(mktemp -d)
gpg --homedir "$keyring" --show-keys --fingerprint ./kali-signing-key.asc
gpg --homedir "$keyring" --import ./kali-signing-key.asc
gpg --homedir "$keyring" --verify SHA256SUMS.gpg SHA256SUMS

Confirm a successful verification for the expected signing identity. GnuPG may report that the key is uncertified by your trust database. The independent full-fingerprint match is the trust check for this temporary keyring. Stop on a bad signature, signing identity mismatch or trust question you cannot resolve.

Compare the exact ISO

Replace the filename below with the exact ISO basename you downloaded. Compare every digit of the printed digest with the SHA256SUMS line for that exact filename.

sha256sum -- 'REPLACE-WITH-THE-DOWNLOADED-ISO.iso'
less SHA256SUMS

If the manifest lacks the filename, check the release and architecture directories. If the digest differs, discard the image and obtain a fresh copy before verifying again. Keep a record of the filename, release, expected fingerprint and digest. The temporary keyring path is printed by running printf '%s\n' "$keyring" if you wish to remove it afterward using your file manager.

Practice

Hash two copies of a small local text file, then append one character to the second copy and hash it again. This illustrates what the integrity check detects. The exercise also shows why a digest must come from a manifest whose origin you verified independently.

References and related reading