MEGA-PT: A Meta-Game Framework for Agile Penetration Testing
Yunfei Ge, Quanyan Zhu
TL;DR
MEGA-PT tackles the limitations of manual and poorly scalable automated penetration testing by formulating a meta-security game that couples node-level micro tactic games with a network-wide macro strategy process. It models the target as $G=\langle \mathcal{V}, \mathcal{E} \rangle$ with an initial foothold, and defines MTGs $\{\Gamma^v\}$ and a MSP $\Lambda^g$ to capture local and global dynamics, linking tactics to lateral movement through an MDP framework. The framework supports multiple security schemes, including optimal local penetration plans, purple-teaming defense plans, and equilibrium-based risk assessment, with theoretical guarantees such as Kuhn's theorem-based equivalence between mixed and operational strategies and Subgame Perfect Nash Equilibria. Computation proceeds via a purple-teaming meta-penetration algorithm that iteratively computes local MTG plans, evaluates the macro value function $V^{\pi^g}$, and updates the meta-penetration playbook, enabling scalable, parallelizable testing. Empirically, case studies show that purple-teaming mitigates network risk, adapts to local changes, and scales to larger networks more efficiently than RL-based approaches, underscoring MEGA-PT's practical impact for automated, TTP-aligned cybersecurity testing.
Abstract
Penetration testing is an essential means of proactive defense in the face of escalating cybersecurity incidents. Traditional manual penetration testing methods are time-consuming, resource-intensive, and prone to human errors. Current trends in automated penetration testing are also impractical, facing significant challenges such as the curse of dimensionality, scalability issues, and lack of adaptability to network changes. To address these issues, we propose MEGA-PT, a meta-game penetration testing framework, featuring micro tactic games for node-level local interactions and a macro strategy process for network-wide attack chains. The micro- and macro-level modeling enables distributed, adaptive, collaborative, and fast penetration testing. MEGA-PT offers agile solutions for various security schemes, including optimal local penetration plans, purple teaming solutions, and risk assessment, providing fundamental principles to guide future automated penetration testing. Our experiments demonstrate the effectiveness and agility of our model by providing improved defense strategies and adaptability to changes at both local and network levels.
