arXiv:2610.09817cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.09817

Hierarchical Security Monitoring for Edge-IoT: A Formal Methods Approach

Nikolaos Kekatos, Marinelio Chintri, Panagiotis Katsaros, Alexios Lekidis, Tom Nianios, Ioannis Seitoglou, Stylianos Basagiannis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Nikolaos Kekatos 1^{1}, Marinelio Chintr 2^{2}, Panagiotis Katsaros 3^{3}, Alexios Lekidis 4^{4}, Tom Nianios 1^{1}, Ioannis Seitoglou 2^{2}, Stylianos Basagiannis 2^{2}

1^{1}Clone Systems, Cyprus, {nkekatos, tnianios}@clone-systems.com; 2^{2}International Hellenic University, Greece, {basagiannis, marchint, ioaseito}@ihu.gr; 3^{3}Aristotle University of Thessaloniki, Greece, katsaros@csd.auth.gr; 4^{4}University of Thessaly, Greece, alekidis@uth.gr

Abstract—Cyber resiliency in edge-IoT deployments is fundamentally an economic problem: detection must keep critical processes operating under attack, but defender resources (compute, bandwidth, operator attention) are bounded. Centralised cloud monitoring offers expressive cross-device detection at prohibitive bandwidth cost; purely edge-local monitoring is cheap but blind to coordinated multi-device attacks where the asymmetric balance favours the attacker. We propose a lightweight hierarchical security-monitoring framework, built on formal runtime-verification methods, that occupies the practical middle ground at quantified cost. Each edge device runs a lightweight TeSSLa stream specification (size, payload validity, rate, and timestamp-drift predicates) that emits a four-valued verdict per aggregation window at sub-microsecond per-event cost; the gateway runs a parametric first-order MonPoly monitor over the per-device verdict streams at microsecond-scale per-verdict cost. The edge-to-gateway uplink carries roughly one Boolean per aggregation window per node, orders of magnitude smaller than the raw packet stream. The gateway tier detects coordinated attack patterns that no single-node monitor can see, shifting the asymmetric cost balance toward the defender. Every alert carries a witness set naming the device, the monitor tier, and the predicate that fired, providing an auditable record of the decision. We evaluate the framework on a container-host testbed spanning nominal and attacker nodes across four attack classes (buffer overflow, time spoofing, denial-of-service, and mixed advanced-persistent-threat patterns), and describe the edge- and gateway-tier specifications together with the cost-versus-coverage trade-off as monitor levels are added.

Index Terms—hierarchical security monitoring, edge-IoT security, formal methods, runtime verification, distributed attack detection, advanced persistent threat.

I. INTRODUCTION

Edge-IoT deployments increasingly host security-relevant decision-making at low-power devices: per-sensor anomaly detection, local rate limiting, real-time intrusion classification, and embedded perception on connected-vehicle platforms [1]. Two architectural extremes are commonly used to enforce safety and security properties on such deployments, and each has known failure modes.

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. This work has been accepted for publication at the 2026 IEEE International Conference on Cyber Security and Resilience (IEEE CSR 2026).

Edge-only monitors are inexpensive and decide at line rate, but are structurally blind to attacks that coordinate across devices: an attacker that behaves nominally most of the time and bursts intermittently is, by construction, invisible to any monitor that sees only one node. Cloud-only monitors obtain the cross-node view but pay for it in bandwidth (every packet shipped upward) and detection latency, and they cannot enforce safety properties locally at line rate.

This paper proposes a hierarchical security-monitoring framework built on formal runtime-verification methods [2]: lightweight, single-property monitors at the edge and a single parametric first-order monitor at the gateway, with a formal composition operator between the two levels. The framework is instantiated over two mature open-source RV engines: TeSSLa [3], [4] for stream-based per-node monitoring with timed asynchronous semantics, and MonPoly [5] for metric first-order temporal logic (MFOTL) at the gateway with quantification over node identifiers. The two levels emit four-valued verdicts in the Bauer–Leucker–Schallhart sense [6] and compose through a typed algebra that records witnesses by level and by node. The architectural result is that fast, deterministic decisions stay at the edge, the expensive cross-node correlation runs only at the gateway, and each blocked or flagged event carries an audit-oriented record of which level and which node triggered the verdict.

