0Pricing
Cyber Security Academy · Lesson

Detecting Anomalies

Spot malicious traffic.

Detecting Anomalies is a free Cyber Security Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Normal vs Abnormal

Detecting anomalies means spotting traffic that deviates from a network's baseline. You cannot recognize abnormal until you know normal.

This lesson covers the common patterns that betray malicious activity.

Port Scans

A port scan appears as one source touching many ports on a host, often with SYN packets that get RST replies.

A burst of SYNs across sequential ports from a single IP is a classic signature.

10.0.0.9 -> host:22  SYN -> RST
10.0.0.9 -> host:23  SYN -> RST
10.0.0.9 -> host:80  SYN -> SYN-ACK
(one src, many ports = scan)

Beaconing

Malware often beacons: it contacts a command-and-control server at regular intervals. The tell is periodic, similarly sized connections to the same destination.

Look for clockwork timing that human browsing never has.

Connections to 185.x.x.x:443
  12:00:03  12:05:03  12:10:02
(every ~300s = beacon)

DNS Tunneling

DNS tunneling smuggles data inside DNS queries. The signature is many long, random-looking subdomains under one domain.

High query volume to a single domain with encoded labels is suspicious.

DNS query: a7f3k9d2.tunnel.bad.com
DNS query: x1m4p8q0.tunnel.bad.com
(long random labels = exfil/tunnel)

Unexpected Protocols

Watch for protocols on the wrong ports: SSH on 443, or raw TCP where you expect HTTPS.

Attackers hide traffic on common ports to slip past firewalls. Wireshark's protocol detection helps spot the mismatch.

Large Outbound Transfers

A workstation suddenly sending gigabytes outbound can indicate data exfiltration.

Use Statistics Conversations and sort by bytes to find hosts pushing unusual volumes to external IPs.

Statistics -> Conversations
Sort by Bytes (A->B)
Watch internal host -> unknown external

Suspicious User Agents

In HTTP, odd or empty User-Agent strings can flag automated tools or malware that did not bother to disguise itself.

Filter for unusual agents to surface scripted clients.

http.user_agent contains 'curl'
http.user_agent contains 'python'
http.user_agent == ''

Failed Connection Storms

Many RST packets or repeated SYNs without completion can indicate scanning, brute forcing, or a denial-of-service attempt.

A spike in half-open connections is worth investigating.

tcp.flags.reset == 1
tcp.flags.syn == 1 and tcp.flags.ack == 0

ARP and Spoofing

On local networks, watch for ARP anomalies: two IPs claiming the same MAC, or rapid ARP replies. These suggest man-in-the-middle or ARP spoofing.

Wireshark flags duplicate-address ARP automatically.

Correlate, Do Not Jump

A single odd packet rarely proves an attack. Build confidence by correlating multiple indicators across time and hosts.

One beacon plus a known-bad domain plus a large transfer is a strong case; any one alone is weak.

Tools That Help

Beyond Wireshark, tools like Zeek and Suricata turn raw packets into structured logs and alerts at scale.

They automate much of the anomaly detection you would otherwise do by hand.

Quick Check

Test your understanding of anomaly detection.

Recap

You learned to detect anomalies in traffic.

  • Port scans: one source, many ports.
  • Beaconing: regular timed C2 connections.
  • DNS tunneling: long random subdomains.
  • Watch wrong-port protocols, large outbound transfers, RST storms, ARP spoofing.
  • Correlate multiple indicators; use Zeek and Suricata at scale.

Next you will extract files and credentials from captures.

Frequently asked questions

Is the “Detecting Anomalies” lesson free?

Yes — the full text of “Detecting Anomalies” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Detecting Anomalies”?

Spot malicious traffic. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Detecting Anomalies” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Capturing Packets
  2. Reading Protocols
  3. Detecting Anomalies
  4. Extracting Artifacts
← Back to Cyber Security Academy