arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.00943cs.CRcs.LGcs.NI
收藏

调整Metasploit以逃避加密的C2流量检测

Tweaking Metasploit to Evade Encrypted C2 Traffic Detection

FEUP(波尔图大学工程学院);INESC TEC(葡萄牙系统与计算机工程研究所);University of Porto(波尔图大学)

Gonçalo Xavier, Carlos Novo, Ricardo Morla

摘要:

指挥和控制(C2)通信是任何结构化网络攻击的关键组成部分。因此,安全操作积极尝试在其网络中检测这种类型的通信。这给试图保持不被发现的合法渗透测试者带来了一个问题,因为常用的渗透测试工具,如Metasploit,生成的恒定流量模式很容易与常规网络流量区分开来。在本文中,我们从Metasploit的C2流量中的这些可识别模式开始,并表明基于机器学习的检测器能够高精度地检测到此类流量的存在,即使是加密的。然后,我们概述并实现了一组修改的Metasploit框架,以降低这种分类器的检测率。为了评估这些修改的性能,我们使用了两个威胁模型,这些修改的意识越来越强。我们看看检测规避性能和修改的字节数和运行时开销。我们的研究结果表明,对于第二个,提高意识的威胁模型的框架端流量修改产生更好的检测回避率(90%)比有效载荷端的修改(50%)。我们还表明,尽管修改使用的TLS有效载荷字节数是原始的3倍,但运行时没有显著变化,字节总数(包括TLS有效载荷)减少了。

英文摘要:

Command and Control (C2) communication is a key component of any structured cyber-attack. As such, security operations actively try to detect this type of communication in their networks. This poses a problem for legitimate pentesters that try to remain undetected, since commonly used pentesting tools, such as Metasploit, generate constant traffic patterns that are easily distinguishable from regular web traffic. In this paper we start with these identifiable patterns in Metasploit's C2 traffic and show that a machine learning-based detector is able to detect the presence of such traffic with high accuracy, even when encrypted. We then outline and implement a set of modifications to the Metasploit framework in order to decrease the detection rates of such classifier. To evaluate the performance of these modifications, we use two threat models with increasing awareness of these modifications. We look at the detection evasion performance and at the byte count and runtime overhead of the modifications. Our results show that for the second, increased-awareness threat model the framework-side traffic modifications yield a better detection avoidance rate (90%) than payload-side only modifications (50%). We also show that although the modifications use up to 3 times more TLS payload bytes than the original, the runtime does not significantly change and the total number of bytes (including TLS payload) reduces.

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

↑