Detecting tampered mobile app resources
Modified application resources can alter configuration or user-visible security decisions. Understanding tampered mobile app resources helps establish which security property the feature needs and where that property is actually enforced.
What does this involve?
Resilience measures can make inspection, modification or misuse more difficult under a defined threat model. They are supplementary controls around an application that still needs sound server permissions, protected keys and safe handling of untrusted information.
Why it matters
Consider a realistic failure: an attacker changes a bundled endpoint or policy file without triggering a useful response.
The value of a resilience weakness depends on what analysis or modification enables. Revealing ordinary client code is different from obtaining a privileged credential or making the service trust a forged security decision.
Mobile behaviour can change between a fresh installation, an authenticated session, background activity and a device migration. The assessment needs the actual release and representative supported device states.
How penetration testers check for it
Identify security-sensitive resources and assess how changes affect application behaviour.
- The attacker bypasses the intended restriction, gaining access to functionality or content they should not have.
- Determine whether the loaded value can influence a security-relevant decision, such as authentication state, authorisation, feature access, configuration, or trust decisions.
- Determine whether the app computes an HMAC or signature over the data it reads back from local storage, and verifies it before use, reacting when verification fails.
- Determine whether that validation is effective for the attacker model in scope.
- Observe the effect on protected operations and server decisions.
- Distinguish increased analysis effort from enforced security boundaries.
How to fix it
Authenticate important configuration and avoid trusting client resources as server authorisation evidence.
- Remove secrets and unnecessary authority from distributed clients.
- Use proportionate maintained platform protections.
- Bind important assertions to trusted verification.
- Plan safe failure, recovery and legitimate user support.
Root detection, obfuscation and similar measures are not universal requirements for every application. A finding should explain why the particular control matters to the assessed product.
Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.
Related issues
- Protecting sensitive resources inside mobile packages
- Detecting malicious functionality in mobile dependencies
- Checking mobile code integrity at runtime
Read about our methodology or contact pentested.com to discuss your mobile applications.