forensics-report
Generate forensic investigation report
What this skill does
# /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** - Scan forensics directory for all completed outputs - Load: triage summary, acquisition manifest, analysis findings, timeline, IOC register - Identify missing sections and note gaps in coverage - Record report generation timestamp 2. **Severity Classification** - Review all findings from analysis agents - Classify each finding: CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL - Count findings by severity for executive dashboard - Identify the most significant findings for report lead section 3. **Executive Summary** (all formats) - State incident classification (confirmed breach, suspected breach, false positive) - Summarize attack scope: affected systems, accounts, data - State attacker objectives and achieved goals (if determinable) - List top 3-5 critical findings - State immediate actions taken or required 4. **Technical Findings Section** (triage and full formats) - Structured finding table: ID, severity, title, affected asset, evidence reference - Per-finding detail: description, evidence, MITRE ATT&CK mapping, recommendation - Link each finding to source log lines or artifacts 5. **Timeline Section** (full format) - Include condensed attack timeline with key milestones - Reference full timeline at `timeline/incident-timeline.md` - State attacker dwell time and activity window 6. **IOC Section** (full format) - Embed IOC register summary - Highlight immediately actionable IOCs (IPs to block, hashes to scan) - Reference full IOC register for SIEM/firewall import 7. **Evidence Documentation** (full format) - List all collected evidence artifacts with case IDs - Include SHA-256 hashes for integrity verification - Reference chain-of-custody log - Note preservation status 8. **Remediation Plan** - Prioritized action list with severity-based ordering - Short-term: immediate containment and eradication steps - Medium-term: hardening and configuration changes - Long-term: detection improvements and monitoring enhancements - Assign suggested owner categories (security team, sysadmin, management) 9. **Report Finalization** - Write formatted report to output path - Generate PDF-ready markdown with proper heading hierarchy - Compute report integrity hash - Update investigation state to `reporting-complete` ## 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 ```bash /forensics-report .aiwg/forensics/ ``` ### Example 2: Triage report for immediate response ```bash /forensics-report .aiwg/forensics/ --format triage ``` ### Example 3: Executive summary ```bash /forensics-report .aiwg/forensics/ --format executive --output .aiwg/forensics/reports/exec-summary.md ``` ### Example 4: High and critical findings only ```bash /forensics-report .aiwg/forensics/ --severity-threshold high ``` ### Example 5: Include specific sections ```bash /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) ```markdown # 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 - @$AIWG_ROOT/agentic/code/frameworks/forensics-complete/agents/reporting-agent.md - Reporting Agent - @$AIWG_ROOT/agentic/code/frameworks/forensics-complete/templates/forensic-report.md - Report template - @$AIWG_ROOT/agentic/code/frameworks/forensics-complete/templates/executive-summary.md - Executive template - @$AIWG_ROOT/agentic/code/frameworks/forensics-complete/commands/forensics-status.md - Investigation status
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.