CVE2AP: Automated Generation of PDDL-Encoded Attack Paths via Large Language Models
Abstract
Attack Path (AP) modeling is fundamental to cybersecurity analysis, where the Planning Domain Definition Language (PDDL) has been widely adopted to encode APs into formal and machine-verifiable representations for automated reasoning about vulnerability exploitation, attack progression, and their potential impacts. However, existing AP modeling approaches largely rely on expert-driven manual construction, limiting their scalability and ability to keep pace with rapidly evolving cyber threats. Large language models (LLMs) are promising candidates, as their extensive pre-trained knowledge and reasoning capabilities enable them to interpret and transform threat intelligence into formal representations. In this paper, we propose CVE2AP, an LLM-based approach for automatically generating PDDL-encoded attack paths from natural language CVE (Common Vulnerability Exposure) descriptions. CVE2AP leverages structured prompting and incorporates an error-feedback mechanism that iteratively refines the generated paths using planner-reported syntactic and solvability errors. We conduct a systematic empirical evaluation across multiple LLMs and generation configurations, assessing generation quality across syntactic, solvability and semantic dimensions, together with token consumption and generation time. The results demonstrate that CVE2AP effectively generates high-quality PDDL-encoded attack paths, achieving up to 86.9\% syntax correctness, 78.6\% solvability, and 93.1\% semantic correctness under LLM-as-expert evaluation, while GPT-5.5 offers the best quality-cost trade-off and error feedback yields the most consistent quality improvement.
Create a lesson
Related papers
Causally Fair Generation with Large Language Models
Shared title terminologycs.AIPatrik Okanovic, Torsten Hoefler, Drago Plecko
A Generative AI Agent to Emulate Interactive Human-driven Vehicles for Automated Driving Testing in Urban Areas
Shared title terminologycs.AIJia Hu, Changjian Yu, Panqu Wang et al.
LimoBench: How Street Smart Are Large Language Models?
Shared title terminologycs.AIGautam Choudhary, Jack Peng, Udesh Kumarasinghe et al.
Learning Heterogeneous Reasoning in Large Language Models: From Mode Compatibility to Local Bottlenecks
Shared title terminologycs.AISunbowen Li, Dandan Song, Shengkun Ma et al.
EmoRSS: Mitigating Emotion-Induced Over-Refusal in Large Language Models
Shared title terminologycs.AIShuyi Miao, Yaojin Ma, Chenhang Cui et al.
Not All Answers Are Contextually Persuadable: Inference Dynamics in Large Language Models under Contextual Influence
Shared title terminologycs.AIZongye Hu, Weiqing Luo, Yanjie Fu et al.