$ ./ioc_analyzer.py --input sample_cloudtrail.json
IOC Analyzer · live demo
The three heuristic detectors from 02-python-ioc-analyzer, running entirely in your browser. No server, no data leaves this page.
1 · Input
⚠ Synthetic demo data. The built-in log is synthetic training data (same file shipped with the repo). The noisy sample is also synthetic, but closer to a real day: 2,870 records, benign look-alikes and missing fields. It's scored against its answer key, so you'll see the false positives too (why each one fires). Paste your own CloudTrail JSON to analyze real records. They never leave your browser.
2 · Report
No analysis run yet. Click “Run on built-in sample log” above.
How the detectors work
unusual_geo Successful ConsoleLogin from an IP outside a tiny built-in table of common ranges — demo heuristic only, a production system should use a real GeoIP database (e.g. MaxMind GeoLite2).
brute_force ≥ N failed ConsoleLogin attempts from one IP inside a sliding window (default 5 in 10 min) — one finding per IP, earliest window wins.
suspicious_api Watchlist of high-risk API calls: PutUserPolicy, AttachUserPolicy, AttachRolePolicy (high), CreateAccessKey / RunInstances (medium), DeleteTrail / StopLogging (high).
On the noisy sample these rules fire on autoscaling, key rotation, CI deploys, travelling employees and a shared office NAT. That's expected. NOISY_DATA.md explains each false positive and how to tune it.
AbuseIPDB enrichment is skipped in this browser build — exactly like the CLI behaves without an ABUSEIPDB_API_KEY set.
Next step: run it on your machine
git clone https://github.com/szzxli/soc-home-lab
cd soc-home-lab/02-python-ioc-analyzer
pip install -r requirements.txt && python -m pytest tests/ -v
→ Then try the Sigma playground · → Then try a KEV hunt pack · ← back to all projects