AGENT SKILL

responding-to-security-incidents

Guide security incident response, investigation, and remediation processes. Use when you need to handle security breaches, classify incidents, develop response playbooks, gather forensic evidence, or coordinate remediation efforts. Trigger with phrases like "security incident response", "ransomware attack response", "data breach investigation", "incident playbook", or "security forensics".

License 许可
MIT
最近更新
2025-12-18
Stars
★ 29
Forks
9

01 前言 Front Matter

name
responding-to-security-incidents
license
MIT
version
1.0.0
description
Guide security incident response, investigation, and remediation processes. Use when you need to handle security breaches, classify incidents, develop response playbooks, gather forensic evidence, or coordinate remediation efforts. Trigger with phrases like "security incident response", "ransomware attack response", "data breach investigation", "incident playbook", or "security forensics".
allowed-tools
[ "Read", "Write", "Edit", "Grep", "Glob", "Bash(log-analysis:*, forensics:*, network-trace:*)" ]

02 资源文件 6

03 SKILL.md 正文

Prerequisites

Before using this skill, ensure:

  • Access to system and application logs in {baseDir}/logs/
  • Network traffic captures or SIEM data available
  • Incident response team contact information
  • Backup systems operational and accessible
  • Write permissions for incident documentation in {baseDir}/incidents/
  • Communication channels established for stakeholder updates

Instructions

1. Incident Detection and Triage

Classify the security incident:

  • Incident type (ransomware, data breach, DDoS, insider threat, phishing)
  • Severity level (Critical, High, Medium, Low)
  • Scope assessment (affected systems, data, users)
  • Initial timestamp and detection method
  • Potential business impact

2. Immediate Containment Actions

Prevent further damage:

  • Isolate affected systems from network
  • Disable compromised user accounts
  • Block malicious IP addresses at firewall
  • Preserve system state for forensics
  • Activate incident response team
  • Document all containment actions with timestamps

3. Evidence Collection Phase

Gather forensic data systematically:

System Evidence:

  • Memory dumps from affected systems
  • Disk images for forensic analysis
  • Running process listings
  • Network connection states
  • Registry modifications (Windows)

Log Evidence:

  • Authentication logs (successful/failed logins)
  • Application logs with error patterns
  • Network traffic logs (firewall, IDS/IPS)
  • Database access logs
  • Web server access/error logs

Network Evidence:

  • Packet captures (PCAP files)
  • DNS query logs
  • Proxy server logs
  • Network flow data (NetFlow)

4. Investigation and Analysis

Reconstruct the attack timeline:

  • Identify initial access vector (how attackers got in)
  • Map lateral movement within network
  • Determine data exfiltration attempts
  • Identify persistence mechanisms
  • Assess privilege escalation methods
  • Document indicators of compromise (IOCs)

5. Eradication Phase

Remove threat from environment:

  • Remove malware and backdoors
  • Close exploited vulnerabilities
  • Reset compromised credentials
  • Apply security patches
  • Update firewall rules
  • Verify threat elimination

6. Recovery and Restoration

Restore normal operations:

  • Restore systems from clean backups
  • Rebuild compromised systems from scratch
  • Verify system integrity
  • Monitor for reinfection attempts
  • Gradually restore services
  • Validate business operations

7. Post-Incident Documentation

Create comprehensive incident report:

  • Executive summary
  • Detailed timeline
  • Root cause analysis
  • Lessons learned
  • Remediation recommendations
  • Cost impact assessment

Output

The skill produces:

Primary Output: Incident response playbook saved to {baseDir}/incidents/incident-YYYYMMDD-HHMM.md

Playbook Structure:

# Security Incident Response - [Incident Type]
Date: YYYY-MM-DD HH:MM
Severity: CRITICAL
Status: Contained

## Executive Summary
- Incident type: Ransomware attack
- Detection time: 2024-01-15 08:30 UTC
- Affected systems: 15 servers, 200 workstations
- Business impact: Production halted
- Current status: Contained, recovery in progress

## Timeline of Events
08:30 - Initial detection via EDR alert
08:35 - IT team confirms ransomware encryption
08:40 - Network isolation initiated
09:00 - Incident response team activated
[Detailed timeline continues]

## Containment Actions Taken
✅ Isolated affected network segments
✅ Disabled compromised accounts
✅ Blocked C2 server IPs
✅ Preserved forensic evidence

## Evidence Collected
- Memory dumps: 15 systems
- Log files: {baseDir}/incidents/evidence/logs/
- Network captures: {baseDir}/incidents/evidence/pcaps/
- Malware samples: Quarantined

