building-notes: MD5 can be used to detect stealth update

This commit is contained in:
Xi Ruoyao 2021-10-18 18:47:42 +08:00
parent 2ef4e24b89
commit 97ba4252b4
No known key found for this signature in database
GPG Key ID: D95E4716CCBB34DC

View File

@ -112,8 +112,13 @@ bunzip2 -v patchname.bz2</userinput></screen>
<screen><userinput>md5sum <replaceable>&lt;name_of_downloaded_file&gt;</replaceable></userinput></screen>
<para>MD5 is not cryptographically secure, so the md5sums are only
provided for detecting random errors or truncations introduced during
network transfer. There is no <quote>100%</quote> secure way to make
provided for detecting unmalicious changes to the file content. For
example, an error or truncation introduced during network transfer, or
a <quote>stealth</quote> update to the package from the upstream
(updating the content of a released tarball instead of making a new
release properly).</para>
<para>There is no <quote>100%</quote> secure way to make
sure the genuity of the source files. Assuming the upstream is managing
their website correctly (the private key is not leaked and the domain is
not hijacked), and the trust anchors have been set up correctly using