Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Bravos — threat modeling that proves itselfNew to Visual Studio Code? Get it now.
Bravos — threat modeling that proves itself

Bravos — threat modeling that proves itself

Bravos

|
5 installs
| (0) | Free
Threats are annotated in your code, then attacked until each one is confirmed, ruled out, or shown to be by design.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Bravos

Your codebase already knows what can go wrong with it. Bravos writes that down, then proves which parts are real.

Bravos keeps a threat model in your source as annotations, then attacks your running application until each threat is confirmed, ruled out, or shown to be by design. You get a short list of what is actually exploitable, not a pile of maybes.

The Bravos sidebar — Overview, Findings and Code graph — beside the Map page, which shows a repository as layers marked by open exposures

The Agent reach tab: each AI agent and principal, the capabilities it can reach and the assets behind them, with each line marked entitled or not and gated or not

How it works

  1. The threat model lives in your code. An AI reads the repository and writes what each part exposes and what mitigates it, as guardlink comments above the lines they describe. It is reviewed, diffed and versioned like any other code, and re-annotated on every change, so it cannot go stale.

    # @exposes db.users to #sql-injection [high] cwe:CWE-89 -- "the query concatenates a caller-supplied name"
    def find_user(name):
        return db.execute("SELECT * FROM users WHERE name = '" + name + "'")
    
  2. Each threat is a hypothesis until a probe settles it. cert-x-gen writes an exploit for that threat, runs it against your app (signed in as a chosen role, or anonymously), and mutates its approach when an attempt fails. The record says what was tried, under which identity, and where a control stopped it.

  3. Exploitable is not the same as vulnerable. When a role is meant to have a capability, you say so in the code with @entitles. The probe still runs and the evidence is kept; only the label changes. Cross-user and cross-tenant access can never be waved away this way.

  4. It does not stop. Fix and push: the change is annotated again, a working fix is marked mitigated, and a fix that opens something new is caught in the same pass. Any coding agent in the repository reads the same annotations.

Get started

pipx install bravos        # the engine (Python 3.11+); or: pip install bravos
npm install -g guardlink   # maintains the annotations
  1. Run Bravos: Check environment. It lists what this machine can run and the exact command for anything missing.
  2. Map the code with Bravos: Index this repository for code search. Free, no annotations needed.
  3. Bravos: Annotate this repo has an agent write the annotations. Bravos: Analyse this repository turns them into findings, a report and a dashboard. Neither sends any traffic.
  4. Open the Bravos sidebar. The Overview says what comes next.

Building the threat model writes into your working tree, though it sends nothing: the model under .guardlink/ and guardlink's agent instruction files (CLAUDE.md, AGENTS.md, .github/copilot-instructions.md and others). Bravos asks first in each repository, stays on your branch, commits nothing, and lists every path it wrote.

bravos update upgrades the engine and its companion tools. If the engine is not on your PATH, set bravos.enginePath.

Capabilities

Capability What it does Needs
Model Annotate, threat model, report, dashboard. Sends no traffic. bravos + guardlink
Graph Index a repository and ask it questions. Nothing extra; no licence, no annotations
Code analysis Static analysis, dependencies, secrets and IaC, placed on the code graph and gated by a policy. The licensed analyzer to run one; nothing to read one
Verify Live probes that prove exploitability. Sends real traffic, after you name the target and attest who authorised the test. cxg, Docker and a coding-agent CLI (claude, codex, gemini) or your editor's model

In the editor

Sidebar. Three views:

  • Overview: the flow from setup to gate, where this repository stands, and the next step.
  • Findings: every exposure, marked tested or not with the engine's reason; advisories split into verified and closed; stored code-analysis issues by evidence tier; and Agent reach when the code embeds an AI agent.
  • Code graph (⌥⌘G, Ctrl+Alt+G): index state, the file you have open, and every question the graph can answer.

In your code. @exposes lines (untested hypotheses) and @confirmed lines (proven by a probe) get gutter marks, badges and hovers with the asset, threat, severity and verdict. Each @exposes offers verify this is exploitable →. Stored code-analysis issues appear in the Problems panel, the gutter and hovers, with the gate's verdict in the status bar.

Results. One panel with tabs for Findings, Report (the full threat model with diagrams), Dashboard, Code analysis (attack surface → handler → finding) and Agent reach (which agents can reach which capabilities and assets, and which reaches are unentitled or ungated). An advisory opens with its write-up, CWE and CVSS, a Reproduce panel and the full evidence trail.

Code graph. Every view starts from a question about something you named:

Command Answers
Ask the code graph… / …about this symbol Any question the graph publishes: callers, callees, impact, call chains, dead code, ownership, co-change and more
Blast radius (⌥⌘U, Ctrl+Alt+U) What depends on the file you are editing
What calls this, and what it reaches Callers and callees of the symbol under the cursor
What nothing reaches Dead code, contradictions with the threat model first
What this branch touches Files changed against the default branch and their dependents
Who signed off which risk, and when it lapses Every @accepts, its signer and its expiry

Bravos: Open a code graph page… opens four pages over the same graph:

  • Map: the repository as layers, folders and files, marked by open exposures, findings, churn, ownership or data flow. Zoom to descend.
  • Owners & History: fast-changing files with a single keeper, who to ask, and the team's commit mix.
  • Coupling: files that change together with no import or call between them.
  • Trust: what the graph drew, what it could not read, and whether it matches your working tree.

The graph is keyed on the commit it was built from: editing leaves it valid, committing makes it stale, and the panel offers to re-index. A coding agent can point the panel at a question by writing {tool, arguments, note} to .bravos/graph-question.json; the editor runs that question against your own graph, so an agent can choose the view but never supply the answer.

Settings

Setting Default Meaning
bravos.enginePath bravos Path to the engine.
bravos.model (ask once) Model for annotation and scan judgment. Set it with Bravos: Select model.
bravos.providerMode auto Which providers the model picker offers: this editor's models, installed CLIs, or both.
bravos.agentModel (empty) --model passed to the coding-agent CLI.
bravos.fallbackChain [] Which coding agents to try, in order, when the chosen one stops answering.
bravos.targetUrl (empty) Pre-fills the verify target. Verify always asks.
bravos.sastDiagnostics tiers How loudly stored code-analysis issues show: tiers, corroborated or off.
bravos.graph.typeCheckers off Type checkers used when indexing. auto and trusted run the repository's own build code.

Annotation colours are theme colours (bravos.exposesBackground, bravos.exposesForeground, bravos.confirmedBackground, bravos.confirmedForeground), so workbench.colorCustomizations can change them.

Your code stays yours

Everything runs locally. The extension talks to the engine over 127.0.0.1, has no telemetry and no account, and its panels load nothing from the network. Probe evidence is shown as inert text. The only traffic Bravos generates is the verify tier, at the target you name, after you attest.

Support

Documentation · Install guide · Ask the code graph · Issues and feedback · Discord

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft