substrate-vulnerability-scanner

Detect seven critical Substrate/FRAME vulnerabilities in pallets and runtimes.

9|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/hongmaple0820/agent-academy --skill substrate-vulnerability-scanner-hongmaple0820
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: substrate-vulnerability-scanner
Source: https://github.com/hongmaple0820/agent-academy/tree/main/skills/design/building-secure-contracts/skills/substrate-vulnerability-scanner
Command: npx skills add https://github.com/hongmaple0820/agent-academy --skill substrate-vulnerability-scanner-hongmaple0820

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Substrate vulnerability scanning helps security teams and developers identify seven critical vulnerabilities in Substrate/FRAME pallets and runtimes, preventing security regressions before deployment.

Core Features & Use Cases

  • Detects seven critical vulnerability patterns specific to Substrate/FRAME (arithmetic overflow, panic DoS, weights, verify-first/write-last, unsigned validation, bad randomness, bad origin).
  • Performs platform-aware analysis by locating pallets, runtime configurations, and migration/test patterns to produce actionable remediation guidance.
  • Useful for auditing custom pallets, runtime upgrades, parachains, and pre-launch security assessments.

Quick Start

Run the scanner against your Substrate project to generate a comprehensive 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 pallets for critical vulnerabilities?

To audit Substrate pallets for critical vulnerabilities, you can run this scanner against your project to identify seven specific vulnerability patterns including arithmetic overflow, panic DoS, and bad origin checks, generating a comprehensive report with remediation guidance.

What Substrate FRAME vulnerabilities should I check before deploying a parachain?

Before deploying a parachain, you should check for seven critical Substrate/FRAME vulnerabilities: arithmetic overflow, panics, weight-related DoS, verify-first/write-last issues, unsigned validation, bad randomness, and bad origin checks to prevent security regressions.

Can I use this scanner for runtime upgrades and custom pallet configurations?

Yes, this scanner applies to auditing custom pallets, runtime configurations, runtime upgrades, and Polkadot-like deployments by performing platform-aware analysis to locate pallets and test patterns for actionable remediation guidance.

How does platform-aware analysis locate Substrate pallet vulnerabilities?

Platform-aware analysis locates pallets, runtime configurations, and migration/test patterns within your Substrate project to detect vulnerability patterns accurately and produce actionable remediation guidance for your specific deployment context.

What is the best way to prevent security regressions in Substrate runtimes?

The best way to prevent security regressions in Substrate runtimes is to run a comprehensive vulnerability scan that detects critical issues like arithmetic overflow, weight-related DoS, and bad randomness before deployment, ensuring all origin checks and unsigned validations are secure.

Does the scanner detect verify-first write-last issues in Substrate pallets?

Yes, the scanner detects verify-first/write-last issues in Substrate pallets along with six other critical vulnerability patterns, providing specific remediation guidance to ensure your runtime executes state changes securely after verification.