Independent analysis by NHI Mgmt GroupSource article: PlainID, “Your Homegrown Authorization Worked Great. Then AI Agents Showed Up.” (November 18, 2026)

TL;DR: PlainID shows enterprise software teams that built homegrown authorization for predictable web apps now face a different problem as agents plan paths at runtime, chain through tools and APIs, and outgrow static role checks. That shift turns custom policy logic into maintenance debt because access decisions must move from hardcoded routes to runtime guardrails.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on PlainID's blog post: Homegrown authorization becomes technical debt when autonomous agents require runtime access decisions across tools, APIs and delegation chains.

Why it matters: IAM teams now have to govern access paths that are generated in execution, not predesigned in code, which changes how privilege, auditability and policy enforcement have to work.

By the numbers:

👉 Read PlainID's analysis of homegrown authorization and agentic AI


Context

Enterprise authorization was built for predictable application flows, where roles and routes could be encoded ahead of time and reviewed later. That model weakens when AI agents select tools, sequence tasks, and move between APIs without following a fixed path.

The governance gap is not model performance, but access control that assumes a stable request pattern. AI agent authorisation becomes a different problem when the actor generates its own execution path and policy needs to follow it in real time.

Homegrown policy logic also tends to live inside individual applications, which makes it hard to audit consistently or reuse across systems. When the same control is copied into many services, security and compliance inherit fragmented logic instead of a governable identity layer.


Key questions

Q: How should security teams authorise agentic AI requests at runtime?

A: Security teams should authorise agentic AI requests by evaluating the user, the agent, the tool, the task, the destination, and the moment together. The request should succeed only when every layer agrees, because any single layer can create overexposure if it is allowed to inherit from a session-wide grant.

Q: Why do application-embedded roles fail for agentic workflows?

A: Application-embedded roles fail for agentic workflows because the role is fixed in code or configuration, while an agent’s needed tools, data and scope change by task and context. That creates overbroad standing access or brittle exceptions. Better control comes from runtime policy checks, scoped delegation, and revocation tied to the human owner or supervising workflow.

Q: What is the difference between tool allowlists and runtime policy enforcement?

A: Tool allowlists define which tools an agent may call, usually as a static permit list. Runtime policy enforcement decides at execution time whether a specific call is allowed, based on context such as identity, data sensitivity, purpose, time, and step-level state. The first limits surface area, the second governs each action.

Q: How can teams preserve accountability across user-to-agent delegation chains?

A: Teams preserve accountability by binding each delegation step to a specific human owner, recording who approved what scope, and keeping an auditable chain from user to agent to downstream service account or token. Clear provenance, step-up approval for privilege changes, and immediate revocation of the agent’s credentials prevent gaps when tasks cross systems.


Technical breakdown

Why static role checks fail for agentic execution

Static role-based checks work when the application path is known in advance. Autonomous agents change that assumption because they can choose actions, tools and timing at runtime, which means the access decision cannot be fully encoded at development time. The failure is not simply that roles are too coarse. It is that the decision point moves from a fixed application route to a changing sequence of actions that only exists during execution. See the AI Agent Authorisation Guide.

Practical implication: Move authorization decisions to runtime policy evaluation instead of relying on embedded if/else checks in application code.

Why delegation chains create confused deputy risk

Agentic workflows often span user, agent, sub-agent, tool and API hops. If a homegrown system collapses that chain into one service account, the original delegating subject disappears and the downstream action looks like generic machine activity. That is the classic confused deputy pattern: valid authority gets reused in the wrong context, so the system cannot tell who initiated the action or why it is allowed. See the Agentic AI Identity Guide.

Practical implication: Preserve delegation context through the full chain so downstream actions can be authorised against the real initiating identity.

Why parameter-level controls matter more than tool allowlists

Tool allowlists answer a narrow question: which endpoints may an agent reach? They do not answer how the agent uses those endpoints, which is where abuse often appears. A valid MCP tool can still be dangerous if the parameters, payloads or action sequence are unconstrained. In practice, the control surface must sit below tool discovery and inspect the runtime action itself, not just the name of the tool being invoked.

Practical implication: Add runtime guardrails that inspect parameters and payloads, not only the list of tools an agent may call.


Threat narrative

Attacker objective: The attacker aims to use legitimate agent access to perform actions that exceed the original business intent while avoiding clear attribution.

  1. Entry occurs when an agent is granted broad access through an over-privileged service account or inherited application role.
  2. Escalation follows when the agent chains tools, APIs and sub-agents in ways the original policy logic did not anticipate.
  3. Impact lands when unauthorized actions are executed at runtime while auditors can no longer reconstruct who truly authorised the path.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Homegrown authorization becomes permanent technical debt once agents enter production: code that was acceptable for predictable web flows does not scale to runtime-planned execution. The problem is not just maintenance overhead. Policy logic embedded in applications cannot keep pace with agentic workflows that discover new paths as they run, so governance shifts from a design-time exercise to a runtime requirement.

