用不存在的事物发起攻击:“不存在证明”可耗尽 DNS 解析器 CPU
Attacking with Something That Does Not Exist: 'Proof of Non-Existence' Can Exhaust DNS Resolver CPU
AI总结:
本文首次评估 NSEC3-encloser 攻击,证明符合 RFC5155 限制的 DNS 解析器仍会因恶意 NSEC3 记录产生最高 72 倍 CPU 指令增长和 2.7%–30% 丢包。
摘要:
NSEC3 是 DNSSEC 中的一种不存在证明,它提供经过认证的断言,表明被查询的资源在目标域中不存在。NSEC3 由位于被查询主机名之前和之后、按字母顺序排序的哈希名称组成。为了增加字典攻击的难度,哈希函数可以多次迭代应用,但这也会在 DNS 解析器计算 NSEC3 记录中的 SHA-1 哈希时增加其负载。关于计算 NSEC3 记录给 DNS 解析器造成负载的担忧,在 NSEC3 规范 RFC5155 和 RFC9276 中已经有所考虑。2024 年 2 月,NSEC3 耗尽 DNS 解析器资源的可能性被分配为 CVE-2023-50868,这确认了额外的 NSEC3 迭代会产生巨大负载。然而,目前尚无公开发表的针对该攻击的评估,该攻击对解析器的影响也尚未得到阐明。在本工作中,我们首次针对 DNS 解析器实现评估了 NSEC3-encloser 攻击,并发现即使受害解析器遵循 RFC5155 的建议来限制哈希迭代次数,NSEC3-encloser 攻击仍可使 CPU 指令数量增加 72 倍。该攻击的影响因不同 DNS 解析器而异,但我们表明,在足够数量的 DNS 数据包下,该攻击能够提高 CPU 负载并导致数据包丢失。我们发现,以每秒 150 条恶意 NSEC3 记录的速率,根据 DNS 实现的不同,良性 DNS 请求的丢失率在 2.7% 到 30% 之间变化。我们提供了 NSEC3-encloser 攻击的详细描述与实现。我们还首次提出了一项分析,说明在 NSEC3-encloser 攻击期间,每个 NSEC3 参数如何影响施加给受害解析器的负载。
英文摘要:
NSEC3 is a proof of non-existence in DNSSEC, which provides an authenticated assertion that a queried resource does not exist in the target domain. NSEC3 consists of alphabetically sorted hashed names before and after the queried hostname. To make dictionary attacks harder, the hash function can be applied in multiple iterations, which however also increases the load on the DNS resolver during the computation of the SHA-1 hashes in NSEC3 records. Concerns about the load created by the computation of NSEC3 records on the DNS resolvers were already considered in the NSEC3 specifications RFC5155 and RFC9276. In February 2024, the potential of NSEC3 to exhaust DNS resolvers' resources was assigned a CVE-2023-50868, confirming that extra iterations of NSEC3 created substantial load. However, there is no published evaluation of the attack and the impact of the attack on the resolvers was not clarified. In this work we perform the first evaluation of the NSEC3-encloser attack against DNS resolver implementations and find that the NSEC3-encloser attack can still create a 72x increase in CPU instruction count, despite the victim resolver following RFC5155 recommendations in limiting hash iteration counts. The impact of the attack varies across the different DNS resolvers, but we show that with a sufficient volume of DNS packets the attack can increase CPU load and cause packet loss. We find that at a rate of 150 malicious NSEC3 records per second, depending on the DNS implementation, the loss rate of benign DNS requests varies between 2.7% and 30%. We provide a detailed description and implementation of the NSEC3-encloser attack. We also develop the first analysis how each NSEC3 parameter impacts the load inflicted on the victim resolver during NSEC3-encloser attack.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。