by arciini · 4y ago · 0 comments
1. This was likely mitigated through a device update. What version did it roll out with? Which devices are still unpatched?
2. How was it compromised? Was it an OEM? An internal leak at Google?
3. What is the attack vector? It sounds like it was likely side-loading apps used by some attacker, but did any of these make it onto the Play Store?
2. Unknown. Could be multiple independent hacks of the OEM or an ODM, could be an insider, etc.
3. The attack vector is usually sideloading.
On top of that, at least for the S21 series Samsung phones in their Common Criteria evaluated mode seemingly use the compromised 34df0e7a9f1cf1892e45c056b4973cd81ccf148a4050d11aea4ac5a65f900a42 certificate provided by earlier version 5.0.00.11 of com.samsung.android.svcagent[2]. I couldn't find a published applications list for S22 series phones in Common Criteria mode but suspect com.samsung.android.svcagent 7.0.00.1 from 2 September 2022 would be more recent anyway.
[1] https://apkcombo.com/svc-agent/com.samsung.android.svcagent/...
[2] https://www.google.com/search?q=inurl%3Adocs.samsungknox.com...
The general public has proven that they’re not capable of any type of sanity check to the point where I would call sideloading dangerous.
Not saying it's how these were picked up, but that's the most obvious way.
2: I don't see any reason to share the master key with an OEM, the master key could be used to sign certificates down-chain but they should never share it.
This leaves 2 options:
- Google had waaay too sloppy key management (sitting on servers or even possibly developer laptops)
- Google had proper management by putting the keys on HSMs or some virtual HSM with multi-party activation, unless there was weaknesses in the HSMs(or the virtual HSM OS) then yes, some person(s) would've gained physical access to extract it.
3: Universal 2nd stage rootkit?
eg. https://www.virustotal.com/gui/file/b1f191b1ee463679c7c2fa7d...
Edit: Noticed the comment about them being lowend(mediatek?) certificates.
In light of that I guess it wouldn't be shocking if there were similar requirements for vendor's platform keys.
v1/v2/v3 APK signing has nothing to do with the Play Store requiring Play Signing for newly published apps. App bundles / split APKs also don't inherently have to be used the way they're using them. Entirely possible to use them outside the Play Store with your own signing keys. v3 signing is just v2 with key rotation support. v2 is proper whole file signing instead of v1 which was just the flawed JAR signing system.