Skip to content
Back to skills

07 Incident Response

ASecurity

Use for incident response coordination, evidence preservation, forensic timeline reconstruction, or post-incident review. For routine log parsing without an incident, use 12-log-analysis.

  • 2 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added June 5, 2026
securitypythongobashgitsecuritydocumentation

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 5 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill 07-incident-response --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 07 Incident Response?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 07 Incident Response
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/masriyan-07-incident-response/badge)](https://www.skillsdirectory.com/skills/masriyan-07-incident-response)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 07-incident-response
description: Use for incident response coordination, evidence preservation, forensic timeline reconstruction, or post-incident review. For routine log parsing without an incident, use 12-log-analysis.
metadata:
  author: Masriyan
  version: 1.0.0
  tags: cybersecurity, incident-response, forensics, dfir, evidence, timeline
---

# 🚨 Incident Response & Digital Forensics

## Overview

Use this skill for structured incident response operations, digital evidence collection and preservation, forensic timeline analysis, memory forensics, and post-incident reporting. It follows NIST SP 800-61 and SANS incident handling methodology.

---

## Prerequisites

### Required

- Python 3.8+
- `pyyaml`, `jinja2`, `pandas`

### Optional

- **Volatility 3** — Memory forensics
- **Autopsy / Sleuth Kit** — Disk forensics
- **plaso / log2timeline** — Timeline generation
- **KAPE** — Evidence collection (Windows)
- **velociraptor** — Endpoint forensics

```bash
pip install pyyaml jinja2 pandas python-dateutil
```

---

## Core Capabilities

### 1. IR Playbook Creation & Execution

**When the user asks to create or follow an IR playbook:**

1. Identify the incident type (ransomware, phishing, data breach, insider threat, DDoS, malware, account compromise)
2. Generate a step-by-step playbook following the PICERL framework:
   - **P**reparation — Verify tools, access, and communication channels
   - **I**dentification — Confirm the incident, scope, and severity
   - **C**ontainment — Short-term and long-term containment strategies
   - **E**radication — Remove threat actors, malware, and persistence
   - **R**ecovery — Restore systems and verify integrity
   - **L**essons Learned — Post-incident review and improvement
3. Include role assignments (IR Lead, Forensics, Comms, Legal)
4. Define escalation criteria and communication templates
5. Set timeline expectations for each phase

### 2. Evidence Collection & Preservation

**When the user asks to collect evidence:**

1. Follow order of volatility (most volatile first):
   - Running processes, network connections, memory
   - Temporary files, login sessions
   - Disk images, log files
   - Backup media, physical evidence
2. Document chain of custody for each evidence item
3. Calculate and verify cryptographic hashes
4. Create forensic images where applicable
5. Preserve log files from relevant sources
6. Generate evidence inventory manifest

### 3. Forensic Timeline Analysis

**When the user asks to build a timeline:**

1. Collect timestamps from all available sources (logs, filesystem, registry, memory)
2. Normalize timestamps to UTC
3. Correlate events across multiple data sources
4. Identify the initial compromise (patient zero)
5. Map the kill chain progression
6. Highlight critical events with context
7. Export timeline in CSV/JSON/HTML format

### 4. Memory Forensics

**When the user asks about memory forensics:**

1. Guide memory acquisition (live vs. dead analysis)
2. Profile identification for Volatility
3. Process listing and analysis (pstree, pslist, psscan)
4. Network connection extraction (netscan)
5. DLL and module analysis
6. Registry hive extraction from memory
7. Malware detection in memory artifacts
8. Code injection detection

### 5. Post-Incident Reporting

**When the user asks for an IR report:**

1. Executive summary (non-technical audience)
2. Incident timeline with visual representation
3. Scope and impact assessment
4. Root cause analysis
5. Remediation actions taken
6. Recommendations to prevent recurrence
7. Compliance notification requirements (GDPR, HIPAA, PCI-DSS)

---

## Usage Instructions

### Example Prompts

```
> Create an incident response playbook for a ransomware attack
> Help me collect forensic evidence from this compromised Windows server
> Build a timeline from these log files to trace the attack
> Guide me through memory forensics with Volatility on this dump
> Generate a post-incident report for management
```

---

## Script Reference

### `evidence_collector.py`

```bash
python scripts/evidence_collector.py --host 192.168.1.100 --output evidence/ --type full
python scripts/evidence_collector.py --logs /var/log/ --output evidence/ --type logs-only
```

### `timeline_builder.py`

Run on working copies of collected logs, not original evidence. The helper normalizes explicit offsets to UTC and assumes UTC for timestamps without an offset; verify that assumption against the source configuration. Date-only end filters include the entire UTC day. The timeline is a triage aid: confirm ordering against original evidence when timestamps lack a year or timezone.

```bash
python scripts/timeline_builder.py --logs ./collected_logs/ --output timeline.csv
python scripts/timeline_builder.py --logs ./logs/ --output timeline.html --format html --start "2024-01-15" --end "2024-01-16"
```

---

## Integration Guide

- **← CSOC Automation (11)**: Receive triaged alerts requiring IR
- **→ Threat Hunting (06)**: Feed IOCs for environment-wide hunting
- **→ Malware Analysis (05)**: Analyze collected malware samples
- **→ Log Analysis (12)**: Deep-dive into specific log sources

---

## References

- [NIST SP 800-61 Rev. 3 — Incident Response Recommendations and Considerations for Cybersecurity Risk Management](https://csrc.nist.gov/pubs/sp/800/61/r3/final)
- [SANS Incident Response Process](https://www.sans.org/white-papers/33901/)
- [Volatility Documentation](https://volatility3.readthedocs.io/)
- [The Art of Memory Forensics (Book)](https://www.wiley.com/en-us/The+Art+of+Memory+Forensics-p-9781118825099)

Files in this skill

  • SKILL.md13.5 KB
  • examples/example_usage.md337 B
  • scripts/__pycache__/timeline_builder.cpython-314.pyc16.6 KB
  • scripts/evidence_collector.py13.1 KB
  • scripts/timeline_builder.py9.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.