Many assume that a tool‑using agent can be trusted simply because it runs inside the corporate network, but zero trust tells us that location alone is insufficient.
Tool‑using agents include CI runners, automated scripts, AI‑driven assistants, and any non‑human process that talks to databases, SSH servers, or internal APIs. They are granted credentials so they can perform deployments, run migrations, collect metrics, or answer user queries. When those agents are compromised or mis‑configured, they become a direct conduit for credential theft, lateral movement, and data exfiltration. The danger is amplified because agents often run with broad permissions that were granted for convenience rather than strict need.
Zero trust considerations for tool‑using agents
Zero trust demands that every request be verified, that access be limited to the minimum required, and that activity be continuously monitored. For agents this translates into three practical requirements:
- Identity that reflects intent. Each agent should present a non‑human identity (a service account, OIDC token, or SAML assertion) that is tied to a specific job function.
- Just‑in‑time, least‑privilege permissions. Permissions must be scoped to the exact resources and commands the agent needs, and they should be granted only for the duration of the task.
- Full visibility and enforcement. Every command, query, and response must be observable, and risky actions must be blocked or routed for approval before execution.
Organizations can meet the first two items by configuring OIDC providers, defining fine‑grained roles, and limiting token lifetimes. However, without a control point on the data path the request still travels directly to the target system. That direct path leaves three gaps:
- No audit of what the agent actually did once the connection is open.
- No ability to mask sensitive fields in query results.
- No mechanism to pause or reject a dangerous command before it reaches the backend.
These gaps persist even when the setup stage has correctly identified the agent and limited its token. The missing piece is a gateway that sits between the identity verification step and the target resource.
hoop.dev as the data‑path enforcement layer
hoop.dev provides exactly that layer. It is a Layer 7 gateway that proxies connections to databases, SSH servers, Kubernetes clusters, and internal HTTP services. The gateway validates the agent’s OIDC or SAML token, maps group membership to the permissions defined in the setup stage, and then forwards the traffic to the target.
Because the traffic passes through hoop.dev, the gateway can enforce zero‑trust policies in real time. Specifically, hoop.dev records each session for replay, masks sensitive data in responses, blocks commands that violate policy, and can trigger a human approval workflow for high‑risk actions. All of these outcomes exist only because hoop.dev sits in the data path; without it, the agent would communicate directly with the backend and none of these controls would be possible.
