□ TOKEN TRACE Deanonymizing online hate & offenders

PUSH TOKENS EXPLAINED

Cpl. Charles Jeyapal & CI Debbie Perkes · INSET · QRT Team

You Intuitively Know This Already

Apple and Google know who is downloading and installing each app from their app stores, including apps marketed as privacy centred, like Signal, Proton Mail, and Snapchat.

01 // OS gateway

The Duopoly

Apple or Google Owns the Pipe

Every Apple App Store install routes alerts through one OS gateway.

iOS PUSH PROTOCOL APNs · Apple Push Notification service
App Server → gateway.push.apple.com → iPhone
ANDROID PUSH PROTOCOL FCM · Firebase Cloud Messaging
App Server → fcm.googleapis.com → Android
02 // Registration pipeline

The Push Token

How an App Gets a Push Token

The app asks Apple’s push service (APNs) for a push token. The token is the forwarding address for notifications to this app on this phone.

Example token 7F4A · 9C2E · 8B10 · E891
03 // Install to server log

Where the Push Token Is Stored

From Registration to the App Server

The app registers with Apple APNs and forwards its token to its own server. The moving key represents that token.

04 // App server ledger

The App Company’s Ledger

Token and User ID Lookup

An app company can record which push tokens were associated with an account and when.

Push token → User ID lookup table
App User ID OS Push token State
05 // Everyday delivery

The Push System

One Server, Two Push Routes

Google FCM delivers to Android on the left. Apple APNs delivers to iPhone on the right.

1. TriggerNew event at the app server
2. LookupToken 7F4A…E891
3. TransmitGoogle FCM / Apple APNs
4. ReceiveOS handles the alert
NOW
06 // System architecture

One iOS Tunnel. Every App Push Notification. No Exceptions.

Why iOS forces all push notifications through a single highway

Battery Life and Security

iOS keeps one connection to Apple’s push service for many apps. Apps can sleep between alerts, and iOS keeps each app’s deliveries separate.

Battery Life

Polling means an app repeatedly asks its server if anything changed. Each check can wake the Wi-Fi or cellular radio or keep it active longer. A shared connection avoids those repeated checks. An incoming push can still wake the radio.

Security and Privacy

iOS routes each push to the intended app and runs apps in separate sandboxes. By default, an app can use its own push token and data. Other apps’ tokens, messages, and account data stay outside its reach.

Signing in lets that app link its token to your account. A weather app can use a city you type in or location access you grant. Your chat app’s data stays separate.

Delivery Pipeline

  1. While open, the app can talk to its server normally.

  2. After the app goes into the background, iOS can suspend it. While suspended, its code stops running.

  3. The iOS push service keeps the phone reachable over the shared APNs connection. The radio can idle between traffic.

  4. A server event, such as a new message, triggers a token lookup. The app server sends the token and push payload to APNs.

  5. iOS receives the push and can show an allowed alert while the app stays dormant. iOS may briefly run the app for eligible background work.

Battery cutaway
01 // Case setup

Bomb Threat

Anonymous Bomb Threat via Proton Mail

Offender in the dark sends an encrypted threat to RCMP HQ.

□ IMMINENT THREAT
02 // Swiss dead end

Emergency Disclosure Request to Proton

Proton’s Response in the Case Study

In this fictional case, Proton declined the direct request. Its published guidance directs foreign authorities to official Swiss channels.

Request declined in this case
03 // OSINT + law enforcement portal + ITO/EDR

Ignore the Fortress, Seek Soft Targets.

Following the App and Push Records

The fictional app response includes a push token. Investigators assess a separate request for records held by Apple.

01 App-company request 02 Sample token returned 03 Separate request → Apple
04 // Unmasked

Anonymous

Apple

British Columbia driver’s licence marked Specimen, Test Card
B.C. Driver’s Licence · Specimen

Subscriber Records

John Doe Fictional

Home phone
604-555-0142
Mobile phone
778-555-0163
Address
42 Sample Lane
Vancouver, B.C.
Driver’s licence
Specimen test card
Account email
john.doe@example.com
Payment card
•••• 4821
Instagram
John Doe
John walking his dog on a waterfront path
Early walk with Scout.
Two coffees and a croissant at a rainy café window
Window seat and a coffee.
John repairing a bicycle at his workbench
Finally fixed the bike.
@johndoe_case_sample
05 // Hardware attribution

One Account, Multiple Devices

One Gmail Account Across Three Devices

Alex opens the same Gmail inbox on an iPhone, an Android phone, and a computer. The example records show one User ID across all three devices.

Example lookup · USER_ID_88
User ID Gmail on this device Example notification record
USER_ID_88 Device A · iPhone APNs · Example token 1
USER_ID_88 Device B · Android FCM · Example token 2
USER_ID_88 Device C · Computer browser Desktop alert · Gmail open
06 // Multi-identity attribution

One Device, Multiple Accounts

Two Gmail Accounts on One Phone

Alex switches from a personal inbox to a work inbox in the same Gmail app. In the example records, both User IDs reference the same installation and push token.

Example lookup · Device 1
Observed at Account Device record Push token
09:14 Account X · Personal inbox Device 1 Token A
09:22 Account Y · Work inbox Device 1 Token A
The sample records place both accounts on one installation. Identifying the person using the phone requires independent evidence.
System overview

Evidence Pathfinder

Follow a route or select a single step.

    Glossary

    Push token
    An app-specific address for remote notifications. See the push-token terms for an Information to Obtain.
    PII
    Personally identifiable information. Details that can identify someone on their own or when combined with other information.
    VPN
    Virtual private network. An encrypted connection that carries network traffic over another network, such as the internet.
    APNs
    Apple Push Notification service, the push service for iOS.
    FCM
    Firebase Cloud Messaging, Google’s service for sending notifications and data messages to apps.
    ITO
    Information to Obtain. A sworn document that sets out the facts and grounds relied on to request judicial authorization.
    EDR
    Emergency disclosure request. A request to a provider for information in response to an emergency.
    OSINT
    Open-source intelligence. Information collected and assessed from publicly available sources.
    User ID
    The app company’s internal identifier for an account.
    Lookup table
    A record that links identifiers. The app server can match a User ID to a token for delivery or check which User ID was associated with a token at a given time.
    Pipeline
    The ordered path an event follows, from a trigger on the app server to delivery on the phone.
    Trigger
    An event, such as a new message, that starts a step in the pipeline.
    State
    What a part of the system is doing at a given moment. An app can be dormant while iOS is listening.
    Dormant
    In this diagram, an app suspended by iOS. Its code stops running until iOS resumes it.
    Listening
    The system push service stays reachable for incoming pushes over its shared connection.
    Transmitting
    Sending push data to the next point in the pipeline.
    Receiving
    Accepting incoming push data. On the phone, iOS can use it to show a permitted alert.
    Polling
    Checking a server repeatedly for updates, even when there may be nothing new.
    Radio wake
    The Wi-Fi or cellular hardware leaving a low-power state to send or receive data.
    App sandbox
    The OS-enforced boundary around each app’s data and capabilities. The OS can grant access to specific resources through permissions.
    Kernel
    The core of the operating system. It schedules work, manages memory, supports networking, and helps enforce app isolation.
    Beta

    Investigator Tools

    Push-Token Terms for an Information to Obtain (ITO)

    A remote-notification push token is an opaque routing identifier a push service supplies for delivery to a specific application on a device. Apple Push Notification service (APNs) issues a device token for a particular app on a particular Apple device. Firebase Cloud Messaging (FCM) registration tokens address individual registered app instances in a Firebase project. Google also documents Firebase Installation IDs (FIDs) as a distinct, newer per-instance addressing method. These identifiers can change over time.

    Identifier type and stored value
    Use the provider’s record name, such as APNs device token or FCM registration token. Identify any separately stored Firebase Installation ID and the stored format where relevant.
    App and platform
    The app name, operating system, and bundle or package identifier. Include the APNs environment or Firebase project if known and relevant.
    UTC time window
    The relevant start and end times in Coordinated Universal Time. A registration or refresh timestamp records when the identifier was first recorded or updated.
    Account association
    A recorded link between a push identifier and an app account during the relevant period. Login tokens, session tokens, permanent hardware IDs, and provider credentials are separate record types.