Security Operations

A mobile banking app ships with an SMS gateway's API key embedded in its binary. A researcher extracts the key from the app package and sends thousands of messages at the company's expense. Which two changes best remove this weakness? (Choose two.)

Choose 2 answers

Show the answer

Correct answersB. Move calls that need the key to a company backend that holds itE. Revoke the exposed key and issue a new one kept only on the server

AWhy not this: Obfuscation slows extraction, but the key is still in the binary and can be recovered.

BWhy this is right: The key never reaches the device, and the backend can authenticate users and limit what they send.

CWhy not this: The app must decrypt the file to use the key, so its decryption key is on the device as well.

DWhy not this: Base64 is reversible encoding, not protection; anyone can decode it.

EWhy this is right: The extracted key stays usable until revoked, and the new key never ships to devices.

FWhy not this: Pinning protects the connection from interception but leaves the key in the app for extraction.

Anything shipped inside a client app can be extracted, so the key must leave the app: the app calls the company's backend, which holds the key and makes the SMS request. The exposed key must also be revoked, because moving the code does not stop someone using a key they already have. Obfuscation, encoding and local encryption only slow extraction.