/odin-security:chain-vulnerability-scannerfrom ODIN Security
Scans blockchain codebases (Algorand, Cairo, Cosmos SDK, Solana, Substrate, TON) for ecosystem-specific vulnerabilities with reachability-backed severity rankings.
Ships in ODIN Security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A single read-only scan operation that classifies a blockchain codebase by ecosystem, loads only that ecosystem's detector catalog, and emits severity-ranked findings tied to reachable code paths. Six ecosystems are supported; each owns one flat reference file under references/ that holds its detectors, applicability gates, tool requirements, severity distinctions, and ecosystem caveats. This file holds the shared routing, authority, procedure, cross-cutting rules, failure behavior, and output contract.
| Ecosystem | Source indicators | Reference file |
|---|---|---|
| Algorand | .teal files; .py importing PyTeal or Algorand SDK (from pyteal import *, from algosdk import *, Txn, Gtxn, Global, InnerTxnBuilder, OnComplete, @router.method, @Subroutine); approval_program.py/clear_program.py, contract.teal/signature.teal, Beaker references. | references/algorand.md |
| Cairo / Starknet | .cairo files; Scarb.toml; contract markers #[contract], #[storage], #[external(v0)], #[l1_handler], #[constructor], felt252, ContractAddress, get_caller_address(), send_message_to_l1_syscall. Optional L1 bridge Solidity contracts for cross-layer patterns. | references/cairo.md |
| Cosmos SDK | Go source with Cosmos SDK x/ modules and go.mod; ibc-go; Ethermint/EVM precompiles (evmutil/feemarket); Rust contracts using cosmwasm_std. | references/cosmos-sdk.md |
| Solana | Solana or Anchor Rust (.rs) program files. | references/solana.md |
| Substrate | Substrate FRAME pallet Rust source tree or file within a runtime. | references/substrate.md |
| TON | FunC or Tact source (function definitions, message handlers, recv_internal, recv_external, op:: constants, @interface annotations). | references/ton.md |
If the codebase matches none of the indicators above, stop and report that no supported chain surface applies. Do not run any catalog. Route generic non-chain security review to security-review instead: chain-vulnerability-scanner loads ecosystem-specific detector catalogs for six supported blockchain ecosystems; security-review runs STRIDE and OWASP on any codebase. The split is: supported chain ecosystem → chain-vulnerability-scanner; any other codebase → security-review.
| Field | Bound contract |
|---|---|
| Trigger | A supported Algorand, Cairo, Cosmos SDK, Solana, Substrate, or TON codebase needs a chain-specific vulnerability sweep. |
| Authority | Read-only. No file, VCS, credential, paid, published, deployed, or remote mutation. Tealer and Caracal, when already installed, run only as read-only analyzers on local source. Never install missing tools; installation is a state-changing action outside read-only authority. |
| Side effect | Severity-ranked, reachability-backed findings emitted as chat output only, each with location, evidence, impact, remediation, and validation status. |
| Done | Every applicable detector in every selected ecosystem reference is checked, and each confirmed finding carries code evidence, a reachable attack path, and remediation. |
references/ton.md, or "all".Run these steps in order. Each ecosystem reference may attach ecosystem-specific sub-steps, detectors, and gates to steps 3, 4, and 6; this file holds only the shared spine.
Classify ecosystems and applicability. Search the supplied path for the source indicators in the routing table. Select every supported ecosystem present and name its reference file. If multiple top-level ecosystems coexist, scan each as one branch of the same invocation. A Cosmos branch uses its own discovery step to enumerate EVM, CosmWasm, and IBC sub-catalogs. If no supported surface matches, stop and report an empty-target result. Done when: every detected ecosystem and reference is recorded, or an empty-target result is reported.
Load only selected references. For each detected ecosystem branch, read its single named reference before scanning that branch. Do not load references for ecosystems absent from the target. Each selected reference supplies the detector list, applicability/version gates, tool commands, severity definitions, rationalization rejections, and ecosystem caveats that govern the branch. Done when: every selected reference is loaded and its applicability gates (e.g., Cosmos version gate, Cairo L1-bridge presence, TON scope validation) have been evaluated.
Inventory trust/state/value boundaries. Enumerate the codebase's transaction-field usage, trust boundaries, state-mutation sites, value-transfer paths, and external entry points, using the reference's detector list as the lens. Record the file list and contract/module inventory. Done when: the boundary inventory is recorded or an empty-target result is reported.
Run source and ecosystem tools. Invoke Tealer for Algorand .teal targets and Caracal for Cairo targets when already installed; capture detector output. If a tool is absent or errors, record the gap in coverage notes and proceed with the manual detector sweep from the selected reference. A tool failure never invalidates manual findings. Done when: tool output is captured for each applicable target or its absence/error is recorded.
Confirm semantic reachability. For every candidate finding, trace from an external entry point (ecosystem-specific: Algorand approval/smart-signature paths; Cairo #[external(v0)], #[l1_handler], #[constructor]; Cosmos consensus-critical paths BeginBlock/EndBlock/FinalizeBlock/msg_server/AnteHandler; Solana instruction entrypoints; Substrate dispatchables; TON message handlers) to the vulnerable statement. A match reachable only from CLI, query, or test code is not a finding; record it as not-applicable with the reason "not consensus-critical" (Cosmos) or the ecosystem's equivalent. Exclude findings that cannot be reached by any caller; mark ambiguous cases as unconfirmed observations, never promoted to confirmed findings. Done when: every candidate finding is traced to a reachable entry point or excluded.
Apply severity rules. Assign severity per the reference's definitions. Each ecosystem owns its own severity ladder and category-to-severity mapping; use the reference's, not a generic one. Where the reference lists rationalization rejections (Cosmos) or caveats (Cairo L1 bridge), apply them verbatim. Done when: every finding has a severity tag drawn from the reference.
Emit normalized findings. Rank findings by severity (Critical first, then High, then Medium, then Low, then Informational where the ecosystem defines it). For each confirmed finding emit the shared finding fields below plus any extra ecosystem fields the reference requires. Append coverage notes listing detectors checked, detectors not applicable, tool availability, and any unassessed detectors with their blocker. Done when: findings are ranked with evidence and remediation, plus coverage notes, and the done predicate is auditable.
Every confirmed finding carries all of these:
algorand, cairo, cosmos-sdk, solana, substrate, ton.file:line-range), plus module/function/call-path where the ecosystem reference requires it (Substrate module::function (lines N–M); Cosmos file:line; Solana affected files and line ranges).confirmed, unconfirmed, or not-applicable (for coverage notes).not-reachable (excluded).validated, unvalidated, partial, or error, reflecting whether the finding was confirmed by tool plus manual review, manual only, or could not be fully checked.Extra ecosystem fields retained from the source:
PLATFORM, IBC_ENABLED, SDK_VERSION, IBC_GO_VERSION, CUSTOM_MODULES), applicable catalog list.module::function (lines N–M)), completeness statement against the five families.ValidateBasic catches this", "behind governance, so safe", "IBC counterparty is trusted", "panic can't happen, input is validated", "rounding error is only a few tokens", "EVM precompile handles rollback") are dismissed as reasons a match is safe. Other ecosystems' references state their own caveats (e.g., Cairo L1-bridge-contracts-absent marks L1-L2 patterns incomplete, not clean).| Failure class | Behavior |
|---|---|
| No supported ecosystem surface | Stop. Report the path was searched and no supported chain source indicators were found. Do not fabricate findings. |
| Ecosystem tool not installed | Continue with the manual detector sweep from the reference. Record the tool absence in coverage notes. Do not attempt installation. |
| Ecosystem tool execution error | Capture the error message, include it in coverage notes, and proceed with the manual sweep. A tool failure does not invalidate manual findings. |
| Missing version evidence for an applicability gate | Report the affected detectors/catalogs as blocked with the missing evidence. Do not guess a version. |
| Missing auxiliary source (Cairo L1 bridge) | Report which patterns could not be fully evaluated and mark them incomplete, not clean. |
| Detector not applicable | Record the detector as checked-but-not-applicable in coverage notes rather than omitting it, so the done predicate is auditable. |
| Ambiguous code (cannot confirm vulnerable or safe) | Record as an unconfirmed observation with the code location and the specific check that could not be resolved. Do not promote it to a confirmed finding. |
| Match not on a consensus/reachable path | Not a finding. Record as not-applicable with the reason (e.g., "not consensus-critical" for Cosmos CLI/query/test code). |
| Scan error (crash, OOM, tool failure halting the run) | Stop. Return "Scan failed: [exact error class]. No findings are returned." (TON rule, applied ecosystem-wide for halting errors). |
| No findings | Return the empty-result statement with ecosystem, scope, and date. This is not a failure. |
| Partial result (source size limit or mid-scan halt) | Return assessed detectors and explicitly list every unassessed detector with its blocker. Include the scope-overrun warning where applicable (TON). Never claim the done predicate holds while a detector remains unchecked. |
A chat-output report with the following structure:
checked / not-applicable / unconfirmed / blocked, and note tool availability and any execution errors. For Cosmos, include a completeness check listing every applicable catalog with its pattern count, confirming none were skipped.The done predicate holds when every applicable detector in every selected reference is checked and each confirmed finding carries code evidence, a reachable attack path, and remediation.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-security31 skills in this plugin
/burpsuite-project-parserUse when asked to analyze a Burp Suite .burp project for audit items, request/response metadata, or captured traffic. Modes: parsed (default) and stream. Not for source or remote-system changes./codeql-security-analysisUse when building or reusing a CodeQL database, running CodeQL security analysis, or modeling project-specific sources and sinks. Not for manual vulnerability review: use security-review (mode: confirmed)./constant-time-analysisUse when reviewing cryptographic code for timing side-channels, statically in compiled output or at runtime with statistical timing tests. Not for known-answer vectors: use wycheproof.Other plugins' skills for the same job