Static Analysis of Runtime Pallets
The Web3 Foundation seeks proposals to develop static analysis tools for Substrate runtime pallets to detect vulnerabilities such as incorrect origin, unsigned transaction validation issues, bad randomness leaks, panics, and unsanitized input leakage. The project aims to extend tools like MIRAI or Prusti, or build new Rust front-ends to static analysis engines, with deliverables including a robust analysis tool, documentation, testing guide, and outreach article.
Eligibility: Open to applicants interested in extending static analysis tools for Rust (e.g., MIRAI, Prusti) or building Rust front-ends to static analysis engines, with focus on Substrate runtime pallets.
Pipeline
Funder track record Β· does Web3 Foundation actually pay grants?
π‘ Some payout evidence Β· 7 grantees found Β· last payout 2026-01-27 Β· checked 2026-10-29 Β· 0 forum reports, 9 web pages read, 3 unverifiable claims dropped
Proven payer: at least 3 named grantees and one payout in the last 90 days. Every grantee below is quoted word for word from its source. When a source does not date a grant, the date is when that page or post was published.
| Grantee | Amount | Date | Evidence |
|---|---|---|---|
| Pop CLI | β | 2026-01-27 page date | βMilestone Report: Pop CLI | An All-in-one Tool for Polkadot Developmentβ source |
| Ink!ubator V2 | β | 2026-01-27 page date | βThe Final report of Ink!ubator V2β source |
| "Revive" Smart Contracts | β | 2026-01-27 page date | β"Revive" Smart Contracts: Status Updateβ source |
| Liberland Blockchain Team | β | 2023-03-13 | βThe Liberland Blockchain Team is happy to announce that they have received a grant from Web3 Foundation, and that they have successfully completed the first milestone.β source |
| Cere Network | β | 2021-09-17 | βCere Network has been awarded a Web3 Foundation grant, an award typically awarded to entities performing research and development in the field of decentralized software protocols.β source |
| open-web3-stack | β | undated | βORML is part of the bigger `Open-Web3-Stack` initiative, that is currently under a General Grant from Web3 Foundation.β source |
| Crust | β | undated | βCrust is the member of Web3 Bootcamp and Substrate Builders Program, and has received Web3 grant from Web3 Foundation.β source |
Trust breakdown (2/2 checkable facts verified)
| Signal | Weight | Result | Note |
|---|---|---|---|
| apply link | 0.075 | 100% | link in source |
| funder | 0.075 | 100% | named in source |
| source quality | 0.15 | 100% | official page or repo |
| model confidence | 0.1 | 90% | model self-report |
Sources (1)
| Role | Document | From | Fetched |
|---|---|---|---|
| primary | Static Analysis of Runtime Pallets | Web3 Foundation Grants: RFPs (GitHub) | 2026-09-09 |
History (2)
| v | Changed | Fields |
|---|---|---|
| 2 | 2026-09-09 | summary, type |
| 1 | 2026-09-09 | created |
Extracted text
# Static Analysis of Runtime Pallets :::caution This Request for Proposals is currently considered **under development**, meaning one or more grants have been signed to address the topic. We might be interested in additional implementations, but itβs better to double check this with the grants team. ::: * **Status:** [Implemented](https://github.com/w3f/Grants-Program/blob/master/applications/sarp-basic-functionality.md) * **Proposer:** [Bhargav Bhatt](https://github.com/bhargavbh), [David Hawig](https://github.com/Noc2) ## Project Description :page_facing_up: [Runtime Pallets](https://docs.substrate.io/fundamentals/runtime-development/) are modules for writing the business logic of blockchains in [Substrate](https://github.com/paritytech/polkadot-sdk/tree/master/substrate) (a Rust framework for building blockchians). These are usually concise pieces of standalone code with relatively few dependencies and clear specifications, hence tractable targets for performing static analysis and verification. We would like to develop tools and techniques to perform static analysis with reasonable soundness guarantees. In particular, we would like to target vunerability classes that are detectable using dataflow analysis techniques like *tag analysis* and *taint analysis*. Just to give a flavor, relevant might vulnerabilities include: * [incorrect origin](https://github.com/bhargavbh/MIRAI/blob/main/substrate_examples/incorrect-origin/description.md) of dispatchable functions. * [unsigned transaction](https://github.com/bhargavbh/MIRAI/blob/main/substrate_examples/unsigned-transaction/description.md) validation. * tracking bad randomness: ensure bad randomness does not leak into sensitive functions. * detect panics statically to avoid potential DoS attacks: these include [unsafe arithmetic operations](https://github.com/bhargavbh/MIRAI/blob/main/substrate_examples/arithmetic-overflow/description.md), access outside bounds, assertion failures, etc. * tracking unsanitised input leakage for sensitive functions. We seek applications that either extend existing static analysers for rust like [MIRAI](https://github.com/facebookexperimental/MIRAI/), [Prusti](https://www.pm.inf.ethz.ch/research/prusti.html), or build Rust front-ends to static analysis engines. Our preliminary feasibility study shows that MIRAI would be a good starting point as it includes a tag analysis framework, however, we are open to other tools and techniques. ## Deliverables The deliverables listed are an initial draft and can be modified taking into consideration the interests of the applicant. | Number | Deliverable | Specification | | ------------- | ------------- | ------------- | | 0a. | License | Apache 2.0 / MIT / Unlicense | | 0b. | Documentation | A document describing the design decisions for the tool and modeling of vulnerabilities. Clear usage guideline along with the trade-off of different modes if any.| | 0c. | Testing Guide | Test-suite which exercises various features. | | 0d. | Article | A brief outreach article describing the high-level technique used and outcomes of the grant, including a sample of minimal examples. | | 1 | Tool | A robust static analysis tool that works on Substrate runtime pallets and analyses vulnerabilities classes described above. | | 2 | Engagement | Engage with teams at Web3 Foundation and Parity to prioritise targeting vulnerability classes.|