Home▸Cybersecurity▸Certificate Pinning and MITM Defense: TLS Handshake, SPKI Hash Pins and Rotation Lockout

Certificate Pinning and MITM Defense: TLS Handshake, SPKI Hash Pins and Rotation Lockout

Watch a phone app set up a TLS connection through a hostile Wi-Fi network. Switch SPKI certificate pinning on or off, add a backup pin, choose a forged-certificate or stolen-key attacker, rotate the server key and see real SHA-256 pins compared live, how many requests are intercepted, blocked or locked out, and how update speed decides how long users stay locked out. Built-in numerical checks include FIPS SHA-256 test vectors. Defensive teaching model; phone, server, attacker laptop, router, shield and certificate modelled in Blender.

Cybersecurity3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Certificate Pinning and MITM Defense: TLS Handshake, SPKI Hash Pins and Rotation Lockout ↗ Open standalone

This simulator plays out the exact decision a mobile app makes on every HTTPS connection: does the server's presented public key match a hash the app already trusts? A packet travels a real 3D path from app to server on every attempt, an optional man-in-the-middle attacker can insert itself on that path with its own forged key, and SPKI-hash certificate pinning can be switched on or off to see it block — or fail to block — the interception. A certificate-rotation control demonstrates pinning's own failure mode: revoking trust in a key the app still expects, unless a backup pin was staged in advance.

⚙ Under the hood

Watch a phone app set up a TLS connection through a hostile Wi-Fi network. Switch SPKI certificate pinning on or off, add a backup pin, choose a forged-certificate or stolen-key attacker, rotate the server key and see real SHA-256 pins compared live, how many requests are intercepted, blocked or locked out, and how update speed decides how long users stay locked out. Built-in numerical checks include FIPS SHA-256 test vectors. Defensive teaching model; phone, server, attacker laptop, router, shield and certificate modelled in Blender.

mobile securitycertificate pinningTLSMITMcybersecuritypenetration testingMobile SecurityCertificate PinningSPKISHA-256Key Rotation

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)