arrow
Return

A Comparative Study on Source Code Attribution Using AI: Datasets, Features, and Techniques

delete2026-01-01
delete0
PRE
AI
S
Shamma Alalawi
S
Saed Alrabaee *
W
Wasif Khan
I
Issam Al-Azzoni
M
Medha Mohan Ambali Parambil
DOI:10.1007/978-3-031-94445-1_18delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
In recent years, the application of artificial intelligence (AI) techniques for source code authorship attribution has gained significant attention from academia and industry. Accurately attributing source code to its original author is crucial for various purposes, such as intellectual property protection, cybersecurity, and software forensics. Advances in AI technologies, like ChatGPT, which can generate code, present new challenges and opportunities in distinguishing between human- and machine-generated code. This article aims to comprehensively review existing research on source code authorship attribution and present a series of experiments using a dataset of 600 source codes. The study involves extracting lexical and layout features, ranking methods, and employing several machine learning models (SVM, LR, MLP, XGBoost, and RF) and deep learning models (LSTM, RNN, and CNN). The objectives include identifying the best model to determine whether source codes were written by a human or ChatGPT-4 and providing insights into two human characteristics: gender and region. Our results show that we achieved up to 94.7% accuracy with RF using TF-IDF and 95% accuracy with the CNN model. Finally, we identify emerging trends and potential future research directions in AI for authorship attribution.
Keywords:
Software Forensics
Code Authorship Attribution
Machine Learning
Deep Learning
ChatGPT-generated Code

Journal

S
SECURITY AND PRIVACY IN COMMUNICATION NETWORKS, SECURECOMM 2024, PT I
IF:
0
Papers:
16
Citations:
0

Organization

A
al ain university of science & technology uae
Scholars:
99
Papers: 73
Citations: 0
U
United Arab Emirates University
Scholars:
8.8K
Papers: 7.4K
Citations: 10.0K
Cited Papers

Cited Papers

err
IF0
err
err0
PREAI
err
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
Meta-Heuristic Guided Feature Optimization for Enhanced Authorship Attribution in Java Source Code
err2023-01-01
err0
errOAAI
errAl-Ahmad, Bilal; Al-Madi, Nailah; Alzaqebah, Abdullah; Alkhawaldeh, Rami S.; Aldebei, Khaled; Kabir, Md. Faisal; Altaharwa, Ismail; Abu-Faraj, Mua'ad; Aljarah, Ibrahim
errShare
errSave
Source Code Authorship Identification Using Deep Neural Networks
err2020-12-10
err0
errOAAI
errAnna Kurtukova; Aleksandr Romanov; Alexander Shelupanov
errShare
errSave
Code authorship identification using convolutional neural networks
err2019-06-01
err41
PREAI
errAbuhamad, Mohammed; Rhim, Ji-su; AbuHmed, Tamer; Ullah, Sana; Kang, Sanggil; Nyang, DaeHun
errShare
errSave
When Coding Style Survives Compilation: De-anonymizing Programmers from Executable Binaries
err2018-01-01
err0
errOAAI
errAylin Caliskan; Fabian Yamaguchi; Edwin Dauber; Richard Harang; Konrad Rieck; Rachel Greenstadt; Arvind Narayanan
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
researcher View more