Latent Diffusion for Internet of Things Attack Data Generation in Intrusion Detection
Organizations: Departamento de Teoría de la Señal y Comunicaciones y Sistemas Telemáticos y Computación, Universidad Rey Juan Carlos, Madrid, Spain. · Data, Networks and Cybersecurity Research Institute, Universidad Rey Juan Carlos, Madrid, Spain.
Abstract
The growing deployment of IoT systems has increased the need for reliable intrusion detection under heterogeneous and imbalanced network traffic. However, representative malicious traffic, particularly for underrepresented attacks, remains difficult to obtain, while existing generative approaches do not consistently preserve distributional fidelity, multivariate dependencies, and coverage simultaneously. This work proposes LaDIS, an attack-specific framework that learns a mixed-type autoencoder representation and performs diffusion in an adaptive continuous latent space. LaDIS was compared with established adversarial, variational, and direct-space diffusion approaches across representative Flooding, Botnet, Recon, and Stealthy attacks using complementary measures of marginal and multivariate fidelity, dependency preservation, real--synthetic distinguishability, manifold structure, and computational efficiency. LaDIS provided a competitive balance across these dimensions, with particularly strong results for representative Botnet, Recon, and Stealthy attacks, while revealing an attack-dependent fidelity--coverage trade-off. Performing diffusion in latent space also reduced sampling time by approximately 3--5 times relative to direct-space diffusion, with negligible decoding overhead. Downstream utility was evaluated using TabNet and XGBoost, demonstrating that partial LaDIS augmentation consistently produced the best performance, increasing balanced accuracy from 0.86 to 0.94 for TabNet and from 0.92 to 0.96 for XGBoost, while improving the F1-score for low-volume attack families from 0.73 to 0.84 and from 0.82 to 0.88, respectively. These results show that attack-adaptive latent diffusion can generate structurally faithful attack traffic efficiently and, when used selectively, improve intrusion detection for underrepresented attacks.
Figures & tables
| Dataset | Attack | Abbreviation | Family | Train | Validation | Test | Synth. Samples |
| CICIoT23 | Benign traffic | Benign | Benign | - | - | - | - |
| Bot-IoT | Benign traffic | Benign | Benign | - | - | - | - |
| CETEM | Benign traffic | Benign | Benign | - | - | - | - |
| CICIoT23 | Distributed Denial-of-Service User Datagram Protocol Flood | DDoS UDP Flood | Flooding | 393818 | 49227 | 49227 | 125000 |
| Bot-IoT | Distributed Denial-of-Service User Datagram Protocol | DDoS UDP | Flooding | - | - | - | - |
| CICIoT23 | Denial-of-Service Transmission Control Protocol Flood | DoS TCP Flood | Flooding | - | - | - | - |
| Attack | Metric | ||||||||
| DoS TCP | AE RMSE ( ) | 0.42 | 0.34 | 0.29 | 0.25 | 0.23 | 0.20 | 0.14 | 0.12 |
| Generative mean rank ( ) | 6.00 | 2.00 | 2.67 | 4.33 | 7.33 | 6.67 | 2.33 | 4.67 | |
| Mirai Greip | AE RMSE ( ) | 0.92 | 0.86 | 0.81 | 0.78 | 0.74 | 0.69 | 0.67 | 0.64 |
| Generative mean rank ( ) | 5.67 | 2.00 | 4.33 | 4.67 | 7.67 | 4.33 | 3.33 | 4.00 | |
| Recon OS Scan | AE RMSE ( ) | 0.60 | 0.56 | 0.52 | 0.49 | 0.46 | 0.43 | 0.40 | 0.37 |
| Generative mean rank ( ) | 2.33 | 2.00 | 4.67 | 4.33 | 4.33 | 5.33 | 5.67 | 7.33 |
| DoS TCP | Mirai Greip | |||||||
| Metric | CTGAN | TVAE | TabDDPM | LaDIS | CTGAN | TVAE | TabDDPM | LaDIS |
| Median NWD ( ) | 0.04 0.01 | 0.03 0.01 | 0.02 0.00 | 0.02 0.00 | - | - | - | - |
| Median KS ( ) | 0.06 0.01 | 0.09 0.01 | 0.03 0.00 | 0.06 0.01 | 0.43 0.01 | 0.00 0.00 | 0.00 0.00 | 0.00 0.00 |
| Median TVD ( ) | 0.05 0.01 | 0.02 0.01 | 0.01 0.01 | 0.02 0.01 | 0.40 0.00 | 0.26 0.01 | 0.01 0.00 | 0.02 0.00 |
| MMD ( ) | 0.05 0.01 | 0.07 0.00 | 0.03 0.00 | 0.07 0.01 | 1.07 0.00 | 0.59 0.01 | 0.13 0.00 | 0.02 0.00 |
| Precision ( ) | 0.59 0.43 | 0.53 0.48 | 0.54 0.49 | 0.58 0.45 | 0.76 0.09 | 0.61 0.21 | 0.85 0.08 | 1.00 0.00 |
| DoS TCP | Mirai Greip | Recon OS Scan | MitM ARP Spoofing | |||||
| Model | Train (min) | Sample (s) | Train (min) | Sample (s) | Train (min) | Sample (s) | Train (min) | Sample (s) |
| CTGAN | 489.88 | 2.51 0.09 | 551.89 | 2.64 0.04 | 99.90 | 2.77 0.01 | 46.10 | 2.76 0.02 |
| TVAE | 341.04 | 2.39 0.01 | 455.04 | 2.51 0.05 | 82.24 | 2.52 0.10 | 40.02 | 2.55 0.15 |
| TabDDPM | 9.99 | 14.97 0.08 | 9.03 | 10.78 0.13 | 8.27 | 13.88 0.52 | 7.83 | 14.57 0.22 |
| LaDIS AE | 11.30 | 0.02 0.00 | 9.02 | 0.01 0.00 | 1.49 | 0.01 0.00 | 0.72 | 0.08 0.00 |
| LaDIS Diffusion | 3.21 | 3.11 0.01 | 2.14 | 2.63 0.07 | 2.03 | 3.05 0.03 | 2.23 | 3.12 0.07 |