Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› How should security teams balance runtime protection and…
Cyber Security

How should security teams balance runtime protection and pre-deployment testing in application security programmes?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated September 26, 2026 Domain: Cyber Security

Security teams should treat runtime protection and pre-deployment testing as complementary controls, not substitutes. WAFs and other runtime defenses help stop attacks against live applications, while DAST and SAST help find weaknesses earlier in the delivery lifecycle. The practical goal is to reduce exposed risk at both build time and run time, while keeping feedback fast enough for developers and DevOps teams to act on.

Why runtime protection and pre-deployment testing solve different problems

Runtime protection and pre-deployment testing address different phases of the application risk lifecycle. Testing finds defects before exposure, while runtime controls absorb what testing missed, what changed after release, or what attackers discover faster than the next release cycle. A balanced programme uses both to reduce the chance that a single control gap becomes a breach.

The key design mistake is treating one control class as proof that the other is unnecessary. Static and dynamic testing improve assurance, but they do not create perfect coverage, especially in fast-moving delivery pipelines, complex dependencies, or code paths that emerge only under real traffic.

How to decide what belongs in the pipeline and what belongs at the edge

Pre-deployment testing works best when teams want earlier defect discovery, developer feedback, and repeatable verification of known requirements. Runtime protection works best when teams need coverage against live exploitation, unknown abuse paths, and sudden exposure after deployment. In practice, both are part of OWASP ASVS-style verification, but they operate at different moments and with different blast-radius profiles.

Security teams should place the control where it gives the highest marginal value. If the weakness is stable and testable, shift effort left into build and release gates. If the risk is conditional on live inputs, real traffic, or exploit timing, keep runtime controls in place because pre-deployment evidence alone will not catch every active attack path.

What a balanced application security programme actually optimises for

The best programmes optimise for coverage, latency, and operability at the same time. Testing should lower the number of avoidable flaws reaching production. Runtime defence should limit exposure when those flaws still make it through. That combination is especially important for APIs, web services, and containerised workloads, where configuration drift, dependency changes, and rapid deployment can outpace manual review.

For containerised and cloud-native environments, runtime control and pre-release assurance reinforce each other rather than compete. Guidance such as NIST SP 800-190 Container Security is useful here because it treats image, registry, orchestration, and runtime risk as linked stages, not isolated decisions. That is the right mental model for application security programmes as a whole.

Risk and Threat Considerations

When organisations over-weight pre-deployment testing, they often create a false sense of assurance: the application may be “tested,” but still exploitable through a newly discovered path, a misconfiguration, or a malicious payload that only appears in production. When they over-weight runtime protection, they may leave too much avoidable weakness in the codebase and rely on filters to compensate for design flaws.

Failure mechanism: Gaps appear when testing is treated as a release checkbox and runtime defence is treated as the only line of protection. Attackers then target whatever changed after testing, whatever escaped coverage, or whatever the runtime control cannot reliably distinguish from legitimate traffic.

Impact: The result is delayed detection, wider exposure windows, and heavier incident-response burden. Teams also lose the feedback loop that makes engineering improvements durable, because the same class of weakness keeps reappearing in later releases.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV15 — Secure Coding and ArchitectureAppsec programmes must balance build-time verification and runtime resilience.
V16 — Security Logging and Error HandlingRuntime protection depends on detection and observability once an app is live.
Recommendation — Use V15 to require security requirements be verified before release and reinforced in production. Use V16 to ensure runtime controls generate actionable security telemetry and errors.
NIST SP 800-53 Rev 5SI-3 — Malicious Code ProtectionRuntime protection commonly includes active blocking and containment controls.
SA-11 — Developer Testing and EvaluationPre-deployment testing maps directly to security verification before deployment.
AU-6 — Audit Record Review, Analysis, and ReportingRuntime defenses need log review to confirm what was blocked or missed.
Recommendation — Implement SI-3 to detect and block malicious payloads at execution time. Apply SA-11 to test security requirements before code reaches production. Use AU-6 to review runtime security events and improve control tuning.

Practitioner Guidance

What to prioritise: Use testing to drive down known, repeatable defects before release, and use runtime protection to reduce exposure for anything that remains untrusted at deploy time. The most effective programmes tune both layers to the same risk appetite rather than assigning one team ownership and assuming the other layer will compensate.

What to verify: Confirm that runtime controls are actually enforcing expected policy on live traffic, and that DAST, SAST, and related tests are tied to release decisions rather than producing unread reports. If a control does not change developer behaviour or production exposure, it is not doing enough.

Practitioner takeaway: Balance is not equal investment in every control, it is deliberate overlap where testing removes predictable defects and runtime protection contains the rest.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 26, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org