Skip to content
Back to skills

Bravos Sast

ASecurity

Run licensed static analysis (bravos-cli) over the repo after the threat model is in place, read each finding's join to guardlink claims and its reachability, and gate on findings new since the base. When bravos-cli or its licence is absent, say plainly that SAST is unavailable and what would enable it. Use when asked for SAST, static analysis, dependency, secret or IaC findings, and when bravos-ship reaches its SAST step.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
securitypythongotesting

Works with

  • cli

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add Bugb-Technologies/bravos-plugins --skill bravos-sast --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bravos Sast?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bravos Sast
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bugb-technologies-bravos-sast-bravos-plugins/badge)](https://www.skillsdirectory.com/skills/bugb-technologies-bravos-sast-bravos-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bravos-sast
description: "Run licensed static analysis (bravos-cli) over the repo after the threat model is in place, read each finding's join to guardlink claims and its reachability, and gate on findings new since the base. When bravos-cli or its licence is absent, say plainly that SAST is unavailable and what would enable it. Use when asked for SAST, static analysis, dependency, secret or IaC findings, and when bravos-ship reaches its SAST step."
---
<!-- bravos:generated -->

> Paths that start with `SKILL_DIR/` are files in this skill's own folder, the folder that holds this SKILL.md.
# Bravos SAST: static findings joined to the threat model

## When

- The user asks for SAST, a code scan, dependency CVEs, leaked secrets or IaC checks.
- bravos-ship reaches its SAST step on a branch.
- A finding from another scanner needs placing against the threat model.

## Do

**Plan check first.** SAST is on the Team plan. Run `bravos licence --json` once per session (the briefing's `Plan:` line says the same); if `licensed` is false, tell the person in two sentences what this skill would do here and that it needs a Team licence — `bravos account activate` starts a 30-day trial with no card, or https://account.bugb.io/pricing — then stop, and do nothing else from this skill. A licence in grace still counts.

1. Run `bravos doctor`. SAST needs both `bravos-cli` found and a licence that verifies to a paid tier (`bravos licence` shows it: `BRAVOS_LICENCE`, or `licence.jwt` in `$BRAVOS_HOME`, `~/.bravos` or `~/.bugb`). `bravos-cli` is the analyzer bundle `bravos setup` stages under `$BRAVOS_HOME/analyzer/` (a machine that moved from the Python bravos may still have it inside that install; `bravos doctor` prints whichever it found). If it is missing, set it up yourself: `bravos setup --check`, show the person `bravos setup --dry-run --analyzer`, and with their go-ahead run `bravos setup --analyzer` (it fetches the signed bundle through the account portal and verifies it before anything lands). A missing licence is theirs to activate (`bravos account activate`); never invent or copy one. If either is still missing, tell the user SAST is unavailable, name the missing piece, and stop.
2. Annotate first: the analyzer reads guardlink's `@exposes` claims, so its recall depends on them. If the briefing shows the files in scope as unannotated, run bravos-annotate on them before analyzing.
3. Analyze with `bravos sast run` (add `--scope a/,b/` for part of the tree, `--min-severity`, `--timeout`): it runs `bravos-cli analyze . --ci --fail-on never --allow-incomplete-analysis --codegraph reuse -f json,sarif` under the bundle's own environment into `.bravos/sast/<run>/report.{json,sarif}` (not committed; reports can point at secrets, CI uploads the SARIF instead) and writes `meta.json` beside them, which the briefing's `SAST:` line and `bravos sast` read. Before the analyzer starts, the run makes the threat model's export, `.guardlink/report.json`, current: the analyzer joins findings to claims only through it, so a missing or stale one would join nothing. When the run says it refreshed a tracked export, tell the person it changed and is theirs to review and commit; never commit it yourself. When it says the export failed, fix what guardlink parse reports before reading the joins. Then, when the export changed, the run refreshes the code graph's GuardLink snapshot with an incremental build, because the analyzer applies none of the threat model from a graph whose snapshot is older than the annotations. When the run says the threat model wasn't applied, run `bravos graph build .` then `bravos sast run` before reading any join: until then, 0 joined says nothing.
4. Read the exit code first: 0 no finding at or above the level; 1 findings; 3 the licence was refused or the analysis failed; 4 a required stage failed. Exit 3 and 4 are unavailable or incomplete, never clean.
5. Read the findings through `bravos sast candidates` (`--json` for the full list, `--all` to include unknown reach): reachable findings joined to a claim (with its state), reachable ones not in the threat model yet, dependencies with whether the vulnerable function is reached, and secrets.
6. Sort them: a finding joined to an open `@exposes` is that same risk, not a new one: hand it to bravos-templatize, whose template can target the finding's route and taint path; an unjoined reachable finding is a gap in the threat model: hand it to bravos-annotate to record honestly as an `@exposes` with its `@audit`; an unreachable one is reported as such, not dropped; a secret is reported for rotation and never becomes a pentest candidate. A finding labelled `by design per SDR-n NBk` is the product for that item's actor: it is kept and reported as by design, never as a vulnerability; what to test is the guard the label names and who else could reach it. When it is joined to an existing `@exposes`, file its entitlement (`bravos records entitle <file>:<line> --threat <id> --capability <id>`) for a person to accept; when it is unjoined, bravos-annotate records it as by design.
7. Gate what is new: analyze the base too (or use the committed baseline) and run `bravos-cli diff .bravos/sast/<run>/report.json <base report.json> --fail-on-new`. Exit 4 means the two reports use different finding-identity schemes: re-run the base with the same analyzer, never read it as no new findings.
8. Report by severity: joined versus unjoined, reachable versus unreachable, new versus already on the base, and what was not analyzed.
9. **Queue mode** (the background pass, or when asked what to look at next): `bravos sast candidates --new` lists the leads with no threat yet, most reachable first: reached code and infrastructure findings, dependencies whose vulnerable function is called, and secrets committed outside test and fixture folders. A finding counts as in the threat model when an `@exposes` carries its reference (`sast:<finding_id>`), when the analyzer joined it, or when an exposure sits at its place with a compatible weakness; an id that changed between scans still links through the last two, so never write a second threat for it. For each lead, in order: `bravos records intended <file:line>` first (by design: label it and move on); else write its threat at the weak spot with bravos-annotate, adding the reference the queue prints on the `@exposes` you write (only on a new one: never add it to, or change it on, a claim that has been tested, because GuardLink keys the claim on its references); then test it with bravos-prove where testing is allowed. A secret is reported with its file and line, never tested: rotating it is the fix. Not-reached findings (`--all` lists them with the scanner's reason) are never queued; one becomes a lead when a change makes it reachable.

## Never

- Call the code clean unless `bravos-cli analyze` exited 0, and then only at the level it was run with.
- Treat a licence refusal, a missing binary or a crashed run as a pass.
- Baseline, suppress or delete a finding to make the gate pass; that is the human's decision.
- Treat a SAST finding as a confirmed exploit, or write `@confirmed`, `@accepts` or `@entitles`; a static finding is a lead, and only a reproduced run confirms.
- Run `guardlink annotate` with an agent flag to fill a gap; hand it to bravos-annotate.
- Commit a SAST report, or quote a secret's value anywhere; name the rule, file and line only.

## Done when

- Either SAST ran and its exit code and every finding's join and reachability were reported, or you said exactly why it could not run.
- New findings since the base are listed, and `bravos-cli diff` exited 0 or each new one is reported as open.
- Unjoined reachable findings were handed to bravos-annotate.

## What it leaves for the next skill

- The SARIF and JSON paths and the list of new and unjoined findings, for bravos-ship and bravos-cicd; `bravos sast candidates` for bravos-annotate (unjoined leads), bravos-templatize and bravos-prove (joined findings with their routes), and bravos-recheck (rescans after a fix).

## Go deeper

- `SKILL_DIR/../bravos-annotate/SKILL.md` — recording an unjoined finding as a claim.
- `SKILL_DIR/../bravos-ship/SKILL.md` — where SAST sits in the pre-PR gate.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.