Security Architecture and Engineering

A thick-client application distributed to clinic workstations connects directly to the central database using credentials embedded in the executable. An attacker decompiles the client and extracts them. Which change best removes this weakness?

Show the answer

Correct answerD. Move to a three-tier design in which the client authenticates to an application server that alone holds database access

AWhy not this: Encryption at rest protects storage files; a session using stolen valid credentials still receives decrypted data.

BWhy not this: Segmentation limits where connections come from, but any compromised workstation still has the credentials and can connect.

CWhy not this: Obfuscation only slows decompiling, and rotation still leaves a secret embedded in the client that attackers can extract.

DWhy this is right: The client holds no database secret, so extracting the client's contents gives the attacker no direct database access.

A multi-tier design keeps database credentials off the client, so decompiling the client exposes nothing usable. Transparent data encryption protects data files at rest, not queries made with valid credentials, so it does not address the exposed secret.