Skip to content
Skills Library
Security · Planning

containment-plan

/containment-plan

Plan and execute coordinated containment for a security incident — host isolation, account disablement, token revocation, network blocks, cloud key deactivation — with impact analysis, approvals, sequencing and verification. Use when scoping is sufficient to act, or when ongoing damage forces immediate containment.

Repository
Claude-Blue ↗
Licence
MIT
Last repository change
01.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
4
Deprecation

No signals detected. Repository changed on 01.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Plan and execute coordinated containment for a security incident — host isolation, account disablement, token revocation, network blocks, cloud key deactivation — with impact analysis, approvals, sequencing and verification. Use when scoping is sufficient to act, or when ongoing damage forces immediate containment.

Original author description

Plan and execute coordinated containment for a security incident — host isolation, account disablement, token revocation, network blocks, cloud key deactivation — with impact analysis, approvals, sequencing and verification. Use when scoping is sufficient to act, or when ongoing damage forces immediate containment.

How it works

  1. Decide the strategy
  2. Containment action catalogue
  3. Workflow
  4. Output template
  5. Safety
  6. Related skills
  7. References
Original SKILL.md headings · 58 lines, 441 words
SKILL.md preview
---
name: containment-plan
description: Plan and execute coordinated containment for a security incident — host isolation, account disablement, token revocation, network blocks, cloud key deactivation — with impact analysis, approvals, sequencing and verification. Use when scoping is sufficient to act, or when ongoing damage forces immediate containment.
license: MIT
metadata:
  category: incident-response
  version: "2.0.0"
  verification: documented
---

# Containment Plan

Containment is a coordinated cut-over, ideally executed in one window so the attacker cannot react and re-enter through a foothold you missed.

## Decide the strategy

| Situation | Strategy |
|---|---|
| Active destruction/exfiltration/ransomware spread | **Immediate** containment of affected segment; scope in parallel |
| Stealthy intrusion, scope incomplete | **Delayed/coordinated** containment after scoping; monitor meanwhile |
| Critical system can't go offline | **Compensating** containment (network ACL, block egress, revoke creds) |

## Containment action catalogue

| Target | Action | Verify |
|---|---|---|
| Endpoint | EDR network isolation (keeps EDR channel) | Host shows isolated; no new outbound in netflow |
| AD user | Disable account (`Disable-ADAccount`), reset password, remove from privileged groups; purge Kerberos tickets on affected hosts (`klist purge`) | 4725/4724 events; logon attempts fail |
| Entra ID user | `Revoke-MgUserSignInSession -UserId <id>`; disable; remove attacker MFA methods; check CA | Sign-in logs show failures |
| AWS key | `aws iam update-access-key --user-name U --access-key-id AKIA... --status Inactive`; attach deny-all inline policy to role sessions (`aws:TokenIssueTime` condition) | CloudTrail shows AccessDenied |
| OAuth app | Revoke consent / disable service principal | No new token issuance |
| Network | Block C2 IP/domain at egress proxy/DNS/firewall | No hits after block, monitor for fallback C2 |
| Mail | Remove malicious inbox rules/forwarding, block sender, purge messages | Rule absent, purge report |
| krbtgt (Golden ticket) | Reset krbtgt **twice**, ≥ replication interval (and > max ticket lifetime, typically 10h) apart | New tickets issued; old TGTs fail |

## Workflow

1. List every action, target, owner, expected business impact, rollback, verification.
2. Sequence: revoke credentials/tokens and block C2 **at the same time** as host isolation; remove persistence after isolation.
3. Get approvals per the IR plan's decision authority; record in decision log.
4. Execute in the agreed window; owners confirm completion in channel with timestamp.
5. Verify each action independently (don't trust the console's "success").
6. Heightened monitoring for re-entry: same TTPs, new infrastructure, previously unknown accounts.

## Output template

```
Containment plan <incident> — window <UTC>
# | Target | Action | Owner | Impact | Approval | Rollback | Verification | Status
Re-entry monitoring: <detections, duration>
```

## Safety

Never shut down/reboot hosts before memory capture unless safety requires it — volatile evidence is lost. Do not delete attacker files during containment; preserve them for analysis.

## Related skills

`incident-scoping`, `host-isolation`, `eradication-recovery`, `aws-credential-compromise`, `token-theft-investigation`

## References

- NIST SP 800-61r3: https://csrc.nist.gov/pubs/sp/800/61/r3/final
- Microsoft: Revoke user access in Entra ID: https://learn.microsoft.com/en-us/entra/identity/users/users-revoke-access
- AWS Security Incident Response Guide: https://docs.aws.amazon.com/security-ir/latest/userguide/
- Microsoft krbtgt reset guidance: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/forest-recovery-guide/ad-forest-recovery-reset-the-krbtgt-password

Versions

The database has no other skills named containment-plan.

Database snapshot: 13.11.2026 · package version e184a0f2ce59 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100containment-strategies-network-host-isolation
    Use this skill when implement immediate host isolation and credential revocation to contain active intrusions.
  • 90host-isolation
    Decide on, approve, execute and verify endpoint network isolation through EDR (and fallback network controls), including impact analysis for servers and release criteria. Use when a host is confirmed or strongly suspected compromised and containment is being considered.
  • 100incident-response-triage
    Guides rapid triage and initial containment of a security incident following NIST SP 800-61, with evidence-preservation and notification checkpoints. Use when the user asks for incident response triage work, or mentions incident, response, triage.
  • 90preserve-security-evidence
    Preserve security evidence before analysis, containment, or remediation changes it. Use for artifacts, volatile host state, vulnerability validation, records, logs, screenshots, commands, hashes, timelines, and reproducible handoffs.
  • 90resp-contain
    Design containment procedures for an active incident — isolation, quarantine, and credential rotation. Use when asked to "contain this incident", "isolate the compromised host", or "rotate credentials after a breach".
  • 90containment-playbooks
    Reference for every Wazuh containment action type — when to use it, required parameters, D3FEND mapping, verification and rollback tools; use when proposing, reviewing or verifying a specific response action.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.