Chapter 06 of 22 Part II: The Connected World

The Secret Life of a SIM Card

Difficulty: Intermediate Editorial estimate: ~45 min Prerequisites: Chapter 01

Chapter Field Guide

01 SCIENTIFIC PRINCIPLES & LAWS
  • Electromagnetic waves, frequency and wavelength; digital signals and time sharing; identity and challenge-response authentication; state machines, routing and handover.
02 WHERE YOU MEET IT IN EVERYDAY LIFE
  • Your phone finds a network when you turn it on. Calls ring even when the screen is off. You can travel, switch devices, use an eSIM or keep talking while moving.
03 WHAT YOU GAIN BY KNOWING IT
  • Explain what signal bars really mean, distinguish a phone from a subscription, model a network registration, diagnose a failed call, and build a miniature mobile operator.
YOUR MISSION
  • Join Mira, Leo and Bit to connect two imaginary phones across a city, then keep their call alive as one of them moves.

Measurable Learning Outcomes

  • Explain why a SIM card never transmits its secret subscriber key Ki over the radio.
  • Trace a challenge-response handshake between a mobile operator and a SIM card.
  • Describe how phones connect to base stations (BTS), controllers (BSC), and core switches (MSC), and how handoffs occur.

Core Scientific Intuition

A SIM card is a tiny smart-card computer holding an identity (IMSI) and a secret key (Ki) shared with your carrier. To verify your phone without exposing Ki, the network sends a random challenge (RAND). Both the SIM and the network compute a response from RAND and Ki; if the responses match, access is granted. Note that mobile phones do not chain directly from phone to phone: each handset talks to its own base station, and the core network routes the call.

RES = f(Ki, RAND)
In plain words: The authentication response equals a one-way cryptographic function of the shared secret key Ki and a fresh random challenge RAND.
Units & assumptions: Ki never leaves the SIM or operator AuC; RAND is a fresh random nonce to prevent replay attacks.

Worked Example

If the network sends RAND = 94821 and the SIM computes RES = 7C4A, an eavesdropper who copies 7C4A cannot reuse it later because the next login uses a brand-new RAND.

Hands-On Exploration

Interactive Laboratory

Test the concepts directly with 4 interactive panels, live controls, and visual feedback.

Open Interactive Lab →

Three Guided Projects

Structured experiments with hypotheses, boundary tests, hints, and reflection prompts.

View 3 Projects →

Source Code (3 Snippets)

Inspect byte-identical printed JavaScript blocks, download `.js` files, or test runnable blocks in the isolated sandbox.

Browse Code →

Self-Check Quiz (5 Questions)

Immediate explanations for every choice, unlimited retries, and local-only score tracking.

Take Self-Check Quiz →

Book Chapter Outline (Reference Guide)

Section headings from Volume 1 for cross-referencing with the printed book.

Show all 39 book section headings
  1. A tiny card, a huge adventure
  2. PEOPLE BEHIND THE SCIENCE
  3. Martin Cooper (born 1928)
  4. Thomas Haug
  5. PEOPLE BEHIND THE SCIENCE
  6. Friedhelm Hillebrand (born 1940)
  7. Hedy Lamarr (1914-2000)
  8. A network built by many minds
  9. One phone, several identities
  10. How the phone finds a cell
  11. Radio is invisible, but measurable
  12. Prove your identity without saying the secret
  13. Registration: telling the network you are here
  14. The first call
  15. Follow the invisible conversation
  16. How your voice travels
  17. Keep talking while moving
  18. Travel, eSIM and newer networks
  19. Roaming: visiting someone else’s network
  20. What changes with an eSIM?
  21. What happens when you turn it off?
  22. Can a switched-off phone still be found?
  23. How can investigators locate a phone?
  24. Are all telephone calls recorded?
  25. How can eavesdropping happen?
  26. Eight more questions for curious minds
  27. Build a miniature mobile operator
  28. Read the code like a map
  29. A gate that checks a membership card
  30. What is happening?
  31. A call that moves across a city
  32. Why use a margin?
  33. The disappearing call
  34. Your investigation
  35. Make the network smarter
  36. Three inventions to try
  37. Limits and responsible engineering
  38. Words worth knowing
  39. Explore reliable sources

Primary Sources & Further Reading

External links are provided for independent verification and deeper study. Link availability can change over time; see the Resources page for verification notes.

Source Type Link
Further reading reference https://www.invent.org/inductees/martin-cooper
Additional reference reference https://www.computerhistory.org/timeline/networking-the-web/
Read more reference https://www.etsi.org/newsroom/news/2347-in-memory-of-thomas-haug/
Read more reference https://www.computerhistory.org/makesoftware/exhibit/texting/
Further reading reference https://www.invent.org/inductees/hedy-lamarr
Additional reference reference https://guides.loc.gov/antheil
ETSI: history of GSM standardization reference https://www.etsi.org/about/history/
3GPP TS 24.008: mobile radio interface and core network protocols reference https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=1015
3GPP: GSM/EDGE overall description and interfaces reference https://portal.3gpp.org/Specifications.aspx?WiUid=50063&q=1
3GPP: GSM radio resources and BSS interfaces reference https://portal.3gpp.org/Specifications.aspx?WiUid=420004&q=1
GSMA: consumer eSIM reference https://www.gsma.com/solutions-and-impact/technologies/esim/about/
GSMA: VoLTE, VoNR and service entitlement reference https://www.gsma.com/newsroom/gsma_resources/ts-43-service-entitlement-configuration/
GSMA: remote SIM provisioning architecture reference https://www.gsma.com/solutions-and-impact/technologies/esim/gsma_resources/sgp-22-v2-7/
MDN: JavaScript reference official-docs https://developer.mozilla.org/en-US/docs/Web/JavaScript
Mobile location and surveillance: EFF reference https://ssd.eff.org/module/mobile-phones-location-tracking
Apple: Find My after shutdown official-docs https://support.apple.com/en-asia/guide/iphone/iph9a847efc7/ios
Google: Find Hub and offline finding official-docs https://support.google.com/android/answer/3265955?hl=en
GSMA: mandated government access reference https://www.gsma.com/solutions-and-impact/connectivity-for-good/public-policy/mobile-policy-handbook/consumer-protection/government-access/
NIST: cellular threat catalogue primary-standard https://pages.nist.gov/mobile-threat-catalogue/cellular.html
Congressional Research Service: call records and content reference https://www.everycrsreport.com/files/20160720_R44481_5afe235f311964803834ccc9db1cd42ac7e9571f.html