Prove a new or changed GuardLink claim, or replay it after a fix, against an authorized target. Use the active coding agent to author a missing kit, run the selected kit through CXG, and record the evidence for that exact claim.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Bravos Prove?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bugb-technologies-bravos-prove)
---
name: bravos-prove
description: "Prove a new or changed GuardLink claim, or replay it after a fix, against an authorized target. Use the active coding agent to author a missing kit, run the selected kit through CXG, and record the evidence for that exact claim."
---
<!-- bravos:generated -->
# Bravos prove: an authorized run, and only a run decides
## When
- The user asks whether an exposure is exploitable, or to prove, test or verify a finding.
- bravos-templatize wrote templates and bravos-env has a target ready.
- `guardlink hypothesis next` puts an untested exposure at the top.
## Do
1. Before you say cxg is missing, check where it is: the briefing's `cxg:` line or `bravos doctor` names it when it is installed but its folder is not on this session's PATH (cxg lives in cargo's folder, `~/.cargo/bin`). Then it is not missing: run it by that full path, or start each command with `PATH="$HOME/.cargo/bin:$PATH"`, and tell the person once the line that fixes their shell. Only `bravos doctor` saying `✘ cxg` means it is not installed (`bravos setup --tools` installs it, with their go-ahead). Check the preconditions from bravos-env before any traffic: authorization for this run, a target that answers, `.guardlink/scope.yaml` committed, each profile passing `cxg pentest auth verify --profile <name>`, and for any non-loopback target both a reviewed scope and the human's authorization typed in this session. If one is missing, stop and hand back to bravos-env. Read the effort: the user's words ("at high"), else a `bravos effort: <level>` line in `AGENTS.md` / `CLAUDE.md`, else medium. It sets a starting budget, not a limit; go beyond it when the work needs it and say why in one line. Starting budget — low: replay a matching kit; medium: also author the first missing test in this session; high: include affected callers and controls; max: cover the testable in-scope queue. A higher effort does not authorize spending on an external model.
2. Order what to test, then read how the person wants proving handled. With the code graph (its MCP tools, or `bravos graph <question> --json` — same answers; see bravos-codegraph) (briefing `Code graph:` says `current`): `codegraph_untested_exposures` and `codegraph_untested_reach` rank untested exposures by reach; test the ones intent.md's Assumptions put in scope first, least privileged entry point first, and report exposures only an out-of-scope attacker reaches instead of running them. Without the graph, say "code graph unavailable; using guardlink hypothesis next order" and use that queue. Within that order, an exposure with a reachable SAST finding joined to it (`bravos sast candidates`) goes before one without, and its route goes into the run notes; with no SAST report or SAST unavailable, skip this. Then, for how the person wants proving handled: the briefing's `Proving:` line, from `.guardlink/proving.md`. If it is not set and the background pass is on (the briefing says the default loopback grant applies), do not ask: test this machine's own app through the default loopback grant (step 5, `run-local`); it covers only `127.0.0.1`, `localhost` or `[::1]`, only the app started from this worktree, only non-destructive kits, and the person switches it off with `bravos prefs set background off`. Ask only when the test needs more than that (a remote target, a schedule). If it is not set and the background pass is off, ask them once, with a suggestion drawn from the repo (for example, "you have a docker-compose; I'd prove automatically on 127.0.0.1:8080"): prove automatically on their loopback target whenever new or changed exposures appear, ask each time, on a schedule (bravos-schedule's nightly), or not now. Record their answer in `.guardlink/proving.md`: lines `choice: auto|ask|schedule|none`, `target: <loopback url>`, `start: <start command>`, `generation: no` (Bravos never uses cxg's model generation), their words quoted verbatim, and `— confirmed by <their name>, <date>`. Before offering or following `auto`, check that `git symbolic-ref --quiet refs/remotes/origin/HEAD` names an existing commit. If missing, warn: fetch the default branch, then `git remote set-head origin --auto` (or `git remote set-head origin <branch>`); use `ask` meanwhile. Then follow it: `auto` proceeds on that target with their quoted words as the attestation; `ask` asks now; `schedule` hands to bravos-schedule; `none` stops here and says so. When they change their mind, rewrite the file with their new words.
3. Read the affected claim from `guardlink hypothesis list --json`. Include a declared mitigation awaiting its first test and a previously confirmed claim now marked retest. Match its key to the logical source location in `guardlink sarif . --profile pentest -o whitebox/findings.sarif`; external annotations also have a physical declaration in a .gal file. Keep both locations. Record the tested source revision or worktree, application build, identity roles and intended oracle. Ask `bravos records intended <file>:<line> --threat <id>` first: a claim an adopted record makes by design is not run as a finding (its old confirmed result reads "confirmed, by design", and holds a pull request until the guard's attacker claims are refused); what is run are the attacker's claims on its guard, written with `bravos records pack` (bravos-templatize). There the entitled identity succeeding is the positive control that shows the test works; an attacker succeeding is a confirmed bug that breaks the record's rule; attackers refused is held. Scope rules do not change: loopback by default, the person's own typed authorization for anything else, destructive classes only on a throwaway copy (`run-copy`, step 5).
4. For a web claim, use its bound JavaScript kit in .guardlink/cxg-replay/. For a missing or mismatched kit, follow bravos-templatize in this session. A matching kit exercises the intended operation and includes a positive control for a claimed defense. Validate the kit and review its scope. Honor the recorded kit policy and the person’s stated limits. An automatic reviewed-only policy requires identical bound test bytes on the default branch. On a clone whose upstream has no testing policy, use `ask` with locally committed policy and scope and typed authorization for loopback `run-once`. The earlier wizard’s “only replay tests I approved” choice retains that restriction.
5. Pass the build witness that bravos-env captured at launch in BRAVOS_REPLAY_BUILD. Without fresh build provenance, retain the observation and leave the current-code claim pending. With no recorded policy and the background pass on, run `bravos hook replay run-local <kit.js>` with the loopback target in BRAVOS_SCAN_TARGET: it needs no policy or scope file, refuses any target that is not loopback (checked on every address the name resolves to) and any run without the build witness, and the first one in this clone tells the person, once, what it does; say that line to them as it is. When the app's own configuration (its .env files, or database, mail, storage or payment settings in the environment) names a host off this machine or a live-looking key, it sends only GET, HEAD and OPTIONS and says which variables decided it: run a test that needs to write on a throwaway copy instead (below). A destructive kit (it deletes or overwrites data, floods, sends mail or payments, or needs PUT, PATCH or DELETE), and a kit that writes where run-local is read-only, runs with `bravos hook replay run-copy <kit.js>` and no target, with the build witness in BRAVOS_REPLAY_BUILD. Bravos starts a throwaway copy of this worktree and runs in it only the command you already ran to start the app: the witness records it when `BRAVOS_APP_START` holds that command at `replay build` (bravos-env). A compose start gives the copy the same compose file, unchanged, as its own project with its own volumes; a development command runs on a free loopback port with its own HOME. It says the command before running it, checks the copy's environment before anything is sent, runs the kit against that copy only, and removes it whatever happens. It never starts Docker. A development-command copy runs as the person, on this machine, so it runs only inside the OS sandbox, whose job is to keep the person's own app from touching local state by accident (it is no wall against code that tries to get out, which is why other classes stay in compose copies): on macOS, sandbox-exec with no outbound connection and no write outside the copy's folder; on Linux, and anywhere without it, only compose copies run. A run in which the sandbox denied the app anything (its local database by its own default, a write outside its folder) records nothing and reads "could not test: the app needs your local …" (or, for an outside host, "tried to reach a host off this machine"), never not exploitable. node_modules is the copy's own clone, and the usual telemetry opt-outs are set. The copy is also refused when a setting it keeps would share the running app's local database, service or files, and only classes that act through the app's own HTTP surface and authorization (idor, privilege_escalation, auth_api and the like) run there; every other class, command execution, files, uploads, injection into a datastore and server-side requests among them, runs only in a compose copy. A start command that names the repository's own folder is refused, and one that goes back to it is caught before anything is sent. Even there, keep their payloads to harmless markers, as for any kit. When it says "could not test" (no witnessed start command, Docker not running for a compose start, a setting still pointing off this machine or shared with the running app, a compose service that mounts a host folder or uses the host's network, a copy that does not start), report that line as the item's result and move on; nothing asks the person. Under a recorded automatic loopback policy, run `bravos hook replay run <kit.js>`. For a one-time approved run under an ask policy, use `bravos hook replay run-once <kit.js>` with the target in BRAVOS_SCAN_TARGET and the person's exact words in BRAVOS_REPLAY_ATTESTATION for that invocation. Keep private identity state outside Git. A scheduled-only policy hands the kit to bravos-schedule. A disabled policy leaves the claim pending. The helper selects one file through plain CXG scan with model authoring disabled. Only evidence tied to the exact claim, tested source and kit is eligible for writeback.
6. Read the individual native CXG execution and ledger result. A reproduced exploit needs an engine-adjudicated confirmation. A held control needs observed denial and a working positive control. Missing roles, ambiguous tests, incomplete imports, a different target build or stale inputs stay pending with the reason. Exit 4 can include both a refusal and valid results from other probes. An ordinary scanner's template-reported match is a lead for a runtime test. Keep private HTTP and auth material out of reports and commits.
7. For workspaces, bind each hop to its own service URL and authorized scope. Every run is plain `cxg scan`, through the replay helper or directly with the same scope, attestation and identities: for Electron add `--target-type electron` with `--app-cmd` or `--app-binary` and the verified desktop profile; for Tauri's in-process proof add `--tauri-prove`. Ordinary network or local CLI scanner templates use the scanner contract and produce leads. Probes are written in this session by bravos-templatize, never generated by cxg. Use the reviewed scope, approved target and identities, and keep the native evidence separate. For an independently stamped result, the GuardLink import is `guardlink hypothesis confirm --from-scan <native-report.json> --write`; check every intended claim key and tested anchor, import only an uncontested exact match, and reread the ledger. A missing key, changed build or failed write is unrecorded. Boundary outcomes use GuardLink's boundary ledger.
8. Report which claims were confirmed or refuted, which still need testing and which were actually recorded. After a recorded engine confirmation, offer to promote the verified kit into `security/` (or `.guardlink/config.json`'s `security_tests_dir`) as a curated regression test, and say why: a promoted kit runs in every pre-PR check, so the fix cannot regress unnoticed. With the person's agreement, review its scope, stable oracle and runner, then retain only portable test code; keep credentials and raw run evidence outside Git. Confirmation alone never promotes a kit. Keep the run ID and replay kit for bravos-recheck.
## Never
- Run `cxg pentest run`, `cxg scan --pentest`, any of cxg's model generation (its ai command, or an AI provider flag), cxg's deterministic or generated templates, or mutation retries: Bravos tests only with `cxg scan --no-author`, and the probes it runs are the ones written and reviewed in this session. The one pentest subcommand it uses is `cxg pentest auth` (capture, import, verify), the identity store `cxg scan --auth` reads.
- Reach for another cxg mode when cxg cannot test something: record could not test with the reason, and write your own check (bravos-templatize).
- Run against a host outside the committed scope, or without the human's typed authorization when the target is not loopback.
- Write `--attestation` text the human did not type, here or in `.guardlink/proving.md`.
- Record a proving preference the person did not state, or read one as covering more than it says: it never covers a non-loopback target or a destructive class.
- Use `--destructive-ok` yourself: only `run-copy` passes it, and only to the throwaway copy it started.
- Run a destructive kit through the default loopback grant (`run-local`) or against the developer's running app: it goes to `run-copy`.
- Start the app from a Bravos hook, or start a repository's dev command you have not read: you start it in your own shell, under your own permission rules and folder trust, because a cloned repository's start command is code that runs on this machine.
- Write `@confirmed` yourself, or treat reading code as a confirmation; the replay helper uses GuardLink to persist the actual engine verdict and rereads the intended entry.
- Call an exposure refuted because a run found nothing, or because the run was killed, refused or never ran its template.
- Write `@accepts` or `@entitles`.
## Done when
- Each selected kit has a native outcome and a verified ledger result, or an explicit reason it remains pending.
- Every recorded outcome is bound to the selected claim and tested inputs. A refutation includes evidence of the working control.
- For each claim you reported its three states: open or mitigated, confirmed, refuted or untested, and verified or stale, plus what was not tested.
- You rebuilt the dashboard from the code (`bravos dashboard`, run in the background): opened in their browser if it has not been opened this session, else with `--no-open` and its path given.
- You ended with one recommended next step: fix a confirmed finding (name it and its file), recheck after a fix (bravos-recheck), or prove the next three untested exposures.
## What it leaves for the next skill
- The run directory, the confirmed and refuted claim keys, and the untested ones, for bravos-recheck and bravos-ship, and for bravos-report to write up what was proven.
## Go deeper
- `${CLAUDE_PLUGIN_ROOT}/skills/bravos-env/SKILL.md` — the target, scope and session this run depends on.
- `${CLAUDE_PLUGIN_ROOT}/skills/bravos-recheck/SKILL.md` — replaying these kits after a fix.