REA Bandit notes (unofficial)
Bandit trees (.bandit / bandit.yaml / severity / skips / baseline pins) record Python SAST identity. In REA 6.7.x, treat selected severity and skip labels as Evidence beside archive/package routes — complementing Safety / pip-audit / Semgrep cousins without inventing APIs. Distinct from rea-safety (Bandit ≠ Safety SCA) and rea-semgrep (Bandit ≠ Semgrep). Preferred slug kept free — KEEP.
Mental model
- Authorize the Bandit config tree (+ packaged charts you hold).
- Quote selected identity labels you actually see (never paste secrets/tokens).
- Cousins → safety · pip-audit · semgrep · snyk.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_banditAPI REA never called.
Minimal path
# authorized Bandit .bandit / bandit.yaml (+ charts you hold)
# quote selected identity labels into case notes (never live secrets)
# cousins → peer lanes above
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_bandit .
Compare
| Artifact | Honest posture |
|---|---|
| severity / skips pins | Bandit stack identity facts |
| Peer | rea-safety |
| Peer | rea-pip-audit |
| Not this | rea-semgrep (Semgrep zoom) |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote selected severity floors, skip test IDs, and baseline path labels only — enough for most Evidence binders.
- API tokens and private baselines are secrets — record key names only.
- Keep Bandit stack identity distinct from Safety / pip-audit trees in case notes.
- Chart image tag pins are identity Evidence — label them separately from cousin pages.
- Select keys are useful inventory — quote them without inventing REA helpers for live Bandit scans.
Scope we will not cover
- No inventing
inspect_bandit/ automatic scans against foreign repos. - No credential theft from tokens or private baselines.
- No pirate redistribution of proprietary Bandit trees.
- No crack framing via Bandit pins.
- No cookbooks that weaken SAST policy on foreign accounts.
- No using Bandit as an unauthorized SAST-recon guide against repos you do not own.
Honest limits
RepoRead documents config literacy — how authorized Bandit trees relate to Evidence — not a full Python SAST course. Prefer upstream Bandit docs; use rea-safety for Safety peers. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.
RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.
FAQ
How is this different from rea-safety / rea-pip-audit / rea-semgrep / rea-snyk?
rea-safety covers Safety. rea-pip-audit covers pip-audit. rea-semgrep covers Semgrep. rea-snyk covers Snyk. This page zooms on Bandit Python SAST stack identity — it does not overwrite those pages.
Is there inspect_bandit in 6.7.0?
Not assumed. Quote .bandit / bandit.yaml / severity / skips / baseline pins you actually open, then use documented package/archive lanes. Do not invent inspect_bandit.
Does REA call Bandit APIs or steal tokens?
No. Local trees only. Redact API tokens and private baselines; do not treat REA as a Bandit runner. No credential theft.
How should I label Evidence vs cousin trees?
Label Evidence by the file present. Keep Bandit stack identity separate from rea-safety and rea-pip-audit.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).