# perplexityai/bumblebee — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `dev`
- Overall score: `4.0/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `93b8877e28ac` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-11-30T12:43:25Z
- Repository: https://github.com/perplexityai/bumblebee
- Radar entry: https://radar.alplab.co/#repo/perplexityai/bumblebee
- License: `Apache-2.0`
- CI workflows: `.github/workflows`
- Tags: `supply-chain`, `endpoint-inventory`, `incident-response`, `mcp`, `security-scanner`, `go`

## Summary

Read-only Go endpoint scanner that inventories installed packages, editor/browser extensions, and MCP/AI-tool configs from lockfiles and install metadata, emitting NDJSON and flagging matches against operator-supplied exposure catalogs of compromised packages.

## Implementation Check

Main claims are implemented: scan/roots/selftest/version in cmd/bumblebee/main.go, walker+13 ecosystem scanners wired in internal/scanner/scanner.go, catalog matching in internal/exposure/exposure.go — README coverage table matches the code; only the Perplexity Computer integration in the launch post lives outside this repo.

## When to Use

Reach for it during a supply-chain incident to answer 'which dev machines have compromised package X in their on-disk metadata', or for recurring fleet inventory via cron/MDM. Not for vulnerability management (exact-match malicious-package catalogs only), not an EDR/IOC tool, and don't trust threat_intel/ catalogs blindly in production.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 4.0/5 |
| reliability | 3.0/5 |
| security | 5.0/5 |
| integration | 3.5/5 |

## Code Evidence

Full pipeline is real code: cmd/bumblebee/main.go (flag surface, run/exit-code semantics, scan_summary) -> internal/scanner/scanner.go (bounded concurrent walker dispatching to per-ecosystem scanners) -> internal/output/output.go+httpsink.go (NDJSON dedupe, HTTPS sink with bearer/HMAC auth, https enforced for non-loopback). internal/walk/walk.go excludes credential trees (.ssh/.gnupg/.aws/TCC-protected Library paths) and blocks symlink descent; internal/ecosystem/mcp/mcp.go drops env values and reduces remote URLs to scheme://host so secrets never leave the machine. CI (.github/workflows/ci.yml) runs gofmt/vet/test -race/govulncheck plus the embedded `selftest` end-to-end check on ubuntu+macos; go.mod is stdlib-only.

## Issues Found

Minor: crypto/rand error ignored in newRunID (cmd/bumblebee/main.go); walker suffix excludes (internal/walk/walk.go isExcluded) can over-match same-named paths under unrelated roots, narrowing coverage rather than leaking; no prebuilt binary install path in README (go install or goreleaser release assets only).

## Key Risks

Nothing was executed, so parser behavior against real-world lockfiles is unverified; tests and CI are unusually thorough but that is still not proof. Early project (created 2026-05, 2 releases, small team, top-author share 0.55). Matching is exact (ecosystem, normalized name, version) or ['*'] — no ranges or hashes. Cargo/crates.io not inventoried, documented in threat_intel/trapdoor-crypto-stealer.json. threat_intel catalogs are built from public reporting and are meant to be reviewed before use. HTTP sink has no retry/spool by design (docs/transport.md) — a failed batch means a partial snapshot.

## Reviewed Files

- `README.md`
- `go.mod`
- `.github/workflows/ci.yml`
- `.goreleaser.yaml`
- `cmd/bumblebee/main.go`
- `cmd/bumblebee/roots.go`
- `cmd/bumblebee/selftest.go`
- `cmd/bumblebee/sink.go`
- `internal/scanner/scanner.go`
- `internal/exposure/exposure.go`
- `internal/output/output.go`
- `internal/output/httpsink.go`
- `internal/walk/walk.go`
- `internal/ecosystem/mcp/mcp.go`
- `internal/osv/osv.go`
- `internal/normalize/normalize.go`
- `docs/transport.md`
- `threat_intel/README.md`
