All posts

What SOC 2 Means for Agent Runtimes

Missing audit evidence from agent runtimes can sink a SOC 2 audit. Auditors expect concrete proof that every privileged operation on production systems is tied to a verified identity, that the operation is time‑stamped, and that any data exposure is documented. The SOC 2 Trust Services Criteria for Security, Availability, Processing Integrity, Confidentiality, and Privacy all hinge on the ability to demonstrate who did what, when, and why. Agent runtimes – the scripts, CI jobs, and automated t

Free White Paper

Open Policy Agent (OPA) + SOC 2 Type I & Type II: The Complete Guide

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

Free. No spam. Unsubscribe anytime.

Missing audit evidence from agent runtimes can sink a SOC 2 audit.

Auditors expect concrete proof that every privileged operation on production systems is tied to a verified identity, that the operation is time‑stamped, and that any data exposure is documented. The SOC 2 Trust Services Criteria for Security, Availability, Processing Integrity, Confidentiality, and Privacy all hinge on the ability to demonstrate who did what, when, and why.

Agent runtimes – the scripts, CI jobs, and automated tools that connect to databases, SSH hosts, or Kubernetes clusters – are often built with static credentials and fire‑and‑forget logic. Because the credential is baked into the job, the runtime itself never presents a user identity to the target system, and the target rarely records a per‑user audit trail. The result is a blind spot: the organization cannot prove that a particular build job accessed a production database at 02:17 UTC, nor can it show that sensitive columns were redacted before a response left the system.

To satisfy SOC 2, auditors typically request the following artifacts for any agent‑driven access:

  • Immutable logs that capture the exact command or query, the identity that initiated it, and a precise timestamp.
  • Approval records for high‑risk actions, showing who granted the exception and when.
  • Evidence of data‑masking or redaction for fields classified as confidential.
  • Replayable session recordings that allow a reviewer to step through the interaction verbatim.

These artifacts are difficult to produce when the enforcement point lives inside the agent or when logs are scattered across multiple services.

hoop.dev places the enforcement boundary in the data path, between the identity provider and the target resource. By acting as a Layer 7 gateway, hoop.dev becomes the sole place where access decisions, masking, and approvals can be applied. The setup layer authenticates users and service accounts via OIDC or SAML, maps group membership to fine‑grained policies, and then hands the request to the gateway. Because the gateway is the only component that sees the traffic, it can record each session, enforce just‑in‑time approvals, and mask confidential fields before they leave the target.

Continue reading? Get the full guide.

Open Policy Agent (OPA) + SOC 2 Type I & Type II: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

SOC 2 evidence requirements for agent runtimes

When an auditor asks for proof of compliance, hoop.dev supplies the exact artifacts listed above:

  • Session logs: hoop.dev writes a per‑user, per‑connection log entry that includes the identity, command text, and timestamp. The log entry is immutable and stored outside the agent process, providing the reliable evidence auditors require.
  • Approval workflow: For operations flagged as high‑risk, hoop.dev routes the request to an approver. The approval decision, approver identity, and decision time are recorded alongside the session log.
  • Inline data masking: When a response contains fields marked as confidential, hoop.dev replaces those values with masked placeholders before they reach the client. The masking event is logged, giving auditors a trace that confidentiality controls were enforced.
  • Replay capability: Because hoop.dev captures the full protocol exchange, a reviewer can replay the session in a sandbox to verify that no prohibited commands were executed.

All of these outcomes exist only because hoop.dev sits in the data path; the underlying identity tokens or IAM roles alone cannot produce them.

Mapping enforcement outcomes to SOC 2 criteria

The Security principle requires protection against unauthorized access. hoop.dev enforces this by allowing only identities that satisfy the policy to reach the target, and by denying or pausing any command that falls outside the allowed set.

The Confidentiality principle demands that sensitive data be protected in transit and at rest. hoop.dev’s inline masking ensures that even if a privileged user can query a confidential column, the value never leaves the gateway in clear text, and the masking log satisfies the auditor’s need for evidence of protection.

Processing Integrity and Availability are supported by the just‑in‑time approval workflow. High‑impact changes must be explicitly approved, providing a documented chain of custody that auditors can verify.

Getting started with hoop.dev

To adopt this approach, begin with the getting‑started documentation. Deploy the gateway, connect your agent runtimes, and configure OIDC authentication so that every request carries a verifiable identity. The feature overview explains how to enable session recording, approval policies, and inline masking without changing existing scripts.

FAQ

What logs does hoop.dev generate for SOC 2?

hoop.dev creates immutable, per‑session logs that include the initiator’s identity, full command text, timestamps, and any masking or approval events. These logs are stored outside the agent, making them suitable audit evidence.

How does inline masking support the Confidentiality principle?

When a response contains a field marked as confidential, hoop.dev replaces the value with a placeholder before it reaches the client. The masking action is recorded, giving auditors a trace that the data was never exposed in clear text.

Can hoop.dev work with existing identity providers?

Yes. hoop.dev acts as an OIDC/SAML relying party, accepting tokens from any compliant IdP. The identity layer determines who can start a request, while the gateway enforces the SOC 2 controls.

Ready to see the code in action? Explore the open‑source repository on GitHub and start building SOC 2‑ready audit trails for your agent runtimes.

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