面向加密C2检测的多视图融合:评估陷阱的泄漏控制测量研究 Multi-View Fusion for Encrypted C2 Detection: A Leakage-Controlled Measurement Study of Evaluation Pitfalls 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-09-23
⬇️ 3 次下载
👁️ 预览文献
💡 AI 中文简介
研究测试了融合流统计和TLS握手指纹能否提升加密C2检测,使用62个真实Cobalt Strike捕获的17577条TLS流。发现数据泄漏导致F1虚高0.28,标签和特征依赖目的地址使独立组仅2132个,正例率从55.1%降至4.2%,且32%捕获无恶意TLS流。融合仅比最佳单视图F1高0.022,攻击者伪造特征时所有模型不如简单基线(F1=0.711)。结论:评估设计本身就是主要结果。
领域网络安全/加密流量检测
适合谁读需要一定专业背景(网络安全、机器学习评估)
核心贡献1. 揭示了常见预处理错误(全局频率编码)导致F1虚高0.28,远大于真实融合效果;2. 证明标签和特征依赖目的地址,独立组数远小于流数,类别平衡是分析假象;3. 发现32%捕获无恶意TLS流,地面真值存在缺口;4. 在泄漏控制下,融合仅比最佳单视图F1高0.022,且对抗伪造特征时不如简单基线。
关键数据17577条TLS流来自62个Cobalt Strike捕获;独立组2132个;正例率从55.1%降至4.2%;错误预处理使F1增加0.28;融合比最佳单视图F1高0.022;对抗伪造特征时所有模型F1低于0.711。
推荐理由如果你做加密流量检测或机器学习安全评估,这篇论文用硬数据告诉你:评估设计没做好,再好的模型也是自欺欺人。
关键词["加密C2检测", "多视图融合", "数据泄漏", "评估陷阱", "TLS流量分析", "机器学习安全"]

原文摘要

查看英文原文摘要

Command-and-control (C2) traffic increasingly hides within TLS, so defenders now apply machine learning to traffic metadata. Many studies assume that combining two metadata views, namely flow statistics and TLS handshake fingerprints, improves both accuracy and robustness. We tested this assumption on 17,577 TLS flows from 62 real Cobalt Strike captures. Our evaluation removes the data leakage that leads to overly optimistic reported scores. We report three findings that matter more than the fusion result itself. First, an incorrect preprocessing step increases the F1 score by 0.28. This step computes the frequency encoding across the entire dataset rather than within each cross-validation fold. The increase is about ten times larger than any real effect we measured. Second, both the labels and the behavioral features depend on the destination address. Because of this, the 17,577 flows form only 2,132 independent groups, and the positive rate of 55.1\%, which looks balanced, drops to 4.2\%. Therefore, class balance is just a result of how we analyze the data, specifically whether we count flows or endpoints, and not a real feature of the task. Third, 20 of the 62 captures (32\%) have no TLS flows to any known C2 address, so they contain only benign samples. We checked these captures directly and confirmed that this is a gap in the ground truth, not a labeling error. In this context, fusion beats the best single view by only 0.022 in F1. When an attacker forges both feature surfaces simultaneously, every model performs worse than a simple baseline that always predicts positive (F1 = 0.711). For encrypted C2 detection, the evaluation design is not a preliminary step. It \emph{is} the main result.