Vous êtes sur la page 1sur 2

Remote File Management (RFM) on SIMCard

What is the thing sold by GSM Operator to subscriber? The answer is: SIMCard, a smartcard that personalized for telecommunication purpose. Yes, as we know physically GSM operator sell a SIMCard, the rest are services upon it including SMS, call service, MMS, Voice Mailbox and many things. The next question, since SIMcard will be hold by customer inside their mobile phone, how could GSM operator manage the SIMcard remotely? Things like managing javacard applet & filesystem inside the SIMCard. The answer is by OTA (over the air) using SMS and or CAT-TP bearer (GPRS based), but we will focus on the one using SMS (short message protocol). GSM 03.48 define RFM and also RAM as standard mechanism for doing remote file management (RFM) and remote applet management. We are now focus on RFM, please note the implementation for this feature is vendor specific. OK, let me give an example as our case study, one day we as operator need to do OTA campaign for updating file EF_SMSP (7F10/6F42) since the address of SMSC is now changed. As we know, based on 3GPP TS 31.102 document, EF_SMSP contains SMSC information that will be used by mobile phone for sending mobile originated (MO) SMS. For example the content of file EF_SMSP (7F10/6F42) is now 534D532043454E545245FFFFE1FFFFFFFFFFFFFFFFFFFFFFFF07915892020430F1FFFFFFFF0000A9 You can refer to TS 31.102 document for the structure of EF_SMSP, but simply said the SMSC address defined here is: 85292040031. Now, operator want to change it to 85292040034 over the air. So, technically we need to: 1. Prepare APDU for updating the file 2. Construct appropriate 03.48 + 03.40 APDU command 3. Send it over the air to customer The result is, the file on customer SIMcard is updated silenty without user intervention.

Let us, go deeply with APDU for updating the file. Sequence for updating EF 7F10/6F42 record 1 from
534D532043454E545245FFFFE1FFFFFFFFFFFFFFFFFFFFFFFF07915892020430F1FFFFFFFF0000A9

to
534D532043454E545245FFFFE1FFFFFFFFFFFFFFFFFFFFFFFF07915892020430F4FFFFFFFF0000A9

is by executing these 4 APDU(s):


A0A40000023F00 A0A40000027F10 A0A40000026F42 A0DC010428534D532043454E545245FFFFE1FFFFFFFFFFFFFFFFFFFFFFFF07915892020430F4FFFFFFFF0000A 9

Details of each APDU is:


1) APDU for select 3F00 ==> A0 A4 00 00 02 3F 00 2) APDU for select DF 7F10 under MF 3F00 ==> A0 A4 00 00 02 7F 10 3) APDU to select EF 6F42 under DF 7F10 ==> A0 A4 00 00 02 6F 42 4) APDU to update record 1 of EF 6F42 to 534D532043454E545245FFFFE1FFFFFFFFFFFFFFFFFFFFFFFF07915892020430F4FFFFFFFF0000A9: A0 DC 01 04 28 534D532043454E545245FFFFE1FFFFFFFFFFFFFFFFFFFFFFFF07915892020430F4FFFFFFFF0000A9

Now, we need to construct 03.48 SMS, means we need to ask our card vendor about these parameters: 1. TAR (toolkit application reference) of RFM applet 2. MSL (minimum security level setting) 3. Depend on MSL, maybe we need to know KiC & KiD of the card for RFM 4. Depend on how RFM implemented by card vendor, need to know how to pass APDU for updating the filesystem. I assume we simply need to pass the APDU to RFM applet. Let say, 1. the TAR is B0 00 10, please note this value is very specific to card vendor. 2. MSL is 025 means content must be encrypted and use CHryptographic CHecksum 3. Keyset to use is keyset 2 with algo Triple DES using outer CBC-Mode with 2 different keys and KiC: 00112233445566778899AABBCCDDEEFF KiD: 00112233445566778899AABBCCDDEEFF Then we can generate APDU SMS-PP Download like this:
A0 F5 01 25 DF 62 C0 EF 00 C2 0B 00 4E 57 CA E8 5B 00 6D 5D 56 49 46 DB 35 00 63 02 31 4B B6 E7 2D 7B 05 70 DF FC 4A BF 9D D1 00 00 D0 45 51 44 F7 79 99 00 4D 11 B0 25 97 02 40 58 77 71 A8 39 22 02 F1 15 DC 56 52 67 15 83 7F 06 9C 2B B3 90 08 81 F6 01 64 5E CC B6 67 06 01 25 90 D3 9F E2 F4 04 01 25 30 FF D0 22 AA 00 01 B0 E6 C0 6B BE 29 21 01 00 E8 11 0D C3 A5 43 01 10 97 AA 95 3F 73

Next step is send this APDU over the air using SMS and the file inside SIMCard will be updated without user intervention.

Vous aimerez peut-être aussi