Skip to content
SkillModel-led2,560 tokens in use

Cosmos Vulnerability Scanner

Scans Cosmos SDK modules and CosmWasm contracts for chain halts, fund loss and state divergence using parallel scanning agents and written findings.

8,319 stars on the repository CC-BY-SA-4.0trailofbits/skills · plugins/building-secure-contracts/skills/cosmos-vulnerability-scanner
/plugin marketplace add trailofbits/skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing Cosmos Vulnerability Scanner costs

88tokens idle
2,560tokens in use
34,496tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter12/15
  • Structure23/25
  • Examples9/15
  • Output15/15
  • Size15/15
  • Resources13/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity100
  • Maintenance52
  • Community64
  • Maturity32
  • Momentum40

Cosmos Vulnerability Scanner audits custom x/ modules, IBC integrations and CosmWasm contracts against 25 core, 16 IBC, 10 EVM and 3 CosmWasm patterns, updated for SDK v0.53.

It runs a discovery agent that writes a technical inventory, spawns scanning agents in parallel for each pattern group, checks that every pattern was reported and writes each finding as its own markdown file in an output folder.

What You Get

  • A CLAUDE.md in the target repository with a technical inventory and threat model
  • One markdown file per finding with severity, location, vulnerable code, attack scenario and recommendation
  • A report from each scanner on every pattern in its reference file, with not-applicable reasons
  • A listing of all finding files in the output folder

Common Use Cases

  • Auditing custom x/ modules before a chain launch
  • Reviewing an IBC integration for reentrancy and token inflation
  • Investigating the cause of a chain halt
  • Checking CosmWasm contracts against known patterns

What Makes It Unique

The scanner is built around consensus reachability: a finding counts only when it sits on a path such as BeginBlock, EndBlock, msg_server handlers or the AnteHandler, which cuts false positives from CLI or query code. It checks SDK versions in go.mod before applying patterns, rejects rationalizations like trusting governance or an IBC counterparty, and verifies pattern counts per agent.

Under The Hood

The skill is an instruction file with a changelog and resource files of patterns. It runs subagents through the Agent tool: a discovery agent first, then scanning agents that only use Grep, Glob and Read. The main skill writes a CLAUDE.md into the root of the target repository and writes each finding as a markdown file into an output folder, by default .bughunt_cosmos. It runs no shell commands and does not fetch web pages or call APIs.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers