Executing red team engagement planning

From oyi77/1ai-skills · View interactive version

Executing red team engagement planning is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when red team engagement planning is the foundational phase that defines scope, objectives, rules of engagement (ROE), threat model selection, and operational timelines before any offensive testing begins. Use when working with executing red team engagement planning.

How to use this skill

Skill file

Executing Red Team Engagement Planning

Overview

Red team engagement planning is the foundational phase that defines scope, objectives, rules of engagement (ROE), threat model selection, and operational timelines before any offensive testing begins. A well-structured engagement plan ensures the red team simulates realistic adversary behavior while maintaining safety guardrails that prevent unintended business disruption.

Anti-Rationalization Table

| Rationalization | Reality |

|---|---|

| "I'll figure it out as I go" | A structured approach saves time and reduces errors. Follow the workflow in this skill rather than improvising. |

| "I already know this topic" | Familiarity breeds shortcuts. Use the checklist to verify you haven't missed critical steps. |

| "This doesn't apply to my situation" | The patterns here generalize across contexts. Adapt, don't skip — the underlying principles hold. |

| "One more tool will fix it" | Adding complexity rarely solves process gaps. Master the core workflow first. |

When to Use

Trigger phrases:

Prerequisites

Objectives

Legal Notice: This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.

Core Concepts

This section covers core concepts for executing red team engagement planning.

Engagement Types

| Type | Description | Scope |

|------|-------------|-------|

| Full Scope | Complete adversary simulation with physical, social, and cyber vectors | Entire organization |

| Assumed Breach | Starts from initial foothold, focuses on post-exploitation | Internal network |

| Objective-Based | Target specific crown jewels (e.g., domain admin, PII exfiltration) | Defined targets |

| Purple Team | Collaborative with blue team for detection improvement | Specific controls |

Rules of Engagement Components

  1. Scope Definition: IP ranges, domains, physical locations, personnel
  2. Restrictions: Systems/networks that must not be touched (e.g., production databases, medical devices)
  3. Communication Plan: Primary and secondary contact channels, escalation procedures
  4. Emergency Procedures: Code word for immediate cessation, incident response coordination
  5. Legal Authorization: Signed authorization letters, get-out-of-jail letters for physical tests
  6. Data Handling: How sensitive data discovered during testing will be handled and destroyed
  7. Timeline: Start/end dates, blackout windows, reporting deadlines

Threat Profile Selection

Map organizational threats using MITRE ATT&CK Navigator to select relevant adversary profiles:

Workflow

# Example: IOC detection
import re

IOC_PATTERNS = {
    "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
    "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
    "hash_md5": r"\b[a-f0-9]{32}\b",
    "hash_sha256": r"\b[a-f0-9]{64}\b",
}

def extract_iocs(text: str) -> dict:
    return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
  1. Scope and authorize — confirm written authorization and define target boundaries
  2. Reconnaissance — enumerate targets, services, and potential attack surfaces
  3. Exploitation — attempt exploitation of identified vulnerabilities within scope
  4. Post-exploitation — document access level, lateral movement, and data exposure
  5. Report and remediate — compile findings with reproduction steps and fix recommendations

Phase 1: Pre-Engagement

  1. Conduct initial scoping meeting with stakeholders
  2. Identify crown jewels and critical business assets
  3. Review previous security assessments and audit findings
  4. Define success criteria and engagement objectives
  5. Draft Rules of Engagement document

Phase 2: Threat Modeling

  1. Identify relevant threat actors using MITRE ATT&CK
  2. Map threat actor TTPs to organizational attack surface
  3. Select primary and secondary attack scenarios
  4. Define adversary emulation plan with specific technique IDs
  5. Establish detection checkpoints for purple team opportunities

Phase 3: Operational Planning

  1. Set up secure communication channels (encrypted email, Signal, etc.)
  2. Create operational security (OPSEC) guidelines for the red team
  3. Establish infrastructure requirements (C2 servers, redirectors, phishing domains)
  4. Develop phased attack timeline with go/no-go decision points
  5. Create deconfliction matrix with SOC/IR team

Phase 4: Documentation and Approval

  1. Compile engagement plan document
  2. Review with legal counsel
  3. Obtain executive sponsor signature
  4. Brief red team operators on ROE and restrictions
  5. Distribute emergency contact cards

When NOT to Use

Red Flags

Verification

Tools and Resources

Validation Criteria

Common Pitfalls

  1. Scope Creep: Expanding testing beyond approved boundaries during execution
  2. Inadequate Deconfliction: SOC investigating red team activity as real incidents
  3. Missing Legal Authorization: Testing without proper signed authorization
  4. Unrealistic Threat Models: Simulating threats irrelevant to the organization
  5. Poor Communication: Failing to maintain contact with stakeholders during engagement

Related Skills

Process

  1. Analyze the task requirements
  2. Apply domain expertise
  3. Verify output quality
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.