Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

cosmos-vulnerability-scanner

Skill by trailofbits

Scans Cosmos SDK modules and CosmWasm contracts for consensus-critical bugs such as chain halts, fund loss and state divergence. Intended for auditors reviewing custom x/ modules, IBC integrations and pre-launch chains.

  • Score 92
  • 8.6k stars
  • CC-BY-SA-4.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cosmos-vulnerability-scanner

Built from the published package, never by AI.

git clone --depth 1 https://github.com/trailofbits/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/plugins/building-secure-contracts/skills/cosmos-vulnerability-scanner ~/.claude/skills/cosmos-vulnerability-scanner

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cosmos-vulnerability-scanner in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill audits Cosmos SDK blockchain code and CosmWasm contracts for vulnerabilities that can halt a chain, break consensus or lose funds. It first runs a discovery step that reads go.mod and the code layout, then writes a CLAUDE.md with the technical inventory and threat model to the repository root. Parallel scanning agents then check the code against the pattern libraries for core, state, advanced, IBC, EVM and CosmWasm issues.

Each agent reports findings with a location, attack scenario and fix. The main skill writes each finding as a separate markdown file to .bughunt_cosmos/ by default, or to a directory the user names. It then checks that every pattern was assessed. The skill is aimed at security auditors reviewing custom x/ modules, IBC integrations and chains before launch. It states the SDK it targets is v0.53.x.

Written from the project's SKILL.md and checked against it.

What it can do

  • DiscoveryMaps the codebase, SDK and IBC versions, custom modules and threat model into CLAUDE.md.
  • Parallel vulnerability scanRuns scanning agents by category, including core, state, advanced, IBC, EVM and CosmWasm patterns.
  • Finding filesWrites each finding as an individual markdown file with severity, location and recommendation.
  • Completeness checkVerifies that every pattern in each reference file was assessed and re-prompts missing ones.

What you need

  • Go source code with go.mod, or Rust CosmWasm contracts using cosmwasm_std
  • An agent environment that supports subagents and Grep, Glob and Read tools

Try asking

  • Audit the x/ modules in this Cosmos SDK repo for consensus-critical bugs
  • Review the IBC integration in this chain for fund loss risks
  • Scan this CosmWasm contract for consensus and state issues

Good to know

  • Only flags code reachable from consensus-critical paths such as BeginBlock, EndBlock, FinalizeBlock, msg_server handlers and AnteHandler.
  • Does not cover CometBFT consensus engine internals.
  • Not for pure Solidity or EVM audits without Cosmos SDK.
  • CosmWasm-only audits on chains without custom SDK modules should use the CosmWasm checklist items alone.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/building-secure-contracts/skills/cosmos-vulnerability-scanner/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • CHANGELOG.md13 KB
  • SKILL.md11 KB
  • agents/openai.yaml256 B
  • assets/trail-of-bits-mark.svg3 KB
  • resources/ADVANCED_VULNERABILITY_PATTERNS.md13 KB
Show all 11 files
  • resources/COSMWASM_VULNERABILITY_PATTERNS.md7 KB
  • resources/DISCOVERY.md3 KB
  • resources/EVM_VULNERABILITY_PATTERNS.md18 KB
  • resources/IBC_VULNERABILITY_PATTERNS.md27 KB
  • resources/STATE_VULNERABILITY_PATTERNS.md29 KB
  • resources/VULNERABILITY_PATTERNS.md26 KB

Alternatives to cosmos-vulnerability-scanner

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

cosmos-vulnerability-scanner: common questions

What does the scanner look for in Cosmos SDK code?

It looks for vulnerabilities that cause chain halts, consensus failures or fund loss, with state divergence treated as the highest severity class. The source lists 25 core, 16 IBC, 10 EVM and 3 CosmWasm patterns.

Where are the findings saved?

Findings are written as markdown files to .bughunt_cosmos/ by default. The user can name a different output directory in the prompt.

Which SDK version does it support?

The source says it is updated for Cosmos SDK v0.53.x and checks go.mod versions before applying patterns.

How do I install cosmos-vulnerability-scanner?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is cosmos-vulnerability-scanner free?

The code is published under the CC-BY-SA-4.0 licence. The service it connects to may have its own pricing.

Is cosmos-vulnerability-scanner safe to use?

It scores 92 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to cosmos-vulnerability-scanner?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

cosmos-vulnerability-scanner Install

Add to stack

Loading.