Agent skill

Containing Active Breach

by mukul975 in mukul975/Anthropic-Cybersecurity-Skills

Executes containment strategies to stop active adversary operations and prevent lateral movement during a confirmed security breach.

Apache-2.0Auto-check passedSecurity

Install Containing Active Breach

skills CLI
$ npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill containing-active-breach -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mukul975/Anthropic-Cybersecurity-Skills containing-active-breach --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/containing-active-breach .claude/skills/containing-active-breach && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
containing-active-breach
GitHub stars
34k
Token cost
~2.7k tokens
SKILL.md length
953 words
Files
4 (incl. scripts, references)
Skills in repo
644
Repo updated
First seen
Licence
Apache-2.0

At a glance

Executes containment strategies to stop active adversary operations and prevent lateral movement during a confirmed security breach.

  • Works in 6 steps: Assess Containment Scope → Execute Short-Term Containment → Execute Long-Term Containment → …
  • Tasks that involve Red teaming and adversary simulation
  • SKILL.md covers When to Use, Prerequisites, Workflow and Key Concepts, plus 3 more sections
  • Runs Python scripts from its folder

What it does

Containing Active Breach is an agent skill from mukul975/Anthropic-Cybersecurity-Skills. 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.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and reference files (for example `references/api-reference.md` and `scripts/agent.py`).

It sits in Security, covering Red teaming and adversary simulation, Incident response and Authorization and RBAC. The repository describes itself as: 817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io…. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Red teaming and adversary simulation
  • Tasks that involve Incident response
  • Tasks that involve Authorization and RBAC

Example prompts

  • “Use the containing-active-breach skill to execute containment strategies to stop active adversary operations and prevent lateral movement during a…”
  • “/containing-active-breach”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Assess Containment Scope
  2. Execute Short-Term Containment
  3. Execute Long-Term Containment
  4. Validate Containment Effectiveness
  5. Preserve Evidence During Containment
  6. Communicate Containment Status

What it can do on your machine

Read from SKILL.md and the folder at commit 54a7988. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Containing Active Breach loads about 2.7k tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 116 tokens; SKILL.md has 953 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~116
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from mukul975/Anthropic-Cybersecurity-Skills at commit 54a7988, republished under its Apache-2.0 licence (© mukul975). 953 words, ~2,652 tokens.

Download SKILL.mdSave it as .claude/skills/containing-active-breach/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
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
T1486, T1021.002, T1078, T1071.001, T1570
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
Show full SKILL.md (378 more words)Show less
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

© mukul975, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references) in skills/containing-active-breach of mukul975/Anthropic-Cybersecurity-Skills.

  • SKILL.md
  • LICENSE
  • references/api-reference.md
  • scripts/agent.py

Open the folder on GitHubat commit 54a7988

Compare with similar skills

Containing Active Breach next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Containing Active Breach compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Containing Active Breach this skillmukul975/Anthropic-Cybersecurity-Skills34k—~2.7kAutomated safety check: PassApache-2.0
Incident Response NetworkLeoYeAI/openclaw-master-skills2.2k—~5kAutomated safety check: PassApache-2.0
Authorization Bypass DetectionTencent/AI-Infra-Guard6.8k—~753Automated safety check: PassApache-2.0
Identity Access Anomaly Reviewahmadvh/octochains376—~1.3kAutomated safety check: PassCustom licence
Sast Missingauthutkusen/sast-skills1.3k—~6kAutomated safety check: PassMIT
Azure Kusto Irqlmicrosoft/GitHub-Copilot-for-Azure255—~2.6kAutomated safety check: PassMIT

Similar skills

  • Incident Response Network

    LeoYeAI/openclaw-master-skills

    Network forensics evidence collection and analysis during security incidents.

    2.2k GitHub stars~5k tokensUpdated 2 mo ago
    SecurityAuto-check passed
  • Authorization Bypass Detection

    Tencent/AI-Infra-Guard

    Probes an AI agent through dialogue for cross-user data access, privilege escalation and login bypass, and reports confirmed findings as structured vulnerability entries.

    6.8k GitHub stars~753 tokensUpdated today
    SecurityAuto-check passed
  • Analyzes authentication and authorization events for failed-login clustering, privilege-escalation chains, credential-stuffing patterns, and MFA-bypass indicators.

    376 GitHub stars~1.3k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Sast Missingauth

    utkusen/sast-skills

    Detect missing authentication and broken function-level authorization vulnerabilities in a codebase using a three-phase approach: recon (map endpoints and the role/permission system), batched verify…

    1.3k GitHub stars~6k tokensUpdated 6 mo ago
    SecurityAuto-check passed
  • Azure Kusto Irql

    microsoft/GitHub-Copilot-for-Azure

    Official

    Compose IRQL (Incident Response Query Language) queries for Kusto cybersecurity investigations.

    255 GitHub stars~2.6k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Find Cybersecurity Firm

    jeremylongshore/tons-of-skills-marketplace

    A skill your agent uses whenever the user wants to find, shortlist, vet, or enrich US cybersecurity firms — pen-testing/red team, security audits, vCISO, SOC 2 readiness, incident response, managed…

    2.8k GitHub stars~3.7k tokensUpdated today
    SecurityAuto-check: notes

