0Pricing
Cryptology Academy · Lesson

Dolev-Yao Attacker Model & Symbolic Crypto

Model a cryptographic protocol under Dolev-Yao assumptions.

Dolev-Yao Attacker Model & Symbolic Crypto is a free Cryptology Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cryptology Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

The Dolev-Yao Model

Proposed by Danny Dolev and Andrew Yao in 1983, the Dolev-Yao model is the standard adversary model for symbolic protocol analysis. The attacker controls the entire network.

Attacker Capabilities

The Dolev-Yao attacker can: intercept any message, store messages, replay old messages, forge new messages from known components, but cannot break the underlying crypto primitives.

The Perfect Cryptography Assumption

In symbolic models, encryption is a perfect black box: the attacker cannot decrypt without the key, cannot factor large numbers, and cannot forge signatures. This simplifies analysis but may miss implementation-level attacks.

Term Algebra for Protocol Messages

Messages are modelled as terms: enc(k, m), sig(sk, m), hash(m), pair(a, b). The attacker knows certain terms and derives new ones using defined rules (deduction rules).

Deduction Closure

The attacker's knowledge is closed under deduction: if they know enc(k,m) and k, they can derive m. If they know pair(a,b), they can derive a and b. The closure of initial knowledge = everything the attacker can learn.

Security Properties as Reachability

Protocol security is stated as: "the attacker's knowledge never contains the secret s in any reachable state." Secrecy = reachability. Authentication = absence of certain bad trace patterns.

Modelling a Simple Protocol

Two-party protocol: A→B: {Na, A}_{K_B}; B→A: {Na, Nb}_{K_A}; A→B: {Nb}_{K_B}. In term algebra: Alice sends enc(pubkey_B, pair(Na, A)). We verify that after execution, only B knows Na.

Applied Pi Calculus

The applied pi calculus (Abadi & Fournet 2001) is a process algebra for modelling protocols. Processes communicate over channels; the attacker controls public channels. ProVerif and Tamarin use this formalism.

Symbolic vs Computational Security

A protocol that is secure in the Dolev-Yao model may still be computationally insecure if the cryptographic instantiation is weak. The Computational Soundness theorem (Cortier et al.) bridges the gap for specific primitive classes.

Limitations of the Model

Dolev-Yao cannot model: algebraic properties (e.g., XOR commutativity), side-channel attacks, implementation bugs, or probabilistic failures. Extensions like the equational theory model handle some algebraic properties.

Knowledge Check

Which capability does the Dolev-Yao attacker NOT have?

Lesson Recap

Dolev-Yao gives the attacker full network control but assumes perfect crypto. Messages are terms in an algebra; security is a reachability property. Applied pi calculus provides the formal language. Limitations: cannot model algebraic relations, side channels, or implementation bugs.

Frequently asked questions

Is the “Dolev-Yao Attacker Model & Symbolic Crypto” lesson free?

Yes — the full text of “Dolev-Yao Attacker Model & Symbolic Crypto” is free to read here on the web, and the Cryptology Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cryptology Academy course, upgrade to CoddyKit PRO.

What will I learn in “Dolev-Yao Attacker Model & Symbolic Crypto”?

Model a cryptographic protocol under Dolev-Yao assumptions. You practise Cryptology Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cryptology Academy?

No prior experience is required. Cryptology Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Dolev-Yao Attacker Model & Symbolic Crypto” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cryptology Academy lesson?

Yes. Every Cryptology Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Why Informal Proofs Are Not Enough
  2. Dolev-Yao Attacker Model & Symbolic Crypto
  3. ProVerif: Automated Protocol Verification
  4. Tamarin & Computational Proofs
← Back to Cryptology Academy