Integrating Causal Graph Structures for IoT DDoS Detection

Integrating Causal Graph Structures for IoT DDoS Detection

Proxy feature mapping involves selecting the most representative numerical attributes from raw flow data to represent semantic nodes in a causal graph. As the Internet of Things continues to expand into every facet of industrial and residential infrastructure in 2026, the vulnerability of these interconnected devices to sophisticated cyberattacks has reached a critical juncture. The research conducted by Bahareh Mohammadi, Samira Akhbarifar, and Maliheh Sabeti addresses this by exploring the potential of Knowledge-Defined Networking (KDN). Unlike traditional security measures that rely on static rules, KDN utilizes an intelligent Knowledge Plane to analyze network behavior dynamically. This study specifically targets Low-Rate Distributed Denial of Service (LDoS) attacks, which are designed to bypass standard volumetric detection by mimicking legitimate traffic bursts. By integrating a Directed Acyclic Graph (DAG) into neural architectures, the team seeks to provide a transparent, causal-aware representation of network flows. This evolution represents a shift from opaque machine learning toward systems that can be inspected and understood by security professionals, potentially offering a more robust defense against protocol-based exploits in the modern IoT ecosystem.

Causal Hypotheses and Architecture Design

Defining the Structural Prior

To create an inspectable framework, the researchers developed a causal hypothesis comprising five semantic variables: Burst_Duration, TCP_Timeout, Queue_Drop, Normal_Traffic, and Attack_Label. Unlike purely automated data-driven models, this Directed Acyclic Graph represents a structural prior based on established knowledge of network protocols. For instance, the graph posits that the duration of a traffic burst directly influences the TCP recovery response, which in turn leads to physical congestion in the network buffer, eventually signaling a potential attack. This approach allows the model to mirror human logic regarding how network disruptions propagate through a system rather than relying on arbitrary statistical correlations. The selection of these variables was guided by the DAGitty tool, ensuring that the relationships followed a logical progression from network state to incident label. By grounding the model in such domain expertise, the researchers aimed to bridge the gap between complex network physics and the abstract decision-making processes of deep learning algorithms.

Engineering the Causal MLP

Implementing this hypothesis required a specialized architecture featuring a differentiable propagation layer designed to adjust the influence of the causal graph during training. The integration process involved mapping raw network flow attributes, extracted via tools like CICFlowMeter, to specific graph nodes and utilizing a binary adjacency matrix to define their relationships. A learnable scalar coefficient, referred to as Alpha, was introduced to allow the neural network to determine the optimal weight of the structural prior relative to the raw input data. This enriched data vector, modified by the propagation term, then passes through a Multi-Layer Perceptron backbone consisting of two hidden layers with 64 and 32 units, respectively. The use of dropout and sigmoid activation functions further refined the model’s ability to classify traffic as benign or malicious. This hybrid system combines the flexibility of neural networks with the structural interpretability of causal graphs, offering a unique mechanism for security analysts to observe how the model prioritizes protocol-level dependencies during real-time traffic analysis.

Empirical Evaluation and Performance Metrics

Validating with Synthetic and Real Data

The researchers first validated the internal logic of their pipeline using a synthetic dataset, confirming that the model could correctly interpret causal relationships when the data perfectly followed prescribed rules. This initial step utilized the DoWhy library to estimate the Average Treatment Effect of shifts in burst duration on the attack state, providing a mathematical baseline for the model’s logic. Following this validation, the system was benchmarked against a standard Multi-Layer Perceptron and an XGBoost classifier using the CIC-DDoS2019 and Bot-IoT datasets. These datasets represent high-volume, imbalanced real-world traffic, providing a rigorous testing ground for the model’s ability to distinguish between benign flows and malicious LDoS activity. The MSSQL subset of CIC-DDoS2019, in particular, presented a significant challenge with over 1.1 million attack flows compared to only a few hundred benign records. This setup ensured that the evaluation reflected the difficult “needle in a haystack” conditions often encountered in modern industrial IoT environments where malicious actors hide within vast streams of telemetry data.

Analysis of Detection Results

The results across both real-world datasets revealed that the causal architecture performed almost identically to the standard baseline in terms of pure predictive power. In the CIC-DDoS2019 tests, the model achieved a mean balanced accuracy of approximately 0.84, which showed no measurable improvement over the non-causal version of the same network. Similar results were observed in the Bot-IoT tests, where both models maintained a balanced accuracy near 0.95 with statistically insignificant differences in their performance metrics. Furthermore, the tree-based XGBoost classifier consistently outperformed both neural network architectures, achieving higher accuracy and lower false-positive rates. This suggests that while the causal prior provides structural visibility, the linear nature of the authored graph may be too simplistic to capture the highly complex, non-linear patterns found in actual network traffic. The data indicates that adding structural transparency does not inherently boost accuracy if the underlying neural layers are already capable of extracting the necessary patterns from the raw features without human intervention or structural guidance.

Interpretability and Model Behavior

Role of the Alpha Coefficient

