Module 6: Security - MAC & PIN Blocks
Profile boundary: The worked messages and code below use explicit teaching profiles. Field widths, mandatory fields, response actions, timers, and matching keys must come from the selected exercise or a versioned endpoint agreement. Schematic dumps and scenarios are synthetic; they are not network certification fixtures. Diagnostic snippets illustrate mechanisms and are not a complete production library.
Slide 1: Why Security in Payment Messages?
THREAT LANDSCAPE
┌──────────────────────────────────────────────────────────┐
│ │
│ Terminal ──► Router ──► Gateway ──► Network ──► Issuer │
│ │
│ At every hop, messages can be: │
│ • Intercepted (read by attackers) │
│ • Modified (amounts changed, routing altered) │
│ • Replayed (same transaction sent twice) │
│ │
└──────────────────────────────────────────────────────────┘
Two Critical Protections:
┌─────────────────────────┐ ┌─────────────────────────┐
│ MAC │ │ PIN Block │
│ Message Authentication │ │ PIN Encryption │
│ "Was this modified?" │ │ "Keep PIN secret" │
└─────────────────────────┘ └─────────────────────────┘
1 / 27