Abstract
Binary authorship attribution—the task of identifying the programmer behind a compiled executable—has long been considered difficult due to the perceived "washing away" of stylistic markers during compilation. This research demonstrates that a programmer’s unique stylistic fingerprint is surprisingly resilient, surviving even aggressive optimization and obfuscation. By leveraging a machine learning pipeline that combines disassembly and decompilation features, the authors achieve up to 96% attribution accuracy.
Introduction
While source code contains obvious stylistic markers such as variable naming conventions and commenting habits, it was historically assumed that the compilation process—which strips metadata and reorders instructions for efficiency—would eliminate these personal traits. This paper challenges that assumption, addressing the problem of binary authorship attribution. Identifying the creator of an executable has significant implications for digital forensics (e.g., malware analysis) and privacy (e.g., protecting anonymous whistleblowers).
Methodology
The researchers developed a multi-stage machine learning pipeline designed to extract and analyze "stylistic fingerprints" from compiled binaries.
The process involves four key stages:
- Disassembly & Decompilation: Raw assembly instructions are extracted using tools like
radare2. Crucially, the Hex-Rays decompiler is employed to reconstruct C-like pseudo-code, providing a higher-level view of the logic. - Feature Extraction: A "fuzzy parser" generates Abstract Syntax Trees (ASTs) from the decompiled code. These trees capture structural logic—such as loop nesting and conditional handling—which reflects a programmer's habits more reliably than machine code.
- Dimensionality Reduction: To manage the initial pool of approximately 705,000 features, the team uses Information Gain and correlation-based selection to identify a compact set of 53 highly predictive features.
- Classification: A Random Forest classifier performs the final de-anonymization.
Datasets and Experimental Design
The study utilized three distinct datasets to test the model's performance:
- Google Code Jam (GCJ): A controlled environment featuring solutions to identical programming problems, allowing for a clean comparison of styles across 100 to 600 programmers.
- GitHub: A "real-world" dataset of 50 programmers, complicated by the presence of third-party libraries and code reuse.
- Nulled.IO: A case study involving data from a leaked hacker forum, used to validate the approach on real-world malicious software.
Key Results
The system demonstrated remarkable accuracy and data efficiency. On the controlled GCJ dataset, the model achieved 96% accuracy in identifying the correct author among 100 candidates.
Key findings include:
- Resilience to Optimization: Even with aggressive compiler optimizations (e.g., GCC's
O3flag), accuracy only dipped slightly from 96% to 89%. - Data Efficiency: The model can identify an author with 75% accuracy using only a single training sample.
- Obfuscation Robustness: The method maintained 88% accuracy against binaries obfuscated with
Obfuscator-LLVM. - Real-World Performance: On the noisy GitHub dataset, the model achieved 65% accuracy, highlighting its capability even in the presence of shared code.
Discussion and Conclusion
The study reveals that structural logic, captured via ASTs, is the primary "fingerprint" that survives compilation. Furthermore, more skilled programmers tend to have more distinct styles, likely due to more consistent coding habits developed over time.
However, limitations remain. The current model assumes a single author per binary, whereas modern software is often collaborative. Additionally, the "open world" problem—identifying if an author is even present in the training database—remains a challenge. The authors conclude that standard compilation and basic obfuscation are insufficient for anonymity; programmers seeking true privacy must employ extreme countermeasures.
Summary updated