Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Threat Modelling of LLM-Integrated Systems: A Comparative Analysis of Classical and AI-Assisted Threat Modelling Approaches
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent 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
Available from: 2026-11-02 Created: 2026-10-30 Last updated: 2026-11-02Bibliographically approved

Open Access in DiVA

fulltext(660 kB)0 downloads
File information
File name FULLTEXT01.pdfFile size 660 kBChecksum SHA-512
92eec7a737cb05edb6527bfa61928f4c01f95c34f092d732a743f323f4dfa72ec3756a5d5483110ebe56f2b30dd5aa8005f6d96660476748ed200b9702f3279e
Type fulltextMimetype application/pdf

By organisation
Department of Software Engineering
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 6 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf