Audit

From bronlabs/bron-crypto · View interactive version

Audit is an AI agent skill from the GitHub repository bronlabs/bron-crypto. Audit a file, package, or diff for cryptographic correctness, errs-go compliance, deserialization safety, and audit-scope risk. Use when the user asks to audit, review for security, or check before merging into in-scope code.

How to use this skill

Skill file

You are auditing crypto code. Be skeptical, cite line numbers, and don't fix things — report them.

Steps

  1. Identify the target (file, package, or PR/branch diff). Ask if unclear.
  2. Determine scope: is the target reachable from pkg/mpc/signatures/** or transitively depended on by it? If yes, this is bug-bounty-eligible code (see SECURITY.md). The bug-bounty eligibility is for informational purposes only. Flag any correctness issues regardless of scope, but call out scope-reachability for risk assessment.
  3. Decide whether spec/paper compliance applies, then run it if so. Spec-compliance is only meaningful when the target has a cited reference to compare against. Many packages don't (pure utilities like pkg/base/utils/**, generic data structures, glue code, ad-hoc helpers).
  1. Walk the target for crypto-correctness issues not covered by spec-compliance:
  1. Fold spec-compliance findings into the audit report. Translate spec-compliance severity tags into audit severity tags using the impact line each finding carries:
  1. Output as GitHub-flavoured markdown. Use headers, bold severity tags, and code spans for paths. Don't wrap the whole report in a fenced code block. Template:

```

## Audit — <target>

Scope: in-scope (reachable from pkg/mpc/signatures/**) — _or_ — experimental

Spec compliance: <one-line verdict: "n/a — no cited reference" / "consistent — N questions" / "K deviations vs. <ref>" / "blocked — <ref> unresolved">

### Findings

_(If none: "No findings.")_

### Summary

Counts: N critical, N major, N minor, N info.

Highest-risk: path:line — finding.

```

Severity tags must be one of [critical], [major], [minor], [info] and always bolded. Order findings by severity (critical first), then by file path.

Don'ts

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.