An on-device agent is software that runs locally on a user device and performs tasks without relying entirely on a remote server. In identity and security contexts, it may hold device-scoped credentials, read local state, and enforce policies such as access checks, telemetry collection, or content filtering on the endpoint itself.
What an on-device agent is doing on the endpoint
An on-device agent moves some decision-making and execution to the user’s device instead of relying only on a remote service. That changes the security boundary: the endpoint becomes part of the trust model, and the agent can act on local state, local policy, and device-scoped credentials while offline or in a degraded network state.
Because the software runs where the user works, it can reduce round trips and preserve responsiveness, but it also inherits endpoint realities such as local compromise, OS-level policy enforcement, and the risk that sensitive material is available closer to the user session.
In practice, the term is broader than “AI on a laptop.” It can include automation that checks access locally, inspects telemetry on the device, or filters content before anything is sent to a server. The common thread is that execution authority is partially local, not purely cloud-mediated.
Why the local execution model changes security assumptions
On-device execution narrows some exposure, but it also creates a different attack surface. If the agent can read local state or hold device-scoped credentials, then a compromised endpoint may expose more than just application data, it may expose the control plane the agent uses to make decisions.
This is why device hardening, secure storage, and OS policy enforcement matter so much. A local agent is only as trustworthy as the platform it runs on, the permissions it is granted, and the protections around its cached data, tokens, and configuration.
For AI-heavy implementations, the same principle applies to model and runtime protection. NHIMG’s On-Device AI Security Guide covers how shipped models, local runtimes, and OS AI features can be exposed when too much trust is placed in the endpoint.
How on-device agents differ from server-side agents
A server-side agent centralises control, logging, and policy enforcement, while an on-device agent distributes those responsibilities across many endpoints. That can be useful for latency, resilience, privacy, and offline operation, but it also makes fleet-wide consistency harder because each device becomes a smaller enforcement point.
The distinction matters when comparing access checks, telemetry, or content filtering. On a server, those controls can be imposed centrally. On-device, they often depend on the endpoint’s integrity, its management posture, and whether the local environment can be trusted to enforce policy faithfully.
That is also why identity and delegation questions appear quickly. If the agent performs actions on the user’s behalf, the design must make clear whether it is using its own local authority, a delegated user context, or a device-bound trust relationship. NHIMG’s AI Agent Authorisation Guide explains why least privilege and per-action checks matter when an agent is allowed to act.
What protects device-scoped credentials and local state
The most important safeguard is to minimise what the agent can hold locally. If the endpoint stores long-lived secrets, broad session material, or reusable tokens, compromise of the device can become compromise of the broader identity context. Short-lived tokens, bound credentials, and server-side validation reduce that blast radius.
Local state should be treated as sensitive even when it is “just cache.” Cached decisions, prompts, policy results, and telemetry can reveal workflow details, user behaviour, or access patterns. That makes storage protection, encryption, and careful retention policies part of the security model, not optional extras.
Where the agent operates in an agentic workflow, the trust boundary extends to every action it can trigger. NHIMG’s OWASP Agentic Top 10 ASI03 Guide is relevant because overbroad privileges and weak action scoping are often what turns a useful local assistant into a risky local operator.
When on-device agents improve privacy and resilience
Running locally can improve privacy because less raw data needs to leave the device. It can also improve resilience when the agent must continue working during limited connectivity, or when the organisation wants to keep some decisions close to the user and away from a central service.
Those benefits are real, but they only hold if the endpoint is sufficiently trustworthy and the operating model is clear. If the device is unmanaged, the agent’s autonomy can become a weakness rather than an advantage, especially when local decisions affect authentication, policy enforcement, or content handling.
For mobile and endpoint use cases, the control lesson is simple: local execution is valuable when it is paired with strong device posture, constrained permissions, and a clear boundary around what the agent may decide without remote confirmation. NHIMG’s Android Banking Trojans Guide shows why endpoint controls matter when local abuse paths can be used to intercept or redirect sensitive activity.
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 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5, NIST Zero Trust (SP 800-207) and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | On-device agents may hold local secrets and tokens on the endpoint. |
| NHI-04 — Insecure Authentication | Local agents often authenticate to services using device-scoped credentials or sessions. | |
| NHI-05 — Overprivileged NHI | An on-device agent can become overpowered if its local authority exceeds its task scope. | |
| Recommendation — Keep secrets server-side or tightly bound to the device and rotate any exposed credentials. Use phishing-resistant, short-lived authentication that is bound to device and context. Grant only task-scoped permissions and re-check sensitive actions before execution. | ||
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Local agents can act on behalf of a user or device with excessive authority. |
| ASI02 — Tool Misuse | On-device agents often invoke local tools, files, or OS capabilities. | |
| Recommendation — Constrain the agent’s delegated authority and require per-action policy decisions. Restrict tool access to approved actions and monitor unexpected tool invocation paths. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | On-device agents rely on credentials, tokens, and other authenticators that need lifecycle control. |
| AC-6 — Least Privilege | The endpoint agent should only access local resources and services needed for its role. | |
| SC-28 — Protection of Information at Rest | Local state and cached materials on the device need protection when the agent runs on-endpoint. | |
| Recommendation — Manage issuance, storage, renewal, and revocation of credentials used by the agent. Limit the agent to the minimum permissions required for each local task. Encrypt sensitive local data and limit what the agent stores persistently. | ||
| NIST Zero Trust (SP 800-207) | 3.4 — Continuous Evaluation and Access Decisions | Local agents making access-related decisions fit zero-trust verification and re-evaluation patterns. |
| Recommendation — Continuously re-evaluate device and session trust before allowing sensitive actions. | ||
| CIS Controls v8 | CIS-5 — Account Management | Device-scoped access and local agent accounts must be inventoried and governed. |
| Recommendation — Inventory and govern the accounts, tokens, and privileges the agent uses on the endpoint. | ||
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 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org