TL;DR
This paper introduces SCDG birthmarks, a novel dynamic approach to detect software theft by analyzing system call dependencies. Unlike previous methods, SCDG birthmarks are resilient to various obfuscation techniques and can detect the theft of even small software components, making it a practical solution for protecting large-scale software.
What Problem Does This Paper Address?
The proliferation of open-source software has unfortunately led to an increase in software theft, where developers reuse code without proper licensing. Traditional methods for detecting this theft, like software watermarking, are often vulnerable to sophisticated evasion techniques. Existing software birthmark approaches, which aim to identify unique program characteristics, have limitations: some require source code, others can't detect partial code theft, and many are susceptible to compiler optimizations and obfuscation. This paper tackles the challenge of creating a robust, dynamic software birthmark that can effectively detect component theft in large, real-world applications, even when faced with advanced obfuscation.
Methods
The core of this paper is the SCDG (System Call Dependence Graph) birthmark. The authors propose a dynamic analysis approach that captures the behavior of a program by analyzing its system calls and the dependencies between them.
Here's a breakdown of their method:
- Dynamic Analysis: The system executes both the "plaintiff" (original) and "suspect" (potentially stolen) programs with the same input. During execution, it records system call traces, call stacks, and crucially, the data and control dependencies between these system calls.
- Noise Filtering: To ensure robustness, the system filters out "noisy" system calls that don't significantly contribute to a program's unique behavior. This includes ignoring certain system calls like
gettimeofdayor memory management calls, and treating functionally equivalent system calls as the same. - SCDG Construction: From the filtered system call traces, a System Call Dependence Graph (SCDG) is constructed. Nodes in the graph represent system calls, and edges represent dependencies (data or control) between them.
- Birthmark Extraction: For component theft detection, the SCDG of the original program is partitioned into smaller subgraphs based on its dynamic call tree. These subgraphs are then further refined by removing common behaviors found in a set of training programs, leaving behind unique "birthmarks." The suspect program's SCDG is also partitioned for comparison.
- Birthmark Comparison: The extracted SCDG birthmarks are compared using a relaxed subgraph isomorphism algorithm (specifically, γ-isomorphism). This allows for a degree of tolerance (e.g., 10% difference) to account for minor variations. The authors also employ pruning techniques to efficiently narrow down potential matches.
Datasets
The paper doesn't introduce a new benchmark dataset but uses existing programs for evaluation.
- Training Program Set: A collection of programs (Dillo, Yudit, Meld, Gimp, Totem, Pdfedit, Dia) used to identify and remove common behaviors from the plaintiff birthmarks, ensuring that the extracted birthmarks are unique.
- Testing Program Set: A larger set of 24 real-world applications (including web browsers, word processors, text editors, etc.) used to evaluate the effectiveness of the SCDG birthmarks in detecting the presence of specific components (Gecko and GNU Aspell).
Key Insights and Ideas
- System Calls as a Robust Behavior Indicator: The paper highlights that system calls, representing interactions with the operating system, are fundamental behaviors that are difficult for attackers to alter without significantly changing the program's functionality or incurring substantial effort.
- SCDGs Capture Essential Behavior: The SCDG, by representing dependencies between system calls, captures a deeper level of program behavior than simple sequences of calls. This makes it more resilient to obfuscation techniques that might alter the order or appearance of code but not the underlying system interactions.
- Component Theft Detection is Achievable: A significant contribution is the ability to detect the theft of components rather than just entire programs. This is achieved by partitioning the SCDG and extracting smaller birthmarks.
- γ-Isomorphism for Practicality: Using a relaxed subgraph isomorphism (γ-isomorphism) allows for practical detection even with minor variations, acknowledging that perfect matches might be rare in real-world scenarios.
- Noise Filtering is Crucial: The effectiveness of the system relies heavily on the noise filtering step to remove irrelevant system calls and ensure that only characteristic behaviors are considered.
Key Results
- Resilience to Obfuscation: The SCDG birthmarks demonstrated robustness against various evasion techniques, including different compilers, compiler optimization levels (e.g., -O0 to -O3), and two state-of-the-art obfuscation tools (Semantic Designs C obfuscator and Loco).
- Component Theft Detection Success: The system successfully identified the presence of the GNU Aspell component in five out of 24 tested applications and the Gecko engine component in four out of 24 applications. These results were confirmed by manual inspection.
- Scalability: The evaluation was performed on large-scale applications, demonstrating the practicality of the approach beyond small "toy" programs.
- Computational Feasibility: Despite subgraph isomorphism being NP-complete, the authors argue that their specific application (limited graph size, unique graph characteristics, and the need for only the first match) makes the isomorphism testing tractable and efficient in practice.
Limitations and Future Work
- Limited Applicability to Call-less Programs: The SCDG birthmark is not applicable to programs that have very few or no system calls, such as those primarily performing arithmetic operations.
- Uniqueness Requirement: The approach relies on programs exhibiting unique system call behaviors. Programs with very common, generic behaviors (e.g., simple sorting programs) might not yield effective birthmarks.
- Tradeoff Between False Positives and Negatives: Like most detection systems, there's a tradeoff. The parameters (m and γ) influence this balance; larger parameters increase confidence but may lead to more false negatives, while smaller parameters might increase false positives.
- Impact of Input: The dynamic nature of SCDG birthmarks means they require the same input for both plaintiff and suspect programs, which can be a challenge in real-world scenarios where the exact input might be unknown or different.
- Future Work: The authors suggest investigating the impact of different inputs on SCDG birthmarks and examining how software component birthmarks change across different software versions. They also aim to explore the similarity of birthmarks for different versions of a component.
Summary updated