I Built robo-iris: An Offline DFIR Workbench With Its Own Local AI Analyst
A case workbench for incident response that runs from a USB stick, never touches the internet, and ships its own local LLM, plus a harness that checks the AI's work before I trust it.
In my last AI post I talked about running models locally for privacy. This is where that went. I wanted a place to work a case that I could carry to any Windows box, that would never send evidence anywhere, and that had an AI sitting next to me that I could actually hold to account.
It’s inspired by DFIR-IRIS, the open-source incident response platform, and follows its case model. It’s new code, though, not a fork, and it’s built to run offline from a single folder. I built it with an AI coding assistant as my pair programmer, which was a whole learning experience on its own.
What it is
At its core it’s a case management workbench, with the things I reach for on every investigation:
- Cases and an Inbox, where evidence and anything suspicious land before there’s a case (more on that below).
- A timeline of UTC events with host, source, ATT&CK technique, evidence reference and a ★ key-event flag.
- Findings that force you to separate observation (what the evidence shows) from interpretation (what you think it means), with bounded confidence.
- IOCs (auto-defanged), assets, evidence with automatic hashing and a chain-of-custody log, tasks, notes and screenshots (the original file is kept byte-for-byte and SHA-256 hashed).
- An offline knowledge base: 153 ATT&CK techniques with “what to look for” notes, 99 Windows event IDs, 56 forensic artifacts, 12 scenario playbooks with task checklists, and cheat sheets for 49 DFIR tools.
Everything runs on 127.0.0.1 behind a per-launch token, with a strict Content-Security-Policy, and it loads
nothing from the internet. Even the fonts are bundled. All the data lives in one data\ folder, so moving
every case to another machine means copying one folder.
The timeline that finds the incident for you
The visual timeline was the feature I iterated on most. Real cases have hundreds of events spread over weeks: software installs, old file dates, routine logons. The attack usually happens in a window of a few hours.
So the chart finds that window itself. Every event gets an importance score: critical and high detections count most, then key events and anything tagged with an ATT&CK technique. It then picks out the densest burst of important activity. On a real practice case it went from showing Dec 2019 → Oct 2022 to a 42-hour window containing the Cobalt Strike detections, the persistence task, PsExec and the beacon traffic. You can switch to all events or a custom range, and the event table below follows whichever window you pick.
Labels go to the most important events first, with one per event type before any repeats, and identical
events close together merge into one label (×3 for the beacons above). You can export just the timeline as
PDF, Word, Excel, HTML, CSV or a PNG/SVG image for slides. The CSV export neutralizes cells that start like
Excel formulas, because attacker-controlled command lines end up in those cells.
The local AI analyst
The app ships its own AI engine: llama.cpp (Vulkan build, which also includes every CPU backend) running Gemma 4 26B-A4B. That’s a mixture-of-experts model, so only about 4B of its 26B parameters work on each token. That’s why it’s usable even on a CPU.
Two rules I set for myself:
- The AI never starts on its own. You press start AI and acknowledge that it’s an offline local model.
The engine listens on
127.0.0.1only, with a random key per launch, so nothing else on the machine can use it. A Windows job object ties it to the app, so closing robo-iris always kills it. - AI output is a lead, not a fact. Everything the AI produces is marked AI-assisted and disclosed in the report.
The harness matters more than the model
Testing local models against my own planted-attack logs taught me fast that the model is just one component. Here’s what kept going wrong, and what the harness does about it:
| What local models did | What the harness does |
|---|---|
| Cited evidence vaguely or made lines up | Every log line is numbered (L0042), and the verifier rejects any citation to a line that doesn’t exist |
A 12B model “decoded” a PowerShell download cradle into an invented .jar URL |
The harness decodes -EncodedCommand / Base64 itself and hands the model the exact plaintext. The model is told never to decode anything |
| Invented ATT&CK IDs, or put the wrong name on a real one | Every technique ID is checked against the offline ATT&CK library, and name/ID mismatches are flagged |
| Logs bigger than the context window | Chunks on line boundaries (so citations stay valid), then merges the chunk analyses map-reduce style |
| Reasoning models “thought” until they ran out of tokens | Reasoning is switched off for list-style modes, and any answer cut off at the limit is flagged |
It has nine purpose-built modes: strict evidence-bound triage, an IR mentor (“where do I look?”), ATT&CK mapping, explain-an-artifact, importable IOC and timeline extraction, report drafting from case facts only, a devil’s-advocate peer review, a tool helper, and general Q&A. It can also read screenshots through the model’s vision projector.
Will it run on this machine?
Because it’s meant to live on a USB stick, it has to cope with whatever machine it’s plugged into. Before the AI loads, the start dialog checks the machine: free RAM, which GPU it would use, the CPU, and the drive it’s running from, including its file system and actual read speed. For each model it says whether it fits and roughly how long loading will take. If the big model won’t fit, it pre-selects the small one.
The small model is Gemma 4 E4B (about 5 GB). It’s for laptops: it needs about 8 GB of RAM instead of about 20. Some numbers from my desktop (Ryzen 9 5900X, RTX 3090):
| Load | Reading input | Writing the answer | |
|---|---|---|---|
| Gemma 4 26B, CPU only | 65–105 s | ~63 tokens/s | ~8 tokens/s |
| Gemma 4 26B, GPU | ~80–95 s from disk | ~2,900 tokens/s | ~70 tokens/s |
| Gemma 4 E4B, CPU only | ~5 s | ~206 tokens/s | ~12 tokens/s |
The same check runs from a terminal as robo-iris.exe cli check, which is handy before you even open the app
on an unfamiliar box.
Hardening it for the USB stick
Once robo-iris lived on a stick, a new set of questions came up. What does it leave behind on the machines I plug it into? How do I keep the copy on the stick and the copy on my PC from drifting apart? And how would I prove the toolkit hadn’t been tampered with if a report were ever challenged? So I did a hardening pass.
Fewer traces on the host. The first build was a single-file exe, which quietly unpacks itself into
%TEMP% on every launch, and the app window kept its browser profile in %LOCALAPPDATA%. On a machine under
investigation, that’s contamination you’d have to explain. Now:
- The app is a one-folder build, so nothing gets unpacked into
%TEMP%. - The window profile lives on the stick, with crash reporting switched off.
- The bundled tools have their temp and app-data folders pointed into the workspace, so things like Volatility’s symbol cache stay on the stick too.
What’s left is what Windows records for any program that runs: Prefetch, Amcache, UserAssist and USB device history. The README now lists those, so they can go straight into the case notes.
Workspace backup and restore. One button zips the whole data folder (cases, reports, figures, tool output) with a SHA-256 next to it. The database is copied with SQLite’s online backup, so it’s consistent even while the app is running. A restore checks the zip’s hash and every file inside it before anything changes. Then it swaps the data in the next time the app starts, and keeps the old folder instead of deleting it.
An integrity manifest. The build writes the SHA-256 of every shipped file (11,666 of them, about 25 GB
including the models) to integrity-manifest.json:
- Every launch runs a quick check in the background. It takes about 13 seconds and only size-checks the big model files.
- A full check hashes everything in about 40 seconds on my NVMe drive, and around 100 seconds while the app is running.
- Changed or missing files fail the check. So does any new DLL sitting where Windows would load it, next to the exe or in the engine folder. The manifest’s own hash is a fingerprint I keep off the stick: if someone changes files and regenerates the manifest, the fingerprint changes.
There were two smaller fixes too:
- The README now explains the antivirus friction you get on other machines: the unsigned exe trips SmartScreen, and Defender likes to quarantine memory-capture tools. If a tool gets quarantined, robo-iris refuses to run it, because it fails its hash check.
- The AI’s reply budget doubled to 8,192 tokens, because whole-case summaries were getting cut off partway through.
Tools, triage and reports
The Tools section is organized by “I want to…” tasks: capture memory, hunt event logs, prove a program ran, find persistence. Each task recommends tools in order, with exact commands. The bundled tools (Eric Zimmerman’s suite, Hayabusa, Chainsaw, Volatility 3, Velociraptor, YARA, capa and more) are downloaded from official releases, pinned, hash-checked at build time, and re-hashed before every run. The run dialog shows the exact command line, and it never goes through a shell.
There’s also a one-click triage pipeline. Point it at a KAPE or Velociraptor collection and/or a memory
image, and it hashes and registers the evidence, runs a disk branch and a memory branch side by side, and keeps
only what matters. For example, from $MFT it takes executables in user-writable folders plus timestomp flags,
not millions of rows. That all lands in the case. An optional AI first pass then writes a draft note to review.
When it’s time to write it up, the Report tab has a readiness checklist and one-click exports: PDF, an
editable Word document with real headings, an Excel workbook with one sheet per section, and HTML. All of them
are generated by dependency-free writers I built for the project. Excel cells are always written as text, so a
malicious value from the evidence like =cmd|... can’t execute when someone opens the workbook.
The Inbox: where cases start
robo-iris used to have an Alerts page, copied from how DFIR-IRIS works in a SOC, where a SIEM pushes alerts in. On an offline workbench, though, nothing feeds it, and I wasn’t going to type alerts in by hand. That page sat at zero. So I replaced it with the place my work actually starts: an Inbox.
Paste & analyze. I paste in whatever I’m looking at: a command line from an EDR alert, a Base64 blob, a phishing email’s headers, a list of hashes, a few log lines. robo-iris then:
- decodes it exactly. That covers PowerShell
-EncodedCommand, Base64 and URL-encoding, two layers deep. - pulls out the indicators, and marks the ones that only show up after decoding.
- flags about 30 living-off-the-land and tradecraft patterns, each with its ATT&CK ID. Examples: an encoded
PowerShell download cradle, an LSASS dump through
comsvcs.dll, shadow copies being deleted,certutilused as a downloader. - links the matching entries in the offline knowledge base.
None of this is AI; it’s decoding and pattern matching, so it’s fast and it never makes anything up. If I want the AI’s take, one button hands it the text plus the exact decoded content.
Email headers get their own treatment. The Inbox reads the hops oldest-first, then shows SPF, DKIM and DMARC results, and spells out the classic red flags: a Return-Path domain that doesn’t match the sender, or replies going to a different domain than the email came from.
Drop evidence. Files dropped in (up to 140 MB) are copied into the workspace and hashed. Bigger things, like a KAPE folder or a memory image, are registered by path instead: they aren’t copied, and big files are hashed in the background. robo-iris then works out what each item is, such as Hayabusa output, an event log, an email, a screenshot, a memory image, a triage collection or an executable, and suggests a next step.
Send to case turns an item into an evidence record, with its MD5, SHA-1 and SHA-256 and a “received” chain-of-custody entry in my name. Then it offers the next step: import 3 events for tool output, run triage (pre-filled with the path) for a collection, or add as screenshot for an image.
Fun stuff
It has five dark themes and four layouts: a sidebar, a top bar, an icon rail, and a tmux-style terminal layout (below). There are also two easter eggs, which I’ll leave you to find.
What I learned
- Local AI is a privacy win, but it needs guardrails. The verification layer turned “the AI said so” into “the AI said so, and here’s which claims checked out.”
- Forensic data breaks assumptions. Token counts, JSON escaping of Windows paths (
C:\ProgramData\upd.dllcontains\u), and formula injection in CSV and Excel exports were all things I only found by testing with real-looking data. - Portable means humble. It has to work on whatever machine it’s plugged into, which is why the machine check exists, and why there’s a small model.
- Make the tool accountable too. I already held the AI to account; the hardening pass did the same for the toolkit, with its own hashes, a record of what it leaves on a host, and backups I can verify.