Why bot farms run real phones, not emulators
A phone farm is a rack of real handsets because the server can ask the phone’s hardware to sign a statement, and an emulator has no key that Apple or Google certified. An emulator can report any model name, IMEI, screen size or GPS position, because all of those are values software hands to the app. A hardware-backed key is different: it is created inside the Secure Enclave (iPhone) or a TEE / StrongBox chip (Android), it never leaves, and its certificate chain ends at a root only the platform vendor holds. Software can produce a certificate in the same format. It cannot make the chain end at that root.
Attestation does not stop automation. A real phone driven by a script passes, because the hardware really is genuine. What it changes is the price: the vendors also count attestations per device, so a server can cap how many accounts, trials or votes one handset produces. Abuse that used to scale with servers now scales with handsets.
As of 27 November 2026, from Apple’s DeviceCheck documentation and Android’s key attestation and Play Integrity pages (see Sources).
Terms
- Attestation: a signed statement, from hardware the vendor trusts, that a key was created in that hardware for a given app, plus a hash of the server’s challenge so it cannot be replayed.
- Secure Enclave (Apple), TEE and StrongBox (Android): isolated processors that hold private keys. Apps ask them to sign; no process can read the key out.
- App Attest: Apple’s service (iOS 14+) that certifies a Secure Enclave key belongs to a genuine instance of your app on genuine Apple hardware.
- Key attestation: Android’s certificate chain for a Keystore key, ending at a Google attestation root on certified devices: the Google Hardware Attestation Root, and since 1 February 2026 also Key Attestation CA1.
- Play Integrity API: Google’s verdict service. The phone requests an encrypted token; your server decodes it to labels such as
MEETS_DEVICE_INTEGRITY. - Emulator: an Android Virtual Device, the iOS Simulator, or any virtual phone. It runs the OS on hardware the vendor never provisioned a key into.
Phone farm vs emulator: what software can fake
| Signal | Can an emulator fake it? |
|---|---|
| Model, IMEI, build | Yes. Strings a modified OS can set |
| Screen, sensors, GPS | Yes. Synthesised by the emulator |
| IP address | Yes. A proxy changes it |
| Vendor-certified key | No. Provisioned only into real secure hardware |
| Attestations per device | No. Counted on Apple’s or Google’s servers |
The last two rows are the whole argument. Everything above them is a client claim, and the server can only trust a client claim that a key it cannot forge has signed.
The chain of trust
Every attestation is an X.509 certificate chain. The server walks it from the app’s key up to a root and accepts only if that root is one the platform vendor publishes. For Apple that is the App Attestation Root CA; for Google, the attestation roots named in Terms (listed as JSON at android.googleapis.com/attestation/root).
Android documents the case of a device without hardware attestation, which is where an emulator lands. Such a device “has a software implementation of attestation that produces the same sort of attestation certificate, but signed with a key hardcoded in Android source code. Because this signing key isn’t a secret, the attestation might have been created by an attacker.” A server that checks the root rejects it; a server that only parses the certificate accepts a forgery.
Two further checks close the obvious gaps:
- Revocation. If an attestation key leaks, Google adds its certificate serial to the status list at
android.googleapis.com/attestation/status, “typically within several days of discovery”. Google cites “mishandling or suspected extraction by an attacker”. A server that skips this list trusts leaked attestation keys, the one way software can pass as secure hardware. - Remote Key Provisioning. Devices launching with Android 16 support only RKP: attestation keys are no longer burned in at the factory, and a revocation can target a single device. Google says key leaks don’t apply to RKP-certified keys. RKP certificates have a shorter validity period, and Google says to check it; expired factory certificates stay trusted unless revoked.
Apple App Attest and the iOS Simulator
App Attest gives each install one Secure Enclave key, has Apple certify it once, and then uses it to sign the requests you care about. The flow below is the one Apple’s server guide describes.
What the server checks at registration, from Apple’s list:
| Check | Required value · what it stops |
|---|---|
Certificate chain (x5c) | Ends at Apple App Attestation Root CA · stops a key not made in a Secure Enclave |
| Nonce | SHA-256(authData ‖ equals extension 1.2.840. · stops replaying an old attestation |
| Key ID | SHA-256 of the leaf’s public key · stops swapping in another key |
| RP ID hash | SHA-256(<TeamID>. · stops a different app’s attestation |
| Counter | 0 · stops a key that already signed |
aaguid | appattest + seven 0x00 (production) or appattest · stops development keys in production |
After that, each assertion is a signature over a hash of the request and a fresh challenge. The authenticator data carries a counter, and the server rejects any counter that is not higher than the last one it stored, so a captured assertion cannot be played twice.
Where an emulator stands: App Attest needs a Secure Enclave. Apple’s documentation says isSupported is false on a Mac, including iOS apps on Apple silicon, and a developer-forum report (unanswered by Apple) shows false in the Simulator. Apple tells apps to “gracefully bypass the service” when unsupported, which is the part a server must not copy blindly: a request that claims to come from an unsupported device is exactly what a farm without phones sends. The server decides whether an unattested client gets the same access, or less.
Android key attestation: how Play Integrity flags an emulator
Android offers two layers. Key attestation is the raw certificate chain for any Keystore key, created with setAttestationChallenge(). Its extension states the key’s attestationSecurityLevel (Software, TrustedEnvironment or StrongBox) and a RootOfTrust with the verified-boot state and whether the bootloader is locked. Google’s instruction is to trust it only when the root is Google’s, no certificate is revoked, and the level is TrustedEnvironment or StrongBox.
Play Integrity wraps that and more into one verdict that Google’s servers compute. The device labels:
| Label | Emulator? · meaning (Google) |
|---|---|
MEETS_ | No. Genuine, certified device; on Android 13+ hardware-backed proof of a locked bootloader and certified image |
MEETS_ (opt-in) | No. Device integrity plus security updates for all partitions in the last year (Android 13+) |
MEETS_ (opt-in) | No on 13+ (no Google root). Basic checks; bootloader may be unlocked; on Android 13+ the root of trust must be Google’s |
MEETS_ | Only there. An emulator with Play services that passes integrity checks, returned only to apps on Google Play Games for PC |
| (empty) | Yes. Attack or compromise, “or the app is not running on a physical device (such as an emulator that does not pass Google Play integrity checks)” |
So the one emulator case Google vouches for is limited to PC games, under its own label that a server can refuse.
Why one real phone is not enough either
If attestation were the only check, a farm would need one phone and a script that reinstalls the app: every install gets a new, perfectly valid key. Both vendors therefore keep per-device state on their own servers, out of the phone’s reach, so a server can tell “new user” from “same handset again”.
| Signal | What it holds · what it survives |
|---|---|
| App Attest key · Apple | One key per install · survives updates; not reinstall, restore, migration |
| Risk metric · Apple | “Number of attested keys associated with a given device over the past 30 days” · kept by Apple; read via the receipt |
| DeviceCheck · Apple | 2 bits per device per developer, plus last-update month · kept until your server changes them |
recent · Google | Tokens this app requested on this device in the last hour: LEVEL_1 ≤ 10 … LEVEL_4 > 50 (standard) · a rolling hour |
| Device recall (beta, eligible apps only) · Google | 3 bits per device per developer account, plus write month; not on emulators · survives reinstall and factory reset; kept 3 years after last access |
Apple states the purpose plainly: a count “higher than expected might be an indication of a compromised device that’s serving multiple compromised instances of your app”. Google gives device recall the same jobs: “devices that already redeemed high-value items (such as a free trial), or devices that are being used repeatedly to create new accounts”.
Put together, the server’s policy becomes “N accounts per attested device”, and the vendor supplies the “per device” part. The cheapest way to get N × 1,000 accounts is then 1,000 devices. That is the phone farm: shelves of handsets on USB hubs and chargers, each one an identity the platform vouches for.
Why device attestation alone does not stop bot farms
Attestation proves the hardware and the app binary. It says nothing about who is tapping the screen. A genuine phone driven over USB or by an automation app passes every check above, which is why farms work at all.
Servers add the signals that do depend on behaviour:
- Who controls the screen. Play Integrity’s opt-in
appAccessRiskVerdictreports apps running with permissions to capture the screen, draw overlays or “control the device and directly control inputs into your app” (UNKNOWN_CONTROLLINGfor those not installed from Play). - Rate per device.
recentDeviceActivityand the App Attest risk metric turn “too busy for one person” into a field the server reads. - Repeat offenders. DeviceCheck bits and device recall mark a handset once and recognise it after a reinstall or (Android) a reset.
- Everything else. Phone-number checks, payment instruments, account age and behaviour. Phone numbers have their own supply chain: Trend Micro documents SMS verification services built on SIM banks and, in one case, “a botnet involving thousands of infected Android phones”. Apple’s own framing: “No single policy can eliminate all fraud”, and DeviceCheck is input to “an overall risk assessment”.
Managed Device Attestation and mutual TLS
The Secure Enclave key that App Attest certifies has an enterprise cousin. With Managed Device Attestation, an organisation’s certificate authority issues a client certificate only to a key Apple attests, through the ACME device-attest-01 challenge. A gateway then demands that certificate in a TLS 1.3 handshake, and the device proves possession by signing the transcript hash in CertificateVerify.
The trust argument is identical: the gateway accepts a connection only from a key that lives in a Secure Enclave, so a copied certificate file on a laptop, or a virtual phone, cannot connect. Mutual TLS itself is covered in API authentication methods: API keys vs JWT vs OAuth vs mTLS.
If you run the server
- Verify on the server, never in the app. Apple: “You can’t rely on your app’s logic to perform security checks on itself”. Google: “Don’t complete the following validation process on the same device.”
- Check the root, not just the format. Pin Apple’s App Attestation Root CA and Google’s attestation roots; reject everything else, including the software attestation root.
- Check revocation on every Android chain, against the status list, and the validity period on RKP certificates. Expired factory certificates stay trusted unless revoked.
- One challenge, one use. Store it, bind it to the request, delete it on first verification. Require a rising assertion counter.
- Decide what unattested means. “Unsupported device” is a legitimate answer from a Mac or an old phone and the default answer from a farm without phones. Give it less, not the same.
- Read the per-device counters (risk metric, device activity, recall bits where your app is eligible for the beta) and cap accounts, trials and payouts per attested device.
FAQ
Why do phone farms use real phones instead of emulators?
Because servers can demand a hardware attestation. Only a genuine iPhone or a certified Android device holds a key that chains to Apple’s or Google’s root, so each account a farm wants to pass these checks needs a physical handset.
How does Play Integrity detect an emulator?
Google’s servers compute the verdict, not the app. An emulator that does not pass Google Play integrity checks gets an empty deviceRecognitionVerdict; the one emulator label, MEETS_VIRTUAL_INTEGRITY, is returned only to apps on Google Play Games for PC.
Can App Attest run on the iOS Simulator?
A developer-forum report shows isSupported as false in the Simulator, and Apple documents it as false on Macs. Without a Secure Enclave there is no key for Apple to certify.
What is device attestation?
A certificate chain, signed inside secure hardware and ending at the platform vendor’s root, that proves a key was created on genuine hardware for your app and binds your server’s one-time challenge.
Does device attestation stop bot farms?
No. It proves genuine hardware, not a human. It makes abuse cost one device per identity, which is why servers combine it with per-device counters, rate limits and behaviour signals.
Sources
- Apple Developer, Establishing your app’s integrity: Secure Enclave key, one key per user per device, keys do not survive reinstall, restore or migration.
- Apple Developer, Validating apps that connect to your server: attestation checks (nonce, OID
1.2.840.113635.100.8.2, RP ID, counter,aaguid), assertion counter. - Apple Developer, Assessing fraud risk: risk metric, attested keys per device over 30 days.
- Apple Developer, isSupported: false on a Mac, including iOS apps on Apple silicon; developer forum report of false in the Simulator.
- Apple Developer, Accessing and modifying per-device data: two bits and last-update time; DeviceCheck: “overall risk assessment”.
- Apple Platform Deployment, Managed Device Attestation: ACME
device-attest-01, attested client certificates; chains end at the Apple Enterprise Attestation Root CA. - Apple Developer, Validating a Managed Device Attestation attestation: the freshness code in the leaf equals SHA-256 of the ACME
token. - IETF, draft-ietf-acme-device-attest: the ACME
device-attest-01challenge. - Android Developers, Verify hardware-backed key pairs with key attestation: Google roots (Hardware Attestation Root; Key Attestation CA1 from 1 February 2026), software attestation key in the Android source, revocation list, RKP on Android 16.
- Android Developers, Integrity verdicts: device labels,
MEETS_VIRTUAL_INTEGRITY,recentDeviceActivitylevels,appAccessRiskVerdict. - Android Developers, Device recall (beta): three bits per device, shared by all apps in one developer account, survive reset, kept 3 years after last access, “not supported on emulators”.
- Trend Micro, SMS PVA: An Underground Service Enabling Threat Actors to Register Bulk Fake Accounts: SIM banks, phone-verified-account services.
- IETF, RFC 8446 §4.4: TLS 1.3 Certificate, CertificateVerify, Finished.