1---
2name: hunting-for-command-and-control-beaconing
3description: "Detect C2 beaconing patterns in network traffic using frequency analysis, jitter detection, and domain reputation to identify compromised endpoints communicating with adversary infrastructure."
4category: devops-and-infra
5source_repo: mukul975/Anthropic-Cybersecurity-Skills
6source_path: "skills/hunting-for-command-and-control-beaconing/SKILL.md"
7source_url: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/HEAD/skills/hunting-for-command-and-control-beaconing/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/thedixitjain/hunting-for-command-and-control-beaconing
10---
11
12
13# Hunting for Command and Control Beaconing
14
15## When to Use
16
17- When proactively hunting for compromised systems in the network
18- After threat intel indicates C2 frameworks targeting your industry
19- When investigating periodic outbound connections to suspicious domains
20- During incident response to identify active C2 channels
21- When DNS query logs show unusual patterns to specific domains
22
23## Prerequisites
24
25- Network proxy/firewall logs with full URL and timing data
26- DNS query logs (passive DNS, DNS server logs, or Sysmon Event ID 22)
27- Zeek/Bro network connection logs or NetFlow data
28- SIEM with statistical analysis capabilities (Splunk, Elastic)
29- Threat intelligence feeds for domain/IP reputation
30
31## Workflow
32
331. **Identify Beaconing Characteristics**: Define what constitutes beaconing (regular intervals, small payload sizes, consistent destinations, jitter patterns).
342. **Collect Network Telemetry**: Aggregate proxy logs, DNS queries, and connection metadata for analysis.
353. **Apply Frequency Analysis**: Identify connections with regular intervals using statistical methods (standard deviation, coefficient of variation).
364. **Filter Known-Good Traffic**: Exclude legitimate periodic traffic (Windows Update, AV updates, heartbeat services, NTP).
375. **Analyze Domain/IP Reputation**: Check identified beaconing destinations against threat intel, WHOIS data, and certificate transparency logs.
386. **Investigate Endpoint Context**: Correlate beaconing activity with process creation, user context, and file system changes on source endpoints.
397. **Confirm and Respond**: Validate C2 activity, block communication, and initiate incident response.
40
41## Key Concepts
42
43| Concept | Description |
44|---------|-------------|
45| T1071 | Application Layer Protocol (HTTP/HTTPS/DNS C2) |
46| T1071.001 | Web Protocols (HTTP/S beaconing) |
47| T1071.004 | DNS (DNS tunneling C2) |
48| T1573 | Encrypted Channel |
49| T1572 | Protocol Tunneling |
50| T1568 | Dynamic Resolution (DGA, fast-flux) |
51| T1132 | Data Encoding in C2 |
52| T1095 | Non-Application Layer Protocol |
53| Beacon Interval | Time between C2 check-ins |
54| Jitter | Random variation in beacon interval |
55| DGA | Domain Generation Algorithm |
56| Fast-Flux | Rapidly changing DNS resolution |
57
58## Tools & Systems
59
60| Tool | Purpose |
61|------|---------|
62| RITA (Real Intelligence Threat Analytics) | Automated beacon detection in Zeek logs |
63| Splunk | Statistical beacon analysis with SPL |
64| Elastic Security | ML-based anomaly detection for beaconing |
65| Zeek/Bro | Network connection metadata collection |
66| Suricata | Network IDS with JA3/JA4 fingerprinting |
67| VirusTotal | Domain and IP reputation checking |
68| PassiveDNS | Historical DNS resolution data |
69| Flare | C2 profile detection |
70
71## Common Scenarios
72
731. **Cobalt Strike Beacon**: HTTP/HTTPS beaconing with configurable sleep time and jitter to malleable C2 profiles.
742. **DNS Tunneling C2**: Data exfiltration and command receipt via encoded DNS TXT/CNAME queries to attacker-controlled domains.
753. **Sliver C2 over HTTPS**: Modern C2 framework using HTTPS with configurable beacon intervals and domain fronting.
764. **DGA-based C2**: Malware generating random domains daily, with adversary registering upcoming domains for C2.
775. **Legitimate Service Abuse**: C2 over legitimate cloud services (Azure, AWS, Slack, Discord, Telegram).
78
79## Output Format
80
81```
82Hunt ID: TH-C2-[DATE]-[SEQ]
83Source IP: [Internal IP]
84Source Host: [Hostname]
85Destination: [Domain/IP]
86Protocol: [HTTP/HTTPS/DNS/Custom]
87Beacon Interval: [Average seconds]
88Jitter: [Percentage]
89Connection Count: [Total connections]
90Data Volume: [Bytes sent/received]
91First Seen: [Timestamp]
92Last Seen: [Timestamp]
93Domain Age: [Days]
94TI Match: [Yes/No - source]
95Risk Level: [Critical/High/Medium/Low]
96```
97
98---
99
100**Source:** [`mukul975/Anthropic-Cybersecurity-Skills`](https://github.com/mukul975/Anthropic-Cybersecurity-Skills) → `skills/hunting-for-command-and-control-beaconing/SKILL.md`