Forensics report

From jmagly/aiwg · View interactive version

Forensics report is an AI agent skill from the GitHub repository jmagly/aiwg. Generate forensic investigation report

How to use this skill

Skill file

/forensics-report

Compile all forensic findings, analysis outputs, timelines, and IOC registers into a structured investigation report. Supports three report formats: triage summary for immediate response, full technical report for detailed review, and executive summary for leadership briefing.

Usage

/forensics-report <forensics-path> [options]

Arguments

| Argument | Required | Description |

|----------|----------|-------------|

| forensics-path | Yes | Path to investigation directory (e.g., .aiwg/forensics/) |

| --format | No | Report format: triage, full, executive (default: full) |

| --output | No | Output path (default: .aiwg/forensics/reports/forensic-report.md) |

| --include | No | Specific sections to include: timeline, ioc, evidence, remediation |

| --severity-threshold | No | Minimum finding severity to include: low, medium, high (default: low) |

| --investigator | No | Investigator name for report attribution |

| --case-id | No | Override case ID in report header |

Behavior

When invoked, this command:

  1. Collect Investigation Artifacts
  1. Severity Classification
  1. Executive Summary (all formats)
  1. Technical Findings Section (triage and full formats)
  1. Timeline Section (full format)
  1. IOC Section (full format)
  1. Evidence Documentation (full format)
  1. Remediation Plan
  1. Report Finalization

Report Formats

| Format | Audience | Length | Sections |

|--------|----------|--------|----------|

| triage | First responders | 1-2 pages | Executive summary, critical findings, immediate actions |

| full | Security team, legal | 10-20 pages | All sections: findings, timeline, IOCs, evidence, remediation |

| executive | Leadership, board | 1 page | Business impact, incident classification, remediation summary |

Examples

Example 1: Full report

/forensics-report .aiwg/forensics/

Example 2: Triage report for immediate response

/forensics-report .aiwg/forensics/ --format triage

Example 3: Executive summary

/forensics-report .aiwg/forensics/ --format executive --output .aiwg/forensics/reports/exec-summary.md

Example 4: High and critical findings only

/forensics-report .aiwg/forensics/ --severity-threshold high

Example 5: Include specific sections

/forensics-report .aiwg/forensics/ --include timeline,ioc,remediation

Output

Artifacts are saved to .aiwg/forensics/reports/:

.aiwg/forensics/reports/
├── forensic-report.md            # Primary investigation report
├── executive-summary.md          # Executive version (if requested)
├── triage-report.md              # Triage version (if requested)
└── report-metadata.yaml          # Generation metadata and integrity hash

Sample Report Structure (full format)

# Forensic Investigation Report
Case ID: INV-2026-02-27-web01
Generated: 2026-02-27T15:01:44Z
Classification: CONFIDENTIAL

## Executive Summary

**Incident Classification**: Confirmed Breach
**Severity**: CRITICAL
**Affected Systems**: web01.internal (192.168.1.50)
**Attack Window**: 2026-02-26 22:14Z - 2026-02-27 02:15Z (4h 1m)
**Attacker Objectives**: Persistent access, C2 implant installation
**Data Impact**: Undetermined (investigation ongoing)

Key Findings:
1. [CRITICAL] Successful SSH brute force against account 'deploy'
2. [CRITICAL] C2 implant installed via cron persistence (/tmp/.update)
3. [HIGH] Active C2 beacon to 185.220.101.42:4444
4. [HIGH] Privilege escalation: deploy -> root via sudo
5. [HIGH] Attacker IP 185.220.101.42 is known Tor exit node

## Findings

| ID   | Severity | Title                          | Asset  | MITRE         |
|------|----------|--------------------------------|--------|---------------|
| F-01 | CRITICAL | SSH brute force success        | web01  | T1110.001     |
| F-02 | CRITICAL | Cron-based persistence         | web01  | T1053.003     |
| F-03 | HIGH     | Active C2 connection           | web01  | T1071.001     |
...

## Remediation Plan

### Immediate (0-24h)
- [ ] Isolate web01 from network
- [ ] Revoke 'deploy' account credentials
- [ ] Block 185.220.101.42 at perimeter firewall
- [ ] Remove /tmp/.update and associated cron entry

### Short-term (1-7 days)
- [ ] Rotate all SSH keys on affected system
- [ ] Audit all user accounts for unauthorized additions
- [ ] Review and harden SSH daemon configuration
...

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.