arXiv:2610.32278cs.CROct 2026

Manuscript Offprint

arXiv:2610.32278

Automated Post-Exploitation Attack Chain Exploration Based on a Phase-guided Hybrid Planning-Monte Carlo Tree Search Algorithm

Jie Ying, Mengce Zheng, Ruoxi Chen, Wenrui Cheng, Tiantian Zhu, Zhongjie Zhu

Jie Ying, Mengce Zheng, Ruoxi Chen, Wenrui Cheng, Tiantian Zhu, Zhongjie Zhu ∗^{*}

Abstract—Advanced attackers in post-exploitation scenarios increasingly craft attack chains that combine benign operations, configuration errors, and vulnerability exploitation to achieve objectives like privilege escalation. While such chains pose significant threats, manually discovering them in complex modern host environments is prohibitively labor-intensive. Automating this discovery is therefore essential for proactive defense, yet existing methods still suffer from inefficiency and lack diversity when exploring these attack chains.

To address these limitations, we present APEX, an Automated Post-Exploitation attack chain exploration system. This system transforms attack chain discovery into a planning problem and solves it with a novel phase-guided hybrid Planning-Monte Carlo Tree Search (MCTS) algorithm. By organizing attack actions into semantic phases and integrating symbolic planning with MCTS, APEX enables efficient exploration of the state space while generating multiple diverse chains. Evaluations on a benchmark comprising 5 virtual machines, 30 synthetic problems and 291 cloud instances demonstrate that APEX successfully discovers both known and previously unreported attack chains—including 9 novel privilege escalation vectors—providing actionable intelligence for hardening complex production environments.

Index Terms—Attack Chain Exploration, Post-Exploitation Attack, AI Planning, Monte Carlo Tree Search Algorithm.

I. INTRODUCTION

Over the past decades, to prevent potential attackers from exploiting software vulnerabilities to compromise systems, security researchers have proposed numerous techniques for automated software vulnerability detection, such as static analysis [1], [2], dynamic analysis [3], [4], [5], [6], [7], and hybrid analysis [8], [9]. However, not all vulnerabilities can be exploited by attackers to gain control of a system. The Forum of Incident Response and Security Teams (FIRST) [10] proposed the Common Vulnerability Scoring System (CVSS) [11] which evaluates and classifies vulnerabilities. Among these, only vulnerabilities rated as critical (scoring range: 9.0–10.0) can be remotely exploited without user interaction and have widespread impact. According to reports [12], only 13.7% of vulnerabilities were marked as critical. In addition, there are many techniques such as Control Flow Integrity (CFI) [13], Address Space Layout Randomization (ASLR) [14], and Shadow Stack [15] to restrict attackers from exploiting vulnerabilities.

Consequently, attackers in post-exploitation scenarios—after gaining initial access with limited privileges—increasingly rely on multi-step attack chains that intertwine benign system operations and malicious actions to achieve phased objectives such as privilege escalation and lateral movement. For example, an attacker might chain configuration enumeration, malicious library crafting, environment variable manipulation, and execution of a misconfigured binary to escalate to root privileges.

Post-exploitation attack chains exhibit three distinctive characteristics: multi-phase progression, target-specific precision, and high operational efficiency. By executing these carefully orchestrated chains, attackers can rapidly expand their operational capabilities and achieve specific objectives. Conversely, defenders can leverage intelligence about these chains to rectify system misconfigurations and deploy software patches promptly. Undoubtedly, these realities highlight the critical necessity for implementing automated post-exploitation attack chain discovery at the host level.

Currently, the identification of post-exploitation attack chains remains a manual process. The inherent complexity of modern operating systems and executable environments makes the task of discovering these attack chains both technically challenging and time-consuming [16], [17], [18]. Researchers have discovered that the permission configurations, library file loading mechanisms, and process capabilities of a host system can be formally modeled, allowing the task of attack chain discovery to be equivalently transformed into a feasible solution search task within the planning domain. Meanwhile, planning algorithms have demonstrated significant effectiveness in the field of network attack simulation and modeling [19], [20], [17], [21], leading researchers to explore their application in solving attack chains discovery [18], [22].

