Blog

IOCulus: Keeping Triage in the Tab

← Back to Blog

Most of my triage work happens in a browser. An alert in one tab, a threat report in another, and then the same routine every time something looks off: copy the IP, take the brackets out, paste it into VirusTotal, then AbuseIPDB, then Shodan, then do a WHOIS on the domain. None of those steps are hard, but you repeat them dozens of times a day, and each one pulls you away from the page you were actually trying to understand.

So I built IOCulus, a Chrome and Brave extension that brings those lookups into a side panel. Highlight an indicator, right-click, and every relevant lookup runs at once, with the results right next to the page. It also pulls every IOC out of a page in one pass, refangs the defanged ones first, and keeps a log of the current tab's network requests with the suspicious ones flagged. The project page has the full feature list. Here I want to cover a few of the decisions behind it.

No build step, no backend

IOCulus is vanilla JavaScript with no bundler and no build. That was on purpose. A browser extension gets a lot of trust: this one can see every request a tab makes. I'd rather anyone thinking about installing it be able to open the repo and read exactly what will run, instead of a minified bundle produced by a toolchain they'd have to rebuild to verify.

There's also no server of mine anywhere in the middle. Your API keys go straight from your browser to the service they belong to and nowhere else, and history stays in local storage. I don't want to run infrastructure that touches someone else's indicators, and I don't think anyone should have to trust that I would.

Small things that turned out to matter

WHOIS was the first thing to get rewritten. It now uses RDAP, the structured, registry-run protocol replacing WHOIS. The catch is that a registry only answers for the registered domain, so asking about www.mail.example.co.uk fails even though example.co.uk exists. IOCulus starts with the full hostname and walks up one label at a time until a registry answers, and stops early if it gets rate limited, since more tries won't help. Whatever comes back is escaped before it's displayed. Registry data is still data from outside, and I'm not going to drop it into the page as HTML.

Hashes got the same treatment. The extractor finds SHA-512 hashes because they do show up in reports, but VirusTotal doesn't index them. Rather than sending a request that's guaranteed to fail and showing a confusing error, the panel just says so.

Tightening it before calling it done

The last round of work was about cutting things out. The first version asked for more permissions than it actually used, so I removed a content script that was never needed, along with notifications, activeTab, tabs, and request-body access. The settings page had an inline script and inline event handlers that broke the extension's Content Security Policy. Both were moved into their own file, so everything runs under a strict CSP with no exceptions. It's the same standard I hold this site to, and it would be odd to build a security tool that didn't meet it.

Where it stands

IOCulus is at 1.0.0, MIT licensed, and on GitHub. For now you install it by loading it unpacked from chrome://extensions, which takes about a minute. The free tiers of VirusTotal, AbuseIPDB, and Shodan are enough for everyday use. If you try it and something doesn't hold up against how you actually work, open an issue. That's the feedback I want most.