SIM Toolkit (STK) is a standardized command interface that lets applications stored on the SIM card take the initiative and instruct the handset to display text, show menus, collect input, send messages or set up calls. Within SIM & eSIM technology, it turns the card from a passive identity store into a small application platform controlled by the operator, independent of the phone model or its operating system.
The concept originated in the GSM 11.14 specification and now lives on as the Card Application Toolkit in ETSI TS 102 223 and the USIM Application Toolkit in 3GPP TS 31.111. The same mechanism works on a removable SIM card, on an eUICC that hosts eSIM profiles and on an integrated iSIM.
How SIM Toolkit reverses the card-terminal relationship
SIM Toolkit works by letting the card request commands through status words even though the smart card protocol only allows the terminal to start an exchange. In classic ISO/IEC 7816 communication, the handset sends a command and the card answers. STK keeps that rule but adds a proactive signaling trick: the card ends an ordinary response with the status word 91 XX, which tells the terminal that a command of XX bytes is waiting.
The handset then issues a FETCH command to retrieve the pending instruction, executes it and reports the outcome with a TERMINAL RESPONSE. Events flowing in the opposite direction, such as a user choosing a menu item or an incoming data message, reach the card through ENVELOPE commands. At startup, the handset sends a TERMINAL PROFILE that lists which toolkit features it supports, so the card never asks for something the phone cannot do.
The following table summarizes the core exchange units and the direction in which each one travels.
| Element | Direction | Purpose |
|---|---|---|
| TERMINAL PROFILE | Handset to card | Declares supported toolkit features |
| Status word 91 XX | Card to handset | Signals a pending proactive command |
| FETCH | Handset to card | Retrieves the proactive command |
| TERMINAL RESPONSE | Handset to card | Reports execution result |
| ENVELOPE | Handset to card | Delivers events, menu choices and data downloads |
Proactive commands and their uses
Proactive commands are the instructions a toolkit application sends to the handset, and each one maps to a concrete user-facing or network action. A typical STK application combines a handful of them: it installs a menu, waits for a selection, asks for input and then sends the result over the network.
The table below lists the most widely used commands and the services they usually support.
| Proactive command | Action on the handset | Typical service |
|---|---|---|
| SET UP MENU | Adds an operator menu to the phone | Service portal on the home screen |
| DISPLAY TEXT | Shows a message on screen | Balance notice or confirmation |
| GET INPUT | Collects digits or text from the user | PIN entry for a payment |
| SEND SHORT MESSAGE | Sends an SMS without user composition | Transaction request to a server |
| SEND USSD | Starts a USSD session | Balance inquiry or top-up |
| PROVIDE LOCAL INFORMATION | Returns cell ID, IMEI or time | Location checks and device binding |
| REFRESH | Forces the handset to reread card files | Applying an updated network list |
| OPEN CHANNEL | Opens a data bearer for the card | Remote file management over IP |
Two further mechanisms matter in operator networks. Call control lets the card inspect, modify or block an outgoing call or USSD string before it reaches the network. Event download informs the card about location changes, idle screen status or network registration, which allows context-aware behavior without polling.
Over-the-air management and security
SIM Toolkit applications are usually installed and updated over the air rather than at the factory. The operator sends binary SMS-PP data download messages or uses the Bearer Independent Protocol to open an IP channel, and the card verifies each packet before acting on it.
Packet security follows ETSI TS 102 225 together with 3GPP TS 31.115 and TS 31.116. Each message carries a minimum security level defined per application, with counters against replay, cryptographic checksums and optional encryption. On modern cards, the applications themselves are Java Card applets written against the UICC API in ETSI TS 102 241, which isolates them from one another.
The protection depends heavily on configuration, as the comparison below shows.
| Configuration | Risk level | Consequence |
|---|---|---|
| Integrity, encryption and counter enabled | Low | Only the key holder can trigger commands |
| Integrity only, no encryption | Moderate | Content can be read in transit |
| No security on a legacy browser applet | Severe | Any sender can trigger proactive commands |
| Weak keys such as single DES | High | Keys may be recovered and abused |
The Simjacker disclosure of 2019 showed what happens in the third row: a legacy browser applet accepted unauthenticated commands, letting an attacker retrieve location and device identifiers silently. The lesson is that STK security is a property of each deployed card profile, not of the standard itself.
SIM Toolkit compared with related technologies
SIM Toolkit sits alongside several neighboring technologies, and the differences lie mainly in where the logic runs and who controls it. USSD and SMS are network services that STK can use, whereas remote SIM provisioning and SM-DP+ concern downloading entire profiles rather than running applets inside them.
| Approach | Where logic runs | Main strength | Main limitation |
|---|---|---|---|
| SIM Toolkit | On the card | Works on any compliant handset | Basic text interface |
| USSD menu | On the network server | No card update needed | Session timeouts and no offline logic |
| Smartphone app | On the handset | Rich graphics and connectivity | Requires a compatible smartphone |
| Remote SIM provisioning | Profile server and eUICC | Replaces whole profiles | Does not provide menus itself |
Because the applet lives inside the profile, an eSIM profile can carry STK applications just as a plastic card does. Moving a number with eSIM transfer therefore also moves the toolkit services bundled with that profile, provided the operator includes them.
Limitations and common misconceptions
The main limitation of SIM Toolkit is its dependence on handset support, which varies in practice despite the standard. Some smartphones hide the operator menu inside a settings app, render text poorly or ignore optional commands declared as unsupported in the terminal profile.
- STK is not obsolete: it still drives mobile money, network list updates and IoT SIM management in many markets.
- STK is not a remote control of the phone: commands are limited to the defined set and the handset can refuse them.
- Silent commands are possible, because some actions such as sending an SMS may run without on-screen confirmation if the card requests it.
- Card memory is small, typically a few hundred kilobytes, which keeps applets compact and simple.
Put simply
The SIM card in a phone is not only an ID badge for the network. It also contains tiny programs from the mobile operator. SIM Toolkit is the agreed language those programs use to talk to the phone.
With it, the SIM can ask the phone to show a menu, display a message or send a text in the background. Think of the SIM as a guest who may leave notes for the host, and the phone as the host who reads them and decides what to do. The phone stays in charge, but the operator gains a simple service channel that works on almost any handset.
In practice
A mobile operator in a region where many customers use basic feature phones launches a mobile money service. Instead of requiring a smartphone app, it pushes a Java Card applet over the air to several million SIM cards using encrypted SMS-PP messages, with a few thousand cards updated per hour to avoid network congestion.
After installation, a new entry called Money appears in each phone menu through SET UP MENU. A customer selects Send money, enters a phone number and an amount through GET INPUT and confirms with a four-digit PIN. The applet encrypts the request with a card-stored key and sends it as a short message to the payment platform, which replies with a confirmation shown through DISPLAY TEXT.
The result is a secure payment channel on inexpensive handsets, with credentials that never leave the card in readable form and no dependency on mobile data coverage.