Skills Explorer Add Skills

cairo-vulnerability-scanner

An agent skill by trailofbits, from trailofbits/skills. Tags: analysis, blockchain, security, smart-contracts, starknet.

What it does

Scans Cairo/StarkNet smart contracts for 6 critical vulnerabilities including felt252 arithmetic overflow, L1-L2 messaging issues, address conversion problems, and signature replay. Use when auditing StarkNet projects.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add trailofbits/skills --skill cairo-vulnerability-scanner

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/trailofbits/skills
cp -r skills/plugins/building-secure-contracts/skills/cairo-vulnerability-scanner ~/.claude/skills/cairo-vulnerability-scanner

Safety box score

Grade C, moderate risk: 35 of 100 risk points, rated 2026-10-20. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill is a read-only auditor for Cairo/StarkNet contracts: it searches source files, runs static analysis, and reports the six vulnerability patterns it documents. The main risks are environment impact from shell execution and installing Caracal from a GitHub git URL, which downloads and builds external code in the user’s account.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution2 (moderate)It explicitly runs shell commands such as `rg "felt252" src/` and `caracal detect src/`, and the CI example runs `cargo install --git ...` before analysis.
Network access2 (moderate)The documented install step fetches code from GitHub with `cargo install --git https://github.com/crytic/caracal --profile release --force`, so using the skill can download remote build inputs.
Filesystem reach2 (moderate)The install workflow writes into the user’s home tooling area, e.g. the note to cache `~/.cargo`, so it can modify files outside the project directory.
Secrets & credentials0 (none)The skill does not ask for API keys, browser sessions, `.env` files, or other credentials, and it only scans source code for vulnerabilities.
Privilege & persistence2 (moderate)`cargo install` installs a binary for the current user and changes the user’s toolchain state; it does not need sudo, but it does perform a user-wide install.
Instruction hijack surface0 (none)The file contains audit instructions and reporting requirements, but no prompt-injection content like hidden instructions, remote-follow directives, or attempts to override safety rules.
Irreversible actions0 (none)It does not deploy, publish, send messages, pay, book, or delete anything; its purpose is analysis and reporting only.
Transparency1 (low)The recommended `cargo install --git https://github.com/crytic/caracal ...` is an unpinned remote build, so the exact code executed at install time is not fully visible in the skill repo.

Before installing

Rated 2026-10-20 by an automated review of 4 files from the skill's repository.

Source

Repository
trailofbits/skills (all skills from this repository)
Path
plugins/building-secure-contracts/skills/cairo-vulnerability-scanner/SKILL.md
Branch
main
Collection
building-secure-contracts
Updated
2026-09-19