HIPAA Workforce Access Termination for AI Agents and Service Accounts
Treat AI agents, service accounts, API tokens and tool credentials as in-scope actors under the existing Security Rule. Inventory them, assign each a human owner, define termination triggers beyond HR events, revoke credentials and sessions rather than only directory entries, and test that activity is denied afterward. Enforcing policy at runtime in the execution path adds a check on each call and produces the evidence an auditor will ask for.
A termination procedure for non-human identities
- 1
1. Detect the trigger
Triggers include end of a contract or other arrangement, owner departure, agent retirement, and a determination that access is no longer appropriate.
- 2
2. Resolve the identity set
Use the inventory to list every identity, token and tool credential tied to the owner, vendor or agent.
- 3
3. Revoke
Revoke credentials and tokens, end active sessions, and disable the identity in the directory or secrets store.
- 4
4. Notify
Where access spans organizations, notify the other party so that it deactivates its side of the access.
- 5
5. Verify
Attempt access with the terminated identity and confirm it is denied. Review activity records for calls after the termination time.
- 6
6. Retain records
Keep the trigger, actions, timestamps, verification result and approver with your HIPAA documentation.
Evaluating runtime enforcement in the execution path
- Can a call from a terminated, expired or unauthorized identity be denied at the moment it is made?
- What happens to cached or delegated tokens and active sessions when an agent or its owner is terminated?
- Which outcomes are supported for PHI-touching calls (allow, redact, block, escalate for human approval), and how is escalation routed?
- Does each interaction or tool call produce a record with identity, owner, policy decision and timestamp?
- Can those records support audit-controls review and information system activity review without manual reconstruction?
- How is the identity-to-owner mapping kept current and tied to triggers beyond HR events?
How the Security Rule applies to non-human actors
The termination specification at 164.308(a)(3)(ii)(C) is addressable and requires procedures for ending ePHI access when a workforce member's employment or other arrangement ends, or when a determination under the workforce clearance procedure at (a)(3)(ii)(B) requires it. The regulation defines workforce as employees, volunteers, trainees and other persons under the direct control of the covered entity or business associate. That definition does not mention AI agents or service accounts.
The technical safeguards are less ambiguous. Section 164.312(a)(1) requires technical policies and procedures that allow access to systems maintaining ePHI only to those persons or software programs that have been granted access rights under 164.308(a)(4). Section 164.312(d) requires procedures to verify that a person or entity seeking access is the one claimed. An agent or service account that reads or writes ePHI is a software program under these provisions, and its access has to be authorized, limited and verifiable.
The practical consequence is a documentation decision. Record whether your organization treats each class of non-human identity as a workforce member for termination purposes or as a software program for access control purposes, and apply the termination procedure to both. This is an interpretation of existing requirements, not new regulation. In January 2025 HHS proposed a one-hour termination deadline and written notification procedures between regulated entities. As of November 2026 the current text of 164.308(a)(3)(ii)(C) remains in the eCFR, so treat the deadline as proposed and not binding. It is still a reasonable internal target.
Inventory and ownership come first
A termination procedure cannot cover identities it does not know about. Build an inventory of service accounts, API tokens, agent credentials and tool or MCP server credentials that can reach ePHI. For each, record the owner, the business purpose, the systems and data it can reach, the credential type and lifetime, and the arrangement it depends on, such as a vendor contract or a project.
The owner field matters most. Termination triggers and accountability both need a named human who answers for the identity. When that person leaves or changes roles, the identity should be reassigned or ended. Shared credentials weaken this model because one secret represents several actors, so separate identities per agent or workload are easier to terminate and easier to attribute in activity records.
Include these identities in the security risk analysis and in the information system activity review required by 164.308(a)(1)(ii)(D), so that post-termination activity is detectable by an existing process.
- Owner: A named person accountable for the identity and its termination.
- Reach: Systems, APIs and data sets the identity can access.
- Credential type: Static secret, OAuth token, delegated token or short-lived credential.
- Dependency: The contract, project or workflow that justifies the access.
Why directory deprovisioning leaves gaps
HHS healthcare cybersecurity guidance describes HR-triggered, SSO-based automated deprovisioning of user accounts and says termination processes should include session termination. That model fits people. Whether it reaches agent-held tokens, cached credentials or tool credentials depends on your architecture, and it should be tested rather than assumed.
The gaps to test are predictable. An agent may hold a delegated token issued on behalf of a user, and that token may remain valid after the user's directory account is disabled. A tool or MCP server credential may sit in a configuration file or secrets store that no HR event touches. A service account may have outlived the project that justified it and have no current owner. HHS itself noted in its proposed rule discussion that inactive accounts that are not fully terminated or disabled could be used to access ePHI.
NIST's October 2026 design tenets for agent identity point in a useful direction, although they are design guidance and not HIPAA requirements. They recommend an identity lifecycle for agents that is distinct from human principals, just-in-time and time-bounded access, ephemeral credentials over long-lived bearer tokens or static secrets, and continuous runtime verification of each tool invocation or API call. Short-lived credentials shrink the window in which a missed revocation matters. Per-call verification catches what revocation missed.
Where Trussed fits
Trussed enforces policy in the execution path across models, agents, tools and MCP servers. Policy is enforced at runtime, not reviewed after the fact, with outcomes of allow, redact, block, rate limit and escalate for human approval. The scope is individual interactions and tool calls, which is the level at which a post-termination PHI request would occur. An enforcement point in the path can evaluate each call against policy, including whether the calling identity is still authorized, as a second control behind credential revocation.
The enforcement itself generates continuous audit-ready evidence mapped to HIPAA, including 164.312(b) audit controls. Trussed runs in production with healthcare and pharma organizations, and it can be self-managed in the customer's cloud with configurable retention and data residency.
It does not replace the inventory, the ownership records or the revocation steps above. Those remain your procedure. Runtime enforcement makes that procedure testable and gives you a record of what was allowed, redacted, blocked or escalated.
Non-human identity termination at a glance
Inventory
Every non-human identity that can reach ePHI, with its owner and reachable systems.
Trigger
Contract end, owner departure, agent retirement or an access determination.
Revoke
Credentials, tokens and sessions, not only the directory entry.
Verify
Post-termination calls are denied and the record is retained.
Test your termination procedure against agent and tool-call access
Talk through your non-human identity inventory, termination triggers and the evidence your auditors would expect.
Explore Agent and Tool-Call Enforcement