Why bot farms run real phones, not emulators — article mark

Why bot farms run real phones, not emulators

Security

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

Phone farm vs emulator: what software can fake

SignalCan an emulator fake it?
Model, IMEI, buildYes. Strings a modified OS can set
Screen, sensors, GPSYes. Synthesised by the emulator
IP addressYes. A proxy changes it
Vendor-certified keyNo. Provisioned only into real secure hardware
Attestations per deviceNo. 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).

Two chains compared. Real phone: the vendor root CA (Apple App Attestation Root CA, or a Google attestation root: Hardware Attestation Root, or Key Attestation CA1 since 1 February 2026) certifies an intermediate signer: on Android a per-device attestation key in the TEE or StrongBox, from the factory or Remote Key Provisioning; on iPhone Apple App Attestation CA 1, which issues a certificate only for a key Apple verified is in a genuine Secure Enclave. The intermediate signs your app key's certificate, which carries your challenge and the app identity. The chain ends at a pinned root, so the server accepts. Emulator: no vendor-certified key exists; Android's software keystore signs with a key published in the Android source, so the certificate has the same format but an untrusted root; in the iOS Simulator one developer-forum report says App Attest is unsupported. The server rejects. Where the trust comes from A server trusts an attestation only if its certificate chain ends at a root the platform vendor publishes. Real phone Vendor root CA Apple App Attestation Root CA, or a Google attestation root (Hardware Attestation Root; Key Attestation CA1 since 1 Feb 2026). certifies Intermediate signer Android: a per-device attestation key in the TEE or StrongBox (factory or Remote Key Provisioning). iPhone: Apple App Attestation CA 1, only for a key Apple verified is in a genuine Secure Enclave. signs Your app's key certificate Carries your challenge, app identity and (Android) security level and boot state. Emulator No vendor-certified key The vendor never provisioned an attestation key into virtual hardware, so it has none to sign with. so the OS uses Software keystore Android's software attestation signs with a key that is published in the Android source tree. Not a secret. signs A certificate anyone can mint Same format, but the root is not one Google vouches for. iOS Simulator: one forum report says unsupported. ✓ Ends at a pinned root: accept. ✗ Ends at an unknown root: reject.
Android Developers: Verify hardware-backed key pairs with key attestation; Apple Developer: DeviceCheck.
Two chains compared. Real phone: the vendor root CA (Apple App Attestation Root CA, or a Google attestation root: Hardware Attestation Root, or Key Attestation CA1 since 1 February 2026) certifies an intermediate signer: on Android a per-device attestation key in the TEE or StrongBox, from the factory or Remote Key Provisioning; on iPhone Apple App Attestation CA 1, which issues a certificate only for a key Apple verified is in a genuine Secure Enclave. The intermediate signs your app key's certificate, which carries your challenge and the app identity. The chain ends at a pinned root, so the server accepts. Emulator: no vendor-certified key exists; Android's software keystore signs with a key published in the Android source, so the certificate has the same format but an untrusted root; in the iOS Simulator one developer-forum report says App Attest is unsupported. The server rejects. Where the trust comes from A server trusts an attestation only if its certificate chain ends at a root the platform vendor publishes. Real phone Vendor root CA Apple App Attestation Root CA, or a Google attestation root (Hardware Attestation Root; Key Attestation CA1 since 1 Feb 2026). certifies Intermediate signer Android: a per-device attestation key in the TEE or StrongBox (factory or Remote Key Provisioning). iPhone: Apple App Attestation CA 1, only for a key Apple verified is in a genuine Secure Enclave. signs Your app's key certificate Carries your challenge, app identity and (Android) security level and boot state. ✓ Ends at a pinned root: accept. Emulator No vendor-certified key The vendor never provisioned an attestation key into virtual hardware, so it has none to sign with. so the OS uses Software keystore Android's software attestation signs with a key that is published in the Android source tree. Not a secret. signs A certificate anyone can mint Same format, but the root is not one Google vouches for. iOS Simulator: one forum report says unsupported. ✗ Ends at an unknown root: reject.
Android Developers: Verify hardware-backed key pairs with key attestation; Apple Developer: DeviceCheck.

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:

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.