## IOCs (Indicators of Compromise)
- IP addresses: 203.0.113.45, 198.51.100.78
- File hashes: SHA256 values listed
- Domain names: malicious-c2.example
- Registry keys: HKLM\Software\[malware]

## Remediation Plan
Priority 1 (Immediate):
- Remove ransomware from all systems
- Reset all domain credentials
- Patch vulnerable RDP service

Priority 2 (24 hours):
- Deploy endpoint protection updates
- Implement network segmentation
- Enable MFA for all accounts

Priority 3 (1 week):
- Security awareness training
- Update incident response procedures
- Conduct tabletop exercise

## Recovery Status
- Clean backups identified: 2024-01-14 backup
- Systems rebuilt: 5/15 servers complete
- Services restored: Email, file servers online
- Estimated full recovery: 48 hours

## Communication Log
- 08:45 - Executive team notified
- 09:30 - Legal counsel engaged
- 10:00 - Cyber insurance contacted
- 12:00 - Customer notification prepared

Secondary Outputs:

  • IOC list for threat intelligence sharing (JSON/STIX format)
  • Evidence chain of custody log
  • Stakeholder communication templates
  • Post-incident review agenda

Error Handling

Common Issues and Resolutions:

  1. Incomplete Log Data

    • Error: "Critical logs missing from {baseDir}/logs/"
    • Resolution: Work with available data, note gaps in report
    • Action: Improve logging for future incidents
  2. Evidence Contamination

    • Error: "System state modified before evidence collection"
    • Resolution: Document contamination, collect remaining evidence
    • Best Practice: Immediately isolate before investigation
  3. Ongoing Active Threat

    • Error: "Attacker still has access during investigation"
    • Resolution: Prioritize containment over investigation
    • Action: Implement emergency containment procedures first
  4. Insufficient Access for Forensics

    • Error: "Permission denied accessing system memory"
    • Resolution: Escalate to obtain necessary privileges
    • Fallback: Use available logs and network data
  5. Backup Corruption

    • Error: "Backups also encrypted by ransomware"
    • Resolution: Identify offline/air-gapped backups
    • Contingency: Assess rebuild from scratch vs ransom payment

Resources

Incident Response Frameworks:

Forensic Tools:

  • Memory analysis: Volatility Framework
  • Disk forensics: Autopsy, FTK Imager
  • Network analysis: Wireshark, tcpdump
  • Log analysis: ELK Stack, Splunk

Threat Intelligence:

Communication Templates:

  • Breach notification requirements by jurisdiction
  • Customer communication guidelines
  • Media response templates
  • Regulatory reporting formats (GDPR, HIPAA, etc.)

Playbook Templates:

  • Ransomware response: {baseDir}/templates/playbook-ransomware.md
  • Data breach response: {baseDir}/templates/playbook-breach.md
  • DDoS response: {baseDir}/templates/playbook-ddos.md

Legal and Compliance:

  • Chain of custody documentation
  • eDiscovery preparation
  • Cyber insurance claim procedures
  • Law enforcement coordination

04 同仓库更多 Skills

BbgnsurfTech
BbgnsurfTech/claude-skills-collection

UI 视觉回归测试

testing-visual-regression

使用截图比较检测 UI 组件中的视觉变化。 在检测意外的 UI 更改或像素差异时使用。 用“测试视觉变化”、“比较截图”或“检测 UI 回归”等短语触发。

测试工程师测试与质量保障
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

单元测试自动生成

generating-unit-tests

从源代码自动生成全面的单元测试,覆盖正常路径、边界条件和错误情况。 在为函数、类或模块创建测试覆盖时使用。 用“生成单元测试”、“为…创建测试”或“添加测试覆盖”等短语触发。

测试工程师测试与质量保障
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

测试报告生成与可视化

generating-test-reports

生成包含指标、覆盖率和可视化内容的全面测试报告。 在执行专项测试时使用。 用“生成测试报告”、“创建测试文档”或“显示测试指标”等短语触发。

测试工程师测试与质量保障
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

测试执行编排与协调

orchestrating-test-execution

协调跨多个环境和框架的并行测试执行。 在执行专项测试时使用。 用“编排测试”、“运行并行测试”或“协调测试执行”等短语触发。

测试工程师测试与质量保障
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

managing-test-environments

Provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".

★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

generating-test-doubles

Generate mocks, stubs, spies, and fakes for dependency isolation. Use when creating mocks, stubs, or test isolation fixtures. Trigger with phrases like "generate mocks", "create test doubles", or "setup stubs".

★ 29