Manuscript Offprint

arXiv:2610.03383

CVE2AP: Automated Generation of PDDL-Encoded Attack Paths via Large Language Models

Lin Cui, Vincenzo Scotti, Raffaela Mirandola

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Lin Cui, Vincenzo Scotti, Raffaela Mirandola

†^{\dagger}KASTEL, Karlsruhe Institute of Technology, Karlsruhe, Germany

lin.cui@kit.edu, vincenzo.scotti@kit.edu, raffaela.mirandola@kit.edu

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.

Index Terms—Automated Generation, Attack Path, PDDL, Semantic Quality

I. INTRODUCTION

Formal and machine-verifiable Attack Path (AP) models provide foundation for cybersecurity analysis by enabling automated reasoning about vulnerability exploitation, attack progression, and their potential impacts [1]. To support such reasoning, the Planning Domain Definition Language (PDDL) [2], originally designed for AI planning, has been adapted for representing attack paths [3]–[9]. By explicitly specifying the required preconditions and effects of every action, PDDL naturally models the causal progression of an attack from the initial vulnerability exposure to the resulting security impact. However, driven by the continuous disclosure of new vulnerabilities, the emergence of sophisticated attack techniques, and the rapid accumulation of cyber threat intelligence, the cyber threat landscape is evolving at an unprecedented pace. This situation requires that attack paths must be continuously and rapidly updated to reflect newly feasible attack strategies and changing attack conditions. As a result, manually constructing and maintaining attack paths can not keep pace with this rapid evolution. It is of urgent need to automate the generation of PDDL-encoded attack paths.

Existing PDDL-based attack path modeling approaches [3], [4], [6]–[8] largely rely on domain experts to manually construct PDDL-encoded attack paths. Creating such planner-ready representations requires translating heterogeneous incomplete, and often implicit cyber threat intelligence into formal PDDL models, demanding expertise in both cybersecurity and AI planning. Consequently, developing and maintaining such models is labor-intensive and difficult to scale. In parallel, recent studies have demonstrated the effectiveness of LLMs in automatically generating general-purpose PDDL domains from natural language inputs [10]–[14]. While these methods substantially reduce the manual effort of planning domain construction, their applicability of PDDL-encoded attack path generation remains largely unexplored. Unlike general planning domains, PDDL-encoded attack paths must satisfy not only syntax correctness and planning solvability, but also cybersecurity-specific semantic requirements including threat model compliance, exploitation mechanism fidelity, attack stage completeness. These observations raise a fundamental research challenge: how can PDDL-encoded attack paths be automatically generated while satisfying syntactic correctness, planning solvability, and cybersecurity-specific semantic requirements?

In this paper, we address this challenge by proposing CVE2AP, an LLM-based approach for automatically generating PDDL-encoded attack paths from CVE descriptions. CVE2AP combines structured prompting with error-feedback mechanism that iteratively refines generated results using planner-reported syntax and solvability errors. We further conduct a systematic empirical study to evaluate the effectiveness as well as token and time costs of CVE2AP across multiple LLMs and generation configurations. In summary, the main contributions of this paper are:

• We propose CVE2AP, an LLM-based approach for automatically generating PDDL-encoded attack paths from natural language CVE descriptions while satisfying both planning surface-level requirements and cybersecurity-specific semantic requirements.

• We investigate generation performance across multiple LLMs and generation configurations, evaluating generation quality using the S3Eval framework [15] from syntactic, solvability, and semantic perspectives, together with token consumption and generation time.

This work was supported by funding from the Helmholtz Association (HGF), topic 46.23 Engineering Secure Systems (KASTEL) and from the HGF pilot program Core Informatics at KIT (KiKIT)

The remainder of this paper is organized as follows. Section II introduces the necessary background. Section III presents the proposed CVE2AP approach. Section IV describes the experimental setup and analyzes the results. Section V discusses related work. Section VI concludes the paper and outlines future research directions.

References (24)