Abstract
Software anomaly behavior detection depends on the software behavior modeling. The key of software behavior model based on system call is the maturity level of the model. Based on the analysis of currently used software behavior modeling method, Combined with variable-length sequence model and VT-Path virtual path model's advantages, an improved software behavior model is presented, and apply this model to software behavior evaluation system. Experimental results show that the software behavior evaluation system based on this model is able to evaluate and judgment the malicious behavior of software.
Introduction
In the current cybersecurity landscape, detecting anomalous software behavior is a critical challenge. Traditional detection methods primarily rely on system call analysis, monitoring the requests a program makes to the operating system kernel. However, existing models such as N-gram models and Finite State Automata (FSA) face significant limitations. N-gram models often suffer from high false-positive rates due to the non-uniform length of software functions, while FSA models are computationally expensive and struggle with complex software paths. Furthermore, much of the existing research is focused on Linux environments, leaving a gap in robust detection for Windows (Win32) systems.
This paper proposes an improved software behavior model for Win32 systems that addresses these gaps by combining variable-length system call sequences with relative memory offsets. The goal is to create a "mature" model that is flexible enough to handle variable-length behaviors while remaining precise enough to detect subtle attacks that spoof legitimate system calls.
Proposed Methodology
The researchers developed a hybrid approach that integrates variable-length sequences with the Virtual Path (VT-Path) concept. The system monitors a running program using the SoftSnoop tool and logs every system call.
The Two-Tuple Innovation
A key contribution of this work is the "Two-Tuple" representation of software behavior. Instead of merely recording the name of a system call, the system records a pair: (System Call Sequence, Relative Memory Offset). The relative offset is calculated by subtracting the module's entrance address from the function's return address, effectively mapping the origin of the call within the code.
Evaluation and Knowledge Base
The system undergoes a training phase where it runs a "normal" version of the software multiple times to identify stable, repeating patterns. These patterns are stored in a "Confirmed Knowledge" base. To evaluate behavior, the system uses a custom scoring formula:
$$K = D + \frac{Y}{S}$$
Where:
- D is the total value derived from matching known sequences.
- Y is the evaluation based on individual system calls and their memory offsets.
- S is the total number of system calls in the sequence being tested.
Experimental Evaluation
The authors generated a custom dataset using a Win32 test program. The training phase involved running the program 10 times in a normal state to build a robust knowledge base. To test the system's detection capabilities, the authors used the OllyDBG debugger to manually disassemble and tamper with the program, creating versions with one, two, and three functions modified.
Key Results
The experimental prototype, developed in C# with a SQL Server backend, demonstrated high effectiveness. As shown in Table 1, the number of "Confirmed Sequences" grew steadily as the number of training runs increased, reaching 2,511 after 10 runs. This incremental learning process significantly enhances the model's maturity. In testing, the system correctly identified all three tampered versions of the software as "abnormal." For instance, one tampered program produced an evaluation value of 1.255, which exceeded the calculated safety threshold, triggering a successful detection.
Conclusion
The proposed model successfully leverages both temporal (system call sequences) and spatial (memory offsets) data to evaluate software behavior. While the results are promising, future work is needed to address the memory overhead of storing large knowledge bases and to extend the model to 64-bit architectures and multi-threaded applications. Additionally, refining the mathematical logic for automatic threshold determination remains an area for further exploration.
Summary updated