arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.12224cs.CR
收藏

RulePilot:一种基于LLM的安全规则生成智能体

RulePilot: An LLM-Powered Agent for Security Rule Generation

National University of Singapore(新加坡国立大学);Fudan University(复旦大学)

Hongtai Wang, Ming Xu, Yanpei Guo, Weili Han, Hoon Wei Lim, Jin Song Dong

AI总结:

针对安全规则生成依赖专家的问题,提出基于LLM的智能体RulePilot,通过中间表示抽象规则复杂性,可根据自然语言描述自动生成规则,在文本相似性和检测精度上优于基线模型,助力初级用户高效创建规则。

摘要:

系统安全的实时需求使得检测规则成为入侵检测生命周期的重要组成部分。基于规则的检测通常根据预定义的语法逻辑识别恶意日志,这需要具备深厚领域知识的专家来生成规则。因此,规则生成的自动化能够大幅节省时间,减轻安全工程师在规则相关任务上的负担。在本文中,我们提出RulePilot,它通过基于LLM的智能体模拟人类专业知识,以应对规则创建或转换等规则相关挑战。使用RulePilot,安全分析师无需按照语法编写规则,只需提供注释(如规则的自然语言描述),RulePilot即可自动生成检测规则,无需更多干预。RulePilot配备了中间表示(IR),该表示将配置规则的复杂性抽象为结构化、标准化的格式,使LLM能够以更易于管理和一致的方式专注于生成规则。我们从文本相似性和执行成功能力方面对RulePilot进行了全面评估,结果表明RulePilot能够生成高保真规则,在与真实规则的文本相似性方面优于基线模型高达107.4%,并在真实世界执行测试中实现了更好的检测精度。我们还从新加坡的行业合作伙伴处进行了案例研究,结果显示RulePilot显著帮助初级分析师/普通用户完成规则创建过程。

英文摘要:

The real-time demand for system security leads to the detection rules becoming an integral part of the intrusion detection life-cycle. Rule-based detection often identifies malicious logs based on the predefined grammar logic, requiring experts with deep domain knowledge for rule generation. Therefore, automation of rule generation can result in significant time savings and ease the burden of rule-related tasks on security engineers. In this paper, we propose RulePilot, which mimics human expertise via LLM-based agent for addressing rule-related challenges like rule creation or conversion. Using RulePilot, the security analysts do not need to write down the rules following the grammar, instead, they can just provide the annotations such as the natural-language-based descriptions of a rule, our RulePilot can automatically generate the detection rules without more intervention. RulePilot is equipped with the intermediate representation (IR), which abstracts the complexity of config rules into structured, standardized formats, allowing LLMs to focus on generation rules in a more manageable and consistent way. We present a comprehensive evaluation of RulePilot in terms of textual similarity and execution success abilities, showcasing RulePilot can generate high-fidelity rules, outperforming the baseline models by up to 107.4% in textual similarity to ground truths and achieving better detection accuracy in real-world execution tests. We perform a case study from our industry collaborators in Singapore, showcasing that RulePilot significantly help junior analysts/general users in the rule creation process.

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

↑