Question 440
Architecture principle case — A webhook diagnostic logger records Authorization headers in full for every rejected request. The design review is extracting the transferable lesson for later software projects. Which security principle best governs the observation?
Explanation
Correct Answer
In Q0440, the fictional organizational observation is: A webhook diagnostic logger records Authorization headers in full for every rejected request. The distinct underlying risk mechanism is: A coding convenience moved reusable credentials into a lower-trust telemetry store. Choice A addresses the governing security-design principle because it states: Logs should explain failures without becoming an alternate repository of usable credentials. This fits the governing design principle: Logs should explain failures without becoming an alternate repository of usable credentials. For measurable acceptance, the team should: Sample failure logs show only safe metadata and cannot reconstruct any valid bearer secret. Sustained prevention requires: Add secret-redaction libraries and privacy checks to logging code reviews.
Incorrect Answers
Choice B describes a plausible governing security-design principle for a separate security issue, trusting http headers without proxy provenance: The code assumes transport metadata is authenticated even when supplied by untrusted clients. Its proposed response, “Headers have no inherent authenticity unless the trusted network path establishes it”, does not directly resolve this case. The discriminating cause is: A coding convenience moved reusable credentials into a lower-trust telemetry store. A stronger governing security-design principle would be: Logs should explain failures without becoming an alternate repository of usable credentials. An objective reviewer would test: Sample failure logs show only safe metadata and cannot reconstruct any valid bearer secret.
Choice C describes a plausible governing security-design principle for a separate security issue, improper fallback to a default tenant: Uncertain tenant context defaults to a real customer instead of being rejected. Its proposed response, “Tenant context is a security principal and must never be silently guessed”, does not directly resolve this case. The discriminating cause is: A coding convenience moved reusable credentials into a lower-trust telemetry store. A stronger governing security-design principle would be: Logs should explain failures without becoming an alternate repository of usable credentials. An objective reviewer would test: Sample failure logs show only safe metadata and cannot reconstruct any valid bearer secret.
Choice D describes a plausible governing security-design principle for a separate security issue, security-relevant shell command assembled from input: Untrusted text crossed into command interpretation with unnecessary process privileges. Its proposed response, “A process invocation boundary should distinguish arguments from executable command language”, does not directly resolve this case. The discriminating cause is: A coding convenience moved reusable credentials into a lower-trust telemetry store. A stronger governing security-design principle would be: Logs should explain failures without becoming an alternate repository of usable credentials. An objective reviewer would test: Sample failure logs show only safe metadata and cannot reconstruct any valid bearer secret.



Secure Software Design (KEO1) Practice Tests