News for hackers. Stuff that matters.
Re:Apple's plan to “think different” about encryption opens ... by argomo on Thursday August 05, 2021 @10:13PM (#28082534)
Just to add to this: trying to compile an open source Android distro is a tricky proposition that requires trusting several binaries and a huge source tree.

Moreover, having a personal route to digital autonomy is nearly worthless. To protect democracy and freedom, practically all users need to be able to compute securely.

Re:Apple's plan to “think different” about encryption opens ... by tedivm on Thursday August 05, 2021 @10:53PM (#28082783)
There's a classic Ken Thompson talk about Trust where he shows how a compiler could essentially propagate a bug forward even after the source code for that compiler was cleaned up.

http://cs.bell-labs.co/who/ken/trust.html

It's a fantastic concept.

Re:Apple's plan to “think different” about encryption opens ... by agent327 on Friday August 06, 2021 @05:47AM (#28085060)
It's a concept that relies on a great deal of magic to function properly. The binary-only compiler we have must insert code to propagate the infection. To do so it must know it is compiling a compiler, and understand precisely how to affect code generation, without breaking anything. That... feels like an undecidable problem to me.
Re:Apple's plan to “think different” about encryption opens ... by asddubs on Saturday August 07, 2021 @05:44AM (#28097242)
sure it's undecidable, you can reduce a decider for the word problem to that pretty easily, but in practice you probably only have to recognize a few common compilers to do a good enough job
Re:Apple's plan to “think different” about encryption opens ... by agent327 on Saturday August 07, 2021 @06:33AM (#28097482)
But the viral property that makes this attack so insidious is, in the end, not sufficiently viral: the compiler will eventually drift away (as a consequence of it being developed further, of course) from the patterns it recognizes. The attack is not as dangerous as it sounds.
Re:Apple's plan to “think different” about encryption opens ... by asddubs on Saturday August 07, 2021 @06:38AM (#28097510)
I'm not really arguing that too much, since it's a pretty elaborate and finnicky thing ultimately, although I would wager to say that you could probably find patterns to recognize and modify clang/gcc/other relatively stable compilers for a long time to come (assuming no active mitigations against it)