App Attest and Play Integrity
Proves to a server that a request came from a genuine copy of the app on a genuine device.
In one line
Can prove its requests come from the real app on a genuine phone
Proves to a server that a request came from a genuine copy of the app on a genuine device.
Anti fraud tool with a privacy angle: it is a device level key, not a user id.
What it can and can't do
What the user does: Nothing. It happens when you sign in, pay, or send something the app protects
It can
- Get a signed statement that the app and device look genuine
- Sign requests with a key held in the phone's secure chip (iPhone)
- Check app license and device integrity (Android)
- Reject requests from copies, emulators and tampered apps
It cannot
- See who you are or other apps on the phone
- Pass on a rooted or modified device at the stronger levels
- Prove the phone is completely safe
- Keep a flag beyond the 2 bits DeviceCheck offers
How it differs between platforms: iPhone uses App Attest and DeviceCheck. Android uses Play Integrity verdicts.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 4.4 (API 19) | iOS 14 |
| Permission or entitlement | INTERNET (normal); Play Integrity API with Play services | com.apple.developer.devicecheck.appattest-environment |
| Protection level | normal | entitlement |
| How access is granted | install | entitlement |
| What the user sees | None | None |
| How long it lasts | Per token | Per key |
| How to take it back | n/a | n/a |
| Store policy | Play: Integrity API quotas (10,000 calls per day default) | None listed |
| API | IntegrityManager | DCAppAttestService, DCDevice |
| Notes | Verdicts for device, app and account licensing | Key stays in the Secure Enclave; DeviceCheck stores 2 bits per device |
Data you get
What comes back: Attestation or token
Shape: object
How often: per request
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
bits | integer | bits | 2 DeviceCheck bits | Not listed |
Technical limits
- Server must verify; clients cannot trust local result
The story
What it is
A server gets proof that a request came from the real app on a genuine phone.
For you
You do not see it. It sits behind a sign up, a purchase or a score upload and quietly says 'this looks real'. If your phone is jailbroken or rooted, an app may stop working.
For makers
Makers use it to block bots, cheats and cloned apps. It is a device level proof, not a person level ID, which helps with privacy. It still decides which phones are allowed and which are turned away.
Where you see it
| Type | Example | Apps |
|---|---|---|
| games | A game server checks that a match result came from the real game, not a modified copy. | None named |
| banking | A bank checks that a transfer request came from its real app before it moves any money. | None named |
| shopping | A ticket seller blocks scripts that buy up concert seats by checking each purchase. | Ticketmaster |
| social | A social app slows fake account creation by asking new devices to prove they are real. | None named |
| ads | An ad platform removes fake installs by confirming the app and device were genuine. | None named |
| developer | An AI app protects its paid server by only answering the true app. | None named |
Risks
- Blocks rooted or jailbroken users
- Device key can act as an identifier
Android and iPhone in short
- Android: Android uses Play Integrity and gives a graded answer (basic, device, strong) about the device.
- iPhone: iPhone uses App Attest, which is a hardware key per app install plus a signed statement from Apple.
What the platform says
- Apple: App Attest. Apple lets servers confirm requests come from a genuine copy of the app on Apple hardware.
- Google: Play Integrity API. Google tells servers whether a device, app and account look real or risky.
Good uses and abuse
Legitimate uses
- Fraud prevention
Known abuse
- Blocking rooted users
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 1 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2020-09, iPhone iOS 14: App Attest introduced
- 2021-05, Android Play services: Play Integrity API launched
Related capabilities
Related
- Sign in with Apple and Credential Manager. Can sign you in with Apple and hide your real email if you choose
Same idea on the web
- Private Access Tokens and PACT. Can check that you are probably a real device without learning who you are
- Private State Tokens. Can pass a small trust badge about you between sites without naming you
Sources
How well checked: Based on official documentation.