Skip to main content
QUICK REVIEW

[Paper Review] Behaviour-Diverse Automatic Penetration Testing: A Curiosity-Driven Multi-Objective Deep Reinforcement Learning Approach

Yizhou Yang, Xin Liu|arXiv (Cornell University)|Feb 22, 2022
Adversarial Robustness in Machine LearningComputer Science8 citations
TL;DR

This paper proposes a curiosity-driven, multi-objective deep reinforcement learning framework for automatic penetration testing that generates behavior-diverse attack strategies using a Chebyshev decomposition critic and a coverage-based masking mechanism. The approach improves exploration efficiency and multi-objective performance in large, dynamically expanding attack spaces, outperforming state-of-the-art methods in both learning stability and diversity of non-dominated attack strategies on NASim and CAGE environments.

ABSTRACT

Penetration Testing plays a critical role in evaluating the security of a target network by emulating real active adversaries. Deep Reinforcement Learning (RL) is seen as a promising solution to automating the process of penetration tests by reducing human effort and improving reliability. Existing RL solutions focus on finding a specific attack path to impact the target hosts. However, in reality, a diverse range of attack variations are needed to provide comprehensive assessments of the target network's security level. Hence, the attack agents must consider multiple objectives when penetrating the network. Nevertheless, this challenge is not adequately addressed in the existing literature. To this end, we formulate the automatic penetration testing in the Multi-Objective Reinforcement Learning (MORL) framework and propose a Chebyshev decomposition critic to find diverse adversary strategies that balance different objectives in the penetration test. Additionally, the number of available actions increases with the agent consistently probing the target network, making the training process intractable in many practical situations. Thus, we introduce a coverage-based masking mechanism that reduces attention on previously selected actions to help the agent adapt to future exploration. Experimental evaluation on a range of scenarios demonstrates the superiority of our proposed approach when compared to adapted algorithms in terms of multi-objective learning and performance efficiency.

Motivation & Objective

  • To address the lack of behavior diversity in existing automatic penetration testing agents that rely on single-objective reinforcement learning.
  • To enable effective multi-objective learning in penetration testing, balancing objectives like attack impact, privilege escalation, and action cost.
  • To handle the dynamically expanding action space in real-world pen-testing scenarios where new actions become available during exploration.
  • To improve training efficiency and convergence by reducing attention on previously explored actions through a coverage-based masking mechanism.
  • To generate a diverse set of non-dominated attack strategies without requiring manual preference settings or reward shaping.

Proposed method

  • Formulates automatic penetration testing as a Multi-Objective Markov Decision Process (MOMDP) with imperfect observability and growing action space.
  • Employs a Proximal Policy Optimization (PPO) agent enhanced with Random Network Distillation (RND) for sparse reward learning.
  • Introduces a coverage-based masking mechanism that suppresses logits for already-explored actions, guiding exploration toward uncharted network segments.
  • Proposes a Chebyshev decomposition critic to balance multiple objectives and generate diverse, non-dominated attack strategies.
  • Uses vector-valued rewards combining compromise success and privilege escalation to model the trade-off between breadth and depth in penetration.
  • Fuses coverage distribution with actor network logits to dynamically shape action selection based on network exploration progress.

Experimental results

Research questions

  • RQ1Can a multi-objective reinforcement learning agent generate diverse, non-dominated attack strategies in realistic penetration testing environments?
  • RQ2How does a coverage-based masking mechanism improve training stability and efficiency in environments with dynamically expanding action spaces?
  • RQ3To what extent does the Chebyshev critic outperform traditional linear scalarization in discovering diverse, high-quality attack strategies?
  • RQ4How does the proposed method scale in performance and stability compared to single-objective and value-based baselines on large and complex network topologies?
  • RQ5Can the agent maintain effective exploration and convergence in environments with sparse rewards and partial observability?

Key findings

  • The proposed method demonstrates superior learning stability and convergence, especially on medium and large network scenarios, where DQN and improved DQN fail to converge.
  • The coverage masking mechanism significantly improves training efficiency and convergence, enabling the agent to continuously explore new network segments and avoid sub-optimal policies.
  • The Chebyshev critic generates a set of non-dominated attack strategies that dominate those found by linear scalarization across a range of weight settings.
  • The method achieves better performance in multi-objective learning, effectively balancing the trade-off between compromising target hosts and gathering footholds in the network.
  • On the CAGE benchmark, the proposed method reduces the number of actions required to compromise targets while increasing the number of access gains, indicating improved efficiency and depth of exploration.
  • The approach successfully handles the challenge of growing action spaces in realistic pen-testing scenarios, where action availability depends on pre-conditions and evolves during execution.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.