Contego: An Adaptive Framework for Integrating Security Tasks in Real-Time Systems

Monowar Hasan, Sibin Mohan, Rodolfo Pellizzoni, Rakesh B. BobbaDROPS 2017

TL;DR

This paper introduces Contego, a novel framework for integrating security tasks into existing real-time systems (RTS) without compromising their critical timing and safety guarantees. Contego achieves this by allowing security tasks to operate in adaptive "passive" and "active" modes, ensuring security without disrupting the core functionality of legacy systems.

What Problem Does This Paper Address?

Embedded real-time systems (RTS) are increasingly ubiquitous, powering everything from vehicles to critical infrastructure. However, their traditional design often overlooked cybersecurity, leaving them vulnerable to sophisticated attacks. Integrating security mechanisms into these systems is challenging because they must coexist with real-time tasks, which have strict timing and safety requirements. Any security measures must not impact the system's ability to perform its primary functions on time, a particularly difficult constraint when retrofitting older, "legacy" systems where modifying existing task parameters is often infeasible. This paper tackles the problem of adding robust security to these legacy RTS without breaking their fundamental real-time guarantees.

Methods

Contego's core innovation lies in its adaptive, two-mode approach for security tasks:

  • Passive Mode: In this default mode, security tasks run opportunistically with the lowest priority. This ensures they don't interfere with critical real-time tasks, maintaining compatibility with legacy systems.
  • Active Mode: When suspicious activity is detected, security tasks can switch to this mode. Here, they can execute with higher priority for a limited time, allowing for more intensive checks (like fine-grained analysis) and faster detection. This mode is carefully managed to ensure that even with higher priority, the real-time tasks' deadlines are still met.

To manage these tasks and ensure schedulability, Contego introduces a "security server" abstraction. This server acts as a dedicated resource for security tasks, allowing them to execute within defined capacity and replenishment periods. The paper also defines a metric to quantify the "tightness" of security monitoring, measuring how close a security task's execution frequency is to its desired rate. The framework uses nonlinear optimization to determine optimal periods and server parameters for both modes, aiming to maximize security effectiveness while respecting real-time constraints.

Datasets

The paper evaluates Contego using:

  • Synthetic Task-sets: Randomly generated task-sets were used to test the framework's performance across various utilization levels. These task-sets were grouped by base utilization and generated using the UUniFast algorithm.
  • Real-world Embedded Platform: A proof-of-concept implementation was deployed on a 1 GHz ARM Cortex-A8 processor running real-time Linux with the Xenomai patch. This platform was used to run a simulated UAV control system and integrate security applications like Tripwire and Bro.

Key Insights and Ideas

  • Adaptive Security is Key: The most significant insight is that a static approach to security in RTS is insufficient. Contego's ability to dynamically switch between passive and active modes is crucial for balancing security needs with real-time constraints.
  • Legacy Systems Can Be Secured: The framework's design specifically targets legacy systems, demonstrating that robust security can be integrated without requiring fundamental architectural changes or extensive modifications to existing real-time tasks.
  • Security vs. Performance Trade-off is Quantifiable: By defining metrics like "cumulative tightness," the paper provides a way to quantify the trade-off between security effectiveness and system performance, allowing designers to make informed decisions.
  • Higher Priority for Security is Possible (Carefully): The active mode shows that granting higher priority to security tasks can significantly improve detection times, provided that the underlying real-time system's schedulability is rigorously maintained.

Key Results

  • Improved Detection Time: In experiments, Contego detected intrusions approximately 27.29% faster on average compared to a baseline approach that only ran security tasks opportunistically.
  • Enhanced Schedulability: The active mode demonstrated better schedulability for security tasks compared to the passive mode, as they could leverage higher priorities with less interference.
  • Feasible Integration: The framework successfully integrated security tasks into a simulated UAV control system on an embedded platform, showing practical applicability.
  • Tightness Achieved: Contego could achieve security task periods within 18% of the desired periods, indicating a good balance between security goals and system constraints.

Limitations and Future Work

  • Adversary Compromising All Security Tasks: The paper acknowledges that if an adversary can compromise all security tasks, the system's security will collapse. Future work aims to address this by exploring schedule randomization techniques to make security task execution less predictable.
  • False Positives/Negatives: Unnecessary mode switches due to false positives from intrusion detection systems (IDS) could reduce performance and availability. The authors suggest that designing better IDS and potentially incorporating mechanisms to handle fake indications of malicious activity are areas for future research.
  • Atomicity and Dependencies: The current model treats security tasks as independent and preemptive. Future work will explore extending the framework to handle atomic operations and dependencies between security tasks.
  • Time-to-Detect Metric: While useful, time-to-detect is a lagging metric. The paper highlights the need for better security metrics and plans to investigate this further.
  • Nonlinear Optimization: The optimization problems for period adaptation and server parameter selection are nonlinear and complex. While the paper discusses reformulating them into geometric programming (GP) problems, further research into efficient solution methods is suggested.

Summary updated

BibTeX
@misc{hasan2017contego,
  author = {Monowar Hasan and Sibin Mohan and Rodolfo Pellizzoni and Rakesh B. Bobba},
  title = {{Contego: An Adaptive Framework for Integrating Security Tasks in Real-Time Systems}},
  year = {2017},
  eprint = {1705.00138},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.00138},
}
Figure