SIM Toolkit

Also known as: STK

On this page 7

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.

ElementDirectionPurpose
TERMINAL PROFILEHandset to cardDeclares supported toolkit features
Status word 91 XXCard to handsetSignals a pending proactive command
FETCHHandset to cardRetrieves the proactive command
TERMINAL RESPONSEHandset to cardReports execution result
ENVELOPEHandset to cardDelivers events, menu choices and data downloads
Core SIM Toolkit exchange units

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 commandAction on the handsetTypical service
SET UP MENUAdds an operator menu to the phoneService portal on the home screen
DISPLAY TEXTShows a message on screenBalance notice or confirmation
GET INPUTCollects digits or text from the userPIN entry for a payment
SEND SHORT MESSAGESends an SMS without user compositionTransaction request to a server
SEND USSDStarts a USSD sessionBalance inquiry or top-up
PROVIDE LOCAL INFORMATIONReturns cell ID, IMEI or timeLocation checks and device binding
REFRESHForces the handset to reread card filesApplying an updated network list
OPEN CHANNELOpens a data bearer for the cardRemote file management over IP
Frequently used proactive commands

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.

ConfigurationRisk levelConsequence
Integrity, encryption and counter enabledLowOnly the key holder can trigger commands
Integrity only, no encryptionModerateContent can be read in transit
No security on a legacy browser appletSevereAny sender can trigger proactive commands
Weak keys such as single DESHighKeys may be recovered and abused
Security settings and their consequences

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 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.

ApproachWhere logic runsMain strengthMain limitation
SIM ToolkitOn the cardWorks on any compliant handsetBasic text interface
USSD menuOn the network serverNo card update neededSession timeouts and no offline logic
Smartphone appOn the handsetRich graphics and connectivityRequires a compatible smartphone
Remote SIM provisioningProfile server and eUICCReplaces whole profilesDoes not provide menus itself
SIM Toolkit and neighboring approaches

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.