[论文解读] Detecting Domain-Generation Algorithm (DGA) Based Fully-Qualified Domain Names (FQDNs) with Shannon Entropy
本文提出使用香农熵来检测DNS流量中基于域名生成算法(DGA)的完整限定域名(FQDN),利用DGA生成的域名相较于合法域名具有更高熵的特性。该方法通过在每日DNS日志上进行简单的单变量t检验实现有效检测,展示了在识别SUNBURST恶意软件等所见的C2通信模式方面的可行性。
Domain Name System (DNS) is the backbone of the Internet. However, threat actors have abused the antiquated protocol to facilitate command-and-control (C2) actions, to tunnel, or to exfiltrate sensitive information in novel ways. The FireEye breach and Solarwinds intrusions of late 2020 demonstrated the sophistication of hacker groups. Researchers were eager to reverse-engineer the malware and eager to decode the encrypted traffic. Noticeably, organizations were keen on being first to "solve the puzzle". Dr. Eric Cole of SANS Institute routinely expressed "prevention is ideal, but detection is a must". Detection analytics may not always provide the underlying context in encrypted traffic, but will at least give a fighting chance for defenders to detect the anomaly. SUNBURST is an open-source moniker for the backdoor that affected Solarwinds Orion. While analyzing the malware with security vendor research, there is a possible single-point-of-failure in the C2 phase of the Cyber Kill Chain provides an avenue for defenders to exploit and detect the activity itself. One small chance is better than none. The assumption is that encryption increases entropy in strings. SUNBURST relied on encryption to exfiltrate data through DNS queries of which the adversary prepended to registered Fully-Qualified Domain Names (FQDNs). These FQDNs were typo-squatted to mimic Amazon Web Services (AWS) domains. SUNBURST detection is possible through a simple 1-variable t-test across all DNS logs for a given day. The detection code is located on GitHub (https://github.com/MalwareMorghulis/SUNBURST).
研究动机与目标
- 解决通过DNS流量中DGA生成的域名检测恶意C2通信的挑战。
- 利用DGA生成域名的高熵特性作为检测信号。
- 提供一种轻量级、可扩展的检测方法,适用于现实世界中的DNS日志。
- 通过熵分析展示对SUNBURST类恶意软件的实际检测能力。
- 提供一种与预防措施互补的检测方法,正如安全专家如Dr. Eric Cole所强调的那样。
提出的方法
- 测量DNS日志中每个完整限定域名(FQDN)的香农熵,以量化其随机性。
- 对每天的所有FQDN应用单变量t检验,检测熵值的统计显著偏差。
- 利用t检验识别出指示DGA活动的高熵域名聚类。
- 基于加密或DGA生成域名的熵值高于合法域名的假设。
- 利用现有的DNS日志数据,无需深度包检测或解密。
- 在GitHub上提供开源代码实现,便于实际部署。
实验结果
研究问题
- RQ1香农熵能否有效区分DNS流量中DGA生成的FQDN与合法域名?
- RQ2DGA生成域名与合法域名之间的熵值是否存在统计显著差异?
- RQ3在现实场景中,对每日DNS日志进行简单t检验能否检测到基于DGA的C2活动?
- RQ4在不了解域名生成算法的情况下,基于熵的检测方法在多大程度上可检测到SUNBURST类恶意软件?
- RQ5在可扩展性和误报率方面,基于熵的检测方法与其它启发式或基于签名的检测方法相比如何?
主要发现
- DGA生成的域名相较于合法域名表现出显著更高的香农熵,从而可通过熵阈值实现检测。
- 对每日DNS日志进行单变量t检验,成功识别出与DGA活动相关的熵值异常峰值。
- 该方法通过识别模仿合法域名(如AWS)的高熵FQDN,成功检测到类似SUNBURST的C2行为。
- 该检测方法轻量且可扩展,仅需DNS日志数据,无需解密或逆向工程。
- GitHub上的开源实现使安全团队能够实际部署并验证该方法。
- 即使无法实现预防,该方法仍提供一种切实可行的检测机制,符合‘检测至关重要’的原则。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。