substrate-vulnerability-scanner

Scan Substrate/FRAME pallet code for seven critical security vulnerability patterns.

Updated May 2, 2026
One-click install
npx skills add https://github.com/ayehiaa/my-travel-assistant --skill substrate-vulnerability-scanner-ayehiaa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: substrate-vulnerability-scanner
Source: https://github.com/ayehiaa/my-travel-assistant/tree/main/.agents/skills/substrate-vulnerability-scanner
Command: npx skills add https://github.com/ayehiaa/my-travel-assistant --skill substrate-vulnerability-scanner-ayehiaa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill reduces the risk of security-critical flaws in Substrate/FRAME code by systematically scanning pallets for patterns that can lead to crashes, denial of service, or broken access control.

Core Features & Use Cases

  • Dispatchable Security Audit: Reviews each pallet dispatchable for arithmetic safety, panic-prone logic, origin/privilege mistakes, unsigned validation weaknesses, and state-write/validation ordering issues.
  • Weight & DoS Risk Detection: Flags likely weight and fee problems (including missing bounds) that enable spam and resource exhaustion.
  • Security-Focused Runtime Checks: Covers platform-specific concerns like bad randomness usage and verify-first/write-last behavior for relevant Substrate versions.

Use Case: If you are auditing a custom Substrate chain before launch, run this Skill to identify the 7 high-impact vulnerability patterns with file references and recommended fixes.

Quick Start

Use the substrate-vulnerability-scanner skill to scan your repository’s FRAME pallets and produce a prioritized vulnerability report.

Frequently Asked Questions about substrate-vulnerability-scanner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Substrate FRAME pallets for security vulnerabilities?

To audit Substrate FRAME pallets for security vulnerabilities, scan dispatchable extrinsics for arithmetic safety, origin mistakes, panic-prone logic, and weight issues. The scanner identifies seven critical risk patterns and outputs findings with file references and remediation guidance.

What security risks should I check before launching a custom Substrate chain?

Before launching a custom Substrate chain, check for denial of service risks from missing weight bounds, broken access control from unsigned validation weaknesses, and crashes from arithmetic overflow. A pallet security scan identifies these platform-specific runtime flaws.

Can I automatically detect weight and fee problems in Polkadot runtime code?

Yes, you can detect weight and fee problems in Polkadot runtime code by scanning pallets for missing bounds that enable spam and resource exhaustion. The scan flags weight logic issues that could lead to network denial of service attacks.

Does the Substrate vulnerability scanner check unsigned transaction validation?

Yes, the Substrate vulnerability scanner checks unsigned transaction validation by reviewing dispatchables for validation ordering issues and unsigned weaknesses. It detects state-write problems where verify-first write-last behavior is expected.

What is the best way to find panic and DoS vulnerabilities in FRAME pallets?

The best way to find panic and DoS vulnerabilities in FRAME pallets is running a pattern-based analysis that scans for panic-prone logic and missing weight bounds. This approach identifies resource exhaustion risks across Substrate and Polkadot chains.

What Substrate pallet issues does this security scanner not cover?

The security scanner covers seven specific risk patterns in Substrate pallets including arithmetic, panic, origin, weights, randomness, and validation ordering. It does not perform general logic review or detect business logic flaws outside these pattern categories.