Scalable program clone search through spectral analysis - Université Paris-Saclay
Communication Dans Un Congrès Année : 2023

Scalable program clone search through spectral analysis

Tristan Benoit
Jean-Yves Marion

Résumé

We consider the problem of program clone search, i.e. given a target program and a repository of known programs (all in executable format), the goal is to find the program in the repository most similar to the target program -- with potential applications in terms of reverse engineering, program clustering, malware lineage and software theft detection. Recent years have witnessed a blooming in code similarity techniques, yet most of them focus on function-level similarity and function clone search, while we are interested in program-level similarity and program clone search. Actually, our study shows that prior similarity approaches are either too slow to handle large program repositories, or not precise enough, or yet not robust against slight variations introduced by compilers, source code versions or light obfuscations. We propose a novel spectral analysis method for program-level similarity and program clone search called Programs Spectral Similarity (PSS). In a nutshell, PSS one-time spectral feature extraction is tailored for large repositories, making it a perfect fit for program clone search. We have compared the different approaches with extensive benchmarks, showing that PSS reaches a sweet spot in terms of precision, speed and robustness.
Fichier principal
Vignette du fichier
ESEC_FSE_CR_PREPRINT.pdf (702.85 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03826726 , version 1 (24-10-2022)
hal-03826726 , version 2 (26-06-2023)
hal-03826726 , version 3 (26-06-2023)
hal-03826726 , version 4 (01-09-2023)

Identifiants

Citer

Tristan Benoit, Jean-Yves Marion, Sébastien Bardin. Scalable program clone search through spectral analysis. ESEC/FSE '23 - 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering, Dec 2023, San Francisco, United States. ⟨10.48550/arXiv.2210.13063⟩. ⟨hal-03826726v4⟩
250 Consultations
174 Téléchargements

Altmetric

Partager

More