COPS Offensive Engagement Workbench
offensive-engagement-workbench provides authorized adversarial assessment intake, scope boundary validation, execution mode classification, and reviewable immutable action planning for the Copilot Operations Plugin for Security (COPS) ecosystem.
Features
- Engagement Intake: Enforces explicit operator ownership, valid authorized windows, unambiguous targets, non-colliding exclusions, execution budgets, and credential references.
- Scope Ambiguity Prevention: Rejects wildcards, universal networks, and targets colliding with excluded boundaries.
- Execution Mode Distinction: Strictly differentiates between
planning,import,laboratory, andlivemodes. - Live Safety Guard: Prohibits live execution without mandatory budgets, emergency contact channels, active windows, and tight subnet scopes.
- Action Plan Compilation: Generates immutable
ActionPlan(cops.action-plan/v1) contracts with exact caller-measured tool versions, platform prerequisites, expected evidence receipts, side effects, and verified cleanup obligations. - Triad Specialist Handoffs: Emits and validates
SpecialistHandoff(cops.specialist-handoff/v1) contracts coordinating Planner, Specialist, Skeptic, and Auditor with capability matching and re-approval triggers. - Scenario Laboratory Harness: Registers and verifies operator container and VM environments with canary detection, isolation verification, reproducible resets, and controlled positive, negative, and remediated test execution.
- Package Workflow and Capability Diagnostics: Validates package manifests, skills, playbooks, host tool prerequisites, and capability truth-in-advertising diagnostics across all registered plugins and execution environments.
CLI Usage
# Create an engagement contract
python3 -m cops engagement create \
--name "App Scope Review" \
--owner "secops-operator" \
--targets "10.100.0.10,app.internal" \
--exclusions "10.100.0.1" \
--start "2026-10-05T00:00:00Z" \
--until "2026-10-05T23:59:59Z" \
--budget-duration 1800 \
--budget-output-bytes 5242880 \
--output engagement.json
# Validate an engagement contract
python3 -m cops engagement validate engagement.json
# Compile an action plan
python3 -m cops engagement plan \
--engagement engagement.json \
--scenario COPS-E03.01-S01 \
--target 10.100.0.10 \
--tool-version python3=3.11.9 \
--output action_plan.json
# Run Triad specialist handoff workflow
python3 -m cops engagement handoff workflow \
--engagement engagement.json \
--plan action_plan.json \
--task "Network perimeter assessment" \
--planner "secops-operator" \
--output handoff.json
# Laboratory environment verification and case execution
python3 -m cops lab matrix
python3 -m cops lab register env.json
python3 -m cops lab verify env.json
python3 -m cops lab reset env.json
python3 -m cops lab run \
--environment env.json \
--plan action_plan.json \
--authorization authorization.json \
--worker-inventory worker-inventory.json \
--authorization-trust-store authorization-trust.json \
--engagement engagement.json \
--case-type positive
# Capability and package workflow diagnostics
python3 -m cops diagnostics
python3 -m cops diagnostics --package offensive-engagement-workbench
python3 -m cops diagnostics --tools
Planner Tool-Version Provenance
Measure the scenario operation tool through an independently trusted inventory or deployment workflow before compiling the plan. Supply its exact version with repeatable --tool-version TOOL=VERSION options. The planner records that value in the immutable operation; it does not inspect installed executables or establish that the measurement is accurate. A missing or blank version fails plan compilation, and the CLI rejects malformed entries or conflicting repeated values for the same tool.
The Python workflow requires the same explicit mapping:
from pathlib import Path
from offensive_engagement_workbench import run_engagement_plan_workflow
summary = run_engagement_plan_workflow(
Path("engagement.json"),
tool_versions={"python3": "3.11.9"},
target="10.100.0.10",
scenario_id="COPS-E03.01-S01",
)
The worker owner separately provisions a worker capability inventory at execution time. Verification compares the signed plan's exact tool version with that independently provisioned inventory.
Offline Verification Gate
python3 -m cops check offensive-engagement-workbench