Verified events

Know which events your real app sent.

An ingest key ships inside your app, so anyone can copy it and send events that look like yours. Lyrelog marks the ones it can prove: sent by your server, or by your own app on a genuine iPhone or Android phone.

Lyrelog checks
Verified, App Attest
{
  "message": "cloud_save_failed",
  "platform": "ios",
  "verified_by": "app_attest"
}

Pick a sender, or turn on the iOS switch and pick the copied key.

Nothing the client sends can fake it

Lyrelog sets verified_by on every event at ingest, from the key the batch came with and the token it carries. A line that sends verified_by itself is refused.

Senderverified_by
Your serverserver
Your Apple app on a real iPhone, iPad or Apple Watchapp_attest
Your Android app on a real devicekey_attestation
Anything else with the ingest keyempty: not verified

On by default in the SDKs

The proof happens in the background: the SDK makes a key in the phone's secure hardware once per install, gets a token valid for a day, and sends it with each batch. Sending never waits for it.

Apple apps

App Attest

  1. 1Your App IDTeam ID, a dot and the bundle id, added in the project's settings. Up to 10, one per app.
  2. 2The App Attest capabilityIn Xcode, on the app target. The Swift SDK does the rest: appAttest is on by default.
  3. 3That's itReact Native and Flutter on iOS go through the Swift SDK, with the same settings.

Android apps

Key Attestation

  1. 1Your package and certificateThe SHA-256 of the certificate that signs the builds, from Play Console or signingReport.
  2. 2Nothing to codeThe Android SDK's attest option is on by default. No Google account or Play Integrity needed.
  3. 3Checked by LyrelogThe chain up to Google's roots, a key made in secure hardware, a locked bootloader, your package and certificate.

Accept only verified events from your app

Off by default. Turned on for iOS or Android, Lyrelog answers 425 Too Early to every unverified batch from that platform: the SDK keeps it and tries again later. A new install's first events wait a few seconds for their token and arrive verified.

Turn it on when everyone has a version with attestation

Until then, events from older versions, simulators and emulators, and rooted or unlocked phones can never prove themselves: they wait on the device, up to what the SDK keeps (20 MB and 7 days), and are never stored.

Where it came from, not whether it's true

A verified event can't have been sent by someone who copied the public key. It doesn't prove what the event says: a server can send a wrong value, and someone using the real app on a jailbroken phone can still make it send events. A verified event is as trustworthy as the code that sent it.

  • Macs

    Apple doesn't offer App Attest there

  • Simulators and emulators

    No secure hardware to prove with

  • Rooted or unlocked phones

    Their system can't be vouched for

  • Web pages

    Verified only through your own server, relaying with a server key

These send unverified events, even with everything set up.

See it with your own app's events

Sign up with GitHub, Google or Apple. Your organization starts on Free; move it to Pro whenever you want.