Using AI to Automate Security Diagram Generation for Smart Systems

Read full text Summarise with VIRAT
Authors: Sumayah Alaasam
Cited by: 0

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

Smart systems increasingly depend on complex, distributed architectures that integrate Internet of Things (IoT) devices, cyber-physical components, cloud and edge computing platforms, and heterogeneous communication infrastructures. While these architectures enable advanced automation and real-time decision-making, they also introduce substantial security challenges stemming from intricate data flows, implicit trust assumptions, and dynamically evolving system boundaries. Addressing these challenges requires early-stage security analysis supported by accurate and structurally sound architectural models. Data Flow Diagrams (DFDs) constitute a fundamental artifact in design-time security engineering and are widely employed as the basis for STRIDE-based threat modelling. However, constructing high-quality DFDs remains a manual, time-consuming, and expertise-dependent task, particularly for complex smart systems described primarily through informal natural language specifications, with quality often varying depending on analyst experience. This thesis investigates the feasibility and effectiveness of using large language models (LLMs) to support the automated generation of security-oriented Data Flow Diagrams from natural language system descriptions. A hybrid methodology is proposed that combines AI-based semantic extraction with deterministic architectural constraints to ensure structural validity and compatibility with industrial threat modeling tools, specifically the Microsoft Threat Modeling Tool. The approach focuses on assisting early modeling stages rather than fully automating security analysis. The proposed system is evaluated through a comparative empirical study involving ten representative smart systems across multiple domains. AI-generated DFDs are systematically compared with human-engineered reference models in terms of structural properties, STRIDE-based threat coverage, semantic alignment of identified threats, and modeling efficiency. The results demonstrate that the AI-assisted approach achieves substantial threat coverage relative to expert-designed models while significantly reducing modeling effort, although limitations remain in capturing context-dependent and implicit security assumptions. This work demonstrates that AI-assisted DFD generation can support early-stage threat modeling in controlled evaluation settings, achieving 73% of human threat coverage across 10 test systems. However, the approach has significant limitations: training on predominantly synthetic data (89.6%), no direct tool integration, and gaps in context-dependent threat identification (Spoofing: -36%, Repudiation: -36%). Further validation with authentic industrial documentation and larger sample sizes is required before practical deployment. By combining automated semantic inference with established security engineering practices and human oversight, the proposed approach contributes toward more accessible, repeatable, and industry-relevant security analysis workflows.

Fields of Study & Subjects

Information and Cyber Security Model-Driven Software Engineering Techniques Adversarial Robustness in Machine Learning

Publication details

Journal / source
DiVA (Mälardalen University College)
Publication date
1 January 2026
Language
EN
Document type
Thesis