用大模型辅助发现DNS协议新漏洞,三招搞定缓存拒绝服务攻击。
LAPRAD: LLM-Assisted PRotocol Attack Discovery
- 调用大模型分析协议文档和历史攻击,自动识别潜在漏洞。
- 生成伪造的DNSSEC记录与任意查询响应,使解析器性能降至6%。
- 可发现未收录于训练数据的新攻击,适合安全研究者快速验证协议风险。
为提升互联网协议安全性,我们提出一种半自动、高效的协议漏洞发现方法LAPRAD,帮助具备一定DNS知识的研究人员发现难以察觉的漏洞。LAPRAD包含三个阶段:第一阶段,使用训练于大量DNS资料及历史DDoS攻击数据的GPT-o1模型识别潜在攻击;第二阶段,通过LangChain实现的ReACT框架,由另一模型自动生成攻击配置(如DNS区域文件);第三阶段验证攻击有效性。基于此,我们发现了三个新的针对DNS协议的DDoS攻击,并复现了两个未被训练数据覆盖的近期报告攻击。首个新攻击利用诱饵切换技术,诱导解析器缓存大量伪造的DNSSEC RRSIG,使其服务能力下降至6%;第二个攻击借助大型DNSSEC加密算法(RSA-4096)及多密钥机制,绕过最新默认RRSet限制;第三个攻击则通过ANY类型响应实现类似效果。这些变种攻击统称SigCacheFlush,能规避现有补丁,严重降低解析器查询能力,影响主流解析器最新版本。
原文摘要 · Abstract (English)
With the goal of improving the security of Internet protocols, we seek faster, semi-automatic methods to discover new vulnerabilities in protocols such as DNS, BGP, and others. To this end, we introduce the LLM-Assisted Protocol Attack Discovery (LAPRAD) methodology, enabling security researchers with some DNS knowledge to efficiently uncover vulnerabilities that would otherwise be hard to detect. LAPRAD follows a three-stage process. In the first, we consult an LLM (GPT-o1) that has been trained on a broad corpus of DNS-related sources and previous DDoS attacks to identify potential exploits. In the second stage, a different LLM automatically constructs the corresponding attack configurations using the ReACT approach implemented via LangChain (DNS zone file generation). Finally, in the third stage, we validate the attack's functionality and effectiveness. Using LAPRAD, we uncovered three new DDoS attacks on the DNS protocol and rediscovered two recently reported ones that were not included in the LLM's training data. The first new attack employs a bait-and-switch technique to trick resolvers into caching large, bogus DNSSEC RRSIGs, reducing their serving capacity to as little as 6%. The second exploits large DNSSEC encryption algorithms (RSA-4096) with multiple keys, thereby bypassing a recently implemented default RRSet limit. The third leverages ANY-type responses to produce a similar effect. These variations of a cache-flushing DDoS attack, called SigCacheFlush, circumvent existing patches, severely degrade resolver query capacity, and impact the latest versions of major DNS resolver implementations.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。