News for hackers. Stuff that matters.
Re:How to Build an Evil Compiler by deckarep on Monday April 18, 2022 @05:46PM (#31077014)
Is it just me…or does article seem a bit contrived? I was expecting to read this to learn about a really powerful hijacking technique when in reality it’s just a program that manipulates your input program.

This is something that could easily occur with scripting languages, backend systems, open source, closed source, etc.

Basically any black-box system that takes in some input could pre-manipulate the input yielding an unknown/unexpected output.

Re:How to Build an Evil Compiler by awelm on Monday April 18, 2022 @07:01PM (#31077766)
> This is something that could easily occur with scripting languages, backend systems, open source, closed source, etc. Basically any black-box system that takes in some input could pre-manipulate the input yielding an unknown/unexpected output.

IMO thats why it's a scary attack. It's a really simple idea and there are so many ways to apply it

Re:How to Build an Evil Compiler by josephcsible on Monday April 18, 2022 @05:49PM (#31077052)
The key point is that if your system has an evil compiler, building your own compiler from known-good source code will just give you another evil compiler, no matter how many times you do it. It creates a bootstrapping problem for the victim that doesn't have easy solutions.
Re:How to Build an Evil Compiler by deckarep on Tuesday April 19, 2022 @12:41AM (#31079810)
Perhaps another way to say it-using an evil compiler could bootstrap any kind of malicious code in the compiled artifact whether it’s a compiler or not.
Re:How to Build an Evil Compiler by josephcsible on Tuesday April 19, 2022 @02:04AM (#31080103)
No, because if that's all it did, just rebuilding your compiler twice would free you from it.