incident-response
GitHub用于安全事件响应全流程,包括判定、遏制、取证、恢复及复盘。适用于疑似或确认泄露、制定预案、演练及合规通知场景。
Trigger Scenarios
Install
npx skills add cbrock84/headcount --skill incident-response -g -y
SKILL.md
Frontmatter
{
"name": "incident-response",
"description": "Runs a security incident from detection to closure — triage, containment, investigation, communication, and the review afterward. Use this when a compromise is suspected or confirmed, when preparing an incident response plan or running an exercise, when deciding whether something is an incident, or when a breach may trigger notification obligations."
}
Incident response
Breach notification runs on statutory clocks, measured in hours in several regimes. Involve Legal & Risk and qualified counsel as soon as personal data may be involved — not after the technical work is done.
Decide it is an incident, and say so
The most expensive delay is the hour spent debating whether this is really an incident. Declare early; standing down a declared incident is cheap, and discovering an hour late that it was real is not.
Name an incident commander immediately. One person, coordinating, not doing the technical work. Everyone else has a defined job. Incidents fail on coordination far more than on technical capability.
Order of operations
1. Contain before investigating. Stop the bleeding: isolate the host, revoke the credential, disable the account, block the path. It is tempting to watch the attacker to learn more — do that only with a deliberate decision, not by default.
2. Preserve evidence while containing. Snapshot before you rebuild. Capture volatile state — memory, connections, running processes — before powering anything off. Rebuilding a compromised host destroys the only record of how they got in, and you will need it.
3. Establish scope. What was accessed, what was taken, when it started, and whether it is still happening. Assume the initial scope is understated; it usually is. Look for persistence and lateral movement before declaring containment.
4. Eradicate and recover. Remove the access, close the path, then restore. Rebuild from known good rather than cleaning in place — you cannot prove a cleaned host is clean.
Rotate every credential the attacker could have reached, not only the ones you know they used.
5. Watch after recovery. Re-entry is common. Monitor specifically for the path they used and its neighbors.
Communication
Keep one timeline as the single source of truth, updated as facts are established, with each entry timestamped and attributed. Incidents generate contradictory information at speed, and the timeline is what stops the same question being answered three ways.
Say what is known, what is not yet known, and when the next update comes. Never speculate on cause or scope externally before it is established — a retracted statement extends the story and damages credibility more than the incident did.
Afterward
Blameless review, focused on the system rather than the person. The useful questions: how could this have been detected sooner, what made containment slow, what did we not have that we needed, and what made this possible in the first place.
Output actions with owners and dates. A review producing no committed changes is theater, and the same incident recurs.
Preparation
The plan matters less than having run it. Exercise once a year at minimum: a tabletop against a realistic scenario finds the gaps — who has authority out of hours, where the credentials are, who calls counsel — at a time when finding them is free.
Sources
references/sources.md in this skill lists the outside authorities that settle the questions
here — what each one is authoritative for, and what you may do with it. Check them before
answering on anything they cover, and cite what you used. Most are free to read and not free
to reproduce; the use note on each is binding.
Never
- Rebuild or wipe a compromised host before evidence is captured.
- Let the person running the technical response also own external communication.
- Close an incident before you can say how entry happened and that the path is shut.
- Speculate about cause or attribution outside the response channel while the incident is open.
Version History
-
98d1c17
Current 2026-09-22 00:33
新增来源目录功能,将外部权威法规映射至技能以支持引用,并增加合规性检查与可达性验证机制。
- d58a7ee 2026-09-02 21:10


