Skip to content
Back to skills

Auditing Against Reference Models

ASecurity

Model-based audit technique: build an independent reference model of the protocol and diff the real code against it (differential testing), derive spec properties, mirror fuzz scenarios across implementations, triage failures, and run forced PoC verification for material findings. Distilled from foundry test-suite skills and audit-agent methodology; single-session by design - no worker pools, no agent swarms. Use when a spec or reference implementation exists, or when findings need executable...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 20, 2026
ai-agentstestingsecurity

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 20, 2026

npx -y skills add nuroctane/nur-cli --skill auditing-against-reference-models --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auditing Against Reference Models?

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

Security grade badge for Auditing Against Reference Models
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nuroctane-auditing-against-reference-models/badge)](https://www.skillsdirectory.com/skills/nuroctane-auditing-against-reference-models)

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: auditing-against-reference-models
description: "Model-based audit technique: build an independent reference model of the protocol and diff the real code against it (differential testing), derive spec properties, mirror fuzz scenarios across implementations, triage failures, and run forced PoC verification for material findings. Distilled from foundry test-suite skills and audit-agent methodology; single-session by design - no worker pools, no agent swarms. Use when a spec or reference implementation exists, or when findings need executable proof. Load one reference slice."
---

# Auditing against reference models

Instead of reading code and hoping, build a second, simple implementation of what the protocol SHOULD do, then diff reality against the model. Divergence = finding candidate; convergence = coverage. Distilled from published foundry skill suites (aviggiano/security) and audit-agent PoC-gate methodology (PlamenTSV/plamen), orchestration removed.

## Choose your file

| You want | Load |
|----------|------|
| Reference model construction + differential testing | `references/reference-model-and-differential.md` |
| PoC gate, failure triage, campaign discipline | `references/poc-and-campaign-discipline.md` |

## Single-session discipline

One model, one session, sequential diffs. No per-function subagent tests, no worker pools, no model-per-parallel-branch. A reference model that does not fit in one head does not fit in one session - shrink the model to the value-critical core first.

## When this is the right tool

- A spec, reference implementation, or prior version exists (fork deltas, "inspired by Compound/Aave/Uniswap").
- The protocol's math is simple but its enforcement is spread out (fees, caps, ratios).
- Findings need executable proof to survive judging (the PoC gate below).

## Pipeline

1. Pick the value-critical core (deposit/withdraw/mint/burn/liquidate/swap paths + accounting).
2. Write the reference model: simplest correct implementation, no gas tricks, no upgradeability, no periphery - spec-faithful.
3. Run `references/reference-model-and-differential.md`: property mirrors, differential diffs, fork-mirrors if a prior version exists.
4. Every divergence -> is the model wrong (spec ambiguity) or the code wrong (finding)? Resolve via `finding-standard-and-judging.md` gates in `auditing-multi-pass-review-lenses`.
5. Material findings get the forced-PoC treatment (`references/poc-and-campaign-discipline.md`) - a finding without an executable proof demotes to LEAD.

Files in this skill

  • SKILL.md2.5 KB
  • references/poc-and-campaign-discipline.md2.8 KB
  • references/reference-model-and-differential.md2.7 KB

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.

Comments

Loading comments…