SecDNS

Malware — how SecDNS blocks payload delivery and command channels at the DNS layer

Most malware needs DNS at install time and during every callback. SecDNS blocks payload-delivery and C&C hostnames before the TCP handshake.

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:

  1. 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.
  2. 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.
  3. 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).
  4. 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.

Frequently asked questions

Does SecDNS protect against malware delivered over IP addresses with no hostname?

DNS-layer protection only covers traffic that does a name lookup. The good news is that almost all real-world malware does — droppers, second-stage payloads, telemetry beacons and update channels overwhelmingly use hostnames so the operator can rotate infrastructure. Pure IP-literal callbacks exist but are rare and easy to spot at the firewall.

How quickly are new malware domains added to the feeds?

Our threat pipeline ingests roughly 30 upstream sources on a 5-minute schedule. High-confidence sources (URLhaus, abuse.ch MalwareBazaar, Spamhaus DBL) feed our default policy directly; lower-confidence sources go through a scoring stage before promotion. Most newly observed malware domains land in our resolver fleet within 5-15 minutes of first sighting.

Can attackers bypass SecDNS by hard-coding their own resolver in the malware?

They can try, and the better-funded families do. We recommend pairing protective DNS with an egress firewall rule that only permits port 53 / DoH / DoT traffic to your sanctioned resolver. That way malware that bypasses the OS resolver simply fails to resolve anything.

What does the user see when a malware domain is blocked?

By default the resolver returns NXDOMAIN, which surfaces as a generic "site not found" error in the browser or application. If you prefer an explicit block page you can switch the profile to synthetic-response mode and we will return an A record pointing at a hosted block page that explains why the request was stopped.