SHIELD: Thwarting Code Authorship Attribution

Mohammed Abuhamad, Changhun Jung, David Mohaisen, DaeHun Nyang
4/26/2023
cs.CRcs.CYcs.LG

No confident code implementation found for this paper.

Abstract

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 authorship attribution approaches against adversarial code examples. We define four attacks on attribution techniques, which include targeted and non-targeted attacks, and realize them using adversarial code perturbation. We experiment with a dataset of 200 programmers from the Google Code Jam competition to validate our methods targeting six state-of-the-art authorship attribution methods that adopt a variety of techniques for extracting authorship traits from source-code, including RNN, CNN, and code stylometry. Our experiments demonstrate the vulnerability of current authorship attribution methods against adversarial attacks. For the non-targeted attack, our experiments demonstrate the vulnerability of current authorship attribution methods against the attack with an attack success rate exceeds 98.5\% accompanied by a degradation of the identification confidence that exceeds 13\%. For the targeted attacks, we show the possibility of impersonating a programmer using targeted-adversarial perturbations with a success rate ranging from 66\% to 88\% for different authorship attribution techniques under several adversarial scenarios.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{abuhamad2023shield,
  title  = {SHIELD: Thwarting Code Authorship Attribution},
  author = {Mohammed Abuhamad and Changhun Jung and David Mohaisen and DaeHun Nyang},
  year   = {2023},
  eprint = {2304.13255},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.13255v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.13255.svg)](https://codeofpaper.com/paper/2304.13255)

Discussion