Local compromise matters because an attacker who controls the same device, browser session, or terminal can steal session tokens, intercept prompts, or alter tool calls before the agent acts. If the agent trusts the same session material and tool channel, the attacker can impersonate the human or redirect delegated actions, so device trust, session binding, and step-up reauthentication are critical.
How local compromise turns agent trust into session theft
Local compromise matters because the trust boundary for an agent often starts at the same endpoint the human uses to approve actions. If an attacker already controls that device, browser profile, or terminal, they can manipulate the session material the agent relies on and make malicious activity look like ordinary delegated use.
A practical way to think about it is that the attacker does not need to “break” the agent first. They can operate one layer underneath it, where the browser session, authentication context, prompt stream, or local tooling is already trusted.
This is why a local compromise is more dangerous than a generic endpoint problem. The risk is not only data theft, but also trust inversion: the agent may continue to accept requests, tokens, or tool invocations that are no longer controlled by the intended human.
Why prompt, token, and tool-channel integrity are all part of trust
Agentic systems usually treat several local artifacts as evidence of legitimacy: session cookies, OAuth tokens, clipboard content, terminal context, browser state, and confirmation prompts. If any of those are exposed or altered, the attacker can redirect the agent’s authority without needing to persuade the model in a semantic sense.
That is why session binding matters. The agent should be able to distinguish a request that came from the authenticated user on the expected device from a request replayed or injected by something else on that same host.
Tool-channel integrity matters for the same reason. If local software can rewrite arguments, intercept approvals, or swap endpoints before a tool call is executed, the agent may faithfully execute the wrong action while still believing the workflow is intact.
For a broader operating model, the distinction between agentic behavior and ordinary chatbot interaction is worth keeping clear, as described in AI Agents vs Agentic AI. The more the system can act, the more damaging local trust failure becomes.
What strong controls look like when the endpoint is not trusted
When the local device is part of the attack surface, controls need to assume that prompts, sessions, and even some user interactions can be observed or tampered with. The right response is to reduce what the local environment can authorize on its own and to make sensitive actions require fresh proof of presence or stronger reauthentication.
That includes binding high-impact actions to a current user context, limiting how long session material remains valid, and treating browser or terminal state as insufficient by itself for sensitive delegation. The goal is not to block every local workflow, but to make compromise of one endpoint less able to hijack all downstream actions.
For agent identity and delegation mechanics, Agentic AI Identity Guide is the clearest companion resource, because it explains how agents get and lose authority. If you are hardening the broader control model, Zero Trust for AI Agents is the best fit for per-action verification and removal of standing privilege.
Risk and Threat Considerations
Local compromise turns a trust problem into an impersonation problem. If the same browser session, terminal, or desktop can be controlled by an attacker, then the agent may accept attacker-driven prompts, approvals, or tool calls as if they came from the legitimate user.
Failure mechanism: The attacker steals or reuses local session material, then intercepts or rewrites the interaction path before the agent evaluates it, which bypasses any control that only checks whether a session exists.
Impact: Delegated actions can be redirected, privileged tools can be abused, and incident scope can expand from one compromised endpoint to any downstream system the agent is authorised to reach.
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 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Local compromise can hijack agent authority through stolen sessions and approvals. |
| Recommendation — Bind high-impact actions to fresh user proof and limit delegated privilege per request. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Session tokens and auth material exposed locally need controlled lifecycle and rotation. |
| IA-2 — Identification and Authentication (Organizational Users) | Agent trust depends on proving the current user behind the local session. | |
| Recommendation — Rotate exposed authenticators quickly and reduce their usable lifetime. Require stronger authentication before sensitive actions when session integrity is in doubt. | ||
| NIST Zero Trust (SP 800-207) | AC-6 — Least Privilege | Local compromise is less damaging when each action carries minimal authority. |
| Recommendation — Constrain every agent action to the least privilege needed for that request. | ||
Practitioner Guidance
What to verify: Verify that sensitive agent actions are bound to the current device and user context, not just to a live session. If the same browser profile or terminal can be reused after local compromise, the trust model is too weak.
Decision rule: If a token, prompt, or approval can produce meaningful side effects, require step-up reauthentication or a fresh confirmation path before execution. If the action is low impact, keep the flow simple, but do not let convenience controls inherit high-risk authority.
What good looks like: A compromised local host should be able to disrupt availability, but not silently inherit authority to approve or redirect high-value actions. The agent should fail closed when session integrity is uncertain.
Practitioner takeaway: Treat the endpoint as part of the trust boundary, because agentic risk often starts when the attacker can reuse the same session material the agent uses to decide who is speaking.
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 November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org