containing-active-breach

mukul975/Anthropic-Cybersecurity-Skills · updated May 25, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills install mukul975/Anthropic-Cybersecurity-Skills/containing-active-breach
0 commentsdiscussion
summary

Executes containment strategies to stop active adversary operations and prevent lateral movement during a confirmed security breach. Implements short-term and long-term containment using network segmentation, endpoint isolation, credential revocation, and access control modifications. Activates for requests involving breach containment, lateral movement prevention, network isolation, active threat containment, or live incident response.

skill.md
name
containing-active-breach
description
'Executes containment strategies to stop active adversary operations and prevent lateral movement during a confirmed security breach. Implements short-term and long-term containment using network segmentation, endpoint isolation, credential revocation, and access control modifications. Activates for requests involving breach containment, lateral movement prevention, network isolation, active threat containment, or live incident response. '
domain
cybersecurity
subdomain
incident-response
tags
- breach-containment - lateral-movement - network-isolation - credential-revocation - live-response
mitre_attack
- T1021 - T1570 - T1210 - T1072
version
1.0.0
author
mahipal
license
Apache-2.0
nist_csf
- RS.MA-01 - RS.MA-02 - RS.AN-03 - RC.RP-01

Containing Active Breaches

When to Use

  • A confirmed intrusion is in progress with an active adversary on the network
  • Malware is spreading laterally across endpoints or servers
  • A compromised account is being used for unauthorized access to systems
  • Ransomware encryption has been detected and is actively propagating
  • An attacker has established command-and-control communications from internal hosts

Do not use for post-incident cleanup when the adversary is no longer active; use eradication procedures instead.

Prerequisites

  • Confirmed incident classification with P1 or P2 severity from triage
  • EDR console access with host isolation capabilities (CrowdStrike Falcon, Microsoft Defender for Endpoint, SentinelOne)
  • Network firewall and switch management access for segmentation
  • Active Directory or identity provider administrative access for credential actions
  • Pre-approved containment authority documented in the incident response plan
  • Evidence preservation plan to avoid destroying forensic artifacts during containment

Workflow

Step 1: Assess Containment Scope

Before taking containment actions, map the full scope of compromise to avoid partial containment that alerts the adversary:

  • Identify all confirmed compromised hosts via EDR telemetry and SIEM correlation
  • Map lateral movement paths using authentication logs (Windows Event ID 4624 Type 3 and Type 10)
  • Identify all compromised credentials (check for pass-the-hash, Kerberoasting, DCSync activity)
  • Determine C2 channels (beacon intervals, domains, IPs, protocols)
  • Assess whether the adversary has domain admin or equivalent privileges
Containment Scope Assessment:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Compromised Hosts:     5 (WKSTN-042, WKSTN-087, SRV-FILE01, SRV-DC02, WKSTN-103)
Compromised Accounts:  3 (jsmith, svc-backup, admin-tier0)
C2 Channels:           HTTPS beacon to 185.220.x.x every 60s ± 15% jitter
Lateral Movement:      PsExec via svc-backup, RDP via admin-tier0
Adversary Privilege:   Domain Admin (admin-tier0 compromised)
Data at Risk:          Finance share (\\SRV-FILE01\finance$) accessed

Step 2: Execute Short-Term Containment

Implement immediate actions to stop adversary operations without destroying evidence:

Network Containment:

  • Isolate confirmed compromised endpoints via EDR network containment (maintains agent communication)
  • Block C2 IP addresses and domains at perimeter firewall and internal DNS
  • Implement microsegmentation rules to prevent communication between compromised hosts
  • Sinkhole C2 domains at internal DNS to capture connection attempts from undiscovered implants

Identity Containment:

  • Disable compromised user accounts in Active Directory (do not delete; preserve audit trail)
  • Reset passwords for all compromised accounts
  • Revoke active sessions and tokens (Azure AD: Revoke-AzureADUserAllRefreshToken)
  • Disable the compromised service account and rotate its credentials
  • If Domain Admin is compromised: double-reset the KRBTGT password (reset twice, 12 hours apart)

Endpoint Containment:

  • Use EDR to terminate malicious processes on contained hosts
  • Block known malicious hashes in EDR prevention policy
  • Quarantine identified malware samples
  • Disable remote services (WinRM, RDP, SMB) on critical servers not yet compromised

Step 3: Execute Long-Term Containment

Implement sustainable containment while the investigation continues:

  • Create network ACLs isolating the compromised VLAN/subnet while allowing business-critical traffic
  • Deploy temporary jump hosts for administrators to access contained systems for investigation
  • Implement enhanced monitoring (full packet capture) on network segments adjacent to compromised hosts
  • Enable advanced audit policies on all domain controllers (4768, 4769, 4771 for Kerberos attacks)
  • Deploy canary tokens and honeypot accounts to detect adversary attempts to expand from containment

Step 4: Validate Containment Effectiveness

Confirm that containment measures have stopped adversary operations:

  • Monitor for new C2 callbacks from any internal host to known adversary infrastructure
  • Check for new lateral movement attempts (failed authentication from disabled accounts)
  • Verify that contained hosts cannot reach the internet except through the EDR agent
  • Confirm that compromised credentials produce authentication failures
  • Review SIEM for any new alerts matching the adversary's known TTPs
Containment Validation Checklist:
[x] C2 beacon traffic ceased from all known compromised hosts
[x] Disabled accounts producing expected 4625 failure events (no new successes)
[x] Contained hosts unreachable via network scan from adjacent subnets
[x] No new hosts exhibiting IOCs from the initial compromise
[x] Honeypot account has not been accessed (adversary may be dormant)
[ ] Full packet capture running on finance VLAN (pending switch config)

