Skip to content
Crypto Write-up Advanced

Missing signs: how several brands forgot to secure a key piece of Android

Several Android devices from major brands shipped with APEX modules signed using public AOSP test keys, allowing anyone to forge an update that grants near-total control over the device. The issue affected seven of fourteen tested devices and was caused by unsafe defaults, poor documentation, and incomplete CTS coverage in AOSP.

rtx.meta.security

Published on rtx.meta.security

We recently discovered that Android devices from multiple major brands sign APEX modules—updatable units of highly-privileged OS code—using private keys from Android’s public source repository. Anyone can forge an APEX update for such a device to gain near-total control over it.

Tom Hebb, Red Team X, on rtx.meta.security

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 re-signing tool does not replace test signatures by default, and documentation and compatibility tests fail to ensure OEMs replace all APEX test keys with their own release keys.

Impact

An attacker could forge an APEX update to gain near-total control over a vulnerable device, but exploitation requires either local adb access, physical access to an unlocked device, or a separate compromise of a privileged app or update backend.

What the attacker needed

Local adb access or physical access; or compromise of a privileged app; or access to update backend

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 uses special signed packages called APEX modules to update core parts of the operating system. The signing keys are supposed to be secret, but some phone makers accidentally used publicly available test keys instead. This means anyone can create a fake update that the phone will trust, giving them deep control over the device.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.