On The Vulnerability of Anti-Malware Solutions to DNS Attacks

Asaf Nadler, Ron Bitton, Oleg Brodt, Asaf Shabtai

Abstract

Modern anti-malware (AV) solutions frequently rely on cloud-based reputation services to classify unknown files. Many vendors implement these checks via the Domain Name System (DNS) due to its efficiency and ubiquity, a mechanism termed DNS Anti-Malware List (DNSAML). This paper explores the inherent vulnerabilities of this approach. By exploiting the cleartext nature of standard DNS, attackers can compromise user privacy and manipulate AV verdicts. Our analysis of a global DNS dataset identifies 55 DNSAML services, and experimental validation against major vendors demonstrates successful silencing and false alert attacks.

Introduction

Anti-malware agents often encounter files whose signatures are not present in local databases. To provide real-time protection against emerging threats, these agents query remote cloud services for a "second opinion." While efficient, the use of standard DNS for these queries introduces a significant attack surface. Because DNS lacks native encryption and authentication, the communication between the AV agent and the reputation service is susceptible to eavesdropping and tampering. An attacker can "silence" antivirus alerts to let malware run undetected or trigger massive waves of false positives—all without ever touching the target machine.

The DNSAML Mechanism

The researchers define DNSAML as the use of DNS queries to transmit file metadata (typically hashes) to a security vendor's server. The vendor then responds with a DNS record (e.g., an A record) where the IP address encodes the file's reputation (e.g., benign, malicious, or unknown).

The general architecture and workflow of a DNSAML service, illustrating how an anti-malware agent queries the DNS hierarchy to obtain a file reputation verdict.

As shown in Figure 1, the process involves the agent generating a query based on a file signature, which traverses the DNS hierarchy to reach the vendor's authoritative nameserver. This reliance on the public DNS infrastructure makes the system vulnerable to any attacker capable of intercepting or spoofing DNS traffic.

Methodology and Scale

The study employed a two-stage methodology. First, the authors analyzed a massive dataset of CDN DNS logs—comprising 52 billion queries per day from 37 million machines—to identify active DNSAML services. They filtered for security-related domains and analyzed query patterns characteristic of file reputation checks.

Distribution of daily DNS query counts across various registered DNS zones identified as potential DNSAML services, highlighting the massive scale of this practice.

The analysis revealed 55 suspected DNSAML services. As illustrated in Figure 2, the top services handle over 100 million queries daily, indicating that millions of endpoints worldwide are potentially exposed to DNS-based attacks on their security software.

Experimental Validation

The researchers tested three major solutions—McAfee GTI, Tenable MalwareDB, and Team Cymru MHR—against three primary attack vectors:

  1. Information Disclosure (ATT-ID): Eavesdropping on plaintext DNS queries to identify files present on the victim's system.
  2. Silencing Attack (ATT-S): Spoofing a "benign" DNS response to prevent the AV from detecting actual malware.
  3. False Alert Attack (ATT-FA): Spoofing a "malicious" response to trigger alerts on benign system files.
Attack Type McAfee GTI Tenable Nessus Team Cymru MHR
Silencing Vulnerable Vulnerable Vulnerable
False Alerts Not Vulnerable* Vulnerable Vulnerable
Info Disclosure Vulnerable Vulnerable Vulnerable
*McAfee utilized an additional encrypted TXT record check for certain actions, providing a partial mitigation.

Discussion and Limitations

The findings highlight a critical "invisible" attack surface. An attacker does not need to compromise the endpoint itself; by manipulating the network layer, they can effectively blind the security software. Furthermore, the privacy implications are severe; for instance, the researchers could reconstruct full Tenable Nessus scan reports solely from intercepted DNS traffic.

While the study provides strong evidence of widespread vulnerability, it is limited by the manual effort required to reverse-engineer proprietary hashing algorithms and DNS logic for each vendor. Additionally, while transitioning to secure protocols like DNS-over-HTTPS (DoH) or REST APIs is a clear solution, it requires significant infrastructure changes from both vendors and enterprise network administrators.

Conclusion

The use of insecure DNS for malware classification creates a dangerous gap in endpoint security. This research underscores the need for security vendors to move away from legacy DNS-based lookups in favor of authenticated and encrypted communication channels to protect both user privacy and the integrity of malware detection systems.

Summary updated

BibTeX
@article{nadler2022vulnerability,
  author = {Asaf Nadler and Ron Bitton and Oleg Brodt and Asaf Shabtai},
  title = {{On The Vulnerability of Anti-Malware Solutions to DNS Attacks}},
  journal = {Comput. Secur.},
  year = {2022},
  doi = {10.1016/j.cose.2022.102687},
}
Figure