CyberFactory:利用野外实例扩展网络安全能力

·

研究论文 · 2026/08/26

随着大型语言模型在编码能力上的进步,其在网络安全领域的潜力受到越来越多的关注,闭源模型(如 Mythos)已展现出先进的网络安全能力。然而,现有的开源工作仍存在局限:前沿开源权重模型未提供可复现的网络安全训练方案,开源训练方案聚焦于孤立任务且缺乏可扩展的智能体数据,而扩展智能体回滚需要强大的领域先验。为此,我们提出了 CyberFactory,一个统一的开源框架,连接了概念验证生成、漏洞修补和网络安全问答中的数据构建、轨迹合成和模型训练。CyberFactory 将公开的漏洞工件(包括来自野外的 CVE)转化为可执行和可验证的任务实例,并利用可复用的漏洞分析技能指导教师模型进行源码检查、基于领域先验的问题解决和基于证据的验证。由此产生的监督是智能体的:模型与工具和目标环境交互,并根据执行反馈修订解决方案。利用这些轨迹,我们训练并发布了 Aegis 模型,该模型内化了技能引导的过程,而无需在推理时使用技能。在 CyberGym 上,Aegis 在一小时预算内达到 52.4% 的 Pass@1,比其基础模型 Qwen 3.5 提高了 22.8 个百分点,并在相同脚手架下优于评估的通用骨干模型。

该论文提出了一个统一的开源框架,解决了网络安全领域开源模型训练数据稀缺和智能体扩展的问题,并通过实验验证了其有效性,对推动网络安全与 LLM 结合的研究具有重要价值。

As large language models (LLMs) continue to advance in coding capabilities, their potential in cybersecurity has drawn increasing research attention, with closed-source LLMs (e.g., Mythos) delivering advanced cybersecurity capabilities. However, existing open-source efforts remain limited: frontier open-weight models do not provide reproducible cybersecurity training solutions, open-source training solutions focus on isolated tasks and lack scalable agentic data, and scaling agentic rollouts requires strong domain priors. In this work, we introduce CyberFactory, a unified open-source framework that connects data construction, trajectory synthesis, and model training across proof-of-concept (PoC) generation, vulnerability patching, and cybersecurity question answering (CyberQA). CyberFactory transforms public vulnerability artifacts, including CVEs from the wild, into executable and verifiable task instances. It further uses a reusable vulnerability-analysis skill to guide the teacher through source inspection, problem solving with domain prior, and evidence-based validation. The resulting supervision is agentic: the model interacts with tools and target environments and revises its solutions according to execution feedback. Using these trajectories, we train and release \modelname\emph{Aegis is, in Greek mythology, the protective shield of Zeus and Athena; the name reflects the model's defensive, security-oriented purpose.}, which internalizes the skill-guided procedure without requiring the skill at inference time. On CyberGym, \modelname reaches 52.4% Pass@1 under a one-hour budget, improving over its Qwen~3.5 base model by +22.8 points and outperforming the evaluated general-purpose backbones under the same scaffold.

阅读原文

参与讨论