Operational Runbooks¶
Status: Current runbook index for implemented known-agent and SOC operations. Runtime-control procedures apply only where the corresponding component is deployed and marked Implemented/Partial in Implementation Status.
Overview¶
Runbooks are step-by-step incident procedures. They turn an alert into a safe sequence: identify the symptom, confirm scope, contain impact, recover service, verify evidence, and record lessons learned.
Tracking issue: #1199
Incident Workflow¶
flowchart LR
SIGNAL[Alert or operator signal] --> TRIAGE[Confirm and scope]
TRIAGE --> CONTAIN[Contain safely]
CONTAIN --> REMEDIATE[Remove cause]
REMEDIATE --> VERIFY[Verify service + receipts]
VERIFY --> RECOVER[Restore traffic]
RECOVER --> REVIEW[Record timeline and lessons]
Containment comes before convenience. Verification includes both service health and evidence integrity when protected actions may be affected.
Runbook Selection¶
Step-by-step procedures for the most common SOC scenarios. Each follows the same shape: Symptoms (how you'd notice this), Investigation (how to confirm and scope it), Remediation (what to do about it), Verification (how to confirm it's actually resolved).
| Runbook | Use when |
|---|---|
| Deny storm | An agent accumulates repeated denied actions in a short window — likely misconfiguration or active probing. |
| Data exfiltration pattern | A read action is followed by an external write/send for the same agent — the confused-deputy exfil pattern. |
| Agent token rotation | A token may have leaked, or you need to rotate one proactively. |
| Backup and restore | Before a risky migration, or recovering from corruption/accidental deletion. |
| Receipt chain verification | Confirming the evidence trail hasn't been tampered with — routine compliance prep or post-incident verification. |
| Secret rotation | Routine or post-exposure rotation of AEGIS_JWT_SECRET or AEGIS_RECEIPT_SIGNING_KEY — process-wide secrets, not a specific agent's token. |
These assume familiarity with the SOC architecture in AegisAgent_Agent_SOC_Design.md (the Four Design Laws, autonomy levels L0–L4) and the evidence graph query API used throughout for investigation.
Example Invocation¶
When receipt integrity alerts, begin with the verification runbook rather than editing the database:
Preserve the original evidence file and command output. Do not “repair” a broken chain before forensic capture.
Security and Safety¶
- Authenticate and authorize every containment or rotation action.
- Bind all investigation queries to the affected tenant.
- Never paste tokens, signing keys, unredacted prompts, or sensitive parameters into tickets or chat.
- Prefer reversible containment—freeze or quarantine—before destructive cleanup.
- Do not weaken fail-closed SDK or policy behavior to restore availability.
- Preserve receipt, audit, and runtime evidence before mutation.
Operations¶
Each production alert must link to one runbook and name an owner. Exercise backup/restore, receipt verification, token rotation, and secret rotation on a schedule. After an incident, record detection time, containment time, recovery time, affected tenants/agents, receipt verification result, and follow-up controls.
If no runbook matches, use the general workflow above, escalate to the security owner, and add the missing procedure after the incident.