Search code examples
authenticationotasim-cardenvelope

SIM Card Authentication through envelope


I'm doing some tests on the SIM Cards. I wanted to know how the SIM could be authenticated with the ADM keys. I have found my answer in SIM Card Authentication

However, the solution ("f0 2a 00 01 08 31 32 33 34 35 36 37 38") does not work with the envelope APDU. The card returns the "6D 00" response (invalid Ins).

How to authenticate with the ADM keys through the Envelope (Ins 'C2') APDU?

P.S. I know the OTA keys are required for the Envelope command and I have them for my test SIM.


Solution

  • It appears that the envelope command itself is sufficient for the authentication. In other words, the following sets are equal:

    • When we have physical access to the card, the works that can be done by a successful ADM authentication;
    • When using OTA or sending through Envelope, the works that can be done by a valid CC (Cryptographic Checksum) field in the command.