We evaluate the framework on a 12-actor dataset comprising five nominal nodes and seven attackers across four attack classes (buffer overflow, time spoofing, denial-of-service, and mixed Advanced Persistent Threat (APT)). An Advanced Persistent Threat is a sustained, stealthy attack pattern in which one or more actors maintain access to a system over an extended period and coordinate intermittent violations across components so that no single component, viewed in isolation, exhibits behaviour unambiguously distinguishable from a noisy benign actor; the attack signature emerges only from cross-component correlation over a long enough window. Three of the four attack classes (overflow, time spoofing, denial-of-service) are caught by the edge tier; the fourth (mixed APT, where three coordinating attackers each behave nominally roughly 60% of the time) is only presumptively flagged per node at the edge ( ⊥p\perp_{p}) and confirmed as a coordinated attack when the gateway tier's parametric correlation across nodes is added. This dataset motivates the hierarchical framing: an attack class whose per-node evidence is individually ambiguous and whose signature is confirmable only by cross-node correlation.

Why this is hard for current single-level approaches. Edge-only stream-based RV (RTLola [7], TeSSLa [3]) has rich temporal semantics but operates on a single trace and cannot express parametric correlation across N traces from independent devices. At the gateway, MonPoly's MFOTL [5] offers exactly the quantification we need (“∀n, m, k. three nodes exhibiting intermittent violations within a 60 s window”), but running MonPoly on every raw packet from N devices is bandwidth- and compute-prohibitive. The contribution of this paper is a clean split: TeSSLa on the edge against raw packet streams, MonPoly at the gateway against the (small) verdict streams emitted by each edge monitor, and a formal algebra to compose the resulting verdicts.

The two-level split builds on hierarchical CPS-RV [8], [9]; the technical contribution is its instantiation with parametric first-order MFOTL at the gateway tier, which catches the mixed-APT patterns existing edge-IoT monitors miss.

Cost asymmetry. The framework forces the attacker to pay coordination cost across ≥\geq3 devices while the defender pays microsecond-scale cost per event at the edge and per verdict at the gateway, with witness sets at O(1)O(1) per alert as the audit by-product. The uplink is roughly one Boolean per node per aggregation window, orders of magnitude smaller than the raw stream a cloud correlator would require.

Threat model. We assume an adversary capable of compromising up to K of N edge devices and controlling their outbound packet streams within physical-channel limits. Real-world precedents such as the 2015 Ukrainian power-grid attack [10] show that coordinated cross-device APT is a realistic capability against edge-IoT-like fleets. The attacker may keep per-device behaviour intermittent to evade single-node thresholds and may synchronise across the compromised set. Monitor integrity. The L1 monitor is an isolated sidecar (separate process/namespace) beside, not inside, the network-facing application, its integrity assumed under platform attestation. Subverting an L1 monitor only disables local detection on that device, the single-node-blind case the gateway already covers, since one compromised edge cannot suppress the cross-device ⊥p\perp_{p} pattern.

Out of scope (assumed handled by attestation/isolation): supply-chain compromise of the L1/L2 binaries, tampering with the gateway-observed timestamp, and direct interference with the sidecar L1 process.

Contributions. We first characterise detectability: which attack classes are decidable locally at the edge (overflow, time-spoofing, DoS) and which require cross-device correlation at the gateway (coordinated mixed-APT). This local/global split is what the two-tier design exploits. Concretely, we give a two-level engine-agnostic specification with a four-valued composition algebra and witness sets (Section II), a concrete TeSSLa + MonPoly realisation (Section III), and a measured evaluation on a 12-actor testbed (extended in a 15-actor second-generation replay) in Section IV.

Motivating example: which class needs the gateway. The controlled 12-actor dataset (five nominal nodes, seven attackers, four attack classes on a Docker testbed; schema and per-actor configuration in Section IV-A) isolates which class requires the gateway tier. The single-node classes (overflow, time spoofing, DoS) each violate one invariant on one device and are caught by a single-property monitor there. The three mixed-APT actors (NODE-8/9/10) instead behave nominally ≈60%\approx60\% of the time and burst independently the rest; individually they emit predominantly ⊥p\perp_{p} (one ⊥\perp). The signal is the cross-node correlation (three independent ⊥p\perp_{p} verdicts within a 60 s window), which only a parametric quantifier (FORALL n, EXISTS m, k, bounded-past ONCE) can express.

The empirical L1 verdict distribution grounding this observation appears in Table I.