More from mukul975/Anthropic-Cybersecurity-Skills

All 644 skills in this repo
  • Campaign Attribution Evidence Analysis

    mukul975/Anthropic-Cybersecurity-Skills

    Weighs infrastructure, TTP, malware code and timing evidence with the Diamond Model and competing hypotheses to reach a confidence-rated attribution.

    34k GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Go Malware Analysis in Ghidra

    mukul975/Anthropic-Cybersecurity-Skills

    Walks through reverse engineering Go-compiled malware in Ghidra: parsing buildinfo and pclntab, recovering stripped function names and extracting dependencies.

    34k GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed
  • LNK and Jump List Forensics

    mukul975/Anthropic-Cybersecurity-Skills

    Guides forensic analysis of Windows LNK shortcut files and Jump Lists with LECmd, JLECmd and manual parsing to show file access and program execution.

    34k GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Malware Persistence Analysis with Autoruns

    mukul975/Anthropic-Cybersecurity-Skills

    Hunts Windows malware persistence with Sysinternals Autoruns, covering run keys, services, scheduled tasks and drivers, with baseline comparison.

    34k GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • NTFS MFT Deleted File Recovery

    mukul975/Anthropic-Cybersecurity-Skills

    Guides a Windows forensic examination of the NTFS Master File Table to recover deleted-file evidence, build timelines and spot timestomping.

    34k GitHub stars~2.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Network Covert Channel Analysis

    mukul975/Anthropic-Cybersecurity-Skills

    Detects DNS tunneling, ICMP exfiltration and HTTP-based covert channels in packet captures and DNS logs when hunting for hidden command-and-control traffic.

    34k GitHub stars~2k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Containing Active Breach

What does Containing Active Breach do?

Executes containment strategies to stop active adversary operations and prevent lateral movement during a confirmed security breach. Containing Active Breach is an agent skill from mukul975/Anthropic-Cybersecurity-Skills. Executes containment strategies to stop active adversary operations and prevent lateral movement during a confirmed security breach.

When should I use Containing Active Breach?

Containing Active Breach fits situations like: tasks that involve Red teaming and adversary simulation; tasks that involve Incident response; tasks that involve Authorization and RBAC.

How do I install Containing Active Breach in Claude Code?

Run `npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill containing-active-breach -a claude-code`. Or copy the skill folder (skills/containing-active-breach in mukul975/Anthropic-Cybersecurity-Skills) into .claude/skills/containing-active-breach in your project. Claude Code loads it when a task matches its description.

How do I install Containing Active Breach in Codex?

Run `npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill containing-active-breach -a codex`. Or copy the skill folder (skills/containing-active-breach in mukul975/Anthropic-Cybersecurity-Skills) into .agents/skills/containing-active-breach in your project. Codex loads it when a task matches its description.

Can I use Containing Active Breach in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill containing-active-breach -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/containing-active-breach, .gemini/skills/containing-active-breach, .github/skills/containing-active-breach and .opencode/skills/containing-active-breach in your project.

What does Containing Active Breach need to run?

Going by SKILL.md and its folder, Containing Active Breach needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Containing Active Breach access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Containing Active Breach safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Containing Active Breach use?

Containing Active Breach is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Containing Active Breach use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 628 tokens, read only when the agent opens those files.

What are the alternatives to Containing Active Breach?

Skills that share tags, products or a category with Containing Active Breach: Incident Response Network (LeoYeAI/openclaw-master-skills, 2.2k stars), Authorization Bypass Detection (Tencent/AI-Infra-Guard, 6.8k stars), Identity Access Anomaly Review (ahmadvh/octochains, 376 stars) and Sast Missingauth (utkusen/sast-skills, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Containing Active Breach?

mukul975 (a GitHub user) maintains it in mukul975/Anthropic-Cybersecurity-Skills, which has 33,993 GitHub stars. The repository holds 644 skills in this directory. The repository was last updated on August 31, 2026.

Source: mukul975/Anthropic-Cybersecurity-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.