Because developers and agents optimise for task completion. If the sanctioned route adds too much friction, the next step is usually an unsanctioned one, such as pasting secrets into a session or using an unreviewed plugin. Governance fails when policy assumes people will accept delay instead of looking for a shortcut.
Why the “safe” route fails when it costs too much friction
Agentic development controls break down when the sanctioned path is slower than the work developers are trying to finish. In practice, people and tools optimise for throughput, not policy purity. If a guarded workflow adds too many prompts, approvals, or context switches, users route around it, and agents will often do the same through the shortest available path.
The failure is not usually that the control is technically weak. It is that the control is operationally misaligned with the task. A safe process that feels punitive creates pressure for shadow workarounds, especially when the agent is embedded in the development loop and the shortcut is only one paste, plugin, or token away.
That is why controls around agent authorisation have to be task-scoped and just-in-time, not simply restrictive. If a safe path is clear but slow, users tend to treat it as an obstacle rather than a guardrail, which turns the control into a bypass incentive instead of a safety mechanism.
What failure looks like in development workflows
The common pattern is friction followed by workaround. A developer wants the agent to inspect code, run a test, open a ticket, or call a tool, but the approved route asks for repeated confirmations, manual copy-paste, or a queue that breaks flow. At that point, the next step is often an unsanctioned one, such as pasting a secret into the session, granting a broader plugin permission than intended, or using an unreviewed extension that “just works”.
This is especially dangerous in agentic environments because convenience features collapse into authority. Once an agent can see secrets, reuse a developer session, or inherit a broad token, the control failure is no longer about inconvenience. It becomes an access problem with real blast radius, because the path of least resistance is also the path of highest privilege.
Controls that rely on developer patience are fragile. A healthier design is one that lets the safe path be the easiest path for routine tasks, while making exceptions explicit, bounded, and observable. Guidance for secure AI coding agents in the IDE, terminal and CI/CD shows why secrets in context and over-scoped tokens are exactly the sort of shortcuts that emerge when teams optimise for speed without reducing friction in the approved route.
How to make safe paths fast enough to be used
The practical answer is to reduce friction where the work is routine and increase friction only where the action is unusually powerful. That means using policy decisions that are specific to the task, short-lived access where possible, and approvals only for steps that genuinely change risk. The goal is not to remove control, it is to place control where it changes behaviour instead of merely slowing people down.
- Make the common case fast: routine reads, low-risk tool calls, and low-blast-radius actions should not require ceremony.
- Make the risky case obvious: secret use, new plugins, environment changes, and outbound actions should trigger explicit review.
- Keep access narrow and temporary: the more durable the credential or permission, the more attractive the shortcut.
- Measure bypass behaviour: repeated manual pasting, local token reuse, and unsanctioned extensions are control failure signals, not just user preference.
Authorisation guidance for agents is most useful when it treats policy as a workflow design problem, not a static rule set. Authorising AI agents works best when developers can complete normal work without negotiating with the control plane on every action.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Slow safe paths invite privilege bypass and overbroad access in agent workflows. |
| ASI02 — Tool Misuse | Workarounds often move agents to unreviewed tools or plugins when approved paths are too slow. | |
| Recommendation — Constrain agent authority per action and require explicit approval for privilege-changing steps. Restrict tool invocation to approved actions and validate each tool against the task. | ||
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Friction-driven shortcuts often lead developers to paste secrets into agent sessions. |
| Recommendation — Keep secrets out of agent context and rotate any credential exposed in a workflow. | ||
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | Overbroad permissions make the shortcut path easy and increase blast radius when controls are bypassed. |
| IA-5 — Authenticator Management | Slow approval paths often encourage reuse or sharing of tokens and other authenticators. | |
| Recommendation — Limit each agent and developer session to the minimum permissions needed for the task. Shorten authenticator lifetime and revoke credentials that are used as workflow shortcuts. | ||
Practitioner Guidance
What to verify: Check whether the sanctioned route is measurably slower than the workaround for the most common developer tasks. If the answer is yes, treat the control as a usability defect with security impact, not as a simple training issue.
Decision rule: If a control routinely pushes users toward secret pasting, broad plugins, or shared credentials, redesign the control before tightening enforcement. Adding more denial without reducing friction usually increases bypass behaviour.
What good looks like: The approved path should be quick enough that developers choose it by default, while privileged or unusual actions still require deliberate pause. Safe does not need to be invisible, but it must be workable under deadline pressure.
Practitioner takeaway: Agentic governance fails when it assumes users will trade speed for compliance forever, so the real test of a control is whether it makes the safe action the easiest action for the task at hand.
Related resources from NHI Mgmt Group
- What are the core risks identified by the OWASP Agentic Top 10?
- When does just-in-time access reduce risk for agentic AI, and when does it fall short?
- How should security teams govern machine identity credentials in agentic AI environments?
- Where should practitioners go deeper on agentic application risks?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 12, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org