All posts

Segregation of Duties in AI Agents, Explained

When segregation of duties works for AI agents, each model can only act on the resources it was designed to manage, every request is logged, sensitive fields are hidden from the model, and any privileged operation must be approved before it runs. The result is a clear audit trail, reduced blast radius, and confidence that an autonomous agent cannot overstep its mandate. Why the current practice falls short Most organizations treat AI agents like any other service account: they hand out a stat

Free White Paper

AI Human-in-the-Loop Oversight + DPoP (Demonstration of Proof-of-Possession): The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

When segregation of duties works for AI agents, each model can only act on the resources it was designed to manage, every request is logged, sensitive fields are hidden from the model, and any privileged operation must be approved before it runs. The result is a clear audit trail, reduced blast radius, and confidence that an autonomous agent cannot overstep its mandate.

Why the current practice falls short

Most organizations treat AI agents like any other service account: they hand out a static API key or a long‑lived credential that grants broad read‑write access to databases, cloud services, or internal APIs. The agent connects directly to the target, bypasses human review, and the only record of what happened lives in the target’s own logs – if those logs exist at all. This pattern creates three hidden risks:

  • Unrestricted scope. An agent that can query or modify any table can inadvertently expose or corrupt data that belongs to a different business unit.
  • No real time oversight. Dangerous commands execute immediately without a human checkpoint.
  • Insufficient evidence. Auditors looking for segregation of duties evidence must piece together scattered logs, often missing the exact command the model issued.

These gaps exist even though the organization may have strong identity provisioning (OIDC, SAML) and least‑privilege IAM roles. The missing piece is a control point that can actually enforce policy on the data path.

What segregation of duties means for AI agents

Segregation of duties for an AI agent means that the model is authorized to perform only a narrow set of actions that align with its purpose. The enforcement must happen at the moment the request leaves the agent and reaches the target. In practice this requires:

  • Just in time granting of the exact permission the model needs for a single operation.
  • Inline masking of any response fields that are considered sensitive for the model’s role.
  • Human approval workflows for commands that cross a predefined risk threshold.
  • Immutable session recording so that every query or command can be replayed during an audit.

Even with these requirements, the request still travels directly to the backend service. The gateway does not act as a proxy for the service itself. It merely sits in the data path and observes the wire‑protocol.

How hoop.dev provides the required data‑path enforcement

hoop.dev is an open‑source Layer 7 gateway that sits between AI agents and the infrastructure they access. It verifies the agent’s identity via OIDC/SAML, then applies the segregation of duties controls before the traffic reaches the target.

Continue reading? Get the full guide.

AI Human-in-the-Loop Oversight + DPoP (Demonstration of Proof-of-Possession): Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

Because hoop.dev lives in the data path, it can:

  • Record each session. Every query, mutation, or command issued by the agent is captured for replay and audit.
  • Mask sensitive fields in real time. Responses that contain credit‑card numbers, PII, or other regulated data are redacted before the model sees them.
  • Require just in time approval. If a request exceeds the model’s predefined risk profile, hoop.dev pauses the operation and routes it to an approver.
  • Block disallowed commands. Dangerous statements such as DROP DATABASE are rejected outright.

These enforcement outcomes exist only because hoop.dev is positioned on the data path; the underlying identity system alone cannot provide them.

Putting the pieces together

To achieve true segregation of duties for AI agents, follow this high‑level flow:

  1. Provision the agent with a minimal OIDC token that identifies its role.
  2. Deploy hoop.dev near the resources the agent will access (e.g., a PostgreSQL instance, an HTTP API, or a Kubernetes cluster).
  3. Configure policies in hoop.dev that define which commands are allowed, which responses must be masked, and which operations need human approval.
  4. Run the agent through hoop.dev using its standard client libraries – no code changes are required on the agent side.
  5. Review the immutable session logs and approval records to demonstrate segregation of duties compliance.

The getting‑started guide walks through deployment and policy definition, while the learn section explains each enforcement feature in depth.

FAQ

Q: Does hoop.dev modify the AI model itself?
A: No. hoop.dev only intercepts the wire‑protocol traffic between the model and the backend service. The model’s code and inference pipeline remain untouched.

Q: Can I use hoop.dev with any AI service?
A: hoop.dev supports any target that communicates over a standard protocol – databases, HTTP APIs, SSH, and Kubernetes are all covered. As long as the agent talks to the target via one of these protocols, hoop.dev can enforce segregation of duties.

Q: How does hoop.dev handle scaling for many concurrent agents?
A: The gateway is stateless with respect to the underlying connections and can be horizontally scaled behind a load balancer. Session data is stored in a durable backend that all instances share.

Next steps

Start by cloning the open‑source repository and deploying the quick‑start composition. The code lives at github.com/hoophq/hoop. From there you can define the segregation of duties policies that match your organization’s risk appetite and begin collecting the audit evidence you need.

Open source

Save the open-source gateway for agent data access

Hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.

Star and save the repo →More posts