Command and Control
Cheat sheet · https://pcornel.dk/topic.php?topic=4916
Answer
Command and control (C2) is how attackers communicate with compromised systems to send commands and receive data, often hidden in normal traffic such as HTTPS or DNS. Detection looks for beaconing patterns, rare destinations and unusual protocol use.
Remember
- Connection to suspicious infrastructure ≠ command-and-control confirmed.
- Encrypted traffic ≠ hidden C2; content may be unavailable while endpoint and session metadata still provide evidence.
- ATT&CK classification ≠ proof of detection, prevention, attribution or complete security coverage.
- ATT&CK is versioned; current object names and relationships must be checked against the pinned release, not remembered from an older matrix.
First checks
- Beaconing analysis (regular intervals) — C2 detection
- DNS/proxy logs for rare domains — unusual destinations
- JA3/JA4 TLS fingerprints — client identification
Verify in this order
implant → C2 channel → attacker
Where it usually breaks
First mismatch in event source → collection → parsing/normalization → enrichment/correlation → detection/alert → analyst/automation response → outcome; preserve identity/policy/pre-state before mutation.
MITRE ATT&CK → Command and Control evidence map
| Boundary | Establish | Does not establish |
|---|---|---|
| Version | Domain/release and current object identity | Tree label alone does not prove current ATT&CK semantics |
| Mapping | Behavior matches tactic/technique/sub-technique definition | Mapping does not prove maliciousness or attribution |
| Procedure | Source describes a concrete implementation | Example does not make every use malicious |
| Defensive mapping | Required data and analytic are identified | Mapping does not prove telemetry exists or analytic works |
| Validation | Known behavior produces expected evidence/detection | One test does not prove complete ATT&CK coverage |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4916