Teams end up validating syntax and runtime behaviour while still missing whether the application actually enforces the right access decision. That means broken access control, privilege mistakes, and workflow-specific logic flaws can survive both scans. The gap is not coverage of known patterns, but proof of intended security behaviour.
Why This Matters for Security Teams
SAST and DAST are valuable, but they answer different questions from the one that usually matters most in production: did the application enforce the intended security decision for the right user, action, and data? Without context-aware testing, teams can get clean scan results while access control, role boundaries, workflow approvals, and tenant separation still fail. The result is false confidence in code quality rather than assurance of security behaviour.
This gap is especially damaging in applications that combine API-driven back ends, front-end enforcement, and identity-aware logic. A scanner may confirm that an endpoint is reachable and that an input is well-formed, but it will not reliably prove that a user cannot escalate privileges through a hidden parameter, bypass a workflow gate, or act across tenant scope. That is why NIST Cybersecurity Framework 2.0 emphasises outcome-oriented governance and control validation rather than tool-only activity, as reflected in the NIST Cybersecurity Framework 2.0.
Security teams also underestimate how quickly “known issue” testing becomes stale when business logic changes. A test suite can remain green while a new route, feature flag, or service-to-service trust path opens an unintended access path. In practice, many security teams encounter broken access control only after an incident report, customer complaint, or audit finding has already exposed the weakness, rather than through intentional verification.
How It Works in Practice
Context-aware testing combines traditional scanning with checks that understand who is acting, what they are allowed to do, and what the application should do in that specific business flow. Instead of asking only whether input is malicious or a page is injectable, the test asks whether the application enforces the expected security outcome under different identities, roles, states, and data conditions. That includes positive tests for allowed actions and negative tests for disallowed ones.
In practice, this often means building security tests around the application’s trust model, not just its endpoints. For example, a test should confirm that a standard user cannot access an admin-only function, that a support role cannot view another tenant’s record, and that a workflow step cannot be skipped by calling the next API directly. OWASP guidance on broken access control remains highly relevant here, and the OWASP Top 10 is a useful baseline for structuring these checks.
- Use SAST to find insecure patterns in code, then map findings to actual authorization paths.
- Use DAST to exercise runtime behaviour, but pair it with identity- and role-specific test accounts.
- Test for expected denial, not just successful responses.
- Include API, UI, and backend enforcement layers in the same security case.
- Retest after workflow changes, permission model updates, and new integrations.
Good teams also tie these tests to threat models and abuse cases. That is especially important where access depends on claims, session state, or service trust rather than a single login check. MITRE ATT&CK helps teams reason about how adversaries abuse valid access paths, while MITRE ATT&CK provides a shared language for mapping misuse patterns to detections and test cases. These controls tend to break down when applications rely on layered microservices and inconsistent authorization logic because the scanner only sees isolated requests, not the full end-to-end decision path.
Common Variations and Edge Cases
Tighter testing often increases engineering effort, requiring organisations to balance broader coverage against faster release cycles. That tradeoff is real, and best practice is evolving on how much context should be encoded in automated pipelines versus validated in dedicated security test stages.
One common edge case is zero trust-style architectures where the front end, API gateway, and downstream service each make partial decisions. A scan may pass because no single layer appears vulnerable, yet the composed flow still permits privilege escalation. Another is parameterised authorisation, where a user may access one resource type but not another under the same endpoint pattern. Pure SAST and DAST usually miss that nuance unless the tests encode the business rule itself.
There is also a distinction between detection and assurance. DAST can show that a payload does not trigger a known vulnerability, but that is not proof of correct authorisation. Likewise, SAST can confirm that a check exists in code, but not that it is reached in every route or bypass path. Teams in regulated environments should align these tests with control validation expectations in the NIST guidance on secure software and system design and then validate the actual access decision, not only the presence of a control. In highly modular systems, this guidance breaks down when authorisation is split across gateways, service meshes, and app code because no single test layer sees the complete enforcement chain.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | GV.SC | Context-aware testing supports governance of security outcomes, not just tool outputs. |
| OWASP Non-Human Identity Top 10 | Identity-aware checks matter when app access depends on service and user identity boundaries. | |
| OWASP Agentic AI Top 10 | Autonomous or tool-using components need context-specific authorization testing. | |
| NIST AI RMF | AI risk management stresses contextual validation of system behaviour and misuse. | |
| MITRE ATT&CK | T1078 | Valid account abuse is a common path when scanners miss authorization flaws. |
Define security verification goals around business-risk outcomes and validate them in release governance.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 1, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org