Malware — how SecDNS blocks payload delivery and command channels at the DNS layer
What this threat is
Malware is the umbrella term for any code that runs on a victim system against the user's intent — ransomware, info-stealers, banking trojans, cryptominers, droppers, remote-access tools, and the long tail of one-off custom payloads. It is the most common reason organisations buy protective DNS, because almost every modern malware family relies on DNS at several points in its lifecycle.
DNS-layer blocking is attractive because it is cheap, sits on a layer the malware author cannot easily ignore, and stops the attack before any TCP handshake takes place. A blocked DNS query means no connection, no payload download, and no telemetry leaving the host.
How it abuses DNS
Modern malware touches DNS in at least three places:
- Initial delivery. A user clicks a phishing link, opens a malicious document or visits a watering-hole site. The page loads scripts or downloaders from a domain the attacker controls — often a recently registered domain (NRD) or a compromised legitimate site.
- Second-stage download. The initial dropper resolves a hostname to pull the real payload (the ransomware binary, the loader, the keylogger). Operators use hostnames because they routinely rotate the backing IPs to avoid takedowns.
- Command and control (C2). Once installed, the implant resolves a beacon hostname every few minutes. Many families generate the hostname algorithmically (DGAs) to make blocklists harder to maintain; others use legitimate cloud-hosted subdomains, dynamic-DNS providers or fast-flux infrastructure.
Each of those DNS lookups is an opportunity for a recursive resolver to refuse the answer.
How SecDNS blocks it
The default "Malware" category combines four signal sources:
- Curated threat feeds. We ingest URLhaus, abuse.ch MalwareBazaar, Spamhaus DBL, Quad9-shared indicators, our own internal honeypot network and roughly 25 more feeds. Each feed is scored against a known-good corpus before it can promote a domain to the default block policy.
- Newly registered domains (NRD). Domains less than 30 days old that match heuristics for malware kits (random subdomains, suspicious TLD patterns, low Alexa rank, no MX or web records) are blocked by default in this category.
- DGA pattern matching. We score each queried hostname against a set of trained classifiers tuned to known DGA families (Conficker, Necurs, Tofsee, Pykspa and contemporary variants).
- Reputation scoring. Even when a domain is not on a feed, its hosting infrastructure (sinkholed ASN, recently rotated NS, suspicious TLS cert) can promote it to "block" via a composite score.
The default blocked response is NXDOMAIN, which causes the calling application to fail cleanly without the user landing on a block page. Profiles can switch to synthetic A-record responses for friendlier user messaging.
Example
A typical commodity-loader campaign rotates roughly 100 backing IPs under a DGA-generated apex domain such as qtxzkpvm[.]top, with *.qtxzkpvm[.]top resolving to a fresh subset every 30-60 seconds. When an infected workstation tries to resolve cfg.qtxzkpvm[.]top, SecDNS checks the apex against URLhaus, the NRD pipeline (registered seven days ago), and the DGA classifier (high score). All three flag it, and the resolver returns NXDOMAIN. The implant retries, eventually exhausts its built-in retry budget, and falls silent.
Stats
Across the production resolver fleet we blocked approximately N malware-category queries in <month> this year, with roughly N% attributed to C2 beaconing and the remainder to first-stage delivery. Data placeholder pending Q1 2026 transparency report.