Forensic analysis of web server logs demands both accurate detection and human-readable explanations that can satisfy legal requirements. We present CEF-Log, a context-enhanced few-shot chain-of-thought prompting strategy for Large Language Models that addresses this dual requirement. CEF-Log embeds expert investigative methodology through a structured five-step reasoning template, enabling the model to learn \textit{how} to analyze logs rather than \textit{what} patterns to memorize. Experimental evaluation demonstrates that CEF-Log achieves an F1-score of 0.99 on the CSIC 2010 dataset using only four examples while providing a $10\times$ improvement in sample efficiency compared to other prompting-based methods. We also introduce ForenWebLog, a new dataset that incorporates real-world attacks and multi-step attack sequences for comprehensive evaluation. Qualitative analysis confirms that CEF-Log generates traceable, accurate explanations suitable for forensic documentation, addressing the critical "black-box" limitation of traditional machine learning approaches.


翻译:Web服务器日志的取证分析既需要高精度检测,也需要满足法律要求的人类可读解释。我们提出了CEF-Log——一种面向大语言模型的上下文增强型少样本思维链推理策略,以应对这一双重需求。CEF-Log通过结构化的五步推理模板嵌入专家调查方法论,使模型学习"如何"分析日志而非记忆"什么"模式。实验评估表明,CEF-Log在CSIC 2010数据集上仅使用四个示例即可达到0.99的F1分数,相比其他基于提示的方法实现了10倍的样本效率提升。我们还引入了ForenWebLog——一个包含真实世界攻击场景与多步攻击序列的新数据集,用于全面评估。定性分析证实,CEF-Log生成的解释具有可追溯性与准确性,适用于取证文档编制,从而弥补了传统机器学习方法在"黑箱"问题上的关键缺陷。

0
下载
关闭预览

相关内容

大语言模型的智能体化推理
专知会员服务
35+阅读 · 1月21日
「因果推理」概述论文,13页pdf
专知
16+阅读 · 2021年3月20日
异常检测(Anomaly Detection)综述
极市平台
20+阅读 · 2020年10月24日
NetworkMiner - 网络取证分析工具
黑白之道
16+阅读 · 2018年6月29日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
19+阅读 · 2015年12月31日
国家自然科学基金
7+阅读 · 2015年12月31日
国家自然科学基金
12+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
12+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
4+阅读 · 2014年12月31日
Arxiv
0+阅读 · 5月19日
VIP会员
最新内容
《边缘计算关键技术分析及美军作战实践应用》
专知会员服务
0+阅读 · 今天14:08
边缘计算的军事应用
专知会员服务
1+阅读 · 今天13:50
一种考虑资源机动性的武器目标分配混合算法
专知会员服务
4+阅读 · 8月8日
《多域冲突比较支持模型》60页
专知会员服务
10+阅读 · 8月7日
相关VIP内容
大语言模型的智能体化推理
专知会员服务
35+阅读 · 1月21日
相关资讯
「因果推理」概述论文,13页pdf
专知
16+阅读 · 2021年3月20日
异常检测(Anomaly Detection)综述
极市平台
20+阅读 · 2020年10月24日
NetworkMiner - 网络取证分析工具
黑白之道
16+阅读 · 2018年6月29日
相关基金
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
19+阅读 · 2015年12月31日
国家自然科学基金
7+阅读 · 2015年12月31日
国家自然科学基金
12+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
12+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
4+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员