Evaluating Software Plagiarism Detection in the Age of AI: Automated Obfuscation and Lessons for Academic Integrity
Timur Sağlam, Larissa Schmid
TL;DR
The paper evaluates how software plagiarism detectors fare against automated obfuscation attacks, including AI-driven transformations and AI-generated code. By implementing two attack-agnostic defenses—Token Sequence Normalization and Subsequence Match Merging—and testing their combination across six real-world datasets, the study demonstrates substantial gains in obfuscation resilience and even improved detection of AI-generated programs. It uses a robust methodology that avoids threshold bias and employs rigorous statistics to quantify practical significance, showing that defense-in-depth can markedly improve plagiarism detection without inflating false positives. The findings have practical implications for academic integrity in CS education, highlighting both the effectiveness of current defenses and the need for ongoing vigilance as AI-enabled obfuscation evolves, while stressing the continued importance of human review in adjudicating suspected cases.
Abstract
Plagiarism in programming assignments is a persistent issue in computer science education, increasingly complicated by the emergence of automated obfuscation attacks. While software plagiarism detectors are widely used to identify suspicious similarities at scale and are resilient to simple obfuscation techniques, they are vulnerable to advanced obfuscation based on structural modification of program code that preserves the original program behavior. While different defense mechanisms have been proposed to increase resilience against these attacks, their current evaluation is limited to the scope of attacks used and lacks a comprehensive investigation regarding AI-based obfuscation. In this paper, we investigate the resilience of these defense mechanisms against a broad range of automated obfuscation attacks, including both algorithmic and AI-generated methods, and for a wide variety of real-world datasets. We evaluate the improvements of two defense mechanisms over the plagiarism detector JPlag across over four million pairwise program comparisons. Our results show significant improvements in detecting obfuscated plagiarism instances, and we observe an improved detection of AI-generated programs, even though the defense mechanisms are not designed for this use case. Based on our findings, we provide an in-depth discussion of their broader implications for academic integrity and the role of AI in education.
