Verify and SIM cards

When a modem or card reader sends a VERIFY (INS=0x20) to a SIM card, what effect does this have on applets that have already been installed? That is, if a user issues a VERIFY with ADM1 on channel 0, then opens a logical channel and selects an applet, will the applet “know” the verify is in force? Or does the user need to select the applet and VERIFY with it separately?

this kind of behaviour would most likely be speciifed by the ETSI UICC specs, most likely ETSI TS 102 221. It’s a question of the scope of the PIN status wrt. logical channels.

See e.g. Section 9.3.2:

9.3.2 Logical Channels and Security Environment
A UICC supporting logical channels has the security environment set during the application activation and is valid for the logical channel on which the application is activated. The security environment remains the same on this logical channel until a new application is selected or the status of the PIN status DO has changed, i.e. the application or universal PIN status has been changed from disabled to enabled or vice versa.
The security environment of an application running on a logical channel is inherited when a new channel is opened from the non-basic channel. It is evaluated as after the ATR and set as the SE_No_Active_Application when the new channel is opened from the basic channel.
Any command issued on a logical channel affecting the SE setting only affects the SE on the channel where the command was issued and other channels with inherited security from this channel. The SE change on a channel with inherited security also changes the SE on the channel from which the security status was inherited.

1 Like