STAF: Leveraging LLMs for Automated Attack Tree-Based Security Test Generation
Not on the map. Why?
Abstract (arXiv)
In modern automotive development, security testing is critical for safeguarding systems against increasingly advanced threats. Attack trees are widely used to systematically represent potential attack vectors, but generating comprehensive test cases from these trees remains a labor-intensive, error-prone task that has seen limited automation in the context of testing vehicular systems. This paper introduces STAF (Security Test Automation Framework), a novel approach to automating security test case generation. Leveraging Large Language Models (LLMs) and a four-step self-corrective Retrieval-Augmented Generation (RAG) framework, STAF automates the generation of executable security test cases from attack trees, providing an end-to-end solution that encompasses the entire attack surface. We particularly show the elements and processes needed to provide an LLM to actually produce sensible and executable automotive security test suites, along with the integration with an automated testing framework. We further compare our tailored approach with general purpose (vanilla) LLMs and the performance of different LLMs (namely GPT-4.1 and DeepSeek) using our approach. We also demonstrate the method of our operation step-by-step in a concrete case study. Our results show significant improvements in efficiency, accuracy, scalability, and easy integration in any workflow, marking a substantial advancement in automating automotive security testing methodologies. Using TARAs as an input for verfication tests, we create synergies by connecting two vital elements of a secure automotive development process.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 11 of its 28 references that are in the map. First posted on arXiv 24 Sep 2025.
Builds on
11 of 28 references.
References · 11
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 166
- 2024Automated Unit Test Improvement using Large Language Models at Metacited by 75
- 2024Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLMcited by 64
- 2023A3Test: Assertion-Augmented Automated Test Case Generationcited by 33
- 2023ChatGPT vs SBST: A Comparative Assessment of Unit Test Suite Generationcited by 32
- 2023LLM for Test Script Generation and Migration: Challenges, Capabilities, and Opportunitiescited by 19
- 2023Automatic Generation of Test Cases based on Bug Reports: a Feasibility Study with Large Language Modelscited by 8
- 2018A Formal Model to Facilitate Security Testing in Modern Automotive Systemscited by 1
- 2023A Systematic Approach to Automotive Securitycited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026GARAGE: Characterizing the Automation Boundary in LLM-based Attack Graph Generation ↗
- 2025Guided Reasoning in LLM-Driven Penetration Testing Using Structured Attack Trees
- 2026Evaluating Open-Weight LLMs for Generating Structured Threat Information for Autonomous Vehicle Vulnerabilities
- 2026LLM-Assisted Dynamic Threat Analysis for Attacker-Reachable Software Weaknesses in Autonomous Vehicles
- 2026CyberLLM: A Multi-Agent LLM Framework for Autonomous Detection and Guarded Response in Automotive Cybersecurity
- 2026Hackers or Hallucinators? A Comprehensive Analysis of LLM-Based Automated Penetration Testing
- 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agents
- 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing