Skip to main content

Skill Guide

Threat modeling for zero-knowledge proof and rollup systems

Threat modeling for zero-knowledge proof and rollup systems is the systematic process of identifying, enumerating, and prioritizing potential attack vectors and security vulnerabilities within ZK proof cryptographic implementations, rollup protocol designs, and their integrated components.

This skill is critical for preventing catastrophic financial losses and maintaining user trust in L2 scaling solutions by proactively identifying security flaws before deployment, directly impacting protocol reliability, TVL retention, and long-term ecosystem viability.
1 Careers
1 Categories
8.8 Avg Demand
25% Avg AI Risk

How to Learn Threat modeling for zero-knowledge proof and rollup systems

1. Master cryptographic primitives (hash functions, elliptic curves, commitment schemes) and their security assumptions. 2. Understand core ZK proof system architectures (SNARKs vs. STARKs, trusted setups, proof verification). 3. Study rollup fundamentals (optimistic vs. ZK rollups, data availability, sequencer roles, state transition validity).
1. Analyze historical vulnerabilities in deployed systems (e.g., ZK bug bounties, rollup exploits) to identify common failure patterns. 2. Practice applying structured threat modeling frameworks (like STRIDE adapted for ZK) to real-world rollup components. 3. Avoid common mistakes such as over-relying on cryptographic soundness without considering implementation bugs, or neglecting liveness and censorship resistance threats.
1. Lead threat modeling exercises for novel ZK circuit designs or rollup architecture proposals, integrating economic and game-theoretic attack vectors. 2. Develop and institutionalize security review processes and checklists for ZK/rollup development teams. 3. Mentor engineers on secure ZK system design principles and contribute to open security standards for the ecosystem.

Practice Projects

Beginner
Project

Threat Model a Simple ZK Circuit

Scenario

You are given a basic ZK circuit (e.g., for a private transaction or simple computation) and its high-level documentation. The goal is to produce a preliminary threat model document.

How to Execute
1. Decompose the circuit into its core components (witness generation, constraint system, prover, verifier). 2. Use a brainstorming session or checklist to enumerate potential threats for each component (e.g., witness manipulation, constraint unsoundness, prover resource exhaustion). 3. Categorize threats using a framework like STRIDE (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege). 4. Prioritize threats based on likelihood and impact, and propose initial mitigations.
Intermediate
Case Study/Exercise

Analyze a Real-World Rollup Incident

Scenario

Select a documented security incident in a rollup system (e.g., a sequencer failure, a proof verification bug, or a data availability issue). Perform a root cause analysis and model the threats that were or could be exploited.

How to Execute
1. Gather all available public information (post-mortems, whitepapers, community analysis). 2. Reconstruct the system architecture and the specific attack path or failure mode. 3. Identify which threat categories (liveness, safety, censorship, economic) were violated. 4. Propose architectural or procedural changes that would have mitigated the threat, and write a concise incident analysis report.
Advanced
Project

Design a Threat Model for a Modular Rollup

Scenario

A team is designing a new rollup that uses a modular stack: separate execution, settlement, and data availability layers (e.g., a ZK rollup settling on Ethereum with Celestia for DA). Your task is to create a comprehensive threat model for the entire integrated system.

How to Execute
1. Map all cross-layer interfaces and trust assumptions (e.g., bridge contracts, sequencer-to-prover communication, DA layer finality). 2. Conduct threat modeling workshops with stakeholders from each module team. 3. Analyze compound risks, such as a DA layer outage combined with a sequencer censoring transactions. 4. Develop a risk register with mitigations spanning technical controls, monitoring, and incident response plans. Present findings to leadership for risk acceptance or design iteration.

Tools & Frameworks

Mental Models & Methodologies

STRIDE (adapted for ZK systems)Attack TreesFault Tree Analysis (FTA)LINDDUN (for privacy threats in ZK)Economic Threat Modeling / Game Theory Analysis

Apply STRIDE to categorize threats across ZK components. Use Attack Trees to systematically explore attack paths for a specific vulnerability. FTA helps analyze root causes of system failures. LINDDUN is tailored for modeling privacy threats critical in ZK systems. Game theory is essential for analyzing incentive-based attacks on sequencers or validators.

Technical Analysis Tools

Formal Verification Tools (e.g., Circom, Gnark, Plonk verification libraries)Protocol FuzzersStatic Analysis for Circuit DSLsEthereum Smart Contract Security Tools (Slither, Mythril for on-chain verifiers)

Use formal verification to mathematically prove properties of ZK circuits. Fuzzers and static analysis can find implementation bugs in circuit code. Smart contract tools are vital for analyzing the on-chain components (verifiers, bridges) that interact with the rollup.

Knowledge Bases & Frameworks

ZK Security Audits & Bug Bounty ReportsRollup Design Documents & Security Considerations SectionsAcademic Papers on ZK Cryptography and AttacksEthereum L2 Security Best Practices

Study past audits and bug bounties (e.g., from protocols like zkSync, StarkNet, Polygon) for real-world vulnerability patterns. Deeply review the security assumptions in design docs. Academic literature provides the foundational understanding of cryptographic attack vectors.

Interview Questions

Answer Strategy

The candidate must demonstrate a structured approach (e.g., component decomposition) and knowledge of ZK-specific threats. Sample Answer: 'First, I'd decompose the prover into its subsystems: witness computation, polynomial commitment, and proof generation. Key attack surfaces include witness tampering (if inputs are not properly authenticated), denial-of-service via computational exhaustion (a resource-intensive proof), and side-channel leaks on the prover's server. My primary mitigations would be: 1) Cryptographically binding the witness to a signed transaction hash, 2) Implementing rate-limiting and proof request prioritization, and 3) Running provers in isolated, secure environments with minimal data exposure.'

Answer Strategy

The interviewer is testing the ability to reason about complex distributed system and incentive-based threats. The candidate should identify liveness, collusion, and economic attack risks. Sample Answer: 'This introduces several new threat categories: 1) **Liveness Threats:** A subset of provers colluding to halt the system. I'd model this as a denial-of-service attack requiring a threshold of honest provers. 2) **Safety Threats:** Malicious provers generating invalid proofs. Mitigation requires robust on-chain verification and cryptographic soundness. 3) **Economic Threats:** Provers could be bribed to censor transactions. I'd model this using game theory, analyzing the cost of attack vs. the profit from censorship, and design slashing conditions to make collusion economically irrational.'

Careers That Require Threat modeling for zero-knowledge proof and rollup systems

1 career found