Threat Modelling of LLM-Integrated Systems: A Comparative Analysis of Classical and AI-Assisted Threat Modelling Approaches
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesis
Abstract [en]
Background: The integration of large language models (LLMs) into software systems introduces new interactions among users, application components, data stores, and LLM components, creating security concerns that require systematic threat modelling. Classical approaches provide structured, architecture-oriented analysis, while AI-based approaches may provide additional contextual reasoning for identifying security threats.
Objectives: This thesis compares five threat modelling approaches for LLM-integrated software systems: OWASP Threat Dragon, Microsoft Threat ModelingTool (TMT), GPT-5.6, Llama 3 8B executed through Ollama, and ThreMoLIA.
Methods: A comparative empirical study was conducted using three predefined LLM-integrated system scenarios. Waibloz AB experts analysed the scenario architectures and established an expert-vetted reference threat set containing 98 threats. Generated findings were mapped to the reference threats using predefined semantic matching criteria, distinguishing true positives, duplicates, false positives, and false negatives. Precision, recall, and F1-score were used as primary quantitative measures, while evidence grounding was assessed separately against the corresponding scenario architectures. Qualitative practitioner feedback was also obtained from Waibloz AB.
Results: The five approaches produced 1,025 raw threat findings. GPT-5.6 achieved the highest precision (47.71%), while ThreMoLIA achieved the highest recall (70.41%) and F1-score (52.67%). The approaches also differed substantially in false positives, false negatives, and redundant findings. Evidence grounding classified 329 findings (32.10%) as Fully Grounded, 689 (67.22%) as Partially Grounded, and 7 (0.68%) as Not Grounded, with GPT-5.6 achieving the highest full-grounding rate(74.59%).
Conclusions: The results indicate that raw finding volume alone is insufficient for comparing threat modelling approaches. The evaluated classical and AI-based approaches exhibited different strengths in threat coverage, precision, redundancy, and architectural evidence support. Within the scope of the three evaluated scenarios, the findings support further evaluation of AI-based threat modelling as a complementary component of a human-supervised security analysis process rather than as a replacement for established threat modelling practices.
Place, publisher, year, edition, pages
2026. , p. 82
Keywords [en]
Threat modelling, large language models, cybersecurity, AI-based threat modelling, LLM-integrated systems
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-30675OAI: oai:DiVA.org:bth-30675DiVA, id: diva2:2114231
External cooperation
Waibloz AB
Subject / course
PA2534 Master's Thesis (120 credits) in Software Engineering
Educational program
PAADA Master Qualification Plan in Software Engineering 120,0 hp
Supervisors
Examiners
2026-11-022026-10-302026-11-02Bibliographically approved