Unsigned Over-the-Air Updates
An update nobody signed reached every user at launch.
What Is Unsigned Over-the-Air Updates?
A mobile app that downloads code updates at launch and runs them without checking a signature hands its users to anyone who can upload an update. You'll watch an attacker push a fake card screen through a leaked upload key, then roll back, rotate the key and turn on update code signing.
What You'll Learn in Unsigned Over-the-Air Updates
- Explain how an app that downloads and runs code updates at launch trusts whoever controls the update channel.
- Contain a malicious update by rolling back to a known good release and rotating the leaked upload key.
- Enable code signing on updates, with the private key kept outside the upload pipeline, and verify it in the app.
- Prove the fix by showing that an unsigned or wrongly signed update is rejected.
Unsigned Over-the-Air Updates — Training Steps
-
A key in the history
Fennory is a grocery delivery app built with React Native and Expo. Like many Expo apps, it downloads new JavaScript over the air at launch, so the team can ship changes without waiting for store review. Fennory publishes a small open-source helper library from the same repository history. Bob clones it and searches every past commit for anything that looks like an update key.
-
What the app checks
Before using the key, Bob looks at what the app receives when it asks for an update.
-
Publish to production
Bob has built an update that looks like Fennory's current app but adds one screen that asks customers to confirm their payment card before the next delivery, which sends what customers type to his server. Its code stays out of this lesson. He uploads it with the leaked key.
-
Cards arriving
Two days later Bob checks how many customers have reached the new screen.
-
Why the phones trusted it
-
Open Fennory
Alice leads the Fennory mobile team. She has a delivery booked tonight and opens the app on her own phone to check the slot.
-
Restart to update
The app says an update has downloaded. Alice's team has not shipped anything this week.
-
Customers are reporting it
Within minutes, the support lead writes.
-
Who published it
Alice lists the recent updates on the production channel.
-
Roll back first
Every launch spreads the update further. Before anything else, Alice points the production channel back at the last update her team published.
Security Framework Coverage
OWASP Mobile Top 10
- M2:2024 Inadequate Supply Chain Security
OWASP MASVS
- MASVS-RESILIENCE-2 The app implements anti-tampering mechanisms.
CWE
- CWE-494 Download of Code Without Integrity Check
- CWE-347 Improper Verification of Cryptographic Signature
CIS Controls
- CIS 16 Application Software Security
NIST CSF
- PR.AT-02 Individuals in specialized roles are provided with awareness and training so that they possess the knowledge and skills to perform relevant tasks with cybersecurity risks in mind
- PR.PS Platform Security
NICE Framework
- DD-WRL-003 Secure Software Development