However, integrating host modeling with planning algorithms for post-exploitation attack chain discovery currently faces three significant challenges: (1) Modeling Imprecision: Existing approaches typically model hosts as single nodes with attributes (e.g., OS, vulnerabilities, users) [16], [23], but this coarse-grained representation fails to capture an attacker's evolving capabilities during post-exploitation phases accurately. (2) Computational Inefficiency: The complexity of host environments results in a huge search space after

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

This work is supported in part by the following grants: National Natural Science Foundation of China under Grant 62002324. Zhejiang Provincial Natural Science Foundation of China under Grant No. LQ21F020016. The Fundamental Research Funds for the Provincial Universities of Zhejiang under Grant No. RF-A2023009. Key Program of Zhejiang Province Natural Science Foundation (LZ24F010004), Zhejiang Provincial "Pioneer, Leader+ X" Science and Technology Program (2026C02A1221), The 14th China Innovation and Entrepreneurship Competition-Innovation Challenge (Ningbo).

J. Ying, M. Zheng, R. Chen, and Z. Zhu* are with the College of Information and Intelligent Engineering, Zhejiang Wanli University, Ningbo 315100, China. E-mail: yingjie@zwu.edu.cn, mczheng@zwu.edu.cn, chenruoxi@zwu.edu.cn, zhongjiezhu@hotmail.com*, *corresponding author.

T. Zhu and W. Cheng are with the College of Computer Science and Technology, Zhejiang University of Technology, Hangzhou 310023, China. E-mail: ttzhu@zjut.edu.cn, zjutcwr@zjut.edu.cn.

modeling. Given attackers’ limited dwell time on compromised systems [24], conventional planners often cannot generate viable solutions within operationally relevant time constraints. (3) Solution Inflexibility: Traditional planning solvers employ satisficing strategies that terminate upon finding any feasible solution [25], [26], [27], [28]. Even when configured for optimal planning (minimizing action steps) [29], these systems cannot provide alternative paths when operational constraints (e.g., failed vulnerability exploitation or file access restrictions) render the primary solution unimplementable.

To address these issues and achieve rapid, feasible, and flexible attack chain exploration, we propose APEX, an Automated Post-Exploitation attack chain exploration system. In essence, APEX formulates attack chain exploration as an AI planning problem: given the current state of a host (e.g., tree-structured file system, user-group relationships, and specific versions of executable binaries) along with a defined goal (e.g., reading a particular file or escalating to a specific user's privileges), it generates a sequence of actions (i.e., attack chain) to achieve the objective.

Specifically, we first heuristically define Objects (e.g., files, users, groups, and permissions), Facts (e.g., file readability, user-group membership), and Actions (e.g., executing binaries, modifying file permissions) involved in post-exploitation. This process, known as domain modeling in AI planning, utilizes a formal language to precisely describe the static structure and dynamic possibilities of the target, serving as a prerequisite and universal procedure. Subsequently, with low privileges (common in post-exploitation phases), APEX automatically retrieves relevant information from the target host and generates a formal host characterization file.

Then, based on observed phased characteristics in post-exploitation behaviors, we propose a phase-guided hybrid planning-MCTS algorithm. Given the characterization file and a specific objective, APEX leverages this algorithm to solve for multiple feasible action chains within the solution space. Finally, we employ a Large Language Model (LLM) to translate the formally described attack chains into natural language reports, providing targeted remediation suggestions to assist security analysts in identifying potential attack vectors and reinforcing critical system components. For example, if an attacker escalates privileges by executing a misconfigured binary, defenders can proactively adjust its permissions to mitigate potential exploit risks.

In this paper, we make the following contributions:

• We conduct domain modeling for post-exploitation phases using formal language to describe static structures and dynamic capabilities while maintaining minimalism in the domain model to enhance subsequent planning efficiency.

• We propose a phase-guided hybrid Planning-Monte Carlo Tree Search (MCTS) algorithm that leverages the phased nature of post-exploitation behaviors, combining the efficiency of AI planning with the flexibility of MCTS to enable efficient and flexible attack chain exploration.

• We implement a prototype of APEX and evaluate it on a benchmark comprising 5 virtual machines with known privilege escalation vulnerabilities and 30 synthetic problems, followed by large-scale real-world assessments on 291 live cloud instances, uncovering 9 unreported attack chains.

References (53)