---
title: "Substrate vulnerability scanner: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/trailofbits-substrate-vulnerability-scanner/
description: "Pins the Substrate scanner's rule that a short or empty coverage table is an unfinished scan, and that ensure_signed is not a privileged origin."
---

# Substrate vulnerability scanner: review, setup & limitations · Undominated.ai

> Pins the Substrate scanner's rule that a short or empty coverage table is an unfinished scan, and that ensure_signed is not a privileged origin.

[← Explore all skills](/skills/)

SUBSTRATE PALLET AUDIT / Trail of Bits

# Substrate vulnerability scanner

Pins the Substrate scanner's rule that a short or empty coverage table is an unfinished scan, and that ensure_signed is not a privileged origin.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/trailofbits/skills/tree/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/building-secure-contracts/skills/substrate-vulnerability-scanner)

SOURCE REVIEW

 Reviewed 2026-10-14
 Evidence 4 linked sources
 Publisher Trail of Bits
 Licence [CC-BY-SA-4.0 ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/LICENSE)
 Revision 8e54050ae63c
 [Read what was—and wasn’t—checked ↓](#review)

“Refuses a partial Substrate pallet scan: every pattern row needs a verdict, and ensure_signed is not a privileged origin.”

 [Trail of Bits · upstream description ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/building-secure-contracts/skills/substrate-vulnerability-scanner/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - A coverage table with fewer than every pattern row, or an empty verdict, must be reported as incomplete, and not having looked is not an n/a.
- The file rejects the claim that ensure_signed is enough for a privileged call and says that check fails where ensure_root is required.

### A good fit for

 - Reviewing a FRAME pallet when the report must carry a verdict for every pattern and privileged origins are distinguished from ensure_signed

### Weigh up before choosing

 - The resource was not executed.
- `/plugin install trailofbits/skills/plugins/building-secure-contracts` installs the building-secure-contracts plugin, not this file alone.
- `/plugin marketplace add trailofbits/skills` adds the marketplace, not this skill.
- resources/VULNERABILITY_PATTERNS.md was not opened.
- The checklist says to remove the sudo pallet before production and does not ask for a separate confirmation.
- A testing section points an upgrade check at a public live endpoint and does not call that step a dry-run or ask for confirmation. It was not run.
- The section heading groups the patterns as critical, while the priority section ranks some high or medium. The priority section is the ranking, not a second procedure.
- The illustrative table leaves later verdict cells empty and then says an empty verdict is incomplete because the first row only shows the shape. That was not treated as two opposing rules.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - plugins/building-secure-contracts/skills/substrate-vulnerability-scanner/SKILL.md
- plugins/building-secure-contracts/README.md
- README.md
- LICENSE

### Our findings

 - Fewer than a full set of pattern rows, or an empty verdict cell, is an incomplete scan and must be reported as one.
- Not having looked is not an n/a, and a scan with no findings still has to emit the full coverage table.
- Silence is rejected because a reader cannot tell it apart from not having checked.
- Release builds wrap silently, so a clean compile is rejected as proof that arithmetic is safe.
- ensure_signed is rejected as a privileged-origin check where ensure_root belongs.
- A benchmark is rejected as proof a weight is safe when the worst case depends on storage size or an unbounded loop.

### Not established by this review

 - The resource was not executed.
- No pallet was scanned, fuzzed, benchmarked, or upgraded.
- resources/VULNERABILITY_PATTERNS.md was not opened.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/building-secure-contracts/README.md)

DOCUMENTED COMMAND

 /plugin install trailofbits/skills/plugins/building-secure-contracts Copy command ↗

Copying does not execute this command. It may retrieve a newer version than the reviewed source.

 - The building-secure-contracts README shows `/plugin install trailofbits/skills/plugins/building-secure-contracts`. That installs the plugin, not this skill alone.
- The repository README shows `/plugin marketplace add trailofbits/skills`. That adds the marketplace, not this skill.
- No fetched line installs only substrate-vulnerability-scanner.

### Before you start

 - Claude Code, because both install lines are Claude plugin commands
- A Substrate or FRAME pallet tree to review; this review did not supply one

### Compatibility

Claude Code · Codex

### Implementation

Rust

### Local skill text; a scan or benchmark changes a tree only if an operator runs it

 - Read the skill text
- Search or build a pallet only if the operator runs those commands
- Do not treat a partial coverage table as a finished scan

### Cost model

CC-BY-SA-4.0; no install, scan, or benchmark was run. Share-alike applies to a redistributed adaptation.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [substrate-vulnerability-scanner SKILL.md ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/building-secure-contracts/skills/substrate-vulnerability-scanner/SKILL.md) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/building-secure-contracts/skills/substrate-vulnerability-scanner/SKILL.md Supports: Incomplete coverage tables, ensure_signed versus ensure_root, and the rejected rationalizations
- [building-secure-contracts README ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/building-secure-contracts/README.md) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/building-secure-contracts/README.md Supports: Plugin install line for the building-secure-contracts plugin
- [Repository README ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/README.md) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/README.md Supports: Marketplace install line and the CC-BY-SA-4.0 statement
- [Repository LICENSE ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/LICENSE) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/LICENSE Supports: Attribution-ShareAlike 4.0 International Public License

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Algorand vulnerability scanner ↗ Pins Trail of Bits' Algorand scanner, which treats a short or empty coverage table as an unfinished scan and does not let a clean Tealer run stand in for patterns it never examined.](/skills/trailofbits-algorand-vulnerability-scanner/)[### CLAUDE.md improver ↗ Pins the CLAUDE.md skill that must print a quality report and wait for approval before it edits those files.](/skills/anthropic-claude-md-improver/)[### Entry-point analyzer ↗ Lists state-changing smart-contract entry points and their access class, and excludes view functions, exploit writing, and non-contract code.](/skills/trailofbits-entry-point-analyzer/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
