Join our Newsletter — 33% off our NHI Course
Home Glossary Cyber Security State
Cyber Security

State

← Back to Glossary
By NHI Mgmt Group Updated September 1, 2026 Domain: Cyber Security

State is the information a system must retain between requests or interactions in order to behave correctly. It can include session status, request context, authorization data, client preferences, or long running process information. In practice, state is anything that must persist beyond a single exchange.

Expanded Definition

State is the persisted context that lets a system continue a workflow correctly after the next request arrives. In security and identity-heavy systems, that context may include login status, transaction progress, delegated permissions, device signals, conversation history, or the identifiers that bind a user, service, or agent to an active session. It differs from transient computation because it must survive beyond one exchange, and it differs from long-term records because it often changes rapidly as interactions progress.

Definitions vary across vendors when state is discussed in distributed systems, application security, or AI workflows, so the practical question is always what must remain consistent for the system to behave safely. That is why state management is central to session handling, access decisions, and recovery after interruption. The NIST Cybersecurity Framework 2.0 is useful here because it frames the protection of system services, data, and access pathways that depend on correct state handling.

The most common misapplication is treating state as disposable application memory, which occurs when teams lose session continuity, authorization context, or workflow progress during retries, failover, or agent handoffs.

Examples and Use Cases

Implementing state rigorously often introduces persistence, synchronisation, and recovery overhead, requiring organisations to weigh consistency and traceability against latency and operational complexity.

  • Web sessions store authentication state so a user does not need to reauthenticate on every page load, while the server keeps the session tied to the correct account.
  • Privileged access workflows retain approval state so a temporary elevation can be revoked when the task ends, rather than remaining active indefinitely.
  • API orchestration keeps request state across retries so a payment, provisioning step, or incident response action is not executed twice.
  • Agentic AI systems maintain task state across tool calls so an agent can continue a plan, remember completed steps, and avoid conflicting actions after a pause.
  • Security monitoring platforms preserve investigation state so analysts can reconstruct what was known, when alerts were opened, and how evidence evolved over time.

For systems that handle identities or delegated access, state often becomes the binding layer between the subject and the authority granted to it. That is why session stores, token lifetimes, and workflow checkpoints need careful design, especially when distributed services replicate or cache information. When the underlying architecture is event-driven or conversational, state must be explicit rather than assumed, otherwise the system may behave as if it still knows who is acting when it no longer does.

Why It Matters for Security Teams

State is a security issue because incorrect persistence can create over-privilege, broken audit trails, and unsafe continuity across sessions or services. If state is lost, attackers may exploit fail-open behaviour or force reinitialisation that drops important controls. If state is retained too long, stale permissions, expired approvals, or outdated context can continue to grant access after the original need has passed. This is especially important in IAM, PAM, and NHI operations, where machine accounts, service tokens, and agent identities can keep acting based on old assumptions.

Security teams also need to distinguish application state from authoritative records. A cached privilege decision is not the same as a policy decision, and a conversation memory is not the same as a governed access grant. Clear state boundaries support logging, rollback, incident response, and trustworthy automation. The same issue appears in agentic AI, where tool-use state can shape later actions even if the original instruction has become unsafe or irrelevant. Organisations typically encounter the impact only after a session hijack, replay failure, or broken failover reveals that state was carrying more authority than it should have, at which point state management becomes operationally unavoidable to address.

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 OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-63 and NIST AI RMF set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-4State affects how access is maintained and limited across sessions and workflows.
NIST SP 800-63AAL2State underpins authenticated sessions that depend on assurance after sign-in.
NIST AI RMFAI RMF addresses lifecycle risks when system state shapes model or agent behaviour.
OWASP Agentic AI Top 10Agentic AI guidance covers state retention across tool use and autonomous steps.
OWASP Non-Human Identity Top 10NHI guidance is relevant where machine identities maintain state across automated actions.

Tie persisted session state to least-privilege access and revalidate it at each boundary.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 1, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org