Curriculum
Payment Systems: Magstripe, Tokenization, NFC and EMV
The 16-hour course taught at Black Hat USA, extended to cover what changed since.
The course is tied to your account, so you sign in first and come straight back here.
No hardware is sold here, and none is needed to read the course.
Payments are final. Module 1 is free so you can judge the course before you pay. Terms
What you get
- Modules written
- 22
- Diagrams
- 166
- Graded exercises
- 5
- Sanitized captures
- 5
- Transaction lab — Drive a transaction and change it as it moves
- Search — Across everything you are enrolled in
- Certificate of completion — Issued once you mark every written module complete
22 modules, from the stripe to the issuer
Level 1
Foundations
I know security. I don't know payments.
Level 2
Practitioner
I can read a trace. Now interpret it.
Level 3
Operator
Show me the attack, end to end.
Level 4
Researcher
I want to find something new.
The terms
- One payment, one course
- The price buys this course, not a subscription. There is nothing to renew and nothing to cancel.
- Access for life
- Every module, capture, exercise and lab in the course stays open to you for as long as the course exists.
- Updates and new research included
- When a module is revised or a new research strand lands in this course, it is yours at no further cost. The price you paid is the last one you pay for it.
Foundations
- 01
Payment systems and security
60 minFree previewThe fundamentals: how a transaction is verified and processed against the terminal, why the APDU protocol is not encrypted, and what protects the transaction instead.
Read it free → - 02
Toolset environments
120 minWith the courseThe laboratory: how it is organized, how to navigate it, and which tool suits each payment technology.
Read the module → - 03
Magnetic stripe data
75 minWith the courseTrack encoding and the security thinking of the era, then MagSpoof, part by part, and the unsigned field on the stripe that tells a terminal to prefer the chip.
Read the module →
Practitioner
- 04
Communication process for EMV transactions
150 minWith the courseThe APDU protocol end to end: packet generation, commands, responses, and the structure at the core of every transaction.
Read the module → - 05
EMV technology
120 minWith the courseContact transactions and the advanced APDU mechanisms behind them: the certificate chain a card carries, offline data authentication, and the cryptogram only the issuer can check.
Read the module → - 06
Cardholder verification and the PIN
55 minWith the courseThe CVM List in tag 8E, how a terminal walks it to choose a method, what tag 9F34 records afterward, and the man-in-the-middle that let a terminal believe a PIN was verified while the card was never asked for one.
Read the module → - 07
Terminal risk management and action analysis
75 minWith the courseThe part of EMV that decides rather than authenticates: the TVR in tag 95, Terminal and Issuer Action Codes, the zero floor limit, and Visa's published action codes decoded bit by bit, then the 2026 result showing one of those bits was never bound to anything.
Read the module → - 08
Near field communication
120 minWith the courseNFC transactions in detail: APDU exchanges, cryptogram analysis, and cardholder verification methods.
Read the module → - 09
Tokenization process
60 minWith the courseThe opposite of static magstripe data: a token is a different, independently valid card number, not an encrypted or seeded one, and how digital wallets implement it.
Read the module → - 10
Tokenization in depth
90 minWith the courseDPAN versus FPAN, the Token Service Provider role, provisioning, and where the keys live, then the 2021 research that paid from locked phones by flipping one byte, and the signed field that said so and was never read.
Read the module → - 11
Instant payments and QR
60 minWith the courseEMVCo QR, SPEI, CoDi, Pix and FedNow: static versus dynamic codes, settlement finality, and the fraud that followed the money out of the card rails.
Read the module → - 12
PCI DSS 4.0 and P2PE for testers
60 minWith the courseScoping, segmentation and what an assessor looks for, framed for someone attacking the environment rather than documenting it.
Read the module →
Operator
- 13
Cloning, replay and downgrade attacks
120 minWith the courseReversing transactions to understand attacks seen in the wild, and building proofs of concept for each.
Read the module → - 14
The unpredictable number and pre‑play
90 minWith the courseTag 9F37 is the terminal's only contribution of freshness, and some terminals supplied a counter. What that made possible, why it is neither a replay nor a clone, and how to measure a terminal for yourself.
Read the module → - 15
Contactless limits and the cumulative-limit bypass
75 minWith the courseWhy tapping stops after five times and asks for a PIN, where that counter really lives, and two pieces of published research that got past it: one resetting the counter without ever knowing a PIN, one making a plastic card present as a phone to an ordinary unattended terminal.
Read the module → - 16
Relay: magstripe, NFC and EMV
120 minWith the courseRelaying APDU data locally, over the internet and by MQTT, and what actually limits how much delay a relay can get away with. The countermeasure protocols themselves are module 17's job.
Read the module → - 17
Relay resistance and distance bounding
60 minWith the courseMastercard's Relay Resistance Protocol, Visa's very different Level 1 approach, and where formal verification broke both. The sequel to module 16.
Read the module → - 18
SoftPOS and Tap to Phone
60 minWith the courseCommercial phones as contactless terminals: where PCI CPoC and MPoC sit, attestation, and what breaks when the terminal is an app on untrusted hardware.
Read the module → - 19
Beyond the terminal
60 minWith the courseISO 8583, switches and acquirer hosts, HSMs, DUKPT key derivation, ISO 9564 PIN block formats and key ceremonies: the other half of the rail.
Read the module → - 20
Offline terminals and the portable reader
90 minWith the courseAnyone can buy a certified EMV reader now, and some of them take a payment with no network. A protocol-level walkthrough of four 2025 attacks: a loyalty protocol standing in for identity, a status word misread for years, and a signature over the copy nobody compares.
Read the module →
Researcher
- 21
The authorization leg: from cryptogram to decision
120 minWith the courseThe card signs an amount it cannot verify, and the message that carries it restates that amount in a second place nobody signed. Following one cryptogram out through field 55 to the issuer and back as an ARPC, and a real message that admits nineteen different readings.
Read the module → - 22
Research in progress
30 minWith the courseThree strands of original work that are not in the course yet, written as questions rather than results, each one saying plainly what has been demonstrated and what has only ever run in a unit test. The module is expected to change.
Read the module →
The course is tied to your account, so you sign in first and come straight back here.
No hardware is sold here, and none is needed to read the course.
Payments are final. Module 1 is free so you can judge the course before you pay. Terms
Questions before you buy
Is it live, or self-paced?
Self-paced. The course is written, with graded exercises and real captures, and you work through it on your own schedule. The in-person version is the training I teach at Black Hat USA.
Do I need hardware?
Not to start. The first several modules need none, and the workbench and the decoder run in the browser. The study plan shows what each device adds and what you can do without any.
Open the study planIs it in Spanish too?
Yes. Every module, exercise and figure caption is in English and in Spanish, and you can switch at any time from the header.
How long do I keep access?
For as long as the course exists, with every revision and new research module included. It is one payment, not a subscription.
Can I get a refund?
No. Payments are final, which is why module 1 is free and needs no account: read it first and judge the depth before you pay.
Read the termsWhat does the certificate say?
That you read every written module, as you marked them while reading. It is not an examination result: the exercises are practice and are not scored or recorded.
Buying for a team, or for your employer?
Write to me at sal@salmg.net before you buy.
Ask for an in-person courseCan I pay with Bitcoin?
Yes. The Bitcoin page has the address, the amount and what to send me once you have paid.
Pay with Bitcoin