Observability, Not Placement: A PyCPS-IDS Simulation Study of Edge, Fog, Cloud, and Hybrid Intrusion Detection in Smart-City IoT
Abstract
Where should intrusion detection run in a smart-city IoT network: on the device, at the district gateway (fog), in the cloud, or across tiers? Recorded datasets cannot answer this, because they fix what each tier observes. PyCPS-IDS is an open-source Python discrete-event simulator that couples traffic, lighting and energy processes with lossy links, finite gateway queues and a lossy backhaul, injects flooding, spoofing, replay and false data injection (FDI) under an explicit threat model, and records what each tier sees. On ten fresh seeds per scenario, evaluated after the pipeline was frozen, fog, cloud and hybrid detectors using the same model reached F1 0.54-0.57, and hybrid and fog were statistically equivalent within +/-0.02 in all three city scenarios. Placement changed cost, not detection: the cloud used 827 times the backhaul traffic of fog alerts, its latency followed its batch interval (33 s median at 30 s batches, 12 s streaming, 11 s at the fog) and it degraded under backhaul loss, while the hybrid cut false alarms on attack-free runs from 54 to 6 per hour. Detection was limited by observability. Flooding was detected in at least 96% of malicious windows at every tier. Spoofing by an attacker who jams the victim and continues its sequence numbers left no network evidence and was detected in 18-22% of windows; FDI in 43-84% on light and energy sensors and almost never on noisy traffic counters; replay of a device's own past readings in 15%. These attacks call for authentication, redundant sensing and physical watermarking, not a different detector placement.
Create a lesson
Metadata
- Categories
- cs.CR, cs.NI
- Comments
- 17 pages, 3 figures, 10 tables. Code and data: https://github.com/mustafasadiq0/PY-CPS-IDS. Supersedes an earlier version posted on ResearchGate (doi:10.13140/RG.2.2.19297.77923)
Related papers
JANUS: Permission-Guided Intrusion Detection in Kubernetes via Cross-Modal Association
Shared title terminologycs.CRYongqiang Li, Tao Luo, Guohua Xin et al.
An Empirical Evaluation of Validation Practices for Machine Learning-Based Network Intrusion Detection
Shared title terminologycs.CRJoão R. Campos
An Ensemble Machine Learning Approach for Detecting Intrusion using Advance Feature Selection Technique
Shared title terminologycs.CRMd Raihan Al Masud, Hossen Asiful Mustafa
Monitoring Activations for Real-Time Detection of Cyber Misuse
Shared title terminologycs.CRCarlo Alfano, Adam Stein, Neil Gollapudi et al.
LineageForge: Large Language Model for Constructing Verifiable Smart Contract Vulnerability Datasets at Scale
Shared title terminologycs.CRYucheng Huang, Jinbo Wen, Jiawen Kang et al.
QRNet: QR-Specific Representation Learning for Direct Image-Based Quishing Detection
Shared title terminologycs.CRJohn Harb, Fouad Trad, Ali Chehab