Misleading Authorship Attribution of Source Code using Adversarial Learning
Not on the map. Why?
Abstract (arXiv)
In this paper, we present a novel attack against authorship attribution of source code. We exploit that recent attribution methods rest on machine learning and thus can be deceived by adversarial examples of source code. Our attack performs a series of semantics-preserving code transformations that mislead learning-based attribution but appear plausible to a developer. The attack is guided by Monte-Carlo tree search that enables us to operate in the discrete domain of source code. In an empirical evaluation with source code from 204 programmers, we demonstrate that our attack has a substantial effect on two recent attribution methods, whose accuracy drops from over 88% to 1% under attack. Furthermore, we show that our attack can imitate the coding style of developers with high accuracy and thereby induce false attributions. We conclude that current approaches for authorship attribution are inappropriate for practical application and there is a need for resilient analysis techniques.
Key facts. Cited by 33 papers in the map (data through 14 Oct 2026). First posted on arXiv 29 May 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 6; 2023: 10; 2024: 4; 2025: 5; 2026: 4.
33 papers.
Sort:
By area:
- 2023Locally Differentially Private Document Generation Using Zero Shot Promptingcited by 63
- 2022"Real Attackers Don't Compute Gradients": Bridging the Gap Between Adversarial ML Research and Practicecited by 56
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 40
- 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understandingcited by 28
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generatorscited by 23
- 2021Generating Adversarial Computer Programs using Optimized Obfuscationscited by 22
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021Adversarial Attacks against Windows PE Malware Detection: A Survey of the State-of-the-Artcited by 18
- 2024Code Needs Comments: Enhancing Code LLMs with Comment Augmentationcited by 16
- 2022RoPGen: Towards Robust Code Authorship Attribution via Automatic Coding Style Transformationcited by 15
- 2023Advising OpenMP Parallelization via a Graph-Based Approach with Transformerscited by 10
- 2025I Know Which LLM Wrote Your Code Last Summer: LLM generated Code Stylometry for Authorship Attributioncited by 9
21 more
- 2023No more Reviewer #2: Subverting Automatic Paper-Reviewer Assignment using Adversarial Learningcited by 7
- 2021Towards Making Deep Learning-based Vulnerability Detectors Robustcited by 4
- 2022Evaluation of Contrastive Learning with Various Code Representations for Code Clone Detectioncited by 3
- 2023Adversary for Social Good: Leveraging Adversarial Attacks to Protect Personal Attribute Privacycited by 3
- 2026Capture the Flags: Family-Based Evaluation of Agentic LLMs via Semantics-Preserving Transformationscited by 3
- 2022CLAWSAT: Towards Both Robust and Accurate Code Modelscited by 2
- 2023SHIELD: Thwarting Code Authorship Attributioncited by 2
- 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detectioncited by 2
- 2025On Technique Identification and Threat-Actor Attribution using LLMs and Embedding Modelscited by 2
- 2025The Hidden DNA of LLM-Generated JavaScript: Structural Patterns Enable High-Accuracy Authorship Attributioncited by 2
- 2023Constrained Adaptive Attacks: Realistic Evaluation of Adversarial Examples and Robust Training of Deep Neural Networks for Tabular Datacited by 1
- 2022Adversarial Patterns: Building Robust Android Malware Classifierscited by 0
- 2022I still know it's you! On Challenges in Anonymizing Source Codecited by 0
- 2023On the Effectiveness of Adversarial Samples against Ensemble Learning-based Windows PE Malware Detectorscited by 0
- 2023On the Detection of Image-Scaling Attacks in Machine Learningcited by 0
- 2023Untargeted Code Authorship Evasion with Seq2Seq Transformationcited by 0
- 2024AuthAttLyzer-V2: Unveiling Code Authorship Attribution using Enhanced Ensemble Learning Models & Generating Benchmark Datasetcited by 0
- 2025A Stylometric Application of Large Language Modelscited by 0
- 2026Stylometric Defenses Against Author Impersonation in Software Repositoriescited by 0
- 2026REPLICANT: Learning Policies for Evading and Hardening Malware Detectorscited by 0
- 2026Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Modelscited by 0
- 2026Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Models24 Sep 2026
- 2026REPLICANT: Learning Policies for Evading and Hardening Malware Detectors28 Aug 2026
- 2026Stylometric Defenses Against Author Impersonation in Software Repositories3 Aug 2026
- 2026Capture the Flags: Family-Based Evaluation of Agentic LLMs via Semantics-Preserving Transformations5 Feb 2026
- 2025A Stylometric Application of Large Language Models24 Oct 2025
- 2025The Hidden DNA of LLM-Generated JavaScript: Structural Patterns Enable High-Accuracy Authorship Attribution12 Oct 2025
- 2025I Know Which LLM Wrote Your Code Last Summer: LLM generated Code Stylometry for Authorship Attribution18 Jun 2025
- 2025On Technique Identification and Threat-Actor Attribution using LLMs and Embedding Models15 May 2025
- 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detection30 Mar 2025
- 2024AuthAttLyzer-V2: Unveiling Code Authorship Attribution using Enhanced Ensemble Learning Models & Generating Benchmark Dataset28 Jun 2024
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detection10 Jun 2024
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generators6 Mar 2024
21 more
- 2024Code Needs Comments: Enhancing Code LLMs with Comment Augmentation20 Feb 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Untargeted Code Authorship Evasion with Seq2Seq Transformation26 Nov 2023
- 2023Constrained Adaptive Attacks: Realistic Evaluation of Adversarial Examples and Robust Training of Deep Neural Networks for Tabular Data8 Nov 2023
- 2023Locally Differentially Private Document Generation Using Zero Shot Prompting24 Oct 2023
- 2023On the Detection of Image-Scaling Attacks in Machine Learning23 Oct 2023
- 2023On the Effectiveness of Adversarial Samples against Ensemble Learning-based Windows PE Malware Detectors25 Sep 2023
- 2023Adversary for Social Good: Leveraging Adversarial Attacks to Protect Personal Attribute Privacy4 Jun 2023
- 2023Advising OpenMP Parallelization via a Graph-Based Approach with Transformers16 May 2023
- 2023SHIELD: Thwarting Code Authorship Attribution26 Apr 2023
- 2023No more Reviewer #2: Subverting Automatic Paper-Reviewer Assignment using Adversarial Learning25 Mar 2023
- 2022"Real Attackers Don't Compute Gradients": Bridging the Gap Between Adversarial ML Research and Practice29 Dec 2022
- 2022CLAWSAT: Towards Both Robust and Accurate Code Models21 Nov 2022
- 2022I still know it's you! On Challenges in Anonymizing Source Code26 Aug 2022
- 2022Evaluation of Contrastive Learning with Various Code Representations for Code Clone Detection17 Jun 2022
- 2022Adversarial Patterns: Building Robust Android Malware Classifiers4 Mar 2022
- 2022RoPGen: Towards Robust Code Authorship Attribution via Automatic Coding Style Transformation12 Feb 2022
- 2021Adversarial Attacks against Windows PE Malware Detection: A Survey of the State-of-the-Art23 Dec 2021
- 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understanding4 Dec 2021
- 2021Towards Making Deep Learning-based Vulnerability Detectors Robust2 Aug 2021
- 2021Generating Adversarial Computer Programs using Optimized Obfuscations18 Mar 2021
- 2023Locally Differentially Private Document Generation Using Zero Shot Promptingcited by 63
- 2022"Real Attackers Don't Compute Gradients": Bridging the Gap Between Adversarial ML Research and Practicecited by 56
- 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understandingcited by 28
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generatorscited by 23
- 2021Generating Adversarial Computer Programs using Optimized Obfuscationscited by 22
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021Adversarial Attacks against Windows PE Malware Detection: A Survey of the State-of-the-Artcited by 18
- 2024Code Needs Comments: Enhancing Code LLMs with Comment Augmentationcited by 16
- 2022RoPGen: Towards Robust Code Authorship Attribution via Automatic Coding Style Transformationcited by 15
- 2023Advising OpenMP Parallelization via a Graph-Based Approach with Transformerscited by 10
- 2025I Know Which LLM Wrote Your Code Last Summer: LLM generated Code Stylometry for Authorship Attributioncited by 9
- 2023No more Reviewer #2: Subverting Automatic Paper-Reviewer Assignment using Adversarial Learningcited by 7
12 most cited of 31 All 31 (JSON)
- 2026Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Models24 Sep 2026
- 2026REPLICANT: Learning Policies for Evading and Hardening Malware Detectors28 Aug 2026
- 2026Stylometric Defenses Against Author Impersonation in Software Repositories3 Aug 2026
- 2025A Stylometric Application of Large Language Models24 Oct 2025
- 2025The Hidden DNA of LLM-Generated JavaScript: Structural Patterns Enable High-Accuracy Authorship Attribution12 Oct 2025
- 2025I Know Which LLM Wrote Your Code Last Summer: LLM generated Code Stylometry for Authorship Attribution18 Jun 2025
- 2025On Technique Identification and Threat-Actor Attribution using LLMs and Embedding Models15 May 2025
- 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detection30 Mar 2025
- 2024AuthAttLyzer-V2: Unveiling Code Authorship Attribution using Enhanced Ensemble Learning Models & Generating Benchmark Dataset28 Jun 2024
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generators6 Mar 2024
- 2024Code Needs Comments: Enhancing Code LLMs with Comment Augmentation20 Feb 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
12 newest of 31 All 31 (JSON)