Sequence diagram, three parties: iPhone, Apple, your server. Registration: server sends a one-time challenge; the app creates a Secure Enclave key; the app calls attestKey with the key ID and the SHA-256 of the challenge; Apple returns an attestation object with a certificate chain; the app forwards it; the server verifies the chain to the Apple App Attestation Root CA, the nonce in extension 1.2.840.113635.100.8.2, the RP ID hash, counter 0 and the aaguid, and stores the public key. Each protected request: server sends a fresh challenge; the app signs a hash of the request and challenge with generateAssertion; the server verifies the signature with the stored key, requires a higher counter and consumes the challenge. App Attest: one key per install, then signed requests The private key is created inside the Secure Enclave and never leaves it. Read top to bottom. message check or signature on that party iPhone Apple server Register the key (once per install) Server sends a one-time challenge. It stores the challenge for this enrollment; Apple asks for 16+ random bytes. App creates a key pair in the Secure Enclave. generateKey() returns only a key ID. No process can read the private key. App asks Apple to attest the key. attestKey(keyId, SHA-256(challenge)), sent through iOS to Apple. Apple returns an attestation object. CBOR: authenticator data, a certificate chain (x5c) and a receipt. App forwards key ID + attestation. The app cannot judge its own attestation, so the server does. Server verifies and stores the public key. Chain to Apple App Attestation Root CA; nonce in OID 1.2.840.113635.100.8.2; RP ID = SHA-256(TeamID.bundleID); counter 0; aaguid appattest. Sign one protected request Server sends a fresh challenge. Bound to the pending request; used once. App signs request + challenge. generateAssertion(keyId, hash of method, path, body and challenge). App sends request, key ID, assertion. The assertion holds a signature and authenticator data with a counter. Server checks with the stored key. Recompute the hash, verify the signature and RP ID, require counter > last, consume the challenge.
Apple Developer: Establishing your app's integrity; Validating apps that connect to your server.
Sequence diagram, three parties: iPhone, Apple, your server. Registration: server sends a one-time challenge; the app creates a Secure Enclave key; the app calls attestKey with the key ID and the SHA-256 of the challenge; Apple returns an attestation object with a certificate chain; the app forwards it; the server verifies the chain to the Apple App Attestation Root CA, the nonce in extension 1.2.840.113635.100.8.2, the RP ID hash, counter 0 and the aaguid, and stores the public key. Each protected request: server sends a fresh challenge; the app signs a hash of the request and challenge with generateAssertion; the server verifies the signature with the stored key, requires a higher counter and consumes the challenge. App Attest: one key per install, then signed requests The private key is created inside the Secure Enclave and never leaves it. Read top to bottom. Register the key (once per install) server → iPhone Server sends a one-time challenge. It stores the challenge for this enrollment; Apple asks for 16+ random bytes. iPhone checks App creates a key pair in the Secure Enclave. generateKey() returns only a key ID. No process can read the private key. iPhone → Apple App asks Apple to attest the key. attestKey(keyId, SHA-256(challenge)), sent through iOS to Apple. Apple → iPhone Apple returns an attestation object. CBOR: authenticator data, a certificate chain (x5c) and a receipt. iPhone → server App forwards key ID + attestation. The app cannot judge its own attestation, so the server does. server checks Server verifies and stores the public key. Chain to Apple App Attestation Root CA; nonce in OID 1.2.840.113635.100.8.2; RP ID = SHA-256(TeamID.bundleID); counter 0; aaguid appattest. Sign one protected request server → iPhone Server sends a fresh challenge. Bound to the pending request; used once. iPhone checks App signs request + challenge. generateAssertion(keyId, hash of method, path, body and challenge). iPhone → server App sends request, key ID, assertion. The assertion holds a signature and authenticator data with a counter. server checks Server checks with the stored key. Recompute the hash, verify the signature and RP ID, require counter > last, consume the challenge.
Apple Developer: Establishing your app's integrity; Validating apps that connect to your server.

What the server checks at registration, from Apple’s list:

CheckRequired value · what it stops
Certificate chain (x5c)Ends at Apple App Attestation Root CA · stops a key not made in a Secure Enclave
NonceSHA-256(authData ‖ SHA-256(challenge)) equals extension 1.2.840.113635.100.8.2 · stops replaying an old attestation
Key IDSHA-256 of the leaf’s public key · stops swapping in another key
RP ID hashSHA-256(<TeamID>.<bundleID>) · stops a different app’s attestation
Counter0 · stops a key that already signed
aaguidappattest + seven 0x00 (production) or appattestdevelop · 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:

