substrate-vulnerability-scanner

Scan Substrate/FRAME pallets for seven vulnerability patterns and generate structured reports.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/DobricLilujun/LabAgentSkill --skill substrate-vulnerability-scanner-dobriclilujun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: substrate-vulnerability-scanner
Source: https://github.com/DobricLilujun/LabAgentSkill/tree/main/skillsHub/skills_scaling/building-secure-contracts/skills/substrate-vulnerability-scanner
Command: npx skills add https://github.com/DobricLilujun/LabAgentSkill --skill substrate-vulnerability-scanner-dobriclilujun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Substrate vulnerability scanner identifies seven critical vulnerability patterns in Substrate/FRAME pallets, enabling security researchers and developers to audit runtimes and pallets for flaws.

Core Features & Use Cases

  • Detects the seven vulnerability patterns (Arithmetic Overflow, Don't Panic, Weights/Fees, Verify First, Unsigned Validation, Bad Randomness, Bad Origin) in pallets and runtime configurations.
  • Scans pallets/lib.rs and runtime configurations to surface security issues across Substrate-based chains (parachains and standalone networks).
  • Produces a structured vulnerability report with file references and actionable mitigations for developers and auditors.

Quick Start

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

Scanning Substrate pallets for vulnerabilities involves locating pallets/lib.rs and runtime configurations to identify seven critical security patterns. The scanner analyzes these files across your codebase to produce a structured report with remediation guidance.

What vulnerability patterns does a Substrate security audit check for?

A Substrate security audit checks for seven vulnerability patterns: Arithmetic Overflow, Don't Panic, Weights/Fees, Verify First, Unsigned Validation, Bad Randomness, and Bad Origin. These patterns target critical flaws in pallet logic and runtime configurations.

Can I audit runtime configurations across Polkadot parachains with this scanner?

Yes, you can audit runtime configurations across Polkadot parachains and standalone networks. The scanner targets pallets and associated crates within the Substrate ecosystem to surface security issues in various chain architectures.

How do I generate a vulnerability report for a FRAME pallet codebase?

To generate a vulnerability report for a FRAME pallet codebase, run the scanner against your Substrate project. It locates pallets/lib.rs, applies the seven vulnerability patterns, and delivers findings with file references and actionable mitigations.

What is the best way to find arithmetic overflow issues in Substrate pallets?

The best way to find arithmetic overflow issues in Substrate pallets is to scan pallets/lib.rs using the seven vulnerability patterns framework. This process identifies overflow risks and provides actionable mitigations within a structured report.