A scheduled or stored agent behaviour that continues after the original request has ended. The governance problem is lifecycle persistence: the routine may survive offboarding, retain access, or keep acting after the human context that created it has changed.
What a persistent routine is in practice
A persistent routine is not just a one-time action replayed later. It is a stored or scheduled behaviour that can outlive the original session, conversation, or approval moment, which makes its lifecycle and ownership part of the security model.
That persistence is what changes the risk profile. If the routine was created under a valid human context but continues operating after that context has shifted, the organisation may no longer have the same intent, authority, or oversight that existed when it was first introduced.
Why persistence changes the security boundary
The main security boundary is temporal: authority at creation time is not the same as authority at execution time. A routine can become stale, continue to trigger with old assumptions, or keep using privileges that were appropriate at launch but no longer appropriate after role changes, project closure, or offboarding.
In an agentic environment, that matters because the routine may continue to reach tools, data, or systems without the human requester actively present. The danger is not only that it runs, but that it runs with inherited trust that was never revalidated for the current state of the environment.
How organisations should think about exposure
Exposure starts with inventory: organisations need to know what routines exist, who created them, what they can access, when they run, and what conditions cause them to stop. Without that, persistent behaviour becomes shadow automation, especially if it is embedded in workflows, agents, or long-lived operational scripts.
Equally important is the internet and system trust surface around the routine. If a persistent behaviour can act on external triggers, call internal services, or use saved credentials, the question is not whether it was initially approved, but whether that approval still matches current policy and current ownership.
Lifecycle control and offboarding discipline
Persistent routines are governed best as lifecycle objects, not just technical tasks. Creation should be tied to ownership, purpose, expiration, and review, so that the routine has a defined end state instead of silently surviving the context that justified it.
This is where offboarding becomes critical. When a person leaves a team, a project ends, or a delegated task is retired, the routine should be reviewed with the same seriousness as an account, token, or service integration that no longer has a valid business need.
Risk and Threat Considerations
Persistent routines create a control gap when they survive beyond the decision that authorised them. That gap can lead to stale access, unintended actions, and hidden automation that keeps operating after the organisation believes the original activity has ended.
Failure mechanism: The routine remains scheduled or callable after ownership changes, so it continues to execute with outdated assumptions, retained permissions, or orphaned dependencies.
Impact: That can produce unauthorised data access, missed revocation, persistent side effects, and a longer detection window if the routine is abused or simply forgotten.
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 addresses the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | ID.AM-01 — Asset Management | Persistent routines must be inventoried as operational assets with known owners and purposes. |
| PR.AA-05 — Identity Management, Authentication, and Access Control | Persistent routines often depend on continuing access that should be revalidated over time. | |
| Recommendation — Inventory persistent routines and assign each one an owner, purpose, and review interval. Revalidate the access of persistent routines so continued execution matches current authorization. | ||
| NIST SP 800-53 Rev 5 | CM-8 — System Component Inventory | Persistent routines are system components that need discovery and lifecycle visibility. |
| IA-5 — Authenticator Management | Persistent routines may rely on stored secrets or credentials that must be rotated or retired. | |
| Recommendation — Maintain an inventory of persistent routines and remove unknown or orphaned entries. Rotate or retire credentials used by persistent routines when ownership or purpose changes. | ||
| OWASP Non-Human Identity Top 10 | NHI-01 — Improper Offboarding | A persistent routine can survive after its original owner or context is gone. |
| Recommendation — Revoke or retire persistent routines when their human owner or business purpose ends. | ||
Practitioner Guidance
What to watch for: Treat every persistent routine as something that needs an owner, an expiry condition, and a shutdown path. If a routine cannot be clearly tied to a current business purpose, it should be reviewed as a governance problem rather than assumed safe because it was once legitimate.
Practitioner note: The most common mistake is treating persistence as convenience instead of authority. A routine that still works is not necessarily a routine that should still exist.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 23, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org