AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

substrate-vulnerability-scanner

Scans Substrate/Polkadot pallets for 7 critical vulnerabilities including arithmetic overflow, panic DoS, incorrect weights, and bad origin checks. Use when auditing Substrate runtimes or FRAME pallets.

Original source
trailofbits
License
CC-BY-SA-4.0
Pinned revision
2be6433b39e009cd2b6fd3be1895f6b1faa5af9a

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read trailofbits--substrate-vulnerability-scanner at revision 2be6433b39e009cd2b6fd3be1895f6b1faa5af9a, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 2

resources/VULNERABILITY_PATTERNS.md · 24000

il for parameter updates type UpdateOrigin = EnsureRootOrTwoThirdsCouncil; }


**Origin Types Reference**:
```rust
// Built-in origins
ensure_root(origin)?              // Root/sudo only
ensure_signed(origin)?            // Any signed account
ensure_none(origin)?              // Unsigned (use with extreme caution)

// Custom origins (configured in runtime)
T::ForceOrigin::ensure_origin(origin)?
T::UpdateOrigin::ensure_origin(origin)?
T::AdminOrigin::ensure_origin(origin)?

// Common origin configurations
EnsureRoot                        // Root only
EnsureSigned                      // Any signed
EnsureSignedBy<AccountId>         // Specific account
EnsureRootOrHalfCouncil          // Root or 50%+ council
EnsureRootOrTwoThirdsCouncil     // Root or 67%+ council

References: building-secure-contracts/not-so-smart-contracts/substrate/bad_origin