Malware & ransomware

Botnet Detection: How to Spot a Botnet on Your Network in 2026

A botnet hides by looking ordinary. Here is how to spot its check-ins, strange DNS lookups and traffic spikes — and what to do when you find one.

Cysoro Security TeamPublished · 9 min read
C2 PC Router Camera MALWARE & RANSOMWARE Botnetdetection Catch the check-in, catch the bot.
Quick answer

Botnet detection is the practice of finding compromised devices by the network behavior their command-and-control traffic produces — regular beaconing check-ins, unusual DNS lookups, and encrypted-channel fingerprints — rather than by matching known malware signatures alone. Because every bot must contact its controller, that control channel is the most durable place to look.

Key takeaways

  • Every bot must check in with its controller, so beaconing, DNS anomalies and odd traffic patterns are the strongest detection signals.
  • Signature lists alone miss new botnets; behavioral baselines, DNS logs and flow records catch what signatures cannot.
  • Isolate a suspect device first, then scan it, change credentials and check for persistence before bringing it back.

Your computer can be working for someone else without showing any obvious sign. A botnet is a network of infected devices that quietly follow orders from a remote controller — sending spam, stealing data, or flooding websites with traffic.

What is botnet detection?

Botnet detection is the practice of identifying compromised hosts by the network behavior their command-and-control traffic produces, rather than by matching known malware signatures alone.

A botnet has three parts: the infected devices (bots), the command-and-control server (C2) that issues orders, and the operator who runs it. The bots may be PCs, servers, routers, cameras or smart TVs. Because every bot must communicate with its controller to be useful, that control channel is the most durable place to look.

Detection has moved beyond signature lists. A signature only catches infrastructure someone has already seen and cataloged, and attackers can replace domains and servers in minutes. Behavioral detection instead baselines how hosts normally communicate — destinations, timing, volumes and protocols — and surfaces deviations that look like a control channel.

How does a botnet work?

A botnet starts with infection, usually through phishing, a malicious download, an unpatched vulnerability, or a weak password on an internet-facing device.

Once infected, the device contacts its controller to register and await orders. The controller may tell it to launch a distributed denial-of-service (DDoS) attack, send spam, mine cryptocurrency, steal credentials, or download more malware. The owner rarely notices, because the bot is designed to stay quiet between jobs.

Some botnets use a central server. Others are peer-to-peer, with bots passing orders to each other, so there is no single server to take down. That makes peer-to-peer botnets harder to dismantle, and network behavior even more important for detection.

How a botnet is organized Command-and-control server issues orders to every bot Infected PC checks in regularly Infected router quiet between jobs Smart camera no antivirus on board Infected server sends spam or DDoS Cut the control channel and the bots go quiet — that is why detection starts on the network.
A botnet: many infected devices, one controller. Illustration by Cysoro.

What are the signs of a botnet infection?

The signs are mostly behavioral: a device that is busy when it should be idle, traffic to places it has never visited, and performance problems with no clear cause.

  • High CPU, memory or network use when idle. The device works hard at 3 a.m. with nothing open.
  • Slow internet or a slow computer. The bot is using bandwidth and processing power for someone else.
  • Strange outbound connections. Connections to unfamiliar countries, odd ports, or addresses your device has never contacted.
  • Unusual DNS queries. Many lookups for random-looking domains, or a burst of failed lookups.
  • Emails or messages you did not send. Spam or phishing sent from your accounts.
  • New programs, toolbars or browser changes. Software you did not install, or settings that keep changing back.
  • Security software disabled or unable to update. Some bots kill or block antivirus updates.
  • Your IP address is blocklisted. Mail providers or websites reject traffic from your address because it sent spam or attack traffic.

No single sign proves a botnet infection. Two or three together — especially odd network activity plus poor performance — are worth investigating. If you suspect your home network, our guide to how to secure your Wi-Fi covers checking connected devices and changing router passwords.