Identity composition is the missing control plane: agentic systems rarely act as a single principal, yet many in-house engines flatten user, agent, sub-agent and tool into one service identity. That erases delegation context and makes accountability collapse at the exact point where it matters most. Agentic AI identity has to survive the full execution chain, or the authorisation record is already incomplete.

Tool allowlists are not enough for agentic governance: the control problem moves below discovery into parameter-level and payload-level enforcement. A tool name does not explain intent, and an allowed endpoint can still be abused through the arguments passed to it. Practitioners should treat tool access as necessary but insufficient, because runtime misuse happens after the allowlist check has already passed.

The build-versus-buy debate is really a governance timing debate: teams that keep extending internal code are optimising for familiar engineering patterns while the attack surface has already changed. The issue is not whether a custom engine can be made to work. It is whether identity controls can be externalised quickly enough to govern agents before those agents become the dominant execution path.

From our research library:

What this signals

Governance programmes built for static application routes will underperform once agents become the dominant execution layer. Access review cycles cannot compensate for policy logic that never sees the full delegation path, so runtime enforcement becomes the decisive control point.

Runtime authorisation gap: policy must move from application code to execution time because autonomous agents can select tools, sequence actions and vary timing inside a single session. The control issue is no longer whether access exists, but whether the decision can follow the action as it unfolds.

The pressure is already visible in adoption: 69% of security leaders agree identity management must fundamentally shift to address agentic AI systems, according to the 2026 Infrastructure Identity Survey. That kind of consensus suggests identity teams should expect agent governance to become a baseline design requirement rather than a niche use case.


For practitioners

  • Map every agent workflow to its real delegation chain Track user, agent, sub-agent, MCP tool and API hops separately so the authorisation decision reflects who initiated the action and who executed it.
  • Remove embedded policy logic from application code Shift access decisions out of hardcoded application paths and into a runtime authorisation layer that can evaluate each action as it occurs.
  • Inspect payloads as well as tools Validate parameters, arguments and request bodies for every high-risk agent action instead of relying on tool discovery or endpoint allowlists.
  • Start with shadow mode for high-risk workflows Discover active agents, simulate policy outcomes and enforce guardrails first on the workflows that can cause the most harm if they drift.

Key takeaways

  • Homegrown authorization that worked for fixed application flows becomes brittle when agents create their own execution paths at runtime.
  • The core failure is not only operational debt, but loss of delegation context across user, agent, sub-agent and tool hops.
  • Runtime policy enforcement has to inspect actual actions, not just approved tools, if identity controls are going to govern agentic systems.

Related NHI Mgmt Group resources: AI Agent Authorisation Guide · AI Agent Observability, Audit and Incident Response Guide · Agentic AI Identity Guide · MCP Security Guide


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, NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseAgents inherit and abuse privilege through delegation chains and runtime scope drift.
Recommendation — Apply ASI03 to externalise agent authorisation and prevent privilege from collapsing into one service account.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIThe article centres on overbroad service accounts used to simplify agent access.
Recommendation — Reduce overprivileged service accounts and replace them with task-scoped agent access.
NIST SP 800-53 Rev 5IA-9 — Identification and Authentication (Service and Device Accounts)Service and workload accounts are the identity substrate for these agent workflows.
Recommendation — Use IA-9 to govern service accounts that mediate agent-to-tool authentication.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsRuntime authorisation is the central control problem in agentic workflows.
Recommendation — Enforce PR.AA-05 at runtime so agent permissions are evaluated per action, not per application.
NIST Zero Trust (SP 800-207)Least privilege and continuous verificationAgentic workflows need continuous verification because action paths change during execution.
Recommendation — Apply continuous verification to every agent action instead of trusting session-start decisions.

Key terms

  • Homegrown Authorization: Homegrown authorization is a custom access-control system built inside an application or platform instead of using a standard policy engine or framework. It often encodes permissions directly in application logic, which makes reviews, testing, and consistent enforcement harder across roles, resources, and environments.
  • Agentic workflow: An agentic workflow is a sequence of tasks executed by an AI agent with some level of tool access and decision authority. In security terms, the workflow matters because it can span multiple systems, identities, and permissions, which makes attribution and revocation harder than with ordinary automation.
  • Confused Deputy: A confused deputy is a privileged system that is tricked into performing an action on behalf of an untrusted requester. In agentic AI, the agent may misread malicious input as legitimate intent and then use its own authority to act, which turns a logic problem into a security incident.
  • Runtime Authorisation: Runtime authorisation is the practice of deciding access while a task is in progress, rather than only at provisioning time. It matters for NHIs because credentials and entitlements can change risk mid-session, especially when automation or AI agents interact with sensitive systems.

What's in the full article

PlainID's full blog post covers the operational detail this post intentionally leaves for the source:

  • The five-stage maintenance and audit framework for agent security across prompt, retrieval, MCP tools, action APIs and output
  • The deployment pattern for running runtime authorisation alongside existing identity providers in shadow mode
  • The migration considerations for replacing internal authorization code without freezing legacy applications
  • The executive decision brief and benchmark material aimed at CISOs, CTOs and Chief Architects

👉 The full PlainID post covers the five-stage framework, migration patterns and executive decision brief.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org