Period Adaptation for Continuous Security Monitoring in Multicore Real-Time Systems

Monowar Hasan, Sibin Mohan, Rodolfo Pellizzoni, Rakesh B. BobbaarXiv 2019

Abstract

Real-time systems (RTS) prioritize safety and timing predictability, often at the expense of security. Integrating continuous security monitoring into multicore RTS is challenging due to the risk of deadline misses. This paper presents HYDRA-C, a framework that employs semi-partitioned scheduling to "squeeze" security tasks into available processor slack. By allowing security tasks to migrate across cores while keeping critical real-time tasks partitioned, HYDRA-C optimizes monitoring frequency. Experimental results show a 19% reduction in detection latency compared to state-of-the-art static partitioning, maintaining full schedulability for safety-critical workloads.

Introduction

The move toward multicore processors in safety-critical domains like autonomous vehicles and industrial control systems introduces significant scheduling complexity. Traditional security tools are often incompatible with these systems because their execution patterns are unpredictable, potentially causing critical tasks to miss deadlines. Historically, security was an afterthought because general-purpose tools could cause catastrophic timing failures. Previous research has attempted to integrate security as low-priority tasks, but these approaches often underutilize available resources by locking security tasks to specific cores, leaving valuable processing "slack" on other cores unused.

Methods

HYDRA-C addresses this by treating security monitoring as a distributed resource. It utilizes a semi-partitioned scheduling model where legacy real-time (RT) tasks remain fixed to specific cores to ensure predictability and ease of certification. In contrast, security tasks are assigned the lowest priority and are permitted to migrate across any core that becomes idle.

Comparison of vanilla multicore scheduling versus HYDRA-C's opportunistic security task integration.

The framework employs a mathematical model to calculate the Worst-Case Response Time (WCRT) for these migrating tasks. An iterative algorithm performs a logarithmic search to determine the optimal execution period for each security task, maximizing monitoring frequency while guaranteeing that all deadlines are met. This approach treats idle gaps (slack time) as a global resource rather than a local one, allowing security tasks to jump between cores to continue execution if interrupted.

Evaluation and Results

The researchers evaluated HYDRA-C using a quad-core Raspberry Pi 3 rover platform and 2,500 synthetic tasksets. The physical platform ran real security tasks, including a file integrity checker (Tripwire) and a custom kernel rootkit detector.

Key findings include:

  • Faster Detection: HYDRA-C achieved a 19.05% faster average detection time compared to static partitioning (the original HYDRA baseline).
  • Improved Schedulability: The system successfully scheduled security tasks even at high total utilization (>0.7), where baseline methods failed.
  • Minimal Impact: Because security tasks run at the lowest priority, the performance of critical navigation and camera tasks remained entirely unaffected.
  • Overhead Trade-off: Although task migration increased context switches by approximately 1.75x, the impact was negligible relative to the execution times of the security tasks themselves.
Comparison of detection time (cycle count) between HYDRA-C and the baseline HYDRA.

Conclusion

HYDRA-C demonstrates that task migration, typically avoided in RTS due to overhead concerns, is a powerful tool for security. By exploiting cross-core slack, it provides more continuous monitoring without compromising safety guarantees. Future work will address task dependencies and the development of reactive security components that trigger more intensive checks upon anomaly detection.

Summary updated

BibTeX
@misc{hasan2019period,
  author = {Monowar Hasan and Sibin Mohan and Rodolfo Pellizzoni and Rakesh B. Bobba},
  title = {{Period Adaptation for Continuous Security Monitoring in Multicore Real-Time Systems}},
  year = {2019},
  eprint = {1911.11937},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.11937},
}
Figure