M7: Insufficient Mobile Binary Protections
Someone rebuilt the app and gave themselves free rewards.
What Is M7: Insufficient Mobile Binary Protections?
A mobile app that makes a valuable decision on the phone, with no obfuscation and no way for the server to recognise a genuine build, can be rebuilt to decide whatever the attacker likes. You'll watch an attacker repackage a loyalty app for free rewards, then pause redemptions, require platform attestation and move the decision to the server.
What You'll Learn in M7: Insufficient Mobile Binary Protections
- Explain how an attacker decompiles, edits and repackages a mobile app to change a decision it makes locally.
- Contain abuse by pausing the affected feature and reviewing the transactions made through it.
- Require platform attestation so the server can tell a genuine build on a real device from a modified one.
- Move valuable decisions, such as granting rewards, to the server and treat the app as untrusted.
M7: Insufficient Mobile Binary Protections — Training Steps
-
Pull the app apart
Quellbury is a coffee chain with a loyalty app: buy nine drinks, get the tenth free. The app shows the stamp card and has a button to redeem the free drink. Bob has a Quellbury account with no stamps on it. He downloaded the Android build and unpacks it back into readable source.
-
Who decides the free drink
Bob searches the source for the redeem call to see what the app tells the server.
-
Build his own copy
Bob changes the one check so that it always answers yes, rebuilds the app and signs it with his own key. How he changed it stays out of this lesson; what matters is that nothing stopped him: no obfuscation, no tamper check, and a server that never asks which build is calling.
-
A free drink with no stamps
Bob's modified app sends the redeem request as usual. His card has zero stamps.
-
Forty-three accounts
Signing up is free, so Bob makes dozens of accounts and shares the modified app with friends. Three weeks later he checks how far it has gone.
-
What the server believed
-
Free drinks nobody earned
Alice leads the Quellbury app team. Finance has written to her.
-
Who is redeeming
Alice pulls the redemptions with no stamps behind them and checks which app build sent each one.
-
Pause redemptions
Every hour costs more free drinks. Alice pauses in-app redemptions with their feature flag. Baristas can still honour a full card at the till, where they see the stamps.
-
Open the rewards client
Now the cause. Alice opens the code that redeems a reward.
Security Framework Coverage
OWASP Mobile Top 10
- M7:2024 Insufficient Binary Protections
OWASP MASVS
- MASVS-RESILIENCE-2 The app implements anti-tampering mechanisms.
- MASVS-RESILIENCE-3 The app implements anti-static analysis mechanisms.
CWE
- CWE-602 Client-Side Enforcement of Server-Side Security
- CWE-807 Reliance on Untrusted Inputs in a Security Decision
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