LabelEmulator? · meaning (Google)
MEETS_DEVICE_INTEGRITYNo. Genuine, certified device; on Android 13+ hardware-backed proof of a locked bootloader and certified image
MEETS_STRONG_INTEGRITY (opt-in)No. Device integrity plus security updates for all partitions in the last year (Android 13+)
MEETS_BASIC_INTEGRITY (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_VIRTUAL_INTEGRITYOnly 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”.

SignalWhat it holds · what it survives
App Attest key · AppleOne 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 · Apple2 bits per device per developer, plus last-update month · kept until your server changes them
recentDeviceActivity · GoogleTokens 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) · Google3 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:

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.

Sequence diagram, four parties: iPhone, Apple, the organisation's certificate authority (CA), gateway. Enrollment: the CA sends an ACME device-attest-01 token; the iPhone asks Apple to attest a new Secure Enclave key; Apple returns a chain whose leaf binds the key to device properties and a freshness code from the token; the iPhone submits the attestation and a certificate request; the CA verifies and issues a client certificate. Connection: ClientHello; the gateway answers with ServerHello and a CertificateRequest; the iPhone sends Certificate, CertificateVerify signed by the device key over the transcript hash, and Finished; the gateway verifies the certificate, signature and Finished. Managed Device Attestation: the same kind of key, inside a company An organisation's CA issues a client certificate only to a key Apple attests; a gateway then requires it in TLS 1.3. message check or signature on that party iPhone Apple org CA gateway Enroll the device (ACME device-attest-01) CA sends a fresh ACME token. The challenge type is device-attest-01. iPhone asks Apple to attest a new key. Hardware-bound key in the Secure Enclave. Apple returns an attestation chain. The leaf binds the public key to device properties and a freshness code from the token. iPhone submits attestation + CSR. It requests a certificate for the same public key. CA issues the client certificate. After checking Apple's chain, SHA-256(token) and the key; it can match the serial number to its inventory. Open a TLS 1.3 connection (mutual TLS) ClientHello. A full handshake to the organisation's gateway. ServerHello ... CertificateRequest. The gateway asks the client to authenticate. Certificate, CertificateVerify, Finished. CertificateVerify is signed by the device key over the transcript hash. Gateway verifies the connection. Client certificate against its CA, the handshake signature, Finished.
Apple Platform Deployment: Managed Device Attestation; Apple Developer: Validating a Managed Device Attestation attestation; IETF draft-ietf-acme-device-attest; RFC 8446 §4.4.
Sequence diagram, four parties: iPhone, Apple, the organisation's certificate authority (CA), gateway. Enrollment: the CA sends an ACME device-attest-01 token; the iPhone asks Apple to attest a new Secure Enclave key; Apple returns a chain whose leaf binds the key to device properties and a freshness code from the token; the iPhone submits the attestation and a certificate request; the CA verifies and issues a client certificate. Connection: ClientHello; the gateway answers with ServerHello and a CertificateRequest; the iPhone sends Certificate, CertificateVerify signed by the device key over the transcript hash, and Finished; the gateway verifies the certificate, signature and Finished. Managed Device Attestation: the same kind of key, inside a company An organisation's CA issues a client certificate only to a key Apple attests; a gateway then requires it in TLS 1.3. Enroll the device (ACME device-attest-01) org CA → iPhone CA sends a fresh ACME token. The challenge type is device-attest-01. iPhone → Apple iPhone asks Apple to attest a new key. Hardware-bound key in the Secure Enclave. Apple → iPhone Apple returns an attestation chain. The leaf binds the public key to device properties and a freshness code from the token. iPhone → org CA iPhone submits attestation + CSR. It requests a certificate for the same public key. org CA → iPhone CA issues the client certificate. After checking Apple's chain, SHA-256(token) and the key; it can match the serial number to its inventory. Open a TLS 1.3 connection (mutual TLS) iPhone → gateway ClientHello. A full handshake to the organisation's gateway. gateway → iPhone ServerHello ... CertificateRequest. The gateway asks the client to authenticate. iPhone → gateway Certificate, CertificateVerify, Finished. CertificateVerify is signed by the device key over the transcript hash. gateway checks Gateway verifies the connection. Client certificate against its CA, the handshake signature, Finished.
Apple Platform Deployment: Managed Device Attestation; Apple Developer: Validating a Managed Device Attestation attestation; IETF draft-ietf-acme-device-attest; RFC 8446 §4.4.

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

  1. 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.”
  2. 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.
  3. Check revocation on every Android chain, against the status list, and the validity period on RKP certificates. Expired factory certificates stay trusted unless revoked.
  4. One challenge, one use. Store it, bind it to the request, delete it on first verification. Require a rising assertion counter.
  5. 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.
  6. 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

Questions? Let's Chat :)

security