Contents
- Content matching is not automatically an endorsement of the author.
- Distinguish between a transmission error and an intentional substitution
- The signature adds a binding to the key
- A signed list of checksums connects two steps
- A correct signature of an old version still means an old version
- Verify the copy you will use.
- Practical chain of trust
- Frequently asked questions
Content matching is not automatically an endorsement of the author.
A checksum helps compare the bytes of a file with the expected value. If the correct cryptographic hash is used and the value matches, you have practical proof of the match with the content being compared. But you still need to know why you should trust the expected value. The hash itself does not contain the trusted identity of the publisher.
An attacker who controls a fake download page can offer a malicious file and the corresponding SHA-512 alongside it. The check then passes exactly as it should: both objects are consistent with each other. The problem is not the failure of the hash function, but the unverified origin of the compared value. A longer hash will not replace this lack of trust.
Distinguish between a transmission error and an intentional substitution
In the case of a corrupted or incomplete download, the checksum is useful even without a signature system. It reveals the difference against the correctly obtained value. In the case of intentional substitution, you must also ensure that the attacker could not reliably substitute this value as well. The layers of protection have different roles and should not pretend to be a complete solution to each other.
HTTPS protects the connection to the verified website within its trust model. It does not automatically confirm that a particular program is safe or that the publisher's web account has not been compromised. Accurate verification combines the correct official source, artifact identification, and, depending on the distribution method, signatures or secure repository metadata.
The signature adds a binding to the key
A digital signature binds data to the corresponding private key. The recipient verifies it with the public part, the fingerprint of which must be reliably installed. If the public key is downloaded from a fake page without checking, the attacker can replace the entire set. The green signature result must therefore be read together with the key trust rule.
Different mechanisms are used for installation files. A separate OpenPGP or SSHSIG signature is not the same format as an APK signature, Windows signature, or Apple notarization. Verify the correct layer with the appropriate tool. One valid signature type does not automatically prove all the properties of other distribution paths.
A signed list of checksums connects two steps
The publisher can sign the list of SHA256SUMS or SHA512SUMS, and not each large package individually. First, verify the list's signature with a trusted key. Then, calculate the hash of the actual downloaded file and compare the correct line. Both steps are necessary: the list's signature itself did not read your local installation package.
# GNU nástroje v adresáři odpovídajících artefaktů:
gpg --verify SHA512SUMS.asc SHA512SUMS
sha512sum --check SHA512SUMSThis example assumes the files are named exactly like this, the public key is correctly loaded, and the corresponding list. Watch each result and the return status. The list may include multiple packages that you do not have downloaded; distinguish between missing items and a true mismatch of the available file. Do not ignore the failure of one important item.
A correct signature of an old version still means an old version
A validly signed vulnerable package may remain cryptographically valid. So, verifying the origin does not address currentness, security status, or architectural suitability alone. Confirm the release channel, version, platform, and expected product before installing. Similarly named APKs, AABs, DEBs, and source ZIPs are not interchangeable artifacts.
The attacker can also offer an older, correctly signed version. Protection against such rollback requires system-specific freshness rules and distribution metadata. Document signature checking is not a universal protection against all types of update attacks. The workflow should therefore distinguish between authenticity and timeliness.
Verify the copy you will use.
The hash of a file on the server does not prove the integrity of another copy on the phone. The hash of the unpacked program is not the hash of the original archive. If the tool processed the text of the name or URL instead of the content, it answered a completely different question. Confirm the path, size, and actual input before calculating.
After verification, avoid obscurely overwriting a file with another download or automatically selecting a copy of the same name. For high-profile systems, the verification and installation process should prevent confusion between verification and use. Do not send private files to an unknown online service just for the sake of a hash; local computation usually does not require disclosure of the contents.
Practical chain of trust
- The official source and specific artifact are specified.
- The expected value or signature has a trusted origin.
- The signature was verified with the correct key and format.
- The checksum matches the actual local copy in use.
- The version and platform match the intended installation.
CH-J Tools can help with checksums and signature operations based on a specific release. However, it cannot itself guess whether you have established the correct publisher identity. A good conclusion names what was verified, with what key, and based on what source. The SHA-512 agree statement itself is useful, but narrower in meaning.
Frequently asked questions
Does SHA-512 guarantee the author of the file?
No. It confirms the match with the compared value, the origin of which you must assess.
Is it enough to verify the signature of the checksum list?
Also compare the hash of a specific package with its correct line.
Is a validly signed application automatically secure and up-to-date?
No. The signature does not fix errors or confirm that it is a suitable current version.
Detailed documentation
Debian: list signatures and image verification →
IETF: OpenPGP signature operations →