How does beaconing detection work?

Beaconing detection looks for the regular check-in rhythm a bot keeps with its controller: it sleeps, wakes, asks for orders, and sleeps again.

The simplest detector groups connections by host pair, measures the gaps between them, and flags gaps that are too regular. A fixed 60-second sleep produces near-identical intervals that no human browsing pattern generates. MITRE tracks this transport as T1071, Application Layer Protocol, because check-ins typically ride ordinary HTTPS or DNS.

Attackers add jitter — randomizing each sleep interval — to defeat simple timing checks. Frequency-domain analysis still helps: transforming the connection timeline with a Fourier transform concentrates a recurring beacon into a peak at its check-in frequency, even when jitter widens it.

Beaconing alone is not a verdict. Legitimate software also checks in regularly: software updates, NTP time sync, telemetry agents and monitoring probes all produce periodic traffic. Corroborate a beacon candidate with destination rarity, consistent session sizes and DNS signals before treating it as malicious.

How can DNS logs reveal a botnet?

DNS logs reveal a botnet because bots must find their controller even after domains are seized, and the two main solutions both leave fingerprints in DNS.

A domain generation algorithm (DGA) creates large numbers of candidate domains on a schedule; the operator registers only a few, and each bot walks the list until one resolves. MITRE catalogs this as T1568.002, Domain Generation Algorithms. The loudest tell is sustained NXDOMAIN failures — lookups for domains that were never registered — from a single host.

Fast flux attacks the takedown model from the other side: the domain stays put while the infrastructure behind it rotates. A fast-flux domain may change IP address every few minutes, cycle through tens to hundreds of IPs per day, and resolve to inconsistent locations. Low time-to-live (TTL) values of seconds to a few minutes are another clue.

The high-yield DNS signals, in the order most teams check them, are high-entropy random-looking domains, sustained NXDOMAIN spikes, queries to never-before-seen domains, abnormally low TTLs, one domain resolving to many IPs, and inconsistent geolocation. Context matters: content delivery networks also rotate IPs and use low TTLs, so baseline your resolver logs first.

What are the main botnet detection methods?

The main methods are signature matching, behavioral analysis, DNS analysis, encrypted-channel fingerprinting, and machine learning — and in practice they work best together.

MethodWhat it looks forStrengthWeakness
Signature and IOC matchingKnown malware hashes, domains and IPsFast, low false positives on known threatsMisses anything new; lists decay quickly
Behavioral and flow analysisBeaconing, odd volumes, unusual destinationsCatches new botnets by behaviorNeeds a good baseline; tuning takes time
DNS analysisDGA domains, NXDOMAIN bursts, fast fluxVisible even when traffic is encryptedCDNs and cloud hostnames look similar
TLS fingerprintingHandshake patterns such as JA4Works without decrypting trafficFingerprints collide and drift with updates
Endpoint detectionMalicious processes, persistence, file writesConfirms exactly which process is infectedCannot see agentless IoT devices
Machine learningPatterns across flows, DNS and timingFinds subtle combinations humans missLab accuracy rarely transfers to live networks

Encrypted command-and-control is now common. When payload inspection returns nothing, TLS fingerprinting hashes the parameters a client offers during its handshake — versions, cipher suites and extensions — all visible before encryption begins. A bot ships one TLS stack, so its handshake looks the same wherever it lands. Treat a fingerprint as one correlating signal, never a verdict, because fingerprints collide and drift when clients update.

Machine learning results deserve skepticism. A 2024 study reported a 1.53% false-positive rate on the IoT-23 dataset, but against one million flows a day that rate would mean roughly 15,300 false alerts daily. Benchmark accuracy measures fit to the benchmark, not performance on a live network.

