Security scanner

Brigade includes a read-only local security scanner for agent workspaces. It is designed to produce redacted findings that can be reviewed, suppressed, or imported into the local work inbox.

Local Config

brigade security init writes .brigade/security.toml. The file is host-local and should stay gitignored.

Supported fields:

Keep tokens, private URLs, hostnames, mount paths, repo paths, and credentials out of this config. Use labels or local paths only when they are safe to expose in local command output.

Review Flow

brigade security scan --target .
brigade security findings
brigade security show <finding-id>
brigade security suppress <finding-id-or-fingerprint> --reason "reviewed false positive"
brigade security unsuppress <finding-id-or-fingerprint>
brigade security doctor

Findings include stable id, fingerprint, rule_id, severity, category, path, line, safe_excerpt, and remediation_hint fields. Secret-looking values are redacted before JSON reports, Markdown reports, work imports, docs, or session artifacts are written.

Inbox Flow

brigade security scan --import-findings writes the local evidence bundle and imports unsuppressed findings into the existing work inbox with source security-scan.

Imported records preserve safe metadata:

Repeated scans dedupe equivalent pending findings. Dismissed imports stay dismissed until the finding materially changes.

Boundaries

The scanner is local and read-only. It does not call external SaaS scanners, perform network scanning, store secrets, start a daemon, schedule scans, mutate GitHub issues, or remediate findings automatically.