arrow
返回

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
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

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.
Keyword:
Codes
Task analysis
Training
Encoding
Feature extraction
Malware
Python
Cyber threat intelligence
representation learning
adversarial learning
authorship analysis
code authorship verification

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.8K
被引数:
1.1W

机构

Q
queens university - canada
学者数:
1.8W
论文数: 1.7W
被引数: 29
引用论文

引用论文

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
err分享
err收藏
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
err分享
err收藏
err分享
err收藏
err分享
err收藏
学者 查看更多内容