A red team operation succeeds or fails in planning, long before anyone
runs a command. The plan answers five questions in writing: what are we
trying to prove, what may we touch, what must we never do, how do
defenders tell our activity apart from a real attack, and how will we
stop safely. Everything in this skill assumes written authorization,
a named engagement lead on each side, and targets the client owns or
is authorized to test. Without those, there is no operation.
Quick Workflow
- Hold a scoping call and record objectives, business context, and
the threat model the operation should mirror.
- Write the scope as explicit allow and deny lists: networks, hosts,
accounts, applications, and time windows.
- Draft rules of engagement: permitted techniques, forbidden effects,
data handling rules, and safety controls.
- Agree deconfliction: contacts, code words, notification paths, and
how defenders escalate a suspected real incident during the window.
- Set stop conditions and a kill switch, tested before execution
starts, not during an incident.
- Plan communications: daily updates, a shared log, and an
out-of-band channel if normal channels are in scope.
- Execute in phases with checkpoints, so scope or safety problems
surface early while they are still cheap to fix.
- Report findings tied to objectives, with evidence, impact, and
detection recommendations, then hold a debrief and confirm cleanup.
1. Objectives tied to threats
An objective states what the client wants to learn, in testable form.
Weak objective: test our security. Strong objective: determine whether
the SOC detects credential dumping on finance workstations within one
hour and whether the response playbook contains it. Tie each objective
to a threat the client actually faces, and to the control that should
stop it, so the report can say pass or fail instead of maybe.
<!-- objectives.md - one file per engagement, version controlled -->
# Objectives - ENG-2026-114
## O1 - Detection of credential access
- Threat: credential theft leading to domain escalation
- Technique: T1003.001 LSASS memory access
- Target group: finance workstations in scope list
- Success measure: EDR or SIEM alert within 60 minutes, correct host
## O2 - Lateral movement visibility
- Threat: workstation to server movement over SMB and WinRM
- Techniques: T1021.001, T1021.002
- Success measure: at least one alert per movement path attempted
# Keep planning artifacts version controlled and reviewable.
mkdir -p engagements/ENG-2026-114
cd engagements/ENG-2026-114
git init -q
cat > scope.md << 'EOF'
# Scope - ENG-2026-114
## In scope
- 10.20.30.0/24 lab and finance workstation VLAN
- app-test.example.internal (staging only)
## Out of scope
- production databases, mail servers, all of 10.20.40.0/24
- customer data, real credentials, safety-critical systems
- social engineering of staff outside the agreed pretext list
EOF
git add scope.md objectives.md && git commit -q -m "Initial scope and objectives"
2. Rules of engagement and safety
Rules of engagement are the contract that keeps an authorized test
from becoming an incident. They list permitted techniques, forbidden
effects (no ransomware-style encryption, no data destruction, no
denial of service, no exfiltration of real data), data handling rules
for anything collected, and who may approve an exception. Safety
controls include time windows, rate limits on aggressive techniques,
backups verified before destructive-adjacent tests, and a named person
with authority to halt the operation at any moment.
# rules-of-engagement.yaml - signed by both sides before start
engagement: ENG-2026-114
window: "2026-11-03 to 2026-11-07, 08:00 to 18:00 Europe/Brussels"
permitted:
- phishing simulation to the agreed target list only
- credential access tests on lab hosts
- lateral movement inside the in-scope VLAN
forbidden:
- encryption or deletion of any data
- denial of service testing
- exfiltration of real customer or employee data
- testing of out-of-scope systems for any reason
data_handling:
- collected data stays in the engagement vault, encrypted at rest
- screenshots and logs redacted before leaving the vault
- all copies deleted within 30 days of the final report
stop_conditions:
- engagement lead calls a halt
- any out-of-scope system is touched
- a real incident is declared by the SOC
# Pre-flight safety check, run and logged before day one execution.
# Every line must print PASS before the operation starts.
echo "authorization signed:" && test -f authorization-signed.pdf && echo PASS
echo "scope list current:" && test -f scope.md && echo PASS
echo "backup verified for lab hosts:" && test -f backups-verified.txt && echo PASS
echo "deconfliction contacts confirmed:" && test -f contacts-confirmed.txt && echo PASS
echo "kill switch tested:" && test -f kill-switch-tested.txt && echo PASS
3. Deconfliction and communications
Deconfliction is how defenders avoid burning a real incident response
on your test, and how you avoid masking a real attack with your noise.
Agree a code word or ticket tag that marks red team activity, a phone
number that always reaches a human on each side, and a rule: if the
SOC cannot confirm an alert is yours within an agreed window, they
treat it as real and you stop. Keep an out-of-band channel (a phone
call or a separate chat) in case the systems you test include email
or chat itself.
#!/usr/bin/env python3
"""Daily engagement log: every action, timestamped, shared with blue."""
log = [
{"time": "2026-11-03 09:15", "action": "phishing simulation sent",
"targets": "agreed list, 25 users", "result": "3 clicks, 0 credentials"},
{"time": "2026-11-03 11:40", "action": "credential access test, lab host",
"targets": "WS-LAB-01", "result": "EDR alert in 8 minutes"},
{"time": "2026-11-03 14:05", "action": "lateral movement attempt",
"targets": "WS-LAB-01 to SRV-LAB-02", "result": "blocked, no alert"},
]
for entry in log:
print(f"{entry['time']} - {entry['action']} - {entry['result']}")
print("shared with blue team lead at end of day, unredacted inside the vault")
4. Reporting and debrief
The report maps every finding back to an objective, with evidence
(timestamps, commands, tool output), the control that should have
caught it, and a concrete detection or hardening recommendation. Rate
findings by what an attacker could do next, not by how clever the
technique felt. Close with a debrief both sides attend, a cleanup
checklist (accounts removed, agents uninstalled, persistence
reverted, credentials rotated), and a retest date for the gaps found.
# Cleanup verification, run at the end of every engagement.
# Each check must pass before the engagement is declared closed.
echo "red team accounts removed:" && grep -r "redteam" /etc/passwd || echo PASS
echo "test agents uninstalled from lab hosts: confirmed by asset list"
echo "persistence mechanisms reverted: startup, tasks, services reviewed"
echo "credentials used during testing rotated: confirmed by client"
echo "collected data deletion scheduled: 30 days after final report"
Edge cases
- Scope is vague or verbal. Do not start. Get the allow and deny
lists in writing, signed, with networks and hostnames, not just
"the office network".
- The client wants production tested with aggressive techniques.
Offer a lab-first plan and limit production to read-only, low-risk
techniques, or decline the risky portion in writing.
- A real incident happens during the window. Stop immediately, hand
all logs to incident response, and do not resume until they clear
you, even if the schedule slips.
- Defenders detect and block everything on day one. That is a good
result. Pivot to testing visibility (would audit logs show it),
reporting accuracy, and response time rather than forcing bypasses.
- Findings are disputed. Evidence decides: timestamps, tool output,
and detection logs, presented technique by technique, not opinion.
- The operation overruns its window. Stop at the agreed end time
unless both leads sign an extension; an expired authorization is
the same as no authorization.
Key references
- MITRE ATT&CK framework at https://attack.mitre.org
- CISA red team guidance and assessment methodology publications
- Related skills in this repo: soc-adversary-emulation-caldera for
technique-by-technique emulation, soc-caldera-operations for the
tooling that runs it, purple-team-exercises for the joint
red and blue loop, siem-detections for turning findings into rules.
1---2name: soc-red-team-planning3description: Use when planning an authorized red team operation from4 first scoping call to final report. Covers defining objectives tied5 to real threats, setting scope and out-of-scope systems, writing6 rules of engagement, safety controls and stop conditions, deconfliction7 with defenders and incident response, communications planning, and8 reporting findings as measurable detection and control gaps. Use when9 a client or an internal team asks for a red team assessment, a10 purple team exercise, or an adversary emulation engagement.11version: "1.0.0"12domain: soc13lifecycle: stable14last_verified: "2026-10-27"15requires: []16extends: []17relates: [purple-team-exercises, soc-adversary-emulation-caldera, soc-caldera-operations, threat-hunting, siem-detections]18tools:19 - name: Python20 version: "3.12"21 - name: Git22 version: "2.47"23metadata:24 source: https://skillmd.com/skills/mizazhaider-ceh/soc-red-team-planning25---2627A red team operation succeeds or fails in planning, long before anyone28runs a command. The plan answers five questions in writing: what are we29trying to prove, what may we touch, what must we never do, how do30defenders tell our activity apart from a real attack, and how will we31stop safely. Everything in this skill assumes written authorization,32a named engagement lead on each side, and targets the client owns or33is authorized to test. Without those, there is no operation.3435## Quick Workflow36371. Hold a scoping call and record objectives, business context, and38 the threat model the operation should mirror.392. Write the scope as explicit allow and deny lists: networks, hosts,40 accounts, applications, and time windows.413. Draft rules of engagement: permitted techniques, forbidden effects,42 data handling rules, and safety controls.434. Agree deconfliction: contacts, code words, notification paths, and44 how defenders escalate a suspected real incident during the window.455. Set stop conditions and a kill switch, tested before execution46 starts, not during an incident.476. Plan communications: daily updates, a shared log, and an48 out-of-band channel if normal channels are in scope.497. Execute in phases with checkpoints, so scope or safety problems50 surface early while they are still cheap to fix.518. Report findings tied to objectives, with evidence, impact, and52 detection recommendations, then hold a debrief and confirm cleanup.5354## 1. Objectives tied to threats5556An objective states what the client wants to learn, in testable form.57Weak objective: test our security. Strong objective: determine whether58the SOC detects credential dumping on finance workstations within one59hour and whether the response playbook contains it. Tie each objective60to a threat the client actually faces, and to the control that should61stop it, so the report can say pass or fail instead of maybe.6263```markdown64<!-- objectives.md - one file per engagement, version controlled -->65# Objectives - ENG-2026-11466## O1 - Detection of credential access67- Threat: credential theft leading to domain escalation68- Technique: T1003.001 LSASS memory access69- Target group: finance workstations in scope list70- Success measure: EDR or SIEM alert within 60 minutes, correct host71## O2 - Lateral movement visibility72- Threat: workstation to server movement over SMB and WinRM73- Techniques: T1021.001, T1021.00274- Success measure: at least one alert per movement path attempted75```7677```bash78# Keep planning artifacts version controlled and reviewable.79mkdir -p engagements/ENG-2026-11480cd engagements/ENG-2026-11481git init -q82cat > scope.md << 'EOF'83# Scope - ENG-2026-11484## In scope85- 10.20.30.0/24 lab and finance workstation VLAN86- app-test.example.internal (staging only)87## Out of scope88- production databases, mail servers, all of 10.20.40.0/2489- customer data, real credentials, safety-critical systems90- social engineering of staff outside the agreed pretext list91EOF92git add scope.md objectives.md && git commit -q -m "Initial scope and objectives"93```9495## 2. Rules of engagement and safety9697Rules of engagement are the contract that keeps an authorized test98from becoming an incident. They list permitted techniques, forbidden99effects (no ransomware-style encryption, no data destruction, no100denial of service, no exfiltration of real data), data handling rules101for anything collected, and who may approve an exception. Safety102controls include time windows, rate limits on aggressive techniques,103backups verified before destructive-adjacent tests, and a named person104with authority to halt the operation at any moment.105106```yaml107# rules-of-engagement.yaml - signed by both sides before start108engagement: ENG-2026-114109window: "2026-11-03 to 2026-11-07, 08:00 to 18:00 Europe/Brussels"110permitted:111 - phishing simulation to the agreed target list only112 - credential access tests on lab hosts113 - lateral movement inside the in-scope VLAN114forbidden:115 - encryption or deletion of any data116 - denial of service testing117 - exfiltration of real customer or employee data118 - testing of out-of-scope systems for any reason119data_handling:120 - collected data stays in the engagement vault, encrypted at rest121 - screenshots and logs redacted before leaving the vault122 - all copies deleted within 30 days of the final report123stop_conditions:124 - engagement lead calls a halt125 - any out-of-scope system is touched126 - a real incident is declared by the SOC127```128129```bash130# Pre-flight safety check, run and logged before day one execution.131# Every line must print PASS before the operation starts.132echo "authorization signed:" && test -f authorization-signed.pdf && echo PASS133echo "scope list current:" && test -f scope.md && echo PASS134echo "backup verified for lab hosts:" && test -f backups-verified.txt && echo PASS135echo "deconfliction contacts confirmed:" && test -f contacts-confirmed.txt && echo PASS136echo "kill switch tested:" && test -f kill-switch-tested.txt && echo PASS137```138139## 3. Deconfliction and communications140141Deconfliction is how defenders avoid burning a real incident response142on your test, and how you avoid masking a real attack with your noise.143Agree a code word or ticket tag that marks red team activity, a phone144number that always reaches a human on each side, and a rule: if the145SOC cannot confirm an alert is yours within an agreed window, they146treat it as real and you stop. Keep an out-of-band channel (a phone147call or a separate chat) in case the systems you test include email148or chat itself.149150```python151#!/usr/bin/env python3152"""Daily engagement log: every action, timestamped, shared with blue."""153log = [154 {"time": "2026-11-03 09:15", "action": "phishing simulation sent",155 "targets": "agreed list, 25 users", "result": "3 clicks, 0 credentials"},156 {"time": "2026-11-03 11:40", "action": "credential access test, lab host",157 "targets": "WS-LAB-01", "result": "EDR alert in 8 minutes"},158 {"time": "2026-11-03 14:05", "action": "lateral movement attempt",159 "targets": "WS-LAB-01 to SRV-LAB-02", "result": "blocked, no alert"},160]161for entry in log:162 print(f"{entry['time']} - {entry['action']} - {entry['result']}")163print("shared with blue team lead at end of day, unredacted inside the vault")164```165166## 4. Reporting and debrief167168The report maps every finding back to an objective, with evidence169(timestamps, commands, tool output), the control that should have170caught it, and a concrete detection or hardening recommendation. Rate171findings by what an attacker could do next, not by how clever the172technique felt. Close with a debrief both sides attend, a cleanup173checklist (accounts removed, agents uninstalled, persistence174reverted, credentials rotated), and a retest date for the gaps found.175176```bash177# Cleanup verification, run at the end of every engagement.178# Each check must pass before the engagement is declared closed.179echo "red team accounts removed:" && grep -r "redteam" /etc/passwd || echo PASS180echo "test agents uninstalled from lab hosts: confirmed by asset list"181echo "persistence mechanisms reverted: startup, tasks, services reviewed"182echo "credentials used during testing rotated: confirmed by client"183echo "collected data deletion scheduled: 30 days after final report"184```185186## Edge cases187188- Scope is vague or verbal. Do not start. Get the allow and deny189 lists in writing, signed, with networks and hostnames, not just190 "the office network".191- The client wants production tested with aggressive techniques.192 Offer a lab-first plan and limit production to read-only, low-risk193 techniques, or decline the risky portion in writing.194- A real incident happens during the window. Stop immediately, hand195 all logs to incident response, and do not resume until they clear196 you, even if the schedule slips.197- Defenders detect and block everything on day one. That is a good198 result. Pivot to testing visibility (would audit logs show it),199 reporting accuracy, and response time rather than forcing bypasses.200- Findings are disputed. Evidence decides: timestamps, tool output,201 and detection logs, presented technique by technique, not opinion.202- The operation overruns its window. Stop at the agreed end time203 unless both leads sign an extension; an expired authorization is204 the same as no authorization.205206## Key references207208- MITRE ATT&CK framework at https://attack.mitre.org209- CISA red team guidance and assessment methodology publications210- Related skills in this repo: soc-adversary-emulation-caldera for211 technique-by-technique emulation, soc-caldera-operations for the212 tooling that runs it, purple-team-exercises for the joint213 red and blue loop, siem-detections for turning findings into rules.