[Paper Review] Chip and Skim: cloning EMV cards with the pre-play attack
This paper reveals a critical vulnerability in EMV (Chip and PIN) payment systems, where flawed random number generation in ATMs and point-of-sale terminals enables a 'pre-play' attack that allows attackers to clone cards without physical access. The attack exploits predictable 'unpredictable numbers'—used to ensure transaction freshness—by precomputing valid authentication codes, leading to undetectable fraud that banks wrongly attribute to customer error or collusion.
EMV also known as “Chip and PIN”, is the leading system for card payments worldwide. It is used throughout Europe and much of Asia, and is starting to be introduced in North America too. Payment cards contain a chip so they can execute an authentication protocol. This protocol requires point-of-sale (POS) terminals or ATMs to generate a nonce, called the unpredictable number, for each transaction to ensure it is fresh. We have discovered two serious problems: a widespread implementation flaw and a deeper, more difficult to fix flaw with the EMV protocol itself. The first flaw is that some EMV implementers have merely used counters, timestamps or home-grown algorithms to supply this nonce. This exposes them to a “pre-play” attack which is indistinguishable from card cloning from the standpoint of the logs available to the card-issuing bank, and can be carried out even if it is impossible to clone a card physically. Card cloning is the very type of fraud that EMV was supposed to prevent. We describe how we detected the vulnerability, a survey methodology we developed to chart the scope of the weakness, evidence from ATM and terminal experiments in the field, and our implementation of proof-of-concept attacks. We found flaws in widely-used ATMs from the largest manufacturers. We can now explain at least some of the increasing number of frauds in which victims are refused refunds by banks which claim that EMV cards cannot be cloned and that a customer involved in a dispute must therefore be mistaken or complicit. The second problem was exposed by the above work. Independent of the random number quality, there is a protocol failure: the actual random number generated by the terminal can simply be replaced by one the attacker used earlier when capturing an authentication code from the card. This variant of the pre-play attack may be carried out by malware in an ATM or POS terminal, or by a man-in-the-middle between the terminal and the acquirer. We explore the design and implementation mistakes that enabled these flaws to evade detection until now: shortcomings of the EMV specification, of the EMV kernel certification process, of implementation testing, formal analysis, and monitoring customer complaints. Finally we discuss countermeasures. More than a year after our initial responsible disclosure of these flaws to the banks, action has only been taken to mitigate the first of them, while we have seen a likely case of the second in the wild, and the spread of ATM and POS malware is making it ever more of a threat.
Motivation & Objective
- To investigate the root cause of undetected EMV card fraud despite the protocol's security claims.
- To expose how predictable 'unpredictable numbers' in EMV terminals enable pre-play attacks that mimic card cloning.
- To demonstrate that flawed random number generation in widely deployed ATMs and POS terminals undermines the entire EMV security model.
- To advocate for systemic changes in liability, evidence retention, and regulatory oversight to protect consumers and correct industry practices.
Proposed method
- Collected transaction logs from ATMs and POS terminals to analyze the pattern of the 'unpredictable number' (UN) field.
- Developed a data capture card to harvest UN sequences from live ATMs in the field.
- Conducted field experiments on second-hand ATMs purchased via eBay to test random number generation quality.
- Performed reverse engineering and cryptographic analysis on EMV terminal implementations to identify predictable UN generation patterns.
- Simulated pre-play attacks by predicting future UN values and forging transaction authentication codes.
- Conducted responsible disclosure to card schemes, banks, and vendors, documenting responses and industry resistance.
Experimental results
Research questions
- RQ1Why are EMV card fraud cases being denied by banks despite the protocol's claim of unclonability?
- RQ2How do predictable 'unpredictable numbers' in EMV terminals enable a pre-play attack that evades detection?
- RQ3What systemic flaws in EMV specification, certification, and implementation testing allowed this vulnerability to persist for years?
- RQ4Why do banks routinely destroy transaction logs, and how does this undermine dispute resolution and consumer protection?
- RQ5What governance and technical reforms are needed to prevent future large-scale fraud in cryptographically secured payment systems?
Key findings
- The 'unpredictable number' (UN) in many ATMs and POS terminals is generated using simple counters or timestamps, making it predictable and vulnerable to pre-play attacks.
- Field experiments confirmed that UN values in widely used ATMs from major manufacturers increase in a predictable, counter-like pattern, cycling every three minutes.
- Proof-of-concept attacks demonstrated that an attacker with temporary access to a card can precompute valid authentication codes for future transactions.
- The vulnerability is not limited to physical cloning; it can be executed via man-in-the-middle attacks or malware in terminals, even if the EMV kernel is tamper-resistant.
- Many banks destroy transaction logs within 90–180 days, undermining dispute resolution and enabling banks to deny liability despite evidence of fraud.
- Industry response was largely dismissive or non-cooperative, with most organizations refusing on-the-record engagement, suggesting systemic suppression of known vulnerabilities.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.