Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread David A. Wheeler
> On Feb 1, 2023, at 6:48 PM, Orians, Jeremiah (DTMB) > wrote: > >> Last I checked, CVE-2007-4559 is still not fixed; and surely not the only >> unfixed (let alone currently unknown) >> such vulnerability that may suddenly become a problem when you switch to a >> scheme where you need to >

Status of bit-for-bit reproducible Docker/OCI images (and FOSDEM talk on Sat 12:55)

2023-02-01 Thread Akihiro Suda
Hi there, let me just share the latest status of reproducible Docker/OCI container image builds with BuildKit: https://github.com/moby/buildkit (OCI = "Open Container Initiative", not "Oracle Cloud Infrastructure") BuildKit v0.11 was released in the last month with very preliminary support for SOU

RE: hiding data/code in Android APK embedded signatures

2023-02-01 Thread Orians, Jeremiah (DTMB)
> Last I checked, CVE-2007-4559 is still not fixed; and surely not the only > unfixed (let alone currently unknown) > such vulnerability that may suddenly become a problem when you switch to a > scheme where you need to > unpack an archive before you can verify the authenticity of its contents.

Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread FC Stegerman
[... some context elided since this is getting quite long ...] * "David A. Wheeler" [2023-02-01 20:48]: > > Unfortunately, you've left out the details of the archive format here, > > when they are actually quite important. > > > > You now need to unpack an archive (e.g. a .zip or .tar) before yo

Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread Holger Levsen
On Wed, Feb 01, 2023 at 12:53:24PM -0500, David A. Wheeler wrote: > I recommend that the reproducible-builds website have a short article > *specifically* recommending how signatures, OmniBOR data, & similar metadata > should be shared. [...] > Is there agreement on adding such a page? Yes, I'd s

Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread Marc Prud'hommeaux via rb-general
> On Feb 1, 2023, at 13:40, FC Stegerman wrote: > > * Marc Prud'hommeaux [2023-02-01 18:12]: >> I recently noticed a similar vulnerability in the W3C MiniApp >> packaging draft [...] > > Interesting, thanks for the info! > >> But in the context of an Android app, where it sounds like it has

Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread Marek Marczykowski-Górecki
On Wed, Feb 01, 2023 at 02:48:15PM -0500, David A. Wheeler wrote: > > > > On Feb 1, 2023, at 2:07 PM, FC Stegerman wrote: > > > > * "David A. Wheeler" [2023-02-01 17:20]: > >>> Agreed. And I often wish Android had used detached signatures. Though > >>> detached signatures would have made dis

Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread David A. Wheeler
> On Feb 1, 2023, at 2:07 PM, FC Stegerman wrote: > > * "David A. Wheeler" [2023-02-01 17:20]: >>> Agreed. And I often wish Android had used detached signatures. Though >>> detached signatures would have made distributing APKs more challenging: >>> a single file is much more convenient for

Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread FC Stegerman
* "David A. Wheeler" [2023-02-01 17:20]: > > Agreed. And I often wish Android had used detached signatures. Though > > detached signatures would have made distributing APKs more challenging: > > a single file is much more convenient for end users. > > Sure, but the solution is trivial. > > Cre

Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread FC Stegerman
* Marc Prud'hommeaux [2023-02-01 18:12]: > I recently noticed a similar vulnerability in the W3C MiniApp > packaging draft [...] Interesting, thanks for the info! > But in the context of an Android app, where it sounds like it has > runtime access to the original .apk artifact and signing data, t

Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread David A. Wheeler
I recommend that the reproducible-builds website have a short article *specifically* recommending how signatures, OmniBOR data, & similar metadata should be shared. In short, do *NOT* embed such data (especially signatures) in complex formats like ELF or PE. Instead, create an archive with the "

Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread Marc Prud'hommeaux via rb-general
I recently noticed a similar vulnerability in the W3C MiniApp packaging draft, whereby they embed signatures for the individual zip entries in the (legal) padding between the final entry and the zip's central directory[1]. This seems clever, but it means that only the individual entries, and n

RE: hiding data/code in Android APK embedded signatures

2023-02-01 Thread Orians, Jeremiah (DTMB)
>> Agreed. And I often wish Android had used detached signatures. >> Though detached signatures would have made distributing APKs more >> challenging: >> a single file is much more convenient for end users. > Sure, but the solution is trivial. > Create something that you want signed ("item A").

Re: hiding data/code in Android APK embedded signatures

2023-02-01 Thread David A. Wheeler
> On Jan 31, 2023, at 8:59 PM, FC Stegerman wrote: > > Agreed. And I often wish Android had used detached signatures. Though > detached signatures would have made distributing APKs more challenging: > a single file is much more convenient for end users. Sure, but the solution is trivial. C