Intrusion Detection Using Execution Contexts Learned from System Call Distributions of Real-Time Embedded Systems

Man-Ki Yoon, Sibin Mohan, Jaesik Choi, Mihai Christodorescu, Lui ShaarXiv 2015

Abstract

Embedded systems, ranging from medical devices to industrial controllers, face increasing security threats while operating under strict resource and timing constraints. Traditional sequence-based intrusion detection systems (IDS) are often computationally expensive or vulnerable to mimicry attacks. This paper presents a lightweight IDS that utilizes System Call Frequency Distribution (SCFD) to define legitimate execution contexts. By employing cluster analysis and Mahalanobis distance, the system achieves high detection accuracy with minimal overhead. The proposed architecture leverages hardware acceleration to offload security monitoring, ensuring it does not interfere with real-time task execution.

Introduction

The security of embedded systems is a critical concern as these devices become more interconnected. However, their limited processing power and memory make standard security tools impractical. Conventional behavior-based IDS typically monitor the order of system calls. While effective in some scenarios, these methods can be bypassed by "mimicry attacks," where malicious code is interleaved with legitimate call sequences to appear normal.

This research addresses these challenges by shifting the focus from the temporal sequence of calls to their statistical distribution over an entire execution task. This high-level "contextual" view captures the fundamental behavior of an application, making it more resilient to subtle sequence manipulations.

Methodology: System Call Frequency Distribution (SCFD)

The core of the proposed method is the System Call Frequency Distribution (SCFD). During a profiling phase, the system records the frequency of each system call type (e.g., read, write, open) during a specific task's execution.

Example of a System Call Frequency Distribution (SCFD) for an execution task.

Unlike general-purpose computers, embedded systems exhibit high regularity in their operations. This predictability allows the SCFD to serve as a reliable signature for normal behavior.

Contextual Clustering and Anomaly Detection

Because an application may have multiple operating modes (e.g., initialization, idle, data processing), a single baseline is insufficient. The authors use a global k-means clustering algorithm to group observed distributions into distinct "execution contexts."

To determine if a new execution run is legitimate, the system calculates its distance from the learned clusters. The authors utilize the Mahalanobis distance rather than Euclidean distance. This choice is crucial as it accounts for the variance of individual system calls and the correlations between them (e.g., a socket call typically preceding a connect or read).

Clustering of system call distributions and identification of outliers using cutoff distances.

As shown in the clustering model, points falling outside a defined "cutoff distance" from the cluster centroids (such as points C and D) are flagged as anomalies.

Hardware-Assisted Monitoring

To eliminate the "observer effect" and meet real-time deadlines, the authors propose the SecureCore architecture. A dedicated hardware module (SCTM) traces system calls on the main processor and logs counts to private memory. A separate "Secure Core" then performs the SCFD analysis independently, keeping security monitoring off the critical path of the main application.

Experimental Evaluation

The system was evaluated using a simulated UAV application on a Freescale MPC8641D processor. The application cycle included image capture, JPEG compression, FTP upload, and HTTP logging. The IDS was trained on 2,000 normal runs.

Key Results

The SCFD approach demonstrated exceptional performance across several attack scenarios:

  • Credential Theft & Shellcode: Detected with 100% accuracy due to the invocation of unexpected system calls (e.g., brk, execve).
  • Data Exfiltration: Detected 100% of the time when network call frequencies deviated from the established profile.
  • Data Corruption: Interestingly, even attacks that did not use system calls directly were detected. For instance, an attack causing the JPEG encoder to fail resulted in a significant drop in subsequent read/write calls, triggering an anomaly alert.

Performance-wise, the analysis is highly efficient. For an application using 14 system call types, the legitimacy test averaged only 5.23 microseconds on a separate core.

Discussion and Conclusion

The SCFD method leverages the inherent regularity of embedded systems to provide a robust, lightweight security layer. By focusing on the total distribution of calls within a task context, it overcomes the limitations of short-window sequence monitoring.

While the current implementation analyzes tasks post-execution, future work aims to provide finer-grained protection by segmenting long tasks into smaller blocks. Additionally, integrating timing information into the distribution model could further enhance detection capabilities against sophisticated timing-channel attacks.

Summary updated

BibTeX
@misc{yoon2015intrusion,
  author = {Man-Ki Yoon and Sibin Mohan and Jaesik Choi and Mihai Christodorescu and Lui Sha},
  title = {{Intrusion Detection Using Execution Contexts Learned from System Call Distributions of Real-Time Embedded Systems}},
  year = {2015},
  eprint = {1501.05963},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1501.05963},
}
Figure