Subscribe to the Non-Human & AI Identity Journal

Who is accountable when a ghost agent makes a bad purchase or change?

Accountability should rest with the current business owner and the control process that allowed the agent to remain active after the human creator left. If there is no current owner, the organisation has a governance failure, not just a technical one. That is why agent lifecycle controls must be explicit and auditable.

Why This Matters for Security Teams

A ghost agent is not just an orphaned credential problem. It is an accountability problem created when an autonomous workload keeps the authority to spend, deploy, approve, or change after the human creator is gone. In agentic environments, static ownership records often age faster than the tools they govern, which is why lifecycle control matters as much as access control. Current guidance from OWASP Agentic AI Top 10 and the NIST AI Risk Management Framework both point toward explicit governance for autonomous behaviour, not just credential issuance.

NHI Management Group’s Ultimate Guide to NHIs notes that only 20% of organisations have formal offboarding and revocation processes for API keys, and 97% of NHIs carry excessive privileges. Those are exactly the conditions that let a ghost agent keep buying, provisioning, or changing long after its purpose has ended. In practice, many security teams encounter the problem only after an unexpected charge, unauthorized change, or failed audit has already occurred, rather than through intentional retirement of the agent.

How It Works in Practice

Accountability should be assigned on two planes: business ownership and control ownership. The business owner is responsible for the outcome of the agent’s actions, while the control owner is responsible for ensuring the agent cannot continue operating without a current approver, valid purpose, and active supervision. For agentic systems, that means the identity should be tied to the workload, not to a person who may leave the team.

Practitioners are moving toward runtime controls that make accountability enforceable. That includes workload identity for the agent, short-lived credentials, and policy decisions evaluated at request time rather than from a fixed role matrix. Frameworks such as CSA MAESTRO agentic AI threat modeling framework and MITRE ATLAS adversarial AI threat matrix reinforce the need to understand how agents chain tools, retain privileges, and act outside human expectations.

  • Map each agent to a named business owner, a technical owner, and a retirement trigger.
  • Use just-in-time access and short TTL secrets so the agent can only act for the approved task.
  • Log the action context, approver, policy decision, and downstream effect for every purchase or change.
  • Revoke credentials automatically when the owner changes, the project ends, or the agent is no longer supervised.

NHIMG research on the AI LLM hijack breach and the Moltbook AI agent keys breach shows how quickly exposed or stale agent access can be turned into unauthorized action. These controls tend to break down when the agent is embedded in procurement, DevOps, or customer-facing automation because ownership changes are not propagated into the control plane quickly enough.

Common Variations and Edge Cases

Tighter agent governance often increases operational overhead, requiring organisations to balance speed of automation against the cost of approvals, logging, and periodic review. That tradeoff is real, but current guidance suggests it is preferable to a model where no one can prove who should have stopped the agent.

There is no universal standard for ghost-agent accountability yet, especially when the agent is created by one team, funded by another, and operated by a third. Best practice is evolving toward explicit retirement criteria, named service ownership, and policy enforcement that fails closed when ownership is missing. This matters most for autonomous buying tools, infrastructure changers, and multi-agent workflows where one agent inherits trust from another. The 91.6% figure for secrets still being valid five days after notification in Ultimate Guide to NHIs — 2025 Outlook and Predictions is a reminder that stale access rarely disappears on its own.

Where organisations get into trouble is assuming a manager or team lead will “obviously” own the agent after the creator leaves. That assumption fails in reorganizations, vendor-managed workflows, and shared platform teams. The safer pattern is to treat every agent as requiring explicit custodianship, documented fallback ownership, and automatic disablement when that chain is broken.

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 CSA MAESTRO address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A-02 Covers agent autonomy and unsafe action paths that create ghost-agent risk.
CSA MAESTRO MAESTRO addresses governance and lifecycle controls for autonomous agents.
NIST AI RMF AIRMF supports governance and accountability for AI system outcomes.

Document agent purpose, ownership, and retirement triggers, then enforce revocation on lifecycle change.