arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.19864cs.LGcs.CR
收藏

NASimJax:用于渗透测试的GPU加速策略学习框架

NASimJax: A GPU-Accelerated Policy Learning Framework for Penetration Testing

CISS Department, Royal Military Academy(皇家军事学院信息安全管理系);AI Lab, Vrije Universiteit Brussel(布鲁塞尔自由大学人工智能实验室)

Raphael Simon, José Carrasquel, Elli Makdis Antoun, Wim Mees, Pieter Libin

AI总结:

提出NASimJax框架,通过JAX重写网络攻击模拟器实现高达100倍加速,结合上下文POMDP建模和网络生成管道,研究零样本策略泛化,并提出两阶段动作分解方法处理线性增长的动作空间。

摘要:

渗透测试是一种模拟网络攻击以识别漏洞的实践,是一个复杂的序列决策任务,本质上是部分可观察的,并且具有大型动作空间。针对该领域训练强化学习策略面临一个根本瓶颈:现有模拟器在现实网络场景下大规模训练速度太慢,导致策略无法泛化。我们提出了NASimJax,一个基于JAX的完整网络攻击模拟器(NASim)重实现,实现了比原始模拟器高达100倍的环境吞吐量。通过在硬件加速器上运行整个训练流程,NASimJax能够在固定计算预算下对更大规模的网络进行实验,这在以前是不可行的。我们将自动化渗透测试建模为上下文POMDP,并引入一个网络生成管道,生成结构多样且保证可解的场景。这些共同为研究零样本策略泛化提供了原则性基础。我们利用该框架研究动作空间缩放和跨多达40个主机的网络泛化。我们发现,优先级别回放比域随机化更好地处理密集训练分布,尤其是在大规模情况下,并且训练在稀疏拓扑上会产生隐式课程,提高分布外泛化,即使在比训练时更密集的拓扑上也是如此。为了处理线性增长的动作空间,我们提出了一种两阶段动作分解方法(2SAS),在大规模情况下显著优于平面动作掩码。最后,我们识别出由优先级别回放的回合重置行为与2SAS的信用分配结构相互作用导致的失败模式。因此,NASimJax为推进基于RL的渗透测试提供了一个快速、灵活且现实的平台。

英文摘要:

Penetration testing - the practice of simulating cyberattacks to identify vulnerabilities - is a complex sequential decision-making task that is inherently partially observable and features large action spaces. Existing RL simulators for this domain are CPU-bound and fixed to narrow scenarios, making it infeasible to train policies that generalize across networks. We present NASimJax, a JAX-native framework that formulates penetration testing as a Contextual POMDP and introduces a network generation pipeline producing structurally diverse, guaranteed-solvable scenarios. The framework reaches up to 80$\times$ higher environment throughput than previous simulators, enabling experiments on larger networks and tractable hyperparameter searches. We provide PPO and PQN baselines and conduct the first systematic evaluation of unsupervised environment design for penetration testing. We find that Prioritized Level Replay and ACCEL handle dense training distributions better than Domain Randomization, and that training on sparser topologies yields an implicit curriculum that improves generalization - even to topologies denser than those seen during training. A recurrent PPO variant confirms that these distributional findings are not an artifact of feed-forward policies. The code is available at: https://github.com/raphsimon/NASimJax.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