The behavior of the learnable Alpha coefficient provided critical insights into how the model utilized the causal information during its training phase. In experiments with the CIC-DDoS2019 dataset, the coefficient converged to a moderate value of approximately 0.29, indicating that the model found the causal prior somewhat helpful for optimization. However, in the Bot-IoT experiments, the coefficient collapsed to a near-zero value, meaning the model effectively ignored the structural prior in favor of raw feature patterns. This divergence highlights a fundamental challenge in causal AI: a fixed causal hypothesis may not be universally applicable across different network environments or data distributions. When the data does not align perfectly with the human-authored graph, the neural network’s optimization process naturally prioritizes raw features that offer a more direct path to accurate classification. This finding suggests that for causal structures to be effective, they must either be more dynamic or more precisely aligned with the specific nuances of the local network environment rather than being applied as a generic protocol-based template.

Sensitivity and Post-Hoc Analysis

Post-hoc interpretability tests using mean absolute input gradients further demonstrated the variability of the model’s focus across different traffic scenarios. On the MSSQL data, the Burst_Duration variable was identified as the most sensitive feature, while on the Bot-IoT dataset, Normal_Traffic and TCP_Timeout carried significantly more weight in the model’s decision-making process. These findings suggest that gradient-based explanations are heavily dependent on specific data characteristics and may fluctuate significantly depending on the attack type or network load. While the model is structurally inspectable, the sensitivity analysis indicates that it does not necessarily master the underlying causal mechanics in a consistent way that translates to superior predictive power. This discrepancy between what the model is designed to see and what it actually prioritizes highlights the difficulty of enforcing human logic on an automated learning process. Even when a system is built to be causal-aware, the mathematical reality of gradient descent may lead the model to find alternative correlations that have no basis in the intended causal graph, complicating the interpretability goals.

Challenges in Causal AI for Security

Engineering vs. Operational Success

The study demonstrates that while it is technically feasible to embed domain-specific structural priors into neural networks, doing so does not currently guarantee a performance dividend in operational settings. The research highlights a performance gap where traditional deep learning models, despite being black boxes, are already highly efficient at identifying patterns through brute-force statistical learning. The integration of a Directed Acyclic Graph makes the model’s internal logic more transparent to researchers, allowing for a better understanding of protocol dependencies, but this transparency currently lacks the predictive edge required to replace more established techniques. For security professionals, the trade-off between a model that is easy to understand and one that is highly accurate remains a primary concern. The engineering success of creating a differentiable causal propagation layer is an important step forward, but until these models can demonstrably reduce errors or improve detection speed, their role may be limited to academic research or secondary verification systems rather than primary intrusion detection roles in high-stakes environments.

Addressing False Positives and Scale

One of the most significant hurdles identified in the research is the high false-positive rate, which reached over 31% in certain MSSQL scenarios. In a real-world Security Operations Center, a model that incorrectly flags nearly one-third of benign traffic as an attack is not operationally viable due to the fatigue it would cause for security analysts. The extreme class imbalance found in modern IoT datasets—where millions of malicious packets are hidden among a few hundred legitimate records—exacerbates this problem significantly. These challenges suggest that current causal models need further refinement in feature selection and threshold calibration to move beyond theoretical interest. The scale of modern networks requires a detection system that can maintain high precision even when benign data is sparse. Without addressing these fundamental scaling issues, causal-aware models risk being relegated to niche applications where data is more balanced or where the cost of a false alarm is lower. Future iterations must focus on balancing the structural prior with more robust noise reduction techniques to ensure that human-readable logic does not become a liability in high-noise environments.

Future Research and Limitations

Limitations of Authored Models

The study identifies several constraints that currently limit the efficacy of causal-aware representations, notably the reliance on a human-authored graph which may fail to account for all relevant network variables. When experts define the relationships between nodes, they inherently introduce bias and may overlook subtle, non-linear interactions that only a data-driven model can detect. Furthermore, the process of using a single proxy feature to represent a complex semantic node likely discards a significant amount of valuable information contained in the raw flow data. For example, reducing a multi-faceted concept like “Queue Drop” to a single numerical attribute simplifies the graph but potentially blinds the model to other indicators of network congestion. Additionally, without ground-truth causal labels in the datasets, researchers had to assume their hypothesized graph was correct throughout the evaluation. This subjectivity in the validation process makes it difficult to determine whether the lack of performance gain was due to the model architecture itself or an inaccurate underlying hypothesis about how LDoS attacks actually impact the network stack.

Paths Toward Operationally Relevant AI

To improve the utility of causal representations in IoT security, future efforts should shift toward causal discovery, where the system learns structural relationships directly from observational data rather than relying on pre-defined human templates. This shift would allow the model to adapt to the specific idiosyncrasies of different network environments, potentially closing the performance gap between causal models and black-box classifiers. Researchers should also focus on developing more sophisticated feature mapping techniques that can aggregate multiple raw attributes into a single semantic node without losing critical information. Exploring non-linear causal propagation layers and alternative graph topologies may also reveal more effective ways to incorporate domain knowledge into the learning process. The study established a foundational framework for inspectable AI, but the actionable next steps involve moving toward more dynamic and data-driven structures. By refining the alignment between the structural prior and the actual data distribution, future developers may finally achieve a balance where transparency and high-performance detection coexist, providing a more reliable defense for the complex IoT ecosystems of 2026 and beyond.

subscription-bg
Subscribe to Our Weekly News Digest

Stay up-to-date with the latest security news delivered weekly to your inbox.

Invalid Email Address
subscription-bg
Subscribe to Our Weekly News Digest

Stay up-to-date with the latest security news delivered weekly to your inbox.

Invalid Email Address