The common mistake is treating discovery as a complete control. Discovery shows what exists, but it does not answer who owns the agent, what it can do, or whether its access still matches policy. Mature programmes add lifecycle management, access review, and revocation workflows so non-human identities stay accountable over time.
Why Discovery Alone Misleads Security Teams
Discovery answers a narrow question: what agents exist right now. It does not answer the harder security questions that determine exposure, such as who approved the agent, which systems it can reach, what secrets it can use, or whether its current behaviour still matches policy. That is why discovery has to be treated as inventory, not governance. The gap is especially visible in agentic systems that can chain tools, move laterally, and change behaviour as prompts, data, and tasks change.
NHIMG research shows the scale of the problem in practice: in AI Agents: The New Attack Surface, SailPoint reports that 80% of organisations say their AI agents have already acted beyond intended scope. That is a lifecycle and control failure, not a discovery failure. Current guidance from the OWASP Agentic AI Top 10 and the NIST AI Risk Management Framework both point toward ongoing oversight, not one-time visibility. In practice, many security teams encounter unauthorised agent behaviour only after data has already moved or credentials have already been reused.
How Mature Programmes Move from Discovery to Control
Discovery becomes useful only when it feeds an operating model for ownership, authorisation, and revocation. For AI agents, that means treating the agent as a workload identity with a defined lifecycle, not as a static app entry in a spreadsheet. Best practice is evolving toward runtime controls that decide access based on intent, context, and task scope rather than a fixed RBAC role assigned at build time.
Practitioners typically layer the following controls:
- Assign an accountable owner for each agent, including business purpose, data scope, and approved tool access.
- Issue short-lived credentials or tokens per task, then revoke them automatically after completion or timeout.
- Use workload identity mechanisms such as SPIFFE or OIDC so the agent proves what it is, not just what secret it holds.
- Evaluate policy at request time with policy-as-code rather than relying on pre-approved access lists.
- Review agent activity continuously for scope drift, unusual tool chaining, and access to secrets or sensitive data.
This is where frameworks like the CSA MAESTRO agentic AI threat modeling framework help, because they force teams to model agent behaviour, tool use, and trust boundaries together. NHIMG’s OWASP NHI Top 10 also reflects the reality that the security issue is not just presence, but privilege, persistence, and misuse potential. These controls tend to break down when agents share credentials across environments, because revocation and attribution become impossible once access is reused outside the original task.
Common Edge Cases and Operational Tradeoffs
Tighter discovery and control often increases operational overhead, requiring organisations to balance faster agent adoption against stronger ownership, review, and revocation discipline. That tradeoff is real, especially in fast-moving product teams where agents are created, cloned, or embedded into workflows without central security review. There is no universal standard for this yet, so current guidance suggests starting with high-risk agents rather than trying to normalise every workload at once.
Edge cases usually appear in environments with shared service accounts, long-lived API keys, or agents that act on behalf of multiple teams. In those settings, discovery may show a small number of agents while the real risk sits in the credentials and connectors they reuse. Secrets sprawl makes that worse, which is why NHIMG’s The State of Secrets in AppSec is relevant here: fragmented secrets management undermines any attempt to tie discovery to accountability. Teams should also watch for shadow agents created in automation platforms, where the agent may be visible to operations but invisible to compliance or legal review.
Discovery is still necessary, but it is only the first control plane. Without periodic access certification, short-lived credentials, and a clear revocation path, discovered agents can remain functionally unmanaged even when they are fully visible.
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, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | A01 | Discovery-only programs miss agent-specific abuse paths and tool-driven escalation. |
| CSA MAESTRO | TRM-02 | MAESTRO emphasizes lifecycle, trust boundaries, and agent behaviour over simple inventory. |
| NIST AI RMF | GOVERN | AI RMF governance requires accountability, monitoring, and escalation beyond discovery. |
| OWASP Non-Human Identity Top 10 | NHI-03 | Non-human identities need lifecycle controls, not just visibility in inventory. |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege access must be enforced continuously, not assumed after discovery. |
Inventory agents, then verify tool access, execution scope, and runtime policy checks for each one.
Related resources from NHI Mgmt Group
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