Modem-detected cellular threats

Android 17 QPR2 introduces a new timeline UI for modem-detected cellular threats. This feature allows modems to report detected threats and mitigations to the OS, surfacing this data to the user through the Safety Center.

Users can view the history of security events in a new "Security Timeline" located under Settings > Security & Privacy > Network security > Mobile network security.

Key functionalities

  • Threat reporting: Modems can report cellular security events and actions taken to protect the user (for example, detecting Fake Base Stations (FBS) or SMS-specific threats).
  • Framework updates: Introduces @SystemApi android.telephony.NetworkSecurityEvent, a parcelable class encapsulating details about a detected threat, mitigation status, and reasons for the alert.
  • Telephony updates: Adds getSupportedNetworkAlertCategories in TelephonyManager and a new NetworkSecurityEventsListener in TelephonyCallback (with the EVENT_NETWORK_SECURITY_EVENTS constant).
  • Intents: Introduces EXTRA_NETWORK_SECURITY_EVENT to attach security metadata to incoming SMS broadcasts.
  • Flagged API: All framework APIs are guarded by the @FlaggedApi(Flags.FLAG_NETWORK_SECURITY_EVENT_INDICATIONS) feature flag.
  • HAL updates: Adds onNetworkSecurityEvents in IRadioNetworkIndication.aidl, and getSupportedNetworkAlertCategories in IRadioNetwork.aidl.

Implementation

For this feature to work, modem manufacturers must update the logic to detect threat categories (for example, DOWNGRADE, IMPRISONMENT, DOS_NETWORK, ATTRACTIVE_CELL, JAMMING, LOCATION_TRACKING, and UNAUTH_SMS) and report them using the AlertCategory, AlertStatus, and ReasonCode enums.

  • Network indications: Modems must implement the new IRadioNetworkIndication.onNetworkSecurityEvents HAL to asynchronously report cellular security events to the framework.
  • Alert categories: Partners must implement IRadioNetwork.getSupportedNetworkAlertCategories(in int serial) so the framework knows which alert categories the modem detects.
  • SMS threats: For SMS-specific threats, partners must update IRadioMessagingIndication to implement newSecureSms.

When the modem detects a security threat or anomalous behavior, it signals the host processor using the Radio Interface Layer Daemon (rild) using unsolicited responses (such as RIL_UNSOL_RESPONSE_NEW_SECURE_SMS). The rild translates this into the defined AIDL HAL interface call.