Step 5: Preserve Evidence During Containment

Containment must not destroy forensic evidence:

  • Capture memory dumps from compromised hosts before any remediation (use WinPmem or Magnet RAM Capture)
  • Collect volatile data: running processes, network connections, logged-on users, scheduled tasks
  • Export relevant event logs before they rotate (Security, System, PowerShell, Sysmon)
  • Capture network traffic between compromised hosts and C2 infrastructure
  • Document all containment actions with timestamps for the incident timeline

Step 6: Communicate Containment Status

Provide structured status updates to incident commander and stakeholders:

  • Current containment effectiveness (percentage of adversary activity stopped)
  • Remaining risks (undiscovered implants, persistence mechanisms not yet identified)
  • Business impact of containment actions (which systems are offline, user impact)
  • Estimated timeline for eradication phase
  • Escalation needs (law enforcement notification, external IR retainer activation)

Key Concepts

TermDefinition
Short-Term ContainmentImmediate actions to stop active adversary operations; typically network isolation and credential disablement
Long-Term ContainmentSustainable measures allowing continued investigation while preventing adversary re-access
KRBTGT Double ResetResetting the KRBTGT password twice to invalidate all existing Kerberos tickets including golden tickets
Network ContainmentEDR feature that isolates an endpoint from all network communication except the EDR management channel
Lateral MovementAdversary technique of moving from one compromised system to another within a network using stolen credentials or exploits
C2 SinkholingRedirecting DNS queries for C2 domains to an internal server to prevent adversary communication and detect additional victims
MicrosegmentationGranular network access controls between workloads that limit lateral communication paths

Tools & Systems

  • CrowdStrike Falcon: Endpoint containment with one-click network isolation preserving agent connectivity
  • Microsoft Defender for Endpoint: Live response console for remote containment actions and evidence collection
  • Palo Alto Networks NGFW: Application-aware firewall rules for C2 traffic blocking and microsegmentation
  • Velociraptor: Open-source endpoint monitoring and response tool for artifact collection during containment
  • BloodHound: Active Directory attack path mapping to identify potential lateral movement routes the adversary may exploit

Common Scenarios

Scenario: Ransomware Lateral Propagation via SMB

Context: EDR alerts on three file servers showing rapid file encryption. The ransomware is spreading via SMB using a compromised domain service account.

Approach:

  1. Immediately isolate all three file servers via EDR network containment
  2. Disable the compromised service account in Active Directory
  3. Block SMB (TCP 445) between all server VLANs at the network switch layer
  4. Deploy an emergency GPO disabling the SMB server service on non-critical endpoints
  5. Capture memory from one encrypted server before it reboots
  6. Search for the ransomware binary hash across all endpoints using EDR threat hunting

Pitfalls:

  • Shutting down servers immediately, destroying volatile memory evidence
  • Only disabling the known compromised account without checking for other persistence mechanisms
  • Restoring from backup before confirming the adversary's access has been fully revoked

Output Format

CONTAINMENT STATUS REPORT
=========================
Incident:        INC-2025-1547
Status:          CONTAINED (Short-Term)
Timestamp:       2025-11-15T15:47:00Z
Containment Lead: [Name]

ACTIONS TAKEN
Network:
- [x] 5 hosts isolated via CrowdStrike containment
- [x] C2 IP 185.220.x.x blocked at perimeter FW (rule #4521)
- [x] C2 domain evil.example[.]com sinkholed to 10.0.0.99

Identity:
- [x] jsmith account disabled
- [x] svc-backup account disabled, password rotated
- [x] admin-tier0 account disabled
- [x] KRBTGT first reset completed at 15:30 UTC

Endpoint:
- [x] Malicious hash blocked in EDR prevention policy
- [x] Malware processes terminated on all contained hosts

EVIDENCE PRESERVED
- Memory dumps: 3 of 5 hosts completed
- Event logs exported: all 5 hosts
- Network capture: running on finance VLAN

REMAINING RISKS
- Possible undiscovered implants on non-EDR endpoints (15 legacy hosts)
- KRBTGT second reset pending (scheduled 03:30 UTC +1 day)
- Adversary may have exfiltrated data before containment

BUSINESS IMPACT
- Finance file share offline (affects 42 users)
- 3 user workstations isolated (users reassigned to loaners)
- Estimated restoration: pending eradication completion
how to use containing-active-breach

How to use containing-active-breach on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add containing-active-breach
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills install mukul975/Anthropic-Cybersecurity-Skills/containing-active-breach

The skills CLI fetches containing-active-breach from GitHub repository mukul975/Anthropic-Cybersecurity-Skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/containing-active-breach

Reload or restart Cursor to activate containing-active-breach. Access the skill through slash commands (e.g., /containing-active-breach) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.567 reviews
  • Olivia Huang· Dec 24, 2024

    containing-active-breach fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Hiroshi Park· Dec 16, 2024

    Useful defaults in containing-active-breach — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Shikha Mishra· Dec 12, 2024

    containing-active-breach has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Olivia Li· Dec 12, 2024

    We added containing-active-breach from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Jin Verma· Nov 15, 2024

    We added containing-active-breach from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Anika Huang· Nov 7, 2024

    I recommend containing-active-breach for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Mia Tandon· Nov 3, 2024

    containing-active-breach fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Sakura Jackson· Oct 26, 2024

    containing-active-breach reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Carlos Harris· Oct 22, 2024

    Registry listing for containing-active-breach matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Noah Smith· Oct 6, 2024

    Solid pick for teams standardizing on skills: containing-active-breach is focused, and the summary matches what you get after install.

showing 1-10 of 67

1 / 7