Skills Explorer Add Skills

ton-vulnerability-scanner

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

What it does

Scans TON (The Open Network) smart contracts for 3 critical vulnerabilities including integer-as-boolean misuse, fake Jetton contracts, and forward TON without gas checks. Use when auditing FunC contracts.

Install

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

npx skills add trailofbits/skills --skill ton-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/ton-vulnerability-scanner ~/.claude/skills/ton-vulnerability-scanner

Safety box score

Grade A, minimal risk: 7 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 is a read-only audit skill for TON/FunC contracts: it searches local project files, reviews them for three named vulnerability patterns, and outputs a report. It does not ship installers or automation that changes the machine, but it does expose contract source to the model and can surface sensitive logic in the scanned repo.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution1 (low)The skill instructs the agent to run read-only shell searches like `rg "transfer_notification|op::transfer_notification" contracts/`, but it ships no executable scripts or code evaluators.
Network access0 (none)It names external references such as `https://docs.ton.org/` and GitHub URLs, but it does not instruct downloading content or sending data to remote hosts.
Filesystem reach1 (low)Its workflow reads local project files under paths like `contracts/` and `resources/VULNERABILITY_PATTERNS.md`, but it does not write, delete, or touch paths outside the repo.
Secrets & credentials0 (none)There is no handling of tokens, keys, `.env` files, browser sessions, or other secret stores.
Privilege & persistence0 (none)No sudo, global installs, services, shell profile edits, or OS/git settings are requested.
Instruction hijack surface0 (none)The markdown contains normal audit instructions and examples, but no hidden text, prompt-injection payloads, or directions to ignore higher-priority rules.
Irreversible actions0 (none)The skill only scans and reports; it does not push, deploy, send messages, pay, book, or delete anything.
Transparency0 (none)All shipped files are human-readable markdown, YAML, or SVG; there are no binaries, base64 blobs, or decoded-at-runtime payloads.

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/ton-vulnerability-scanner/SKILL.md
Branch
main
Collection
building-secure-contracts
Updated
2026-09-19