They fail because developers often bypass tools that feel slow, noisy, or disconnected from their normal workflow. When scanning is limited to terminals or late pipeline stages, issues are discovered after context is lost and fixing them becomes more expensive. Embedding checks in the development environment improves adoption, speeds response, and reduces the chance of production defects.
Why This Matters for Security Teams
Security checks fail when they are detached from the places developers already work because friction changes behaviour. If validation only appears in a terminal, a separate portal, or a late CI gate, it competes with delivery pressure and becomes easy to ignore, defer, or disable. That turns security into an exception process instead of a daily habit. NIST frames this as a governance and operational integration problem in the NIST Cybersecurity Framework 2.0.
The same pattern shows up in NHI and AI-adjacent workflows: secrets, tokens, and service credentials drift out of view when checks are not embedded where code, pipelines, and agents are created. NHIMG research on the State of Non-Human Identity Security shows that only 1.5 out of 10 organisations are highly confident in securing NHIs, which reflects how often identity controls are still treated as an afterthought. In practice, many security teams encounter repeated policy violations only after deployment pressure has already normalised bypassing the checks.
How It Works in Practice
Embedding checks into day-to-day development means making the secure path the easiest path. That usually starts with local feedback in the editor, pre-commit hooks for obvious policy violations, and pull request checks that explain exactly what failed and how to fix it. It also means keeping signal quality high. A noisy scanner that produces dozens of false positives trains developers to ignore security altogether, while a targeted rule set with clear remediation guidance improves adoption.
For identity-heavy and AI-heavy systems, the same principle applies to secrets detection, token handling, dependency checks, and agent tool permissions. Static, role-based controls often miss the real risk because the developer sees a code change, while the security failure may be a leaked API key, an over-privileged workflow token, or an agent that can call tools outside its intended scope. Where appropriate, teams should connect developer workflows to policy-as-code enforcement so that checks are evaluated at request time, not just at release time. That is consistent with guidance from the NIST Cybersecurity Framework 2.0 and with NHIMG research on credential exposure and attacker speed in the DeepSeek breach, where exposed credentials can be acted on within minutes.
- Run lightweight checks before code leaves the developer environment.
- Surface failures in pull requests with a fix, not just a finding.
- Use short-lived credentials and secret scanning to reduce blast radius.
- Escalate only the highest-risk issues to later pipeline stages.
These controls tend to break down in highly fragmented environments with multiple disconnected repos, custom build chains, or heavyweight security tools that cannot provide fast, contextual feedback.
Common Variations and Edge Cases
Tighter security controls often increase developer overhead, requiring organisations to balance fast feedback against workflow disruption. The right design depends on maturity, risk, and team size. For small teams, a single integrated scanner may be enough; for larger platforms, the better pattern is layered enforcement, where local checks catch common issues and central policy blocks only high-impact exceptions.
There is no universal standard for exactly where each control should live. Current guidance suggests that the more sensitive the workload, the earlier the check should occur, but enforcement still needs to remain proportionate. A machine-to-machine deployment that uses static long-lived secrets needs more aggressive secret detection and rotation than a low-risk internal utility. Similarly, agentic or automated workflows need runtime controls because their actions are not fully predictable at authoring time. NHIMG’s State of Non-Human Identity Security is a useful reminder that monitoring and rotation gaps remain common, which is exactly why checks cannot be left to one final gate.
Teams sometimes overcorrect by adding so many checks that developers find workarounds. The practical goal is not maximum control density, but enough embedded assurance that secure behaviour becomes the default rather than an interruption.
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 CSA MAESTRO 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.OC-01 | Security checks must fit normal development operations and ownership. |
| NIST AI RMF | AI systems need governance that keeps controls close to day-to-day work. | |
| OWASP Non-Human Identity Top 10 | NHI-01 | Detached checks miss secret sprawl and identity misuse in developer workflows. |
| OWASP Agentic AI Top 10 | A01 | Autonomous agents need runtime controls, not only late-stage reviews. |
| CSA MAESTRO | GOV-01 | Agent governance depends on controls that developers can actually use. |
Scan repositories and pipelines early for exposed secrets, tokens, and over-privileged NHIs.
Related resources from NHI Mgmt Group
- How should security teams prioritize remediation when identity visibility shows more risk than they can fix at once?
- What breaks when organisations rely only on segregation of duties checks in ERP cloud security?
- What do security teams get wrong when they treat conferences as vendor showcases?
- Why do unmanageable applications create more security risk in remote and hybrid work environments?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 27, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org