arrow
Return

SCS-Gan: Learning Functionality-Agnostic Stylometric Representations for Source Code Authorship Verification

delete2023-04-01
delete3
delete
OA
AI
W
Weihan Ou *
S
Steven H. H. Ding
Y
Yuan Tian
DOI:10.1109/TSE.2022.3177228delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
In recent years, the number of anonymous script-based fileless malware attacks and software copyright disputes has increased rapidly. In the literature, automated Code Authorship Analysis (CAA) techniques have been proposed to reduce the manual effort in identifying those attacks and issues. Most CAA techniques aim to solve the task of Authorship Attribution (AA), i.e., identifying the actual author of a source code fragment from a given set of candidate authors. However, in many real-world scenarios, investigators do not have a predefined set of authors containing the actual author at the time of investigation, i.e., contradicting AA's assumption. Additionally, existing AA techniques ignore the influence of code functionality when identifying the authorship, which leads to biased matching simply based on code functionality. Different from AA, the task of (extreme) Authorship Verification (AV) is to decide if two texts were written by the same person or not. AV techniques do not need a predefined author set and thus could be applied in more code authorship-related applications than AA. To our knowledge, there is no previous work attempting to solve the AV problem for the source code. To fill the gap, we propose a novel adversarial neural network, namely SCS-Gan, that can learn a stylometric representation of code for automated AV. With the multi-head attention mechanism, SCS-Gan focuses on the code parts that are most informative regarding personal styles and generates functionality-agnostic stylometric representations through adversarial training. We benchmark SCS-Gan and two state-of-the-art code representation models on four out-of-sample datasets collected from a real-world programming competition. Our experiment results show that SCS-Gan outperforms the baselines on all four out-of-sample datasets.
Keywords:
Codes
Task analysis
Training
Encoding
Feature extraction
Malware
Python
Cyber threat intelligence
representation learning
adversarial learning
authorship analysis
code authorship verification

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.9K
Citations:
1.1W

Organization

Q
queens university - canada
Scholars:
1.8W
Papers: 1.7W
Citations: 29
Cited Papers

Cited Papers

Titanium ketimide complexes as α-olefin homo- and copolymerisation catalysts. X-ray diffraction structures of [TiCp′(NCtBu2)Cl2] (Cp′=Ind, Cp*)
err2004-01-01
err0
PREAI
errAlberto R. Dias; M. Teresa Duarte; Anabela C. Fernandes; Susete Fernandes; Maria M. Marques; Ana M. Martins; João F. da Silva; Sandra S. Rodrigues
errShare
errSave
errShare
errSave
Role of short-chain fatty acids in the gut-brain axis in schizophrenia: contribution to immune activation and pathophysiology in humans and mice
err
IF0
err2020-04-13
err0
errOAAI
errFeng Zhu; Wei Wang; Qingyan Ma; Zai Yang; Yajuan Fan; Yanmei Ju; Ruijin Guo; Qi Wang; Xin Mu; Bingbing Zhao; Yuan Gao; Xiaoyan He; Fengjie Gao; Li Qian; Ce Chen; Yunchun Chen; Chengge Gao; Xian-cang Ma
errShare
errSave
errShare
errSave
errShare
errSave
researcher View more