Master thesis
Cite …

Preventing Refactoring Attacks on Software Plagiarism Detection through Graph-Based Structural Normalization

Robin Maisch  ORCID iD icon 1,2
1 Institute of Information Security and Dependability (KASTEL), Karlsruhe Institute of Technology (KIT)
2 Karlsruhe Institute of Technology (KIT)
DOI: 10.5445/IR/1000172813
PDF published on Jul 25, 2024
CC BY 4.0
Abstract

Detecting software plagiarisms among code by students remains a challenge. Plagiarists often obfuscate their work by modifying it just enough to avoid detection while preserving the code’s runtime behavior in order to create an equally valid solution. This type of modification is commonly known as refactoring. State-of-the-art plagiarism detection tools use token-based comparison of submissions, which renders them immune against several types of refactoring obfuscation by their very design. Other types of refactorings, however, still create very effective plagiarisms. This thesis presents a novel approach that uses graph transformations as a means to normalize the structure of code submissions. This normalized structure is not affected by refactoring attacks. The normalization engine, implemented as a transformation system for code graphs, was integrated into a token-based plagiarism detection tool. We evaluate our approach on four relevant types of obfuscation attack schemes. From the results, we conclude that the approach is not only on-par with the state of the art in their efficacy against all attack schemes, but it even outperforms it by a large margin on combined refactoring attacks.