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

从IOCs到正则表达式:利用LLMs自动化SOC中的CTI操作化

From IOCs to Regex: Automating CTI Operationalization for SOC with LLMs

The Pennsylvania State University(宾夕法尼亚州立大学);Northern Arizona University(北亚利桑那大学);Worcester Polytechnic Institute(伍斯特理工学院)

Pei-Yu Tseng, Lan Zhang, ZihDwo Yeh, Xiaoyan Sun, Xushu Dai, Peng Liu

AI总结:

本文提出IOCRegex-gen系统,利用LLMs自动生成正则表达式,解决CTI操作化中的手动转换问题,通过分组机制和多阶段验证流程提升准确率和效率。

摘要:

网络威胁情报(CTI)报告包含指标(IOCs),对安全运营至关重要。为在异构日志中操作这些IOCs,分析师常将其转换为正则表达式(regexes)用于数字取证、日志解析和SIEM规则创建。然而,正则表达式构建仍主要依赖人工,要求分析师从CTI报告中提取IOCs并转换为语法正确且语义精确的模式。此过程缓慢、易出错,且随着CTI体积增长而变得不切实际。尽管最近的研究已应用大语言模型(LLMs)进行IOCs提取,但通常输出纯字符串而非正则表达式,限制了实际部署。纯IOCs无法有效捕捉系统上下文、日志格式或攻击者行为的变化。为此,我们提出IOCRegex-gen,一个完全自动化的LLM基于正则表达式生成系统,将IOCs转换为正则表达式。系统引入两个关键创新:(i)一种分组意识机制,确定哪些IOC段应表示为捕获或非捕获组;(ii)一种迭代推理和多阶段验证流程,确保语法正确性和语义正确性。实验表明,使用超过3,000个真实CTI报告和2,400个来自MITRE ATT&CK评估框架的地面真实字符串,IOCRegex-gen实现了99.1%的命中率和仅0.8%的误报率,证明了其在大规模CTI处理和自动化正则表达式生成中的有效性。

英文摘要:

Cyber Threat Intelligence (CTI) reports contain Indicators of Compromise (IOCs) that are critical for security operations. To operationalize these IOCs across heterogeneous logs, analysts often convert them into regular expressions (regexes) for tasks such as digital forensics, log parsing, and SIEM rule creation. However, regex construction is still largely manual, requiring analysts to extract IOCs from CTI reports and transform them into syntactically valid and semantically precise patterns. This process is slow, error-prone, and increasingly impractical as CTI volumes grow. Although recent studies have applied Large Language Models (LLMs) to IOC extraction, they typically output plain strings rather than regexes, limiting practical deployment. Plain IOCs cannot effectively capture variations in system context, log format, or attacker behavior. To address this gap, we propose IOCRegex-gen, a fully automated LLM-based regex generation system that converts IOCs into regexes. The system introduces two key innovations: (i) a group-aware mechanism that identifies which IOC segments should be represented as capture or non-capture groups, and (ii) an iterative reasoning and multi-stage validation pipeline to ensure syntactic validity and semantic correctness. Experiments on over 3,000 real CTI reports and 2,400 ground-truth strings from the MITRE ATT&CK Evaluation framework show that IOCRegex-gen achieves an average hit rate of 99.1% and a false-positive rate of only 0.8%, demonstrating its effectiveness for large-scale CTI processing and automated regex generation.

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

↑