3 ms·
The obfuscated C coding contest shows that you probably won't catch backdoors with code reviews
by adrianN 8y ago
The obfuscated C coding contest shows that you probably won't catch backdoors with code reviews
- mcv 8y agoObfuscated code shouldn't pass code review.
- GorgeRonde 8y agoMaybe the poster above was referring to the Underhanded C Contest > The Underhanded C Contest is an annual contest to write innocent-looking C code implementing malicious behavior. In this contest you must write C code that is as readable, clear, innocent and straightforward as possible, and yet it must fail to perform at its apparent function. To be more specific, it should perform some specific underhanded task that will not be detected by examining the source code. Source: http://www.underhanded-c.org/_page_id_2.html http://www.underhanded-c.org/_page_id_2.html
- Klathmon 8y agoI highly encourage everyone to go look at the hall of fame, it was extremely eye opening when I first did! Even knowing there is an exploit in the code, I probably would never be able to find most of them. My favorite is 2008's winner who's goal is to write a redaction program to redact text. It doesn't use any buffer/array hacks, the code is very straightforward and simple and small, and it would work in languages other than C. It's a terrifying example of how easy it is to write malicious code that would pass multiple code reviews but still has a backdoor! http://www.underhanded-c.org/_page_id_17.html http://www.underhanded-c.org/_page_id_17.html
- LifeLiverTransp 8y agoI bet Zero day backdoors are the retirement plan of half the security relevant coders here.