2 ms·
I can look at a Git commit and tell you exactly which of my coworkers wrote it without looking at %cn. Code has style, like spoken language has accents. One co
by dotancohen 9y ago
I can look at a Git commit and tell you exactly which of my coworkers wrote it without looking at %cn. Code has style, like spoken language has accents.
One could argue that e.g. German spy tools copy the American style so that those decompiling it will think it is American. I argue that is a lot harder that it sounds. Code style is much deeper than whether or not to use braces around lone if clauses. The whole way of thinking, layout of data structures, use of getters/setters or properties, breakdown of what goes where and into which classes, breakup of large methods, etc etc etc. These signatures and many more give one a feel for the software's origin. Not proof, but a very solid foundation for suspicion.
- shagie 9y agoYou might find De-anonymizing Programmers via Code Stylometry ( http://www.princeton.edu/~aylinc/papers/caliskan-islam_deanonymizing.pdf http://www.princeton.edu/~aylinc/papers/caliskan-islam_deano... ) an interesting read. I suspect that coding style guides are detectable in compiled output too. As an aside, a bit that caught my eye here: > This material is based on work supported by the ARO (U.S. Army Research Office) Grant W911NF-14-1- 0444, the DFG (German Research Foundation) under the project DEVIL (RI 2469/1-1), and AWS in Education Research Grant award.
- jaclaz 9y ago>I suspect that coding style guides are detectable in compiled output too. I strongly doubt that (while I concur that source coding style is often recognizable). More or less a decompiler (when it works properly) attempts to interpret the machine code and translate it into the source. In order to do so, it must have some "templates" corresponding to regognizable "patterns" in the code, so the source derived from the decompilation will reflect these templates and not the "original".