Join our Newsletter — 33% off our NHI Course

How should security teams govern credentials used by human users, software agents, and automation workflows?

Security teams should treat credentials as shared enterprise assets that move across browsers, endpoints, code, pipelines, SaaS apps, and automated workflows. Governance should combine discovery, access control, auditing, and remediation so teams can see where credentials exist, who or what uses them, and whether they are exposed or long-lived. The goal is to reduce hidden trust and limit misuse across modern work.

Why This Matters for Security Teams

Credentials now move far beyond a user login prompt. They are embedded in browsers, CI/CD pipelines, SaaS integrations, service accounts, API calls, and agentic workflows, which means the same secret can outlive the person, workload, or ticket that introduced it. That creates hidden trust paths, weak ownership, and a broad blast radius when a token leaks or is overused.

Security teams usually miss the problem until an exposed key is reused for lateral movement or an automation account is quietly abused. NHIMG research on The State of Non-Human Identity Security shows that 45% of organisations cite lack of credential rotation as the top cause of NHI-related attacks, while only 1.5 out of 10 are highly confident in securing NHIs. That confidence gap is exactly why governance has to cover people, software, and automation together.

Current guidance from the NIST Cybersecurity Framework 2.0 and the Ultimate Guide to NHIs – Static vs Dynamic Secrets points to discovery, least privilege, and short-lived access, but the operational challenge is that credentials often span multiple owners and systems. In practice, many security teams encounter credential abuse only after a workflow has already been repurposed for something it was never meant to do.

How It Works in Practice

Effective governance starts by classifying credentials by subject, not just by storage location. Human credentials should be tied to verified identities, MFA, and role-based access. Software agents and automation workflows should be treated as workloads with their own identity lifecycle, because they often authenticate repeatedly and unpredictably. For those cases, workload identity, short-lived tokens, and policy evaluation at request time are more appropriate than static secrets.

The practical control set usually includes:

  • Discovery across endpoints, repositories, vaults, SaaS apps, and orchestration systems to find where secrets exist and where they are reused.
  • Ownership mapping so each credential is assigned to a person, service, or workflow with a defined business purpose.
  • Rotation and revocation based on exposure, inactivity, or task completion rather than calendar-only schedules.
  • Policy checks that evaluate whether a credential should be usable for this request, from this context, at this moment.
  • Audit logging that captures use, privilege changes, and failed access attempts across human and non-human identities.

For autonomous systems, the guidance is more demanding. The OWASP Agentic AI Top 10 and CSA MAESTRO agentic AI threat modeling framework both reinforce that agents can chain tools, redirect tasks, and escalate access in ways that are not obvious in advance. That is why many teams are moving toward just-in-time provisioning and runtime policy engines instead of standing entitlements. NHIMG’s CoPhish OAuth Token Theft via Copilot Studio illustrates how delegated access can become a theft path when trust is too broad or too persistent.

These controls tend to break down when credentials are shared across unmanaged SaaS tenants and shadow automation because ownership, logging, and revocation become incomplete.

Common Variations and Edge Cases

Tighter credential governance often increases operational overhead, requiring organisations to balance speed of delivery against control depth. That tradeoff becomes sharper when humans, scripts, and AI agents all need access to the same business system. Best practice is evolving, and there is no universal standard for this yet, so teams should avoid pretending that one policy model fits every identity type.

One common edge case is service accounts that began as human-created scripts and gradually became production dependencies. Another is agentic workflows that authenticate through delegated OAuth scopes, where the token looks legitimate but the action is far broader than the original approval intended. A third is emergency access, where short-lived elevation may be necessary but must still be constrained, logged, and revocable.

The most resilient programs distinguish between OWASP NHI Top 10 style secret hygiene issues and agent-specific governance problems such as runtime tool abuse. They also align with NIST AI Risk Management Framework expectations for accountability, measurement, and ongoing monitoring. If a workflow cannot be traced to a named owner, a defined purpose, and a revocation path, it should be treated as a governance failure, not just a credentialing issue.

In practice, the hardest failures appear when long-lived secrets are embedded in brittle automation that no one wants to break, because decommissioning the credential is treated as a release risk instead of a security requirement.

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 AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Covers secret rotation and lifecycle control for shared credentials.
OWASP Agentic AI Top 10 A2 Agentic systems can abuse credentials through chained tool use and delegation.
CSA MAESTRO MAESTRO-3 Addresses threat modeling and control of autonomous agent behaviour.
NIST AI RMF AI RMF supports governance, monitoring, and accountability for AI-enabled workflows.
NIST CSF 2.0 PR.AC-4 Least-privilege access management is central to credential governance.

Inventory credentials, rotate high-risk secrets, and remove standing access where rotation is overdue.