The OPSEC baseline is the set of rules an authorized command and control operation runs under, agreed before the first beacon and enforced until teardown is verified. It is not a stealth contest. It is the discipline that keeps an authorized test inside its scope, its hours, and its data limits, and that leaves the client network exactly as it was found. This sub-skill belongs under c2-redirectors because the redirector tier is where most baseline failures show up first, in its logs, its certificates, and its domains.
Quick Workflow
- Read the rules of engagement and extract every operational limit into a written baseline.
- Assign one infrastructure set per engagement, including domains, certificates, hosts, and beacon profiles.
- Set approved hours, sleep and jitter ranges, and exfiltration caps, and record them where operators can see them.
- Start logging before the first beacon, with operator attribution on every action.
- Review redirector and team server logs daily for burn signals.
- Rotate on a pre-agreed trigger, never by improvisation mid-engagement.
- Run the full teardown checklist, and verify silence before declaring closure.
1. Infrastructure separation
One engagement, one infrastructure set. Domains, certificates, redirector hosts, team server hosts, beacon profiles, and implant builds are never shared across clients or engagements. Sharing links operations together in passive DNS, certificate transparency logs, and file hashes, and it turns one engagement burn into a burn for every other engagement that shared the infrastructure.
# Write the engagement inventory before anything goes live
cat > /tmp/c2-baseline-inventory.txt <<'EOF'
engagement: 2026-10-acme
redirector: cdn-updates.example.net (host 203.0.113.10, port 443)
team server: 10.0.0.5 (operator network only, never target facing)
certificate: c2.crt, issued for cdn-updates.example.net, 90 days
beacon profile: engagement.profile, sleep 60, jitter 30
approved hours: 08:00 to 18:00, weekdays only
exfiltration cap: 100 MB total, justified per file
EOF
cat /tmp/c2-baseline-inventory.txt
Keep the inventory in the engagement working directory, and update it the same day anything changes. A stale inventory is how a retired domain keeps beaconing unnoticed, or a forgotten host stays live after the engagement ends.
2. Hours, timing, and session hygiene
Approved hours are a scope limit, not a suggestion. Beacons outside agreed hours create alerts the client did not agree to investigate, and they erode trust in the whole test. Sleep and jitter define the beacon rhythm. Short sleep with no jitter is a metronome that network anomaly detection spots quickly. Long sleep with high jitter looks more like human browsing but slows tasking. Agree the ranges with the test lead, implement them in the profile and implant config, and do not adjust them by hand per beacon unless the baseline allows it.
# Check a planned beacon rhythm against the baseline before go-live
sleep_seconds = 60
jitter_percent = 30
low = sleep_seconds * (1 - jitter_percent / 100)
high = sleep_seconds * (1 + jitter_percent / 100)
print(f"beacon interval range: {low:.0f} to {high:.0f} seconds")
print(f"check-ins per hour, fastest: {3600 / low:.0f}")
print(f"check-ins per hour, slowest: {3600 / high:.0f}")
Session hygiene follows the same least principle. Keep sessions short, drop idle sessions, never leave an interactive shell open overnight on a production host, and never task a session you cannot attribute to an in-scope target. One operator per session per phase keeps the report clean.
3. Logging, burn signals, and teardown
Logging starts before the first beacon. Log session start and end, target, operator, every task issued, every file transferred with its size and justification, and every pivot opened and closed. Keep team server logs for the retention period in the contract, then destroy them as agreed. Review redirector logs daily. A spike in rejected requests, a blocklist hit, or probing from an unknown scanner are burn signals, and the baseline should name the response in advance, usually rotation to a pre-staged spare domain.
# Daily burn-signal check on the redirector log
grep -c "404" /var/log/nginx/access.log
grep "404" /var/log/nginx/access.log | tail -20
# Teardown checklist at engagement end
# - Kill every beacon and implant session
# - Stop every listener and the team server
# - Watch redirector logs go silent for a full beacon interval
# - Delete the redirector and team server hosts
# - Revoke certificates and release or park domains
# - Archive logs for the report, then destroy working credential copies
Verify silence for at least one full beacon interval past the longest sleep configured before declaring the engagement closed. A single stray beacon after closure is an incident, not a rounding error.
Edge cases
- The blue team detects the operation early. That is a successful detection test. Coordinate next steps with the test lead instead of going quieter unilaterally.
- A beacon misbehaves on a production host. Kill it immediately, inform the test lead, and help verify the host is healthy.
- The agreed window changes mid-engagement. Update the baseline and the profile the same day, because stale profiles cause false alarms.
- Infrastructure gets blocklisted. Rotate per the plan, or accept the block as a defensive win and continue within the new constraints.
- An operator leaves the engagement. Revoke their team server access the same day, and reassign their sessions.
Detection and defender view
This sub-skill is written from the operator side of a cooperative test, and the defender view is the point. Every baseline choice should be explainable afterward, meaning why this protocol, why this timing, why this domain, and what it looked like in the logs. Good baseline OPSEC in an authorized test means the blue team gets clean signal from a disciplined operation, not that they get nothing.
Key references
- MITRE ATT&CK T1071 Application Layer Protocol
- MITRE ATT&CK T1090 Proxy
- MITRE ATT&CK T1573 Encrypted Channel
- NIST SP 800-115 Technical Guide to Information Security Testing
- nginx docs: https://nginx.org/en/docs/
