arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.01977cs.CRcs.AIcs.CLcs.LGcs.SE
收藏

RuleForge: 用于大规模Web漏洞检测的自动化生成与验证

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

Johns Hopkins University(约翰霍普金斯大学);Amazon Web Services(亚马逊云服务)

Ayush Garg, Sophia Hager, Jacob Montiel, Aditya Tiwari, Michael Gentile, Zach Reavis, David Magnotti, Wayne Fullen

AI总结:

RuleForge通过自动化生成基于JSON的检测规则,结合LLM作为判断系统和反馈机制,提升漏洞检测的准确性和效率,减少误报。

摘要:

安全团队面临挑战:新增披露的常见漏洞和暴露(CVEs)数量远超手动开发检测机制的能力。2025年,国家漏洞数据库发布了超过48,000个新漏洞,推动了自动化的需求。我们介绍了RuleForge,这是一个AWS内部系统,能够自动从结构化的Nuclei模板生成检测规则--基于JSON的模式,用于识别利用特定漏洞的恶意HTTP请求。Nuclei模板提供标准化的、基于YAML的漏洞描述,作为规则生成过程的结构化输入。本文重点讨论RuleForge的架构和用于CVE相关威胁检测的操作部署,特别强调我们新颖的LLM-as-a-judge(大型语言模型作为判断)信心验证系统和系统反馈整合机制。这种验证方法在两个维度上评估候选规则--灵敏度(避免假阴性)和特异性(避免假阳性),实现了AUROC为0.75,与仅使用合成测试的验证相比,将假阳性减少67%。我们的5x5生成策略(五个并行候选,每个最多五次优化尝试)结合持续反馈循环实现了系统性的质量改进。我们还展示了从非结构化数据源生成规则的扩展,并演示了多事件类型检测的证明概念代理工作流程。我们的经验教训突显了在应用LLM到网络安全任务时的关键考虑因素,包括消除过度自信和在提示设计和生成规则的质量审查中领域专业知识的重要性。

英文摘要:

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.

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

↑