paper-with-me

홈 › Papers

RoPGen: Towards Robust Code Authorship Attribution via Automatic Coding Style Transformation

2022-02-12 · Zhen Li, Guenevere, Chen, Chen Chen, Yayi Zou, Shouhuai Xu

Source code authorship attribution is an important problem often encountered in applications such as software forensics, bug fixing, and software quality analysis. Recent studies show that current source code authorship attribution methods can be compromised by attackers exploiting adversarial examples and coding style manipulation. This calls for robust solutions to the problem of code authorship attribution. In this paper, we initiate the study on making Deep Learning (DL)-based code authorship attribution robust. We propose an innovative framework called Robust coding style Patterns Generation (RoPGen), which essentially learns authors' unique coding style patterns that are hard for attackers to manipulate or imitate. The key idea is to combine data augmentation and gradient augmentation at the adversarial training phase. This effectively increases the diversity of training examples, generates meaningful perturbations to gradients of deep neural networks, and learns diversified representations of coding styles. We evaluate the effectiveness of RoPGen using four datasets of programs written in C, C++, and Java. Experimental results show that RoPGen can significantly improve the robustness of DL-based code authorship attribution, by respectively reducing 22.8% and 41.0% of the success rate of targeted and untargeted attacks on average.

📄 PDF Abstract BibTeX arXiv:2202.06043

Code (1)

ropgen/ropgen 공식 구현

Tasks

Authorship AttributionBug fixingData AugmentationDiversitySource Code Authorship Attribution

Similar Papers 제목 키워드 기반

Misleading Authorship Attribution of Source Code using Adversarial Learning

2019-05-29 · Erwin Quiring, Alwin Maier, Konrad Rieck

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.…

Authorship Attribution

I Can Find You in Seconds! Leveraging Large Language Models for Code Authorship Attribution

2025-01-14 · Soohyeon Choi, Yong Kiam Tan, Mark Huasong Meng, Mohamed Ragab 외

Source code authorship attribution is important in software forensics, plagiarism detection, and protecting software patch integrity. Existing techniques often rely on supervised machine learning, which struggles with ge…

Adversarial RobustnessAttributeAuthorship AttributionFew-Shot Learning+1

AuthAttLyzer-V2: Unveiling Code Authorship Attribution using Enhanced Ensemble Learning Models & Generating Benchmark Dataset

2024-06-28 · Bhaskar Joshi, Sepideh HajiHossein Khani, Arash HabibiLashkari

Source Code Authorship Attribution (SCAA) is crucial for software classification because it provides insights into the origin and behavior of software. By accurately identifying the author or group behind a piece of code…

Authorship AttributionEnsemble LearningMalware ClassificationSource Code Authorship Attribution

SHIELD: Thwarting Code Authorship Attribution

2023-04-26 · Mohammed Abuhamad, Changhun Jung, David Mohaisen, DaeHun Nyang

Authorship attribution has become increasingly accurate, posing a serious privacy risk for programmers who wish to remain anonymous. In this paper, we introduce SHIELD to examine the robustness of different code authorsh…

Authorship Attribution

Can Authorship Representation Learning Capture Stylistic Features?

2023-08-22 · Andrew Wang, Cristina Aggazzotti, Rebecca Kotula, Rafael Rivera Soto 외

Automatically disentangling an author's style from the content of their writing is a longstanding and possibly insurmountable problem in computational linguistics. At the same time, the availability of large text corpora…

Authorship AttributionRepresentation LearningStyle Transfer