speaker: Kévin Redon
status: Master student at the Technische Universität Berlin
event: osmocom Berlin meeting
date: 2012-05-09 19:00 GMT+2
location: CCC Berlin (Marienstr. 11, 10113 Berlin)
topic: osmocom SIMtrace introduction and workshop
project page: http://bb.osmocom.org/trac/wiki/SIMtrace
where to get it: sysmocom (90€), or build it yourself (several hours)
what does the telephone do with the SIM card?
what does the operator do with the SIM card?
what does the SIM card do with the phone?
what applications are running (STK)?
-> it's time to listen to the phone <-> SIM communication
the AT91SAM7S has an undocumented feature (T=0 capable USART) allowing to sniff, be slave (simulate a SIM), and master (read a SIM, or simulate a phone)
credit card size PCB
someone was to impatient and produced an early PCB (lots of ground missing)
first real prototype. mainly the footprints where wrong (RTFDatasheet)
second prototype (still hand soldered). it worked
production line. some capacitor was to far away -> hand solder one additional on every board
capacitor error corrected (not perfect), slightly bigger traces (could still be bigger), VPP line forwarded
plan and wish list for v2.0:
I only made the hardware
Harald Welte wrote the firmware and host software
firmware based on OpenPCD RFID reader
only the sniffing mode has been implemented (no MitM, but the hardware is capable of)
simtrace
APDUs shown in ~ real time
APDU: (9): a0 a4 00 00 02 6f 07 9f 0f
APDU: (22): a0 c0 00 00 0f 00 00 00 09 6f 07 04 00 15 00 15 01 02 00 00 91 78
APDU: (9): a0 a4 00 00 02 6f 38 9f 0f
APDU: (22): a0 c0 00 00 0f 00 00 00 09 6f 38 04 00 15 00 55 01 02 00 00 91 78
APDU: (16): a0 b0 00 00 09 ff 3f ff ff 00 00 3f 03 00 91 78
APDU: (9): a0 a4 00 00 02 6f ad 9f 0f
APDU: (8): a0 b0 00 00 01 00 91 78
APDU: (9): a0 a4 00 00 02 6f 07 9f 0f
APDU: (16): a0 b0 00 00 09 08 49 06 20 11 49 00 11 06 91 78
APDU: (9): a0 a4 00 00 02 6f 7e 9f 0f
APDU: (18): a0 b0 00 00 0b ff ff ff ff 64 f0 00 ff fe 00 03 91 78
APDU: (9): a0 a4 00 00 02 6f 78 9f 0f
use GSMTAP
nc -ul 4729 > /dev/null &
./simtrace -i 127.0.0.1
Subscriber Identity Module: a smart card with information about the operator and subscriber.
It's the plastic card and the application on it. This changes with UICC (hardware) + USIM (software).
SIM specifications are based on ISO/IEC 7816: Identification cards — Integrated circuit(s) cards with contacts
but you have to pay to get them
SIM application (and small ISO/IEC 7816 reminders) specified in 3GPP TS 11.11 (last version 8.9.1 Release 1999, before Rel-4).
going through ETSI TS 102 221:
but the phone can use other F & D values (using the PPS procedure), and change the clock frequency
possible values are defined in the ATR. UICC shall at least support (F,D) = (512,8) and (512,16) in addition to (372,1), and 1MHz to 5Mhz (156250bps should be possible per default)
Table of Contents | t |
---|---|
Exposé | ESC |
Full screen slides | e |
Presenter View | p |
Source Files | s |
Slide Numbers | n |
Toggle screen blanking | b |
Show/hide slide context | c |
Notes | 2 |
Help | h |