Skip to content
StrikeOps

Hardcoded Secrets in a Mobile Application

HighTypical severity Mobile applicationsCWE-798

01Description

API keys, credentials or encryption keys were embedded in the mobile application package and recoverable through decompilation.

02Impact

Anyone can download the app and extract the secrets, then use them to call backend or third-party services directly, outside the app's controls.

03Severity

Typically

High

Typically High. Severity follows what the secret allows. Critical for backend or cloud credentials with write access; Low for public, restricted client identifiers.

04How to verify

  1. 1Decompile the application package (APK or IPA) and search for keys and high-entropy strings.
  2. 2Identify each secret's service and permissions.
  3. 3Check native libraries and configuration files as well as code.

Testing note: only test systems you are authorized to test, within the agreed scope and rules of engagement. Verification steps are written for professional testers and avoid destructive techniques.

05Remediation

  1. 1Remove secrets from the app and move privileged calls to the backend.
  2. 2Use per-user, short-lived tokens issued after authentication.
  3. 3Rotate any exposed secrets.

06References

Draft findings like this from your own evidence

Book a demo
Book a demo