App Attest: is this really your app?
Picture this. You ship an app with an AI feature, and every model call is on your bill. On Saturday morning traffic is up tenfold. Don't celebrate: the requests come from a script someone wrote after spotting your API address in network traffic.
The server can't tell the difference. Right endpoint, right format, even a valid token. Apple's answer to this is App Attest, and the story behind it is more interesting than the code.
Uber and a talk in Cupertino
In 2014 Uber was fighting large-scale fraud in China: wiped and reused iPhones, endless new accounts, fake rides. To recognize the same phone even after a reset, Uber started fingerprinting devices and, according to The New York Times, hid that code from Apple's headquarters. Apple employees in other offices noticed anyway. In early 2015 Tim Cook reportedly told Travis Kalanick "I've heard you've been breaking some of our rules" and threatened to pull Uber from the App Store. Kalanick backed down.
Uber broke the rules, but the fraud was real. Apple needed a way to fight it without letting developers track people.
Two bits, then a key
The first answer, DeviceCheck, arrived in 2017. No device ID at all: just two bits and a timestamp per device, stored on Apple's servers and shared by all of one developer's apps. The bits survive reinstalls and resets, so "trial already used" sticks.
But DeviceCheck said nothing about the app itself. The server could trust a device's history, not whether that device was running your program or a cracked copy.
In 2020, with iOS 14, came App Attest. Its question is different: is this really my app, and has anyone tampered with it? At its core is a key pair created in the Secure Enclave, the separate secure processor that also powers Face ID and Apple Pay. The key can sign, but it never leaves the chip.
The notary analogy
Attestation. On first launch the app creates a key and asks Apple, acting as a notary, to certify it: this key belongs to this developer's app with this bundle ID, on real hardware. Your server checks Apple's seal and stores the public key.
Assertion. After that, the app signs important requests. A fresh one-time challenge from the server ties each signature to one request, and a counter that must keep growing makes replays detectable.
A script on a laptop has no such key, so it can't sign. A re-signed copy of the app shows up with the wrong Team ID and bundle ID. Attackers can try relaying signatures through a compromised real device, which is why Apple also offers a fraud metric: roughly how many attested keys your app got on one device over 30 days. Treat it as a reason to look closer, not to ban.
// `hash` must include a one-time challenge from your server.
let service = DCAppAttestService.shared
guard service.isSupported else { return }
let keyId = try await service.generateKey() // store it
let attestation = try await service.attestKey(keyId, clientDataHash: hash)
Old roots
The idea is older than the iPhone. Remote attestation goes back to the TCPA alliance of 1999 and the Trusted Computing Group of 2003, which gave us the TPM chip. The data format comes from WebAuthn, the 2019 W3C standard behind passkeys. Apple added its own statement format, apple-appattest. Fun fact: it still isn't in the official IANA registry, even though Emil Lundberg from Yubico suggested registering it back in 2023.
The rollout had bumps: opaque errors in the early iOS 14 betas and advice to enable it gradually to avoid rate limits. In 2021 Firebase App Check added App Attest support. At WWDC 2026 it came to macOS 27, and iOS 27 added new signals, such as whether the app was launched from TestFlight instead of the App Store.
Where it helps
AI backends. Without App Attest, anyone who finds your API uses your model for free. With it, every expensive request needs a fresh signature the script can't make.
Exams and leaderboards. Apple's own WWDC 2026 examples: a cracked quiz app sending fake answers, and a game with a cheat menu posting fake scores. Both look legitimate until the server asks for a signature.
Plot twist: Anthropic's beta
This morning in the Claude Console I found a new page: App integrations, marked Beta. Register your iOS or macOS app, and its genuine installs can call the Claude API through App Attest, billed to your organization.
Until now the advice was: never ship an API key, run your own proxy, protect the proxy yourself. Now the app attests with Apple, Anthropic swaps the attestation for a one-hour token that only works with the Messages API, and the Swift package handles all of it. If a build leaks, you revoke the integration in the Console.
Caveats: it's a beta through the Claude for Foundation Models Swift package and needs the OS 27 betas. It doesn't work in the Simulator. It works only with the Claude API directly, not through Bedrock, Google Cloud or Foundry. And it identifies the app, not the user.
A technology born from a fight over device fingerprinting now lets an indie developer ship an AI app with no backend at all.
Limits
App Attest isn't user login and it isn't armor. Don't reject new keys from existing users (reinstalls rotate them), don't validate inside the app, and don't ban without a risk check. On Android the equivalent is the Play Integrity API: SafetyNet was switched off in January 2025.
In short
Uber solved a real problem with tools that broke privacy. Apple answered with two anonymous bits, then with cryptography that asks one question: is this the real app? If your server requests cost money or affect other people's results, a couple of days with App Attest might save you a very bad Saturday morning.
Sources
- Apple: Establishing your app's integrity
- Apple: Validating apps that connect to your server
- Apple: Assessing fraud risk
- WWDC21: Mitigate fraud with App Attest and DeviceCheck
- WWDC26: Secure your apps with App Attest
- Anthropic: App Attest for iOS and macOS apps
- W3C: WebAuthn Level 1 Recommendation
- IANA: WebAuthn attestation formats
- W3C mailing list: registering apple-appattest
- WIRED: Uber still broke the rules
- The Guardian: Uber broke Apple's iOS privacy rules
- Firebase: App Check adds App Attest (2021)
- Android: SafetyNet Attestation deprecation