Join our Newsletter — 33% off our NHI Course

Soft Fail

Soft fail is a pipeline gating mode that reports security findings without stopping the build. Teams use it to baseline control coverage, measure noise, and build confidence before enforcing hard gates. It is useful when the priority is visibility first and disruption control second.

Expanded Definition

Soft fail is a NIST Cybersecurity Framework 2.0-aligned operating mode for security gates in which a control detects and reports a finding but does not block the pipeline, deployment, or release. In NHI and agentic AI programs, it is often used for secret scanning, policy checks, and identity hygiene controls while teams calibrate signal quality and operational impact. The point is not to ignore risk, but to create a measured path from visibility to enforcement.

Definitions vary across vendors on whether soft fail is a temporary rollout setting, a permanent exception state, or a per-control policy choice. In practice, it is best understood as a conditional enforcement posture that preserves delivery velocity while revealing where controls are weak, noisy, or poorly tuned. A soft fail is most useful when the organisation needs evidence before mandating hard gates, especially in repositories with legacy secrets, uncertain ownership, or uneven developer maturity. The most common misapplication is treating soft fail as a substitute for remediation, which occurs when teams leave findings unowned after the initial rollout phase.

Examples and Use Cases

Implementing soft fail rigorously often introduces a governance tradeoff, requiring organisations to weigh faster adoption and better telemetry against the risk that visible findings become tolerated findings.

  • A CI pipeline flags exposed API keys in a pull request, records the violation, and allows the merge while the security team validates false-positive rates.
  • A repository scanner runs in soft fail across all engineering teams for 30 days, creating a baseline before mandatory enforcement begins.
  • An agentic workflow checks tool permissions against policy but only reports mismatches at first, giving developers time to update secrets management practices before the gate becomes blocking.
  • A model training pipeline surfaces hardcoded credentials found in notebooks, then routes them to incident response without stopping experimentation on unrelated jobs.
  • A platform team uses DeepSeek breach lessons to justify an initial soft fail phase for secret detection before moving to enforcement for critical branches.

Soft fail is most effective when paired with clear service-level expectations, ownership, and a published date for escalation to hard fail. It is not a pass-fail decision by itself, but a transition state in control maturity. Where identity assurance matters, the same pattern can be used to observe how often service accounts, tokens, or certificates would violate policy before blocking production changes.

Why It Matters in NHI Security

Soft fail matters because NHI security programs often inherit large amounts of technical debt, including dormant secrets, overbroad service identities, and inconsistent policy coverage. NHIMG research in The State of Secrets in AppSec shows an average of 6 distinct secrets manager instances, a fragmentation pattern that makes centralised enforcement harder and increases the value of gradual rollout. In that environment, soft fail helps teams see where controls would break before they break delivery.

Used well, soft fail supports a maturity path from observation to accountability. Used poorly, it can normalise risk by creating the illusion of governance without consequences. This is especially dangerous for secrets, tokens, and agent credentials, where exposure can quickly become lateral movement or automated misuse. The broader NHI lesson is that enforcement must follow measurement, not replace it.

Organisations typically encounter the consequences of soft fail only after a leaked secret, compromised service account, or unsafe agent action has already propagated, at which point the term becomes operationally unavoidable to address.

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 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Soft fail often begins with secret scanning and identity control findings.
OWASP Agentic AI Top 10 A-07 Agentic workflows need staged enforcement for tool and action policy violations.
NIST CSF 2.0 PR.AC Soft fail supports gradual access-control enforcement and validation.
NIST Zero Trust (SP 800-207) Section 3.4 Zero Trust programs often phase control enforcement to avoid operational disruption.
NIST AI RMF Risk management calls for monitoring, measurement, and controlled escalation.

Use soft fail to baseline NHI-02 issues, then convert recurring findings into blocking checks.