Many assume that protecting PHI ends with encrypting data at rest, but the reality is that an agent’s runtime can expose PHI as easily as a misplaced file. In fact, the code that executes queries, forwards logs, or streams results often runs with unrestricted access to patient data, creating a blind spot for compliance programs.
That misconception leads teams to rely solely on identity providers, token scopes, and static service accounts. While those setup elements correctly identify who is allowed to start a session, they do not inspect what happens once the connection is alive. A developer may authenticate with a short‑lived token, yet the underlying process can still read, modify, or exfiltrate PHI without any additional guardrails.
Why runtime protection matters
PHI is subject to strict audit and masking requirements under regulations such as HIPAA. The audit trail must show not only who initiated a connection but also every query, response, and data element that left the protected system. Inline masking is required for fields like patient identifiers, and any accidental disclosure must be traceable to a specific command. Without a control point that sits between the agent and the target service, these requirements cannot be enforced reliably.
The missing enforcement layer
Setup components, OIDC authentication, role‑based access, least‑privilege service accounts, decide who may start a session. They are necessary, but they are never sufficient to guarantee that PHI remains protected during execution. The enforcement must happen in the data path, where the actual bytes travel. Only a gateway that intercepts the protocol can apply real‑time masking, command‑level approval, and session recording.
How hoop.dev secures agent runtimes
hoop.dev sits in the data path as an identity‑aware proxy for agent runtimes. When an agent connects to a database, Kubernetes API, or SSH host, the request is routed through hoop.dev before reaching the target. At that point hoop.dev can:
- Mask PHI fields in query results, ensuring that identifiers never leave the protected boundary.
- Record every command and response, creating a replayable audit log that satisfies regulatory evidence requirements.
- Require just‑in‑time approval for risky operations, such as bulk data exports or schema changes, preventing accidental leaks.
- Block commands that match disallowed patterns, reducing the blast radius of a compromised agent.
Because hoop.dev holds the credentials for the downstream service, the agent never sees the secret, eliminating credential sprawl. The gateway also respects the identity presented by the OIDC token, so access decisions remain tied to the original user or service account.
For a step‑by‑step walkthrough of the deployment model, see the getting‑started guide. The learn section provides deeper insight into masking policies, approval workflows, and session replay features.
Practical steps to achieve phi compliance
1. Define PHI data models and identify the fields that require masking. Create a policy that tells hoop.dev which columns or JSON keys to redact in real time.
