BB
BadBotSD
Spybot-like scanner for Linux • supply-chain • xz-utils CVE-2024-3094 • Go 1.24 + Cobra
Terminal-only scanner inspired by Spybot Search & Destroy — rebuilt for Linux supply-chain attacks: social-engineered maintainer takeovers, obfuscated build files and backdoored tarballs.
🔍 Artifact Scanner
Filesystem walk + IOC matching:
path_regex, contains, sha256📦 Package Provenance
dpkg -V, xz version, sshd→liblzma, LD_PRELOAD🛡️ Persistence
systemd, cron, LD_PRELOAD + allowlist (no false positives)
How it works
Like classic Spybot, BadBotSD has 3 layers adapted for Linux:
- Artifact — walks filesystem, matches IOC YAML (AND logic when multiple criteria)
- Provenance —
dpkg -V(quick:xz-utils/liblzma5only), xz 5.6.0/5.6.1 detection,ldd /usr/sbin/sshd | grep liblzma - Persistence —
/etc/systemd/system/*.serviceowned bydpkg -S+/etc/ld.so.preload+$LD_PRELOAD+ allowlistconfigs/allowlist.yaml
Quick start
git clone https://github.com/m5it/BadBotSD && cd BadBotSD go build -o badbot . && sudo install -m 755 badbot /usr/local/bin/badbot sudo mkdir -p /etc/badbot && sudo cp configs/iocs.yaml configs/config.yaml.example /etc/badbot/ sudo badbot check sudo badbot scan --quick sudo badbot scan --path / --quick badbot quarantine add ./suspicious_file && badbot quarantine list
Live malware hashes API apis.grandekos.com
BadBotSD consumes apis.grandekos.com/malware. Library covers Windows, macOS and Linux malware — checks for bad stuff on all systems via SHA256 hash matching. Served via our multi-service API platform with trial/paid entitlements.
🌐 Cross-platform hashes: Our library includes Windows, macOS and Linux malware — scan any host, quarantine hits on all OSes. No separate feeds.
🔓 Trial 3%
Any active
X-API-Key (ignores expiry). 3% deterministic sample per file (sorted → ceil(n*0.03))GET /malware/hashes/trial/{date}.json
🔐 Paid 100%
Requires
valid_until not expired + malware service. Full feed via Shop badbotsd (30€/mo, 180€/yr) → until 2026-12-18GET /malware/hashes/paid/{date}.json
# Trial (free key) curl -H "X-API-Key: YOUR_KEY" https://apis.grandekos.com/malware/hashes/trial/manifest.json curl -H "X-API-Key: YOUR_KEY" https://apis.grandekos.com/malware/hashes/trial/2020-02-24.json # Paid (entitled key) curl -H "X-API-Key: PAID_KEY" https://apis.grandekos.com/malware/hashes/paid/manifest.json # Unified — auto tier via entitlement (trial→paid) curl -H "X-API-Key: YOUR_KEY" https://apis.grandekos.com/malware/hashes/manifest.json curl -H "X-API-Key: YOUR_KEY" https://apis.grandekos.com/malware/hashes/2026-11-18-09.json # hourly curl -H "X-API-Key: YOUR_KEY" https://apis.grandekos.com/malware/hashes/2020-02-24.json # daily (pre-2026-10-30) # Check single hash (paid) curl -H "X-API-Key: PAID_KEY" https://apis.grandekos.com/malware/check/<sha256> # BadBotSD CLI (uses Basic auth alias) badbot update --hashes --api-key YOUR_KEY badbot update --url https://apis.grandekos.com/malware/hashes/trial/2020-02-24.json --user TOKEN --pass x
Daily and hourly carry the same hashes (daily once/day, hourly per hour) — deduped in code so no duplicates. Missing
X-API-Key → 404, invalid/expired → 403, ETag 60s, no restart on sync.Platforms
- Linux primary — Debian/Ubuntu:
dpkg,ldd,xz(single static binary) - macOS experimental Phase 1 —
GOOS=darwin GOARCH=arm64 go build(hash scan works, Phase 2: brew/launchctl)
Built by m5it — Go 1.24+ — MIT — Powers grandekos.com Shop & API. Questions? chat.grandekos.com
Comments
0 comments