Miami University
A Slicing Based Approach for Detecting and Patching Vulnerable Code Clones
Abstract
dc:descriptionIn software development, the practice of code cloning is widespread, yet it carries substantial security risks by spreading vulnerabilities among duplicate code sections. To tackle this issue, we present a scalable and accurate vulnerability detection approach and a tool that merges program slicing with Locality Sensitive Hashing to detect vulnerable code clones and recommend patches.Our method builds a database of vulnerability-related slices through an analysis of known vulnerable software and their applied patches, indexing each slice's unique structural features as a vulnerability slicing vector. During clone detection, our system adeptly matches slicing vectors from the target software with those in our database, suggesting patches when similarities are found.Testing the tool against three state-of-the-art vulnerable clone detectors, we confirm its precision, speed, and scalability, achieving 91% precision and 75% recall on established vulnerability databases. In addition, our approach successfully retrieved applicable patches for over 70% of detected vulnerable clones. These findings highlight the tool's capability in identifying complex vulnerability patterns across various codebases and providing the applicable patches.
Degree
thesis:*- Name thesis:degree_name
- Master of Science in Computer Science
- Level thesis:degree_level
- masters
- Discipline thesis:degree_discipline
- Computer Science and Software Engineering
- Grantor dc:publisher
- Miami University
- Year dc:date
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Gyawali, Himal
- Advisor dc:contributor.advisor
-
- Alomari, Hakam
Subjects
dc:subject × 6Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=miami1752337513130755