They should prioritise them before agents are connected to sensitive data, production systems, or privileged tools. The main risk is that runtime autonomy amplifies weak credential hygiene, standing access, and poor secrets handling. If access boundaries are unclear, every new agent can widen the blast radius. Security teams should treat identity and secrets controls as a prerequisite, not a follow-on task.
Why This Matters for Security Teams
Scaling agents before identity and secrets controls are mature turns a deployment problem into an access problem. Autonomous systems do not behave like human users: they chain tools, retry actions, and move across environments in ways that static role design does not predict. That makes weak secret storage, standing privilege, and vague ownership far more dangerous than in conventional application rollouts. The risk is not only compromise, but uncontrolled reach.
NHIMG research shows why this needs to come first. The Ultimate Guide to NHIs reports that 97% of NHIs carry excessive privileges, and that 96% of organisations store secrets outside dedicated secrets managers in vulnerable locations. Once agents are allowed into production workflows, those weaknesses become a scaling mechanism for exposure, not just a hygiene issue. Current guidance from the NIST AI Risk Management Framework and OWASP Agentic AI Top 10 both point toward runtime governance, but neither replaces foundational identity controls.
In practice, many security teams encounter secret sprawl and privilege drift only after an agent has already touched a sensitive system, rather than through intentional pre-deployment review.
How It Works in Practice
The practical answer is to treat identity and secrets readiness as a gate for agent expansion, not a cleanup activity after launch. That means every agent must have a workload identity, a clearly scoped trust boundary, and a credential model that is short-lived, task-bound, and revocable. For autonomous workloads, static RBAC alone is usually too blunt because the agent’s next action is not always knowable at design time. Instead, organisations are moving toward context-aware or intent-based authorisation, where policy is evaluated at request time against the task, data sensitivity, environment, and tool being invoked.
In implementation terms, that typically includes:
- Issuing JIT credentials only for the task in progress, then revoking them automatically on completion.
- Storing secrets in a managed vault, not in code, configs, CI/CD variables, or chatops workflows.
- Using workload identity proofs such as OIDC-backed tokens or SPIFFE/SPIRE-style identities for agent-to-service authentication.
- Applying policy-as-code so that approvals, tool access, and data access can be evaluated dynamically.
These controls align with the OWASP Non-Human Identity Top 10 and the CSA MAESTRO agentic AI threat modeling framework, both of which emphasise identity lifecycle, tool governance, and blast-radius reduction. NHIMG’s 52 NHI Breaches Analysis reinforces the same lesson: identity failures are rarely isolated, because one compromised token can unlock multiple systems when agents are wired for automation.
These controls tend to break down when agents are allowed to self-provision tools across fragmented cloud, SaaS, and CI/CD environments because policy and revocation cannot keep pace with the execution path.
Common Variations and Edge Cases
Tighter agent identity controls often increase delivery friction, requiring organisations to balance rollout speed against the operational cost of safer access. That tradeoff is real, but it is usually cheaper than retrofitting containment after an agent has already inherited broad access.
There is no universal standard for agent authorisation yet. Current guidance suggests using the strictest model where the agent can reach production data, payment systems, source code, or customer-facing tools, and allowing narrower controls only in low-risk sandboxes. For experimentation, some teams start with read-only credentials and synthetic data, then graduate to JIT write access only after logging, approval, and revocation workflows are verified.
Edge cases matter. Multi-agent systems often need shared coordination tokens, but shared tokens can become de facto standing privilege if they are not rotated per session. Long-running workflows can also tempt teams to issue long-lived secrets for convenience, yet that undermines the whole point of runtime governance. The same applies to vendor-hosted agent platforms: if the platform obscures secret handling or cannot prove revocation, maturity is not sufficient for sensitive use cases. NHIMG’s State of Secrets in AppSec notes how often organisations overestimate their control maturity, while the Anthropic report on AI-orchestrated cyber espionage shows how quickly autonomous behaviour can be repurposed when access is already available.
Best practice is evolving, but the decision point is clear: if an agent can reach privileged tools or sensitive data, identity and secrets controls must already be in place before scale begins.
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, OWASP Non-Human Identity Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | A1 | Agent autonomy makes access control and tool misuse central to the risk. |
| OWASP Non-Human Identity Top 10 | NHI-03 | Secrets lifecycle and rotation are critical before agents touch production. |
| CSA MAESTRO | ID-1 | MAESTRO covers identity and trust boundaries for agentic systems. |
| NIST AI RMF | AI RMF supports governance for autonomous systems and their operational risk. | |
| NIST Zero Trust (SP 800-207) | PR.AC-4 | Zero Trust requires continuous verification for non-human workloads. |
Inventory all agent secrets, move them into a vault, and enforce short TTLs with rotation.
Related resources from NHI Mgmt Group
- Should organisations prioritise AI agent access controls before broader NHI cleanup?
- Should organisations evaluate AI agent security tools before or after identity controls are in place?
- Which AI security controls should organisations prioritise before scaling generative AI across the business?
- What is the difference between human identity governance and AI agent governance?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 28, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org