oss-sec mailing list archives
Re: Reproducible Builds for Fedora
From: Alexander Cherepanov <cherepan () mccme ru>
Date: Fri, 27 Sep 2013 02:46:33 +0400
On 2013-09-25 18:55, Solar Designer wrote:
Ensuring that "objdump -d" has stayed the same between a known-good and another build of a binary is not sufficient to tell that the new build is not trojaned.
Indeed. But I think the whole approach is wrong. Attempts to conduct format-specific comparing are futile for several reasons: 1) when you are against a state level adversary (and we are talking about targeted attacks from organizations like NSA, right?) you are better not to try to parse anything complex, like file and objdump do (e.g. crashing objdump is quite easy); 2) you cannot really determine format of a file (think GIFAR); 3) an elaborate script which knows many formats is going to be complex and to contain a lot of bugs which is bad in any security context. Examples for the item 3: - checks like "/usr/bin/file $2 2>/dev/null | grep ELF" are not strict enough because file sometimes shows pieces of metadata which is controlled by an attacker; - in a script from opensuse -- at least ".*" in html cleaning permits to pass any html through; - some files are not checked at all: jars in the script from redhat and created.rid in the script from opensuse (.rid extension is not in my /usr/share/mime/packages/freedesktop.org.xml so format will be determined by the OS from content). -- Alexander Cherepanov
Current thread:
- Reproducible Builds for Fedora Dhiru Kholia (Sep 24)
- Re: Reproducible Builds for Fedora Sebastian Krahmer (Sep 25)
- Re: Reproducible Builds for Fedora Steve Grubb (Sep 25)
- Re: Reproducible Builds for Fedora Nicolas Vigier (Sep 25)
- Re: Reproducible Builds for Fedora Sebastian Krahmer (Sep 25)
- Re: Reproducible Builds for Fedora Solar Designer (Sep 25)
- Re: Reproducible Builds for Fedora Alexander Cherepanov (Sep 26)
- Re: Reproducible Builds for Fedora Steve Grubb (Sep 26)
- Re: Reproducible Builds for Fedora Alexander Cherepanov (Sep 26)
- Re: Reproducible Builds for Fedora Paul Pluzhnikov (Sep 26)
- Re: Reproducible Builds for Fedora Kurt Seifried (Sep 26)
- Re: Reproducible Builds for Fedora Paul Pluzhnikov (Sep 27)
- Re: Reproducible Builds for Fedora Steve Grubb (Sep 25)
- Re: Reproducible Builds for Fedora Sebastian Krahmer (Sep 25)
- Re: Reproducible Builds for Fedora Dhiru Kholia (Sep 26)
- Re: Reproducible Builds for Fedora Moritz Muehlenhoff (Sep 25)
- Re: Reproducible Builds for Fedora Dhiru Kholia (Sep 26)