[Paper Review] Adversarial Binaries for Authorship Identification
This paper presents a novel adversarial attack framework that generates functionally equivalent, valid binaries which evade authorship identification by machine learning classifiers. By modifying program features like function calls and symbols through stealthy binary rewriting, the attack achieves 96% success in untargeted evasion and 46% in targeted evasion, revealing vulnerabilities in current authorship attribution systems based on easily manipulable code features.
Binary code authorship identification determines authors of a binary program. Existing techniques have used supervised machine learning for this task. In this paper, we look this problem from an attacker's perspective. We aim to modify a test binary, such that it not only causes misprediction but also maintains the functionality of the original input binary. Attacks against binary code are intrinsically more difficult than attacks against domains such as computer vision, where attackers can change each pixel of the input image independently and still maintain a valid image. For binary code, even flipping one bit of a binary may cause the binary to be invalid, to crash at the run-time, or to lose the original functionality. We investigate two types of attacks: untargeted attacks, causing misprediction to any of the incorrect authors, and targeted attacks, causing misprediction to a specific one among the incorrect authors. We develop two key attack capabilities: feature vector modification, generating an adversarial feature vector that both corresponds to a real binary and causes the required misprediction, and input binary modification, modifying the input binary to match the adversarial feature vector while maintaining the functionality of the input binary. We evaluated our attack against classifiers trained with a state-of-the-art method for authorship attribution. The classifiers for authorship identification have 91% accuracy on average. Our untargeted attack has a 96% success rate on average, showing that we can effectively suppress authorship signal. Our targeted attack has a 46% success rate on average, showing that it is possible, but significantly more difficult to impersonate a specific programmer's style. Our attack reveals that existing binary code authorship identification techniques rely on code features that are easy to modify, and thus are vulnerable to attacks.
Motivation & Objective
- To investigate the feasibility of adversarial attacks on binary code authorship identification systems from an attacker's perspective.
- To develop a framework that generates functionally equivalent binaries that evade authorship classifiers while maintaining structural validity and stealth.
- To evaluate the robustness of state-of-the-art authorship attribution techniques against test-time adversarial examples.
- To expose weaknesses in features commonly used for authorship identification, such as function calls and symbols, which are easily manipulated.
- To demonstrate that current classifiers rely on fragile, modifiable features, making them vulnerable to evasion attacks.
Proposed method
- The attack framework consists of two main stages: feature vector modification and input binary modification.
- Feature vector modification generates an adversarial feature vector that corresponds to a real binary and causes misprediction to a target or any incorrect author.
- Input binary modification uses the Dyninst binary rewriting framework to generate a new binary matching the adversarial feature vector while preserving original functionality.
- The method emphasizes stealth by favoring small, local modifications and ensuring diversity across multiple attack runs to evade hash-based detection.
- The framework leverages perfect knowledge of the target classifier and training data, simulating a strong attacker model.
- It evaluates the attack on classifiers trained with a state-of-the-art authorship attribution method, using real binaries and feature correlation analysis.
Experimental results
Research questions
- RQ1Can adversarial examples be generated for binary code authorship identification that maintain functionality while evading classifiers?
- RQ2How effective is the attack in untargeted evasion, where the goal is to misclassify the binary to any incorrect author?
- RQ3How difficult is targeted evasion, where the goal is to misclassify the binary to a specific incorrect author?
- RQ4What features in current authorship attribution systems are most vulnerable to manipulation?
- RQ5To what extent do stealthiness and diversity in adversarial binaries reduce detectability by hash-based methods?
Key findings
- The untargeted attack achieved a 96% success rate on average, demonstrating that authorship signals can be effectively suppressed through adversarial modification.
- The targeted attack achieved a 46% success rate on average, indicating that impersonating a specific programmer’s style is significantly more challenging.
- The attack framework successfully generated functionally equivalent binaries that are structurally similar to the original and evade detection through diversity and local modifications.
- The results reveal that current authorship attribution systems rely on features such as function calls, symbols, and instructions that are easily fabricated or altered, making them insecure against test-time attacks.
- The presence of Dyninst footprints in modified binaries does not necessarily indicate tampering, as Dyninst is commonly used in benign applications, enhancing attack stealth.
- The study highlights the need for more robust feature selection in authorship attribution and suggests that adversarial retraining with generated examples could improve classifier security.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.