arXiv:2602.00204cs.CRcs.AI2026-02

用大模型理解日志语义,提升隐蔽攻击检测能力

Semantic-Aware Advanced Persistent Threat Detection Using Autoencoders on LLM-Encoded System Logs

  • 用大模型将系统日志转为语义向量,保留操作背后的意图信息
  • 自编码器在语义向量上识别异常,AUC-ROC优于IForest等基线方法
  • 适合需要高精度检测隐蔽攻击的安全团队和研究者

高级持续性威胁(APTs)是难以检测的复杂网络攻击,其行为具有“低频慢速”特征,传统统计方法和浅层机器学习常失效。现有研究虽尝试机器学习与溯源图分析,但溯源方法难以捕捉系统操作的语义意图。本文提出一种新异常检测方法,利用大语言模型(LLM)生成的日志语义嵌入,从非结构化日志中提取有意义的表示。首先,使用预训练Transformer模型将原始系统日志转化为高维语义嵌入;随后,通过自编码器(AE)分析这些嵌入,识别潜在恶意的异常模式。实验基于DARPA透明计算(TC)数据集,该数据集包含红队在真实环境生成的复杂APT攻击场景。结果表明,基于LLM嵌入训练的自编码器在多个指标上优于主流无监督基线方法,包括孤立森林(IForest)、一类支持向量机(OC-SVM)和主成分分析(PCA),AUC-ROC表现更优,尤其在复杂攻击场景中仍保持高检测率。这验证了语义理解对发现非线性、隐蔽攻击行为的关键作用。

原文摘要 · Abstract (English)

Advanced Persistent Threats (APTs) are among the most challenging cyberattacks to detect. They are carried out by highly skilled attackers who carefully study their targets and operate in a stealthy, long-term manner. Because APTs exhibit "low-and-slow" behavior, traditional statistical methods and shallow machine learning techniques often fail to detect them. Previous research on APT detection has explored machine learning approaches and provenance graph analysis. However, provenance-based methods often fail to capture the semantic intent behind system activities. This paper proposes a novel anomaly detection approach that leverages semantic embeddings generated by Large Language Models (LLMs). The method enhances APT detection by extracting meaningful semantic representations from unstructured system log data. First, raw system logs are transformed into high-dimensional semantic embeddings using a pre-trained transformer model. These embeddings are then analyzed using an Autoencoder (AE) to identify anomalous and potentially malicious patterns. The proposed method is evaluated using the DARPA Transparent Computing (TC) dataset, which contains realistic APT attack scenarios generated by red teams in live environments. Experimental results show that the AE trained on LLM-derived embeddings outperforms widely used unsupervised baseline methods, including Isolation Forest (IForest), One-Class Support Vector Machine (OC-SVM), and Principal Component Analysis (PCA). Performance is measured using the Area Under the Receiver Operating Characteristic Curve (AUC-ROC), where the proposed approach consistently achieves superior results, even in complex threat scenarios. These findings highlight the importance of semantic understanding in detecting non-linear and stealthy attack behaviors that are often missed by conventional detection techniques.

APT检测大模型日志分析异常检测

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