Skip to content
Development
Skill

/contain-and-recover-macos

Contain a macOS threat and verify recovery. Use for isolation, process or service containment, credential response, persistence removal, quarantine, restore, erase/reinstall, monitoring, and return-to-service decisions.

From plugin
socket
7200 skills5 MCP
Install
$ npx -y skills add gaelic-ghost/socket --skill contain-and-recover-macos --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/contain-and-recover-macos

Context preview

The summary Claude sees to decide when to auto-load this skill.

Contain a macOS threat and verify recovery. Use for isolation, process or service containment, credential response, persistence removal, quarantine, restore, erase/reinstall, monitoring, and return-to-service decisions.

SKILL.md

contain-and-recover-macos.SKILL.md
name: contain-and-recover-macos
description: Contain a macOS threat and verify recovery. Use for isolation, process or service containment, credential response, persistence removal, quarantine, restore, erase/reinstall, monitoring, and return-to-service decisions.

Contain And Recover macOS

Overview

Choose actions proportionate to evidence and ongoing harm. Preserve what matters, use official lifecycle controls, and verify the system after eradication rather than declaring it clean because one artifact disappeared.

Read [references/macos-response-ladder.md](references/macos-response-ladder.md) for containment and recovery levels.

Workflow

1. Confirm assessment, confidence, affected scope, ongoing behavior, critical data, and evidence needs. 2. Choose immediate containment.

  • Prefer reversible network/account/session isolation when it stops harm.
  • Record the effect on volatile evidence and business/user access.

3. Preserve decisive evidence.

  • Capture artifact, persistence, process/network/log, account, and timeline records before removal when delay is safe.

4. Stop active behavior through official controls.

  • End processes/services deliberately; use `launchctl bootout` for approved launch service removal from a domain, app-provided uninstallers for app components, and supported profile/extension management surfaces.
  • Never edit launchd's internal state directly.

5. Eradicate the verified mechanism.

  • Remove or quarantine confirmed artifacts, registrations, extensions, profiles, helpers, rules, and downloaded stages; preserve hashes and paths.
  • Do not reset, disable, or weaken TCC, Gatekeeper, XProtect, SIP, App Sandbox, or another protection merely to make a suspicious artifact run or simplify removal.

6. Respond to identity exposure.

  • Rotate affected credentials/tokens from a trusted device, revoke sessions/keys, review MFA and recovery methods, and notify owners/providers as warranted.

7. Recover.

  • Restore from a known-good point, reinstall/erase when integrity cannot be established, apply updates, reconfigure only needed access, and avoid restoring suspect persistence.

8. Verify and monitor.

  • Recheck persistence, runtime/network, accounts, security updates, backups, and recurrence across a defined observation window.

Output

Return containment/impact, evidence preserved, eradication actions, credential response, recovery basis, verification results, residual uncertainty, and return-to-service decision.

Read more
Ships withsocket

Stuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo

Get the whole plugin

Other skills on socket.