Question 530
At fictional Greenford Library, a software-security team is conducting an application release-readiness meeting under a documented customer-data protection mandate. The case observation is: A unit test merely checks that an authentication handler returns an HTTP response, not that it rejects forged session claims. The team must select a defensible control or assessment. Which repeatable engineering safeguard would most directly reduce recurrence?
Explanation
Writer-proposed answer: B (UNVERIFIED)
Preliminary individual option explanations — NOT expert validated
Correct Answer
Tests become security evidence only when assertions check the relevant control rather than generic execution. Tests fail for forged tokens and expired sessions, and pass only for authorized claims with expected error semantics.
Incorrect Answers
This response concerns pen test remediation evidence. Here, a unit test merely checks that an authentication handler returns an HTTP response, not that it rejects forged session claims. The confirming evidence is: Tests fail for forged tokens and expired sessions, and pass only for authorized claims with expected error semantics.
Focusing on threat-based security test design would leave this problem unresolved: A unit test merely checks that an authentication handler returns an HTTP response, not that it rejects forged session claims.
Sast and dast interpretation concerns another aspect of the problem. Tests become security evidence only when assertions check the relevant control rather than generic execution.