多资产 DFIR 全流程调查编排
用于把一个多主机数字取证案件串成完整的调查流水线。它按照 Parse→Analyze→Correlate→Report 的顺序组织证据解析、单资产研判、跨资产关联和最终报告,并支持 --analyze-only、--report-only、--force 等模式用于续跑或重新分析。流程以 context/case_context.md 中的资产、事件时间窗和 IOC 为共同上下文,源镜像始终保持只读,解析结果进入 export,分析和关联结果进入 analysis,最终生成 Markdown/PDF 报告并执行证据引用核验。Skill 同时保留人工最终确认字段,使自动化结果明确处于 DRAFT 状态。
在 AI 中使用此 Skill将本页链接复制给 AI,即可让 AI 获取完整 Skill 内容并按此执行
安全提示: 本站 Skill 均经 ChatGPT 最新模型扫描,未发现恶意脚本及危险指令、未检出已知恶意行为特征,但不保证绝对安全,使用即表示接受此风险
Skill 文件
版本 20260601 · 8a054d32c234d718e51a4ec495b54252
references/
skills/
case-analyze/
case-correlate/
case-evidence-verify/
case-parse/
case-report/
dfir-amcache/
dfir-browser/
dfir-evtx/
dfir-file-carving/
dfir-lnk-jumplists/
dfir-memory-volatility/
dfir-mft/
dfir-plaso-timeline/
dfir-prefetch/
dfir-recentfilecache/
dfir-recyclebin/
dfir-registry/
dfir-scheduled-tasks/
dfir-shellbags/
dfir-shimcache/
dfir-sleuthkit-file-recovery/
dfir-srum/
dfir-strings/
dfir-yara/
tools-mount/
tools-preflight/
SKILL.md
--- name: case-investigate description: Orchestrate a multi-asset DFIR investigation through parse, analyze, correlate, evidence verification, and report phases. --- ## XingLo Standalone Package Notes This Skill is an orchestrator, so its phase definitions are required dependencies. The XingLo package bundles the phase guides and all referenced artifact-parser guides under `references/skills/`. When a `/case-*`, `/tools-*`, or `/dfir-*` command is not installed separately, execute the corresponding local `guide.md` instructions in sequence. Governance, evidence-guard, fallback-router, and PDF support files are retained under `references/` for the same workflow. # Skill: case-investigate — DFIR Pipeline Orchestrator ## Overview Runs a complete multi-asset DFIR investigation by chaining the phase-skills in order. Each phase is also runnable on its own (for resume, re-run, or debugging); `case-investigate` simply sequences them and passes through flags. All output lands in the case directory; source evidence is never modified. **Before starting:** populate `./context/case_context.md` with every asset ID, evidence path, the Incident Window, and known IOCs. Verify tools once with `/tools-preflight`. | Phase | Skill | Reads | Writes | |-------|-------|-------|--------| | 1 — Parse | `/case-parse` | `sources/`, `context/` | `export/` (parsed evidence — all artifacts on every asset), `audit/` (parse_state, logs) | | 2 — Analyze | `/case-analyze` | `export/`, `context/` | per-asset reports + findings ledgers (prioritizes which assets, sources, and artifacts to examine first) | | 3 — Correlate | `/case-correlate` | per-asset reports | global correlation report + cross-asset ledger | | 4 — Report | `/case-report` | correlation + asset reports | DRAFT final report (MD + PDF) + evidence/validation verification | This is the data-flow view. Each phase's risk tier, AI role, and code-enforced control live in the authority-model table in `references/authority-model.md` (the canonical governance view). Add, remove, or reorder a phase in both tables. Authority model (enforced by the controls below, not just this prompt): **the human examiner is the final authority.** The pipeline runs autonomously but its product is a DRAFT — findings carry an empty `human_validated_by` and the report an empty `author_of_record`; the PDF stays watermarked DRAFT — UNVALIDATED until a human signs off. There is no AI "validate" step (AI Never). Each phase writes its name to `./audit/.dfir_phase`, which the evidence guard uses to keep `./export` writable only during parse. Every action is appended to `./audit/forensic_actions.jsonl` by the audit hook. --- ## Flags | Flag | Behaviour | |------|-----------| | *(none)* | Run all phases (Parse → Analyze → Correlate → Report). Parsing resumes intelligently (skips `OK` artifacts). | | `--analyze-only` | Skip Parse; run Analyze → Correlate → Report against existing `export/` data. | | `--report-only` | Run the Report phase only (re-verify citations and regenerate the report/PDF). | | `--reparse <artifact>` | Pass through to `/case-parse` (re-run one artifact type for all assets). | | `--force` | Pass through to `/case-parse` (delete all `parse_state.txt` and re-parse everything). | --- ## Sequence 1. **Parse** — unless `--analyze-only` or `--report-only`: invoke **`/case-parse`** (forward `--force` / `--reparse <artifact>`). It mounts every asset via `/tools-mount`, runs all parsers with bounded parallelism, and tracks status in `parse_state.txt`. Parse is comprehensive — every artifact on every asset; prioritization is an analysis concern, not a parse-time filter. When it finishes, review the failure summary before continuing. 2. **Analyze** — unless `--report-only`: invoke **`/case-analyze`**. One evidence-tagged analysis report per asset (plus the typed findings ledger), anchored to the Incident Window and the case IOC block. Analyze derives a working hypothesis from the case context and prioritizes — in three tiers — which assets, then sources, then artifact classes to examine first (order only — every asset and parsed artifact is still reviewed). 3. **Correlate** — unless `--report-only`: invoke **`/case-correlate`**. Cross-asset timeline, lateral movement, shared indicators; appends cross-asset findings to the ledger. 4. **Report** — always: invoke **`/case-report`**. Writes the DRAFT final report, runs `/case-evidence-verify` (citation + validation-status check), and generates the PDF (watermarked DRAFT — UNVALIDATED until a human fills `author_of_record`) if WeasyPrint is present. Run the phases strictly in order — each consumes the previous phase's output from the case directory, and each sets `./audit/.dfir_phase` so the evidence guard gates `./export` writes to the parse phase. If a phase surfaces a blocking problem (e.g. no asset mounted in Parse, or an evidence verification `FAIL` in Report), surface it rather than pressing on silently. --- ## Notes - The pipeline communicates only through the case directory, so any phase can be re-run independently without re-running the others. - Tool paths come from `~/.claude/skills/case-investigate/references/tools.env`; availability is checked by `/tools-preflight`. - Never use Write/Edit on `export/` — only the forensic tools (in `/case-parse`) write there. This is code-enforced (settings.json deny + the phase-aware `evidence_guard.py`).
此文件不提供内嵌文本预览
请使用左侧文件行末尾的外链图标打开原始文件。
