Complementing Computational Protocol Analysis with Formal Specifications

Kim-Kwang Raymond Choo, Colin Boyd, Yvonne Hitchcock, Greg Maitland

Introduction

In the field of cryptographic protocol analysis, two dominant paradigms have traditionally operated in isolation: formal methods and computational complexity. Formal methods utilize automated tools to exhaustively check protocol states but often treat cryptography as a "black box" (the Dolev-Yao model), potentially missing subtle mathematical vulnerabilities. Conversely, computational complexity relies on human-generated mathematical proofs that are highly detailed but notoriously prone to error.

This paper proposes a hybrid security analysis framework designed to bridge this gap. By modeling the standard Bellare-Rogaway adversary within a formal state-machine tool, the authors aim to leverage the exhaustive search capabilities of automation to verify the structural integrity of protocols that have already undergone computational proof.

The proposed hybrid framework combining formal methods and computational complexity.

Methodology and Adversary Modeling

The core of the proposed approach involves translating the BPR2000 model (by Bellare, Pointcheval, and Rogaway) into a formal specification language. The authors utilized Asynchronous Product Automata (APA), a state-based formal method, to represent protocol participants and the network environment.

Key to this methodology is the explicit modeling of adversary "queries"—such as Send, Reveal (obtaining old session keys), and Corrupt (compromising a participant)—as state transitions. Verification is performed using the Simple Homomorphism Verification Tool (SHVT), which explores the state space to determine if an insecure state is reachable. An insecure state is defined simply: if the adversary can obtain a fresh session key through any sequence of allowed queries, the protocol is marked insecure.

Case Study: The MAKEP Protocol

To validate the framework, the authors analyzed the original Jakobsson-Pointcheval Mutual Authentication and Key Exchange Protocol (MAKEP). This protocol was an ideal candidate because it carried a formal human-generated proof of security in the Bellare-Rogaway model, yet was later discovered to contain structural flaws. By ensuring the formal model used the exact same adversary capabilities as the original human proof, the authors could directly test the validity of the "proven" security claims.

Results and Discovery of New Attacks

The automated analysis proved highly efficient, running on a standard Pentium IV processor. The SHVT tool not only identified known vulnerabilities but also uncovered previously unpublished attacks:

  1. Known Hijacking Attack: The tool successfully identified the attack discovered by Wong and Chan in just 2 seconds.
  2. New Attack 1 (Component Swapping): The analysis found a method for an adversary to swap message components, causing multiple participants to accept the same key without being legitimate partners.
  3. New Attack 2 (Server Impersonation): The tool revealed a scenario where an adversary can impersonate a server and force a client to accept a key generated and known by the adversary. This complex search took only 79 seconds and explored 1,538 nodes.
Analysis of the MAKEP protocol under an adversary model, leading to the discovery of new structural vulnerabilities.

Conclusion and Future Directions

The findings demonstrate that automated formal tools are exceptionally effective at identifying "basic structural mistakes" like message-swapping or replay attacks that human provers might overlook. While the current framework has limitations—such as the inability to model probabilistic cryptographic properties and the risk of state-space explosion—it provides a powerful complement to human rigor.

Future work aims to extend this framework to more modern security models, such as the Canetti-Krawczyk (CK) modular approach, and to incorporate more abstract cryptographic properties to further bridge the gap between mathematical proofs and automated verification.

Summary updated

BibTeX
@inproceedings{choo2004complementing,
  author = {Kim-Kwang Raymond Choo and Colin Boyd and Yvonne Hitchcock and Greg Maitland},
  title = {{Complementing Computational Protocol Analysis with Formal Specifications}},
  booktitle = {Formal Aspects in Security and Trust},
  year = {2004},
  doi = {10.1007/0-387-24098-5\_10},
}
Figure