Bypassing Android Hardware Attestation from the Analyst's Chair
The article describes how Android hardware attestation can be bypassed by relaying attestation requests to a clean device and splicing the genuine certificate chain back into the target app using a Frida hook. An attacker with a rooted device could therefore pass attestation checks without compromising the secure hardware.
Published on blog.quarkslab.com
Posted Tue 11 August 2026 Author Eric Le Guevel Category Android Tags android, attestation, keystore, TEE, StrongBox, Frida, instrumentation, reverse-engineering, tool, 2026
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the attestation protocol does not bind the signed statement to the specific app instance or to a live key exchange, so a relayed attestation from a different device is accepted.
Impact
An attacker with a rooted device could bypass hardware attestation checks, allowing the app to run on a device that would otherwise be rejected; the article does not claim this works against all backends, noting that binding the attestation to the app or a live key would stop the relay.
What the attacker needed
Rooted Android device; clean Android device; Frida instrumentation; target app uses hardware attestation
The fix
The attestation should be bound to the specific app and to a live key exchange so that a relayed statement from another device is rejected.
How it was found
- Run the target app on a rooted device and observe that attestation fails.
- Set up a clean, unmodified device to act as an oracle that can produce valid attestation.
- Use a Frida hook to intercept the attestation request inside the target app.
- Relay the request to the clean device and obtain its genuine certificate chain.
- Splice the genuine chain back into the target app's process.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Android apps can ask the phone's secure hardware to sign a statement proving the device is genuine and unmodified. This article shows that a security analyst can intercept that request on a rooted phone, send it to a clean phone instead, and copy the clean phone's signed answer back to the app. The app cannot tell the difference, so it lets the analyst in even though the original phone is rooted.
What is Mobile?
Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.