Threats, Vulnerabilities, and Attacks

A static scan of a company's mobile app finds a live cloud storage access key in the compiled binary. The key was removed from the source repository last year, but old releases are still installed. What is the BEST first action?

Show the answer

Correct answerC. Revoke and rotate the exposed key, then move secrets to a managed vault retrieved at runtime

AWhy not this: Obfuscation only delays extraction, and the leaked key stays valid in every installed old release.

BWhy not this: Installed copies still contain the key, and leaving it active leaves the exposure fully open.

CWhy this is right: Revoking invalidates the leaked key, and a vault keeps future secrets out of the code and binaries.

DWhy not this: Input validation does not help; the attacker uses the key directly against the storage service.

A key embedded in a shipped binary must be treated as compromised, because anyone with an old release can extract it. Revoking and rotating it, and then retrieving secrets at runtime from a vault, fixes the cause. Obfuscation only slows extraction and leaves the key valid.