# Soc Red Team Planning

> Use when planning an authorized red team operation from first scoping call to final report. Covers defining objectives tied to real threats, setting scope and out-of-scope systems, writing rules of engagement, safety controls and stop conditions, deconfliction with defenders and incident response, communications planning, and reporting findings as measurable detection and control gaps. Use when a client or an internal team asks for a red team assessment, a purple team exercise, or an adversary emulation engagement.

- Skill: `mizazhaider-ceh/soc-red-team-planning` (Agent Skill)
- Install (CLI): `npx get-skill add mizazhaider-ceh/soc-red-team-planning`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizazhaider-ceh/soc-red-team-planning/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: mizazhaider-ceh (https://skillmd.com/u/mizazhaider-ceh)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/mizazhaider-ceh/soc-red-team-planning

---


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

1. Hold a scoping call and record objectives, business context, and
   the threat model the operation should mirror.
2. Write the scope as explicit allow and deny lists: networks, hosts,
   accounts, applications, and time windows.
3. Draft rules of engagement: permitted techniques, forbidden effects,
   data handling rules, and safety controls.
4. Agree deconfliction: contacts, code words, notification paths, and
   how defenders escalate a suspected real incident during the window.
5. Set stop conditions and a kill switch, tested before execution
   starts, not during an incident.
6. Plan communications: daily updates, a shared log, and an
   out-of-band channel if normal channels are in scope.
7. Execute in phases with checkpoints, so scope or safety problems
   surface early while they are still cheap to fix.
8. 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.

```markdown
<!-- 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
```

```bash
# 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.

```yaml
# 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
```

```bash
# 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.

```python
#!/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.

```bash
# 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.