Detection methods: from lists to behavior 1. Signature listscatches only known bots 2. Flow and behavioral analysiscatches new bots 3. DNS analysis (DGA and fast flux)works on encrypted traffic 4. TLS fingerprinting (JA4)no decryption needed 5. Endpoint + network togetherstrongest combination
Layer detection methods — no single method catches every botnet. Illustration by Cysoro.

Which tools detect botnets?

Botnet detection tools fall into four groups: network monitoring, endpoint protection, DNS security, and threat intelligence feeds.

  • Intrusion detection and prevention systems (IDS/IPS) such as Snort and Suricata match known signatures and flag suspicious flows. NIST SP 800-94 is the standard guide to deploying them.
  • Network detection and response (NDR) platforms baseline traffic and flag beaconing and anomalies across the whole network.
  • Endpoint detection and response (EDR) watches processes, persistence and file changes on PCs and servers.
  • DNS filtering and logging from providers such as Quad9 or Cloudflare blocks known malicious domains and gives you the DNS logs that reveal DGA activity.
  • Flow collectors and SIEMs store NetFlow or Zeek logs so you can hunt for periodic connections and NXDOMAIN spikes over weeks, not just hours.
  • Threat intelligence feeds such as Spamhaus track known command-and-control servers; in its Botnet Threat Update for January to June 2026, Spamhaus recorded 14,952 botnet command-and-control servers, down 30% in six months, while the Sliver framework overtook Cobalt Strike as the most-encountered C2 framework, rising 58%.

For home users, the practical tools are simpler: reputable antivirus with behavioral protection, a router that logs connections, and DNS filtering. Check your public address with our free what is my IP tool when investigating a suspect device.

You can also check how a suspect domain resolves with our free DNS lookup tool.

What do real botnet attacks look like?

Real botnets show how much damage quiet devices can do. The Mirai botnet is the best-documented example, and it still shapes IoT security today.

In September 2016, Mirai flooded security journalist Brian Krebs's site with over 600 gigabits per second of traffic from hundreds of thousands of infected devices. On 21 October 2016, Mirai-based botnets attacked Dyn, a major DNS provider, disrupting Twitter, Netflix, Spotify, Amazon and GitHub for hours. Dyn later estimated up to 100,000 malicious endpoints took part, with traffic reported at around 1.2 terabits per second.

Mirai worked simply: it scanned the internet for IoT devices — cameras, DVRs, routers — and tried a short list of default usernames and passwords. Devices that still used factory credentials were infected in seconds. The source code was later released publicly, spawning many variants.

Botnets have not gone away. In March 2026, the US Justice Department and international partners dismantled infrastructure behind four botnets that had compromised more than three million IoT devices.

Cloudflare also linked record-scale DDoS attacks in late 2025 to the Aisuru-Kimwolf botnet, traced to a population of primarily Android TVs estimated at 1–4 million hosts. For unmanaged devices, the network is the only place detection can happen.

What should you do if you find a botnet infection?

Isolate first, clean second. Disconnecting the device stops it harming others and stops the operator sending new orders while you work.

  1. Isolate the device. Disconnect it from Wi-Fi and wired networks, or quarantine it on a separate network segment.
  2. Preserve evidence. Save logs, note the time you found it, and take screenshots of suspicious connections before you wipe anything.
  3. Scan with updated security software. Run a full scan, not a quick scan, and consider a second-opinion scanner.
  4. Remove persistence. Check scheduled tasks, startup items, services and browser extensions for anything unfamiliar.
  5. Change credentials. Change passwords used on the device, and any accounts it accessed, from a clean device.
  6. Update and patch. Apply operating system and firmware updates, and change every default password — especially on routers and IoT devices.
  7. Monitor after cleanup. Watch DNS and flow logs for a week. If beaconing returns, the infection survived or the device was re-infected.
  8. Report it. Businesses should tell their security team; in the US, significant incidents can be reported to CISA and the FBI's Internet Crime Complaint Center.
Do not just reboot and hopeRebooting may stop a bot temporarily, but malware with persistence will restart with the device. Clean it, patch it, and monitor it — or wipe and reinstall if you cannot be sure it is gone.

How do you prevent botnet infections?

Prevention is mostly hygiene: patch promptly, use strong unique passwords, and reduce what the internet can reach.

  • Change default passwords on every router, camera and smart device before connecting it.
  • Patch devices and software as soon as updates appear, including firmware for IoT devices.
  • Segment your network. Put IoT devices on a separate network from PCs and servers, so one infected camera cannot reach your files.
  • Block unnecessary outbound traffic. A camera has no reason to contact servers in countries you never visit.
  • Use DNS filtering to block known malicious domains before devices can resolve them.
  • Train people against phishing, still the most common infection route for PCs. Our spear phishing guide shows how targeted attacks deliver malware.
  • Monitor continuously. A baseline of normal traffic turns a new beacon into an alert instead of background noise.

For a wider starting point, our small business cybersecurity checklist covers patching, backups and device security alongside network monitoring.

The bottom line

Botnet detection works best when you watch behavior, not just signatures. Beaconing, strange DNS lookups and odd traffic patterns reveal bots that no blocklist has seen yet.

Start with the basics: baseline your normal traffic, log DNS, keep devices patched, and change default passwords. Then check your own setup with the free DNS lookup tool — and if a device looks infected, isolate it before you clean it.

Frequently asked questions

What is botnet detection?

Botnet detection is finding devices that have been secretly taken over and are following orders from a remote controller. It usually works by watching network traffic for regular check-ins, strange DNS lookups and other behavior that normal devices do not show.

How do I know if my computer is part of a botnet?

Look for a slow computer, high CPU or network use when idle, strange outbound connections, new browser toolbars, and antivirus warnings. A full scan with reputable security software and a check of your router's connected devices are good first steps.

What is beaconing in botnet detection?

Beaconing is the regular check-in rhythm a bot keeps with its command-and-control server: it sleeps, wakes, asks for orders, and sleeps again. Detection tools look for connections that repeat at unusually regular intervals, even when the attacker adds random jitter.

Can antivirus detect botnets?

Antivirus can detect known botnet malware by signature, and many products also watch behavior. It is weaker against new or fileless bots and against infected smart devices that cannot run antivirus at all, which is why network monitoring matters.

What is a DGA domain?

A domain generation algorithm creates large numbers of candidate domain names on a schedule. The botnet operator registers only a few, and each bot tries the list until one resolves. Many failed lookups to random-looking domains are a classic botnet sign.

What should I do if I find a botnet on my network?

Isolate the device from the network, do not just reboot it, then scan it with updated security software, remove the malware, change passwords used on it, and check for persistence such as scheduled tasks. For a business, tell your security team and preserve logs.

Do botnets only infect computers?

No. Routers, cameras, smart TVs, DVRs and other internet-connected devices are common botnet members because they often run weak default passwords and rarely get updates. The Mirai botnet famously infected hundreds of thousands of such devices.

Is botnet detection the same as intrusion detection?

No, but they overlap. Intrusion detection looks for many kinds of attacks, while botnet detection focuses on the ongoing command-and-control traffic of compromised hosts. A good intrusion detection system is one of several tools used for botnet detection.

Sources

  1. Vectra AI — Botnet detection techniques: a practitioner's guide
  2. MITRE ATT&CK — Technique T1071: Application Layer Protocol
  3. MITRE ATT&CK — Technique T1568: Dynamic Resolution
  4. US House Committee on Energy and Commerce — Understanding the Role of Connected Devices in Recent Cyber Attacks
  5. CISA — Understanding and Responding to Distributed Denial-of-Service Attacks
  6. NIST — Guide to Intrusion Detection and Prevention Systems (SP 800-94)
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Vectra AI's botnet detection guide, MITRE ATT&CK techniques T1071 and T1568, and CISA DDoS guidance.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free