Conference paper
Cite …

Same Same But Different: Preventing Refactoring Attacks on Software Plagiarism Detection

Robin Maisch ORCID iD icon 1, Larissa Schmid ORCID iD icon 1, Timur Sağlam ORCID iD icon 1 and Nils Niehues ORCID iD icon 1
1 Institute of Information Security and Dependability (KASTEL), Karlsruhe Institute of Technology (KIT)
DOI: 10.5445/IR/1000191769
Publisher's version published on Mar 30, 2026
CC BY 4.0
Abstract

Plagiarism detection in programming education faces growing challenges due to increasingly sophisticated obfuscation techniques, particularly automated refactoring-based attacks. While code plagiarism detection systems used in education practice are resilient against basic obfuscation, they struggle against structural modifications that preserve program behavior, especially caused by refactoring-based obfuscation. This paper presents a novel and extensible framework that enhances state-of-the-art detectors by leveraging code property graphs and graph transformations to counteract refactoring-based obfuscation. Our comprehensive evaluation of real-world student submissions, obfuscated using both algorithmic and AI-based obfuscation attacks, demonstrates a significant improvement in detecting

plagiarized code.