Unlinkability of an Improved Key Agreement Protocol for EMV 2nd Gen Payments

Ross Horne, Sjouke Mauw, Semen Yurkov

TL;DR

Researchers have identified a privacy flaw in the proposed "Blinded Diffie-Hellman" (BDH) protocol for next-generation EMV (chip/contactless) payments, showing that an active attacker can track a cardholder's transactions from just a meter away. To fix this, they propose an improved protocol (UBDH) using self-blindable certificates and provide a formal mathematical proof that it achieves true "unlinkability" without sacrificing security.

What Problem Does This Paper Address?

When you tap your credit card, you expect your identity to remain private. However, current EMV standards often transmit your card number in cleartext, making it trivial for a terminal (or a malicious eavesdropper) to link different transactions to the same card.

To solve this, EMVCo (the body behind Visa, Mastercard, etc.) proposed the Blinded Diffie-Hellman (BDH) protocol for "2nd Gen" payments. The goal was "external unlinkability"—ensuring a passive eavesdropper couldn't identify a card. This paper points out a critical oversight: active attackers. In a real-world scenario, a malicious actor with a smartphone or a hidden "skimming gate" can initiate a session with a card in someone's pocket from up to 100cm away. The authors demonstrate that the original BDH proposal fails against such active attackers because it still reveals a static, linkable certificate during the handshake.

Methods

The authors employ rigorous formal methods to analyze and fix the protocol:

  • Applied $\pi$-calculus: A formal language used to model concurrent processes and their interactions in cryptographic protocols.
  • Quasi-open Bisimilarity: A sophisticated mathematical tool used to prove that two processes are indistinguishable to an observer. They use this to define "strong unlinkability"—proving that a system where cards are used multiple times looks identical to an "ideal" world where every card is destroyed after a single use.
  • Modal Logic: Used to succinctly describe the specific "attack trace" that breaks the original protocol.
  • ProVerif: An automated tool used to verify that their proposed fix doesn't break the core security requirement of injective agreement (ensuring the terminal is talking to a legitimate card and not a replay).

Datasets

This is a formal verification and protocol design paper; therefore, no empirical datasets were used. The evaluation is based on mathematical proofs and symbolic verification using the ProVerif tool.

Key Insights and Ideas

  • The "Active" Threat is Real: While previous proofs focused on passive eavesdroppers, the authors argue that for contactless tech, we must assume attackers will actively "ping" cards. A 100cm range is easily achievable at doorways or checkouts.
  • Blinding the Key isn't Enough: The original BDH protocol blinded the public key but left the certificate (the "proof" that the key is legitimate) static. This static certificate acts like a fingerprint that an active attacker can use to track the card.
  • Self-Blindable Certificates: The "aha moment" is integrating a specific type of cryptography (like Verheul certificates) where the certificate itself can be blinded. This allows a card to prove its legitimacy to a terminal without ever revealing a persistent, linkable identity.
  • Compositional Reasoning: By using a "congruence" relation (quasi-open bisimilarity), the authors can prove properties about the card in isolation and be confident those properties hold even when the card is part of a larger, complex system with many terminals.

Key Results

  • Attack Demonstration: The paper provides a formal proof that the original EMVCo BDH proposal is vulnerable to tracking by active attackers.
  • Protocol Enhancement (UBDH): They introduce "Unlinkable BDH," which blinds both the public key and the certificate.
  • Formal Proof of Privacy: Using their bisimilarity framework, they provide a complete proof that UBDH satisfies strong unlinkability.
  • Security Verification: Using ProVerif, they confirmed that UBDH maintains "injective agreement," meaning it is just as secure against fraud as the original proposal.

Limitations and Future Work

  • The Legacy Data Problem: The authors candidly admit that even with a perfect key agreement protocol like UBDH, the rest of a standard EMV transaction still leaks data. Legacy 1st Gen elements—like the Application File Locator (AFL) and the card number itself (needed for routing the payment through the banking network)—remain linkable.
  • Infrastructure Hurdles: Making an entire transaction truly unlinkable would require massive, non-incremental changes to how banks and terminals communicate.
  • Future Direction: The authors suggest that future work should focus on how to hide these legacy identifiers (like card numbers) from the terminal while still allowing the backend network to route the transaction correctly, possibly through group signatures or more advanced anonymous credentials.

Summary updated

Abstract

To address known privacy problems with the EMV standard, EMVCo have proposed a Blinded Diffie-Hellman key establishment protocol, which is intended to be part of a future 2nd Gen EMV protocol. We point out that active attackers were not previously accounted for in the privacy requirements of this proposal protocol, and demonstrate that an active attacker can compromise unlinkability within a distance of 100cm. Here, we adopt a strong definition of unlinkability that does account for active attackers and propose an enhancement of the protocol proposed by EMVCo. We prove that our protocol does satisfy strong unlinkability, while preserving authentication.
BibTeX
@inproceedings{horne2022unlinkability,
  author = {Ross Horne and Sjouke Mauw and Semen Yurkov},
  title = {{Unlinkability of an Improved Key Agreement Protocol for EMV 2nd Gen Payments}},
  booktitle = {CSF},
  year = {2022},
  url = {https://openreview.net/forum?id=XaL8K7FYRc},
}
Figure