4 min read

How to Detect Cobalt Strike Beacon Traffic: 5 Indicators and a Practical Walkthrough

Cobalt Strike is a red-team favorite and a fixture of APT groups alike. Using a real malicious traffic sample, this article explains five identifiable characteristics of Beacon communication — and how to find all of them in a single capture file with PcapDecoder.

How to Detect Cobalt Strike Beacon Traffic: 5 Indicators and a Practical Walkthrough
SummaryKey Points
  • Beacon's core characteristics: periodicity, fixed URIs, HTTPS camouflage, JARM fingerprints, and traces of Malleable configuration
  • Sample evidence: the pre-stage in which SSLoad downloads the CS DLL (C2 never responds)
  • PcapDecoder's deep scan automatically flags suspicious domains and Beacon rhythms
  • Response order once detected: isolate → hash for forensics → archive IOCs

What Is a Beacon

The way Cobalt Strike (CS) works can be summed up in one sentence: compromised hosts periodically "phone home." The implanted Beacon calls back to the C2 server at a configured interval (60 seconds by default, with 30–50% jitter) to pick up tasks or return results. Red teams use it to simulate APT attacks; real attackers use it for genuine intrusions.

For traffic analysis, this is both good news and bad news:

  • Good news: regularity itself is the biggest giveaway. Normal business traffic is either highly random (human-driven) or highly regular with obvious characteristics (monitoring check-ins); Beacon's "fixed interval plus jitter" sits between the two, giving it a unique statistical fingerprint.
  • Bad news: these days a great deal of Beacon traffic runs over HTTPS, uses CDN domains, and even reuses URIs from legitimate websites — invisible to the naked eye.

Five Identification Indicators

Indicator 1: Periodic heartbeat traffic

Sort traffic to the same destination IP/domain by time and compute the intervals between adjacent requests. Beacon intervals follow a "fixed value ± jitter percentage" distribution, while human business traffic shows a long-tailed random distribution.

Indicator 2: Fixed URIs and a suspicious User-Agent

A Malleable C2 profile lets attackers customize the appearance of HTTP requests, but URI paths are usually fixed (disguised paths like /submit.php or /js/jquery.min.js), and request body sizes are suspiciously consistent. The User-Agent is often a rare browser string — or simply the default config, left unchanged.

Indicator 3: TLS certificate anomalies

Self-signed certificates, a certificate subject that doesn't match the domain, abnormally long validity periods (some CS configurations set certificates to expire in 100 years), or a JARM fingerprint that hits a known C2 fingerprint library — all of these are strong signals.

Indicator 4: DNS query domain patterns

If the callback domain is DGA-generated (meaningless letter strings, unusual TLDs), or the domain registration is very recent, combined with the heartbeat rhythm you can basically draw a conclusion.

Indicator 5: Inverted traffic volumes

Beacon heartbeats are typically far heavier downstream than upstream (fetching tasks), while the traffic needed to maintain the connection itself is small. If you see an HTTPS session that, for a long time, only sends small packets regularly in one direction, it's worth a closer look.

Hands On: Analysis in PcapDecoder

Once you have a suspicious pcap, follow these four steps:

Step 1: Open the file and start with the conversation list. After parsing, PcapDecoder's top conversations are sorted by traffic volume. Beacon conversations usually don't move much traffic but tend to have many connections.

Step 2: Run a deep scan. One click triggers threat fingerprints, DGA scoring, Beacon rhythm analysis, and DNS tunneling detection. Hits are listed directly, with evidence packet numbers.

!Deep scan

Step 3: Check the attack timeline. Suspicious events found by the scan are linked chronologically. Beacon detection is obvious on the timeline: evenly spaced heartbeat points line up in neat rows.

!Attack timeline

Step 4: Archive the forensics. Compute the SHA-256 of the sample file, record IOCs (domain, IP, URI, certificate hash), and escalate through your internal process.

Sample Evidence

The Malware Traffic Analysis 2024-04-18 sample is a classic teaching case: the victim host is first controlled by the SSLoad loader, then downloads the Cobalt Strike DLL. Interestingly, in this sample the CS Beacon communication never actually happens (the C2 server doesn't respond) — the traffic stops at the pre-stage of "download complete, preparing to call back."

This illustrates exactly the value of traffic analysis: every link in the attack chain leaves traces — you don't have to wait for malicious traffic to start flowing to find it. When analyzing this sample in PcapDecoder, the deep scan accurately flagged:

  • The HTTP session that downloaded the CS DLL, along with its anomalous URI;
  • The legitimate service domains in the DNS queries (openweathermap, ipify, etc.) were correctly identified as benign, with no false positives.

False positive control matters as much as detection rates — a security tool that flags normal traffic as threats gets switched off within a week.

What to Do After Detection

  1. Isolate first: disconnect the suspicious host from the network (VLAN isolation or unplug it); don't rush to power it off — you'll lose clues held in memory;
  2. Preserve evidence: compute the SHA-256 of the pcap and the memory image — PcapDecoder's forensics panel provides them directly;
  3. Expand IOC hunting: take the C2 domains/IPs and search across firewalls, DNS logs, and EDR for the full time range to determine the lateral scope;
  4. Review and codify: turn URI patterns, certificate characteristics, and heartbeat intervals into detection rules so the next attack of the same kind is caught immediately.

Related reading: "How to Detect Formbook's DGA Domains" and "Identifying NetSupport RAT Traffic".

Cobalt StrikeBeaconC2threat detectionsecurity analysis
Share
Back to home