Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/aeonfun/aeonnpx agentmods add skills/aeonfun/aeon/canister-auditWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/aeonfun/aeon/canister-audit)<a href="https://agentmods.dev/skills/aeonfun/aeon/canister-audit"><img src="https://agentmods.dev/badge/skills/aeonfun/aeon/canister-audit/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/aeonfun/aeon/canister-audit"><img src="https://agentmods.dev/badge/skills/aeonfun/aeon/canister-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00127 | $0.06652 |
| Opus 5.5 | $0.00051 | $0.02661 |
| Sonnet 5.5 | $0.00025 | $0.01330 |
| Haiku 4.5 | $0.00013 | $0.00665 |
Grade A, and why
canister-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
${var} - Target selector. Three forms:
- `` (empty) -> auto-select the day's fresh feed target, audit only if it is a Rust IC canister, else exit clean. See §C1.
owner/repo-> audit that GitHub repo (e.g.dfinity/examples, a specific canister repo).fixture:<name>-> local regression mode: audit the bundled fixture atskills/canister-audit/fixtures/<name>/(e.g.fixture:token_vault). No fork, no dedup, no disclosure - a self-contained way to exercise the whole pipeline including the PocketIC proof arm. See §C1/§C2.Scope: Rust canisters only (ic-cdk / candid). Motoko is out of scope for this skill. There is no on-chain-by-address mode - an IC audit operates on source (a canister's logic is not recoverable from its deployed wasm the way verified EVM source is).
Today is ${today}. Read memory/MEMORY.md and the last 30 days of memory/logs/ before starting.
Why this skill exists
Canister bugs are logic and economics on a message-passing model, not syntax. The high-value classes - anonymous-principal access, TOCTOU across await, callback-trap-after-mutation, unbounded storage/cycle-drain DoS, upgrade-safety - are what an agentic reviewer catches by reading the source and reasoning about who can call what and which invariant breaks across an await. No off-the-shelf static tool models them: vuln-scanner and sc-audit have zero IC-aware analysis (Slither is Solidity-only; osv/cargo-audit cover Rust dependency CVEs, not canister logic). This skill is that missing IC arm.
It is sc-audit with the EVM pieces swapped for IC pieces and the shared machinery reused unchanged: the PoC gate (command mode), disclosure routing, dedup ledger, coverage manifest, report shape, and the staging/allowlist pattern. The agentic source pass (§C5) is the reliable core and needs no toolchain; Semgrep and the PocketIC proof arm are best-effort extras, so a clean audit never depends on either succeeding.
Shell shape. Each Bash call is one allowed command (pipes are fine). The run refuses a call that redirects into a file (> f, >> f, cat > f <<EOF, | tee f - /tmp included), sets a variable (REPO=...), starts with export, uses if / case / [ ... ] tests, joins commands with ; / && / ||, or uses find / cp / rm / tr / printf / command -v. So decide in prose from what each call printed, write the values you already know (<WORKDIR>, <SCRATCH>, <TARGET_COMMIT>, <REPO>, <FIXTURE>) into later commands literally in place of the placeholder, save tool output with a flag (--output / -o) or a node -e writer, copy files with python3, and write or append sources.txt/JSON artifacts with the Write/Edit tools. Only the working directory carries between calls; shell variables do not. <SCRATCH> is /tmp/canister-audit (the staging step sets CARGO_TARGET_DIR under it); gh, git, cargo, semgrep, node, python3, mkdir, cd are allowed by bare name (dep CVEs run via the cargo audit subcommand; the PocketIC server is launched by the repro's pocket-ic crate via POCKET_IC_BIN, not a bare command).
What ships with it
16 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- fixtures/README.md 2.5 KB
- fixtures/token_vault/.gitignore 8 B
- fixtures/token_vault/Cargo.lock 17 KB
- fixtures/token_vault/Cargo.toml 598 B
- fixtures/token_vault/repro/Cargo.lock 63 KB
- fixtures/token_vault/repro/Cargo.toml 1.1 KB
- fixtures/token_vault/repro/finding.json 1.1 KB
- fixtures/token_vault/repro/repro.sh 2.1 KB runs code
- fixtures/token_vault/repro/src/lib.rs 389 B
- fixtures/token_vault/repro/tests/repro.rs 3.0 KB
- fixtures/token_vault/rust-toolchain.toml 397 B
- fixtures/token_vault/src/lib.rs 3.3 KB
- fixtures/token_vault/token_vault.did 460 B
- README.md 2.3 KB
- references/ic-security-checklist.md 7.4 KB
- references/ic-semgrep-rust.yml 4.0 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 26d ago First seen · 202 lines · 127 tokens per session scan A 56ec16f5c472
canister-audit is a skill published in the GitHub repository aeonfun/aeon (800 stars, last pushed today), licensed MIT. It adds 127 tokens to every session and 6,652 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-05.
canister-audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| canister-auditaeonfun/aeon | Skill | 800 | today | MIT | A | 127 | Claude Code, Codex |
| yoagentyologdev/yoagent | Skill | 380 | 15d ago | MIT | A | 66 | Claude Code, Codex |
| agent-rust-experttravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 85 | Claude Code |
| rust-expertginkida/rustyhand | Skill | 20 | 2mo ago | MIT | A | 22 | Claude Code, Codex |
| huggingface-tokenizersbraxtonROSE4/zorro-agent | Skill | 11 | 7mo ago | MIT | A | 75 | Claude Code, Codex |
| python-package-managementmicrosoft/agent-framework | Skill | 36 | today | MIT | A | 43 | Claude Code, Codex |
| python-feature-lifecyclemicrosoft/agent-framework | Skill | 36 | today | MIT | A | 43 | Claude Code, Codex |