arXiv:2604.01977cs.CRcs.AI2026-04被引 1

自动生成并验证网络漏洞检测规则,提升安全响应效率

RuleForge: Automated Generation and Validation for Web Vulnerability Detection at Scale

  • 基于Nuclei模板自动生成JSON格式检测规则
  • 通过大模型评估实现75%的检出率,误报减少67%
  • 适合安全团队快速应对海量新漏洞

安全团队面临挑战:新披露的通用漏洞暴露(CVE)数量远超人工编写检测机制的能力。2025年,国家漏洞数据库发布了超过48,000个新漏洞,推动了自动化需求。我们提出RuleForge,一个AWS内部系统,可从描述CVE详情的结构化Nuclei模板中自动生成检测规则——即识别利用特定漏洞的恶意HTTP请求的JSON模式。Nuclei模板提供标准化的YAML格式漏洞描述,作为规则生成的结构化输入。本文聚焦RuleForge的架构与实际部署,重点介绍其创新的大型语言模型作为裁判(LLM-as-a-judge)的置信度验证系统和系统性反馈集成机制。该验证方法从敏感性(避免漏报)和特异性(避免误报)两个维度评估候选规则,在生产环境中实现0.75的AUROC,并相比仅依赖合成测试的验证方式降低67%的误报。我们的5x5生成策略(每个规则生成5个并行候选,每条最多5次优化)结合持续反馈循环,实现了系统性质量提升。我们还扩展了从非结构化数据源生成规则的能力,并演示了多事件类型检测的代理式工作流原型。经验表明,将LLM应用于网络安全任务时,需注意过度自信问题,且提示工程与规则质量评审必须结合领域专业知识,通过人机协同验证确保可靠性。

原文摘要 · Abstract (English)

Security teams face a challenge: the volume of newly disclosed Common Vulnerabilities and Exposures (CVEs) far exceeds the capacity to manually develop detection mechanisms. In 2025, the National Vulnerability Database published over 48,000 new vulnerabilities, motivating the need for automation. We present RuleForge, an AWS internal system that automatically generates detection rules--JSON-based patterns that identify malicious HTTP requests exploiting specific vulnerabilities--from structured Nuclei templates describing CVE details. Nuclei templates provide standardized, YAML-based vulnerability descriptions that serve as the structured input for our rule generation process. This paper focuses on RuleForge's architecture and operational deployment for CVE-related threat detection, with particular emphasis on our novel LLM-as-a-judge (Large Language Model as judge) confidence validation system and systematic feedback integration mechanism. This validation approach evaluates candidate rules across two dimensions--sensitivity (avoiding false negatives) and specificity (avoiding false positives)--achieving AUROC of 0.75 and reducing false positives by 67% compared to synthetic-test-only validation in production. Our 5x5 generation strategy (five parallel candidates with up to five refinement attempts each) combined with continuous feedback loops enables systematic quality improvement. We also present extensions enabling rule generation from unstructured data sources and demonstrate a proof-of-concept agentic workflow for multi-event-type detection. Our lessons learned highlight critical considerations for applying LLMs to cybersecurity tasks, including overconfidence mitigation and the importance of domain expertise in both prompt design and quality review of generated rules through human-in-the-loop validation.

漏洞检测自动化大模型应用安全工程

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。