All posts

ISO 27001 for Agentic AI: A Compliance Guide

When an organization runs agentic AI, ISO 27001 auditors expect a complete, tamper‑evident trail of who triggered each model call, what data was processed, and that access was granted only for the minimal time required. In that ideal state, the system links every inference request to an authenticated identity, logs the request with context, and protects any sensitive payload from accidental exposure. In practice, many teams provision long‑lived service accounts for AI runtimes, let those accoun

Free White Paper

ISO 27001 + AI Compliance Frameworks: The Complete Guide

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

Free. No spam. Unsubscribe anytime.

When an organization runs agentic AI, ISO 27001 auditors expect a complete, tamper‑evident trail of who triggered each model call, what data was processed, and that access was granted only for the minimal time required. In that ideal state, the system links every inference request to an authenticated identity, logs the request with context, and protects any sensitive payload from accidental exposure.

In practice, many teams provision long‑lived service accounts for AI runtimes, let those accounts reach data stores directly, and rely on ad‑hoc scripts for model invocations. The result is a black‑box where the same credential stays in use for weeks, audit logs remain sparse, and teams cannot verify that a model never accessed personally identifiable information (PII) without manual review.

What ISO 27001 expects for AI‑driven workloads

ISO 27001 groups its requirements into Annex A controls. The most relevant sections for agentic AI are:

  • A.9.2.1 – User access provisioning: Teams must grant access based on the principle of least privilege and review permissions regularly.
  • A.12.4.1 – Event logging: Teams must record all security‑relevant events, including authentication attempts and data access.
  • A.14.2.5 – Secure system engineering: Development and deployment processes must embed security controls such as data masking and input validation.
  • A.18.1.3 – Protection of records: Teams must protect audit records from alteration and make them available for audit.

For AI agents, these controls become concrete expectations: a) the system ties each model invocation to a unique identity, b) the system logs the request and response with timestamps and context, c) the system masks or redacts any PII in the payload, and d) the system makes logs immutable and exports them for auditor review.

Why a unified gateway is required

Meeting the above controls with separate tools quickly becomes fragile. An IAM policy can enforce least‑privilege, but it does not capture the actual data flowing through a model call. A logging agent can record network traffic, yet it cannot block a dangerous command before the command reaches a data store. Data‑masking libraries can be added to application code, but they rely on developers to remember to invoke them for every request. The missing piece is a single, protocol‑aware layer that sits between the AI runtime and every downstream resource, enforces policies, and generates audit evidence automatically.

How hoop.dev provides the required evidence

hoop.dev is an open‑source Layer 7 gateway that proxies connections to databases, Kubernetes clusters, SSH endpoints, HTTP APIs, and other infrastructure components. By placing hoop.dev on the path between an agentic AI service and its targets, the platform enforces all of the controls listed in Annex A and produces the audit artifacts auditors demand.

  • Identity‑driven access: hoop.dev validates OIDC or SAML tokens before forwarding any request. The token’s subject and group claims become the authoritative identity for the session, satisfying A.9.2.1.
  • Just‑in‑time provisioning: Policies grant temporary access only for the duration of a model call. When the session ends, hoop.dev revokes the permission, ensuring the least‑privilege principle.
  • Command‑level audit: hoop.dev records every request and response at the protocol layer. The logs contain timestamps, caller identity, target resource, and the exact payload exchanged, meeting A.12.4.1 and A.18.1.3.
  • Inline data masking: hoop.dev redacts sensitive fields in response payloads before they leave the gateway. This satisfies A.14.2.5 by preventing accidental exposure of PII.
  • Session replay: hoop.dev enables replay of recorded sessions in a sandbox for forensic analysis, providing concrete proof of what an AI agent did during a given time window.

Because hoop.dev owns the credential used to reach the downstream system, the AI runtime never sees the secret. This separation further reduces the blast radius of a compromised service account.

Continue reading? Get the full guide.

ISO 27001 + AI Compliance Frameworks: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

Evidence mapping to ISO 27001 clauses

When auditors request proof, hoop.dev exports logs in a structured format (JSON or CSV) that includes:

  • Caller identity (subject, groups) – evidence for A.9.2.1.
  • Timestamped request/response pairs – evidence for A.12.4.1.
  • Masking actions applied to specific fields – evidence for A.14.2.5.
  • hoop.dev stores logs with immutable metadata, including a hash and a defined retention period, providing evidence for A.18.1.3.

Teams integrate these artifacts with existing SIEM or GRC tools, allowing the organization to demonstrate continuous compliance rather than producing a one‑off report.

Getting started with hoop.dev for AI workloads

Deploy the gateway using the provided Docker Compose quick‑start or via a Kubernetes manifest. Configure the AI service to authenticate with your corporate IdP (Okta, Azure AD, Google Workspace, etc.) so that hoop.dev verifies the token on each request. Register each downstream resource, such as a PostgreSQL vector store or an Elasticsearch cluster, as a connection in the gateway, and define JIT policies that grant the minimal scope required for a given model operation.

For step‑by‑step guidance, see the Getting started guide and the feature documentation. Both resources explain how to set up OIDC authentication, create connections, and write policies that enforce masking and JIT access.

Explore the open‑source repository on GitHub to review the code, contribute improvements, or tailor the gateway to your specific compliance workflow.

FAQ

Do I still need a separate logging solution?

No. hoop.dev captures protocol‑level events for every proxied connection, producing the same audit records that a dedicated SIEM would ingest. You can forward those logs to an existing SIEM if you wish, but the gateway already satisfies the logging requirement of ISO 27001.

Can hoop.dev work with existing AI orchestration platforms?

Yes. Because hoop.dev presents a standard client endpoint (for example, a PostgreSQL host or an SSH server), you can point any orchestration tool that targets those protocols at the gateway without changing code.

How does inline masking protect PII?

When a response contains fields marked as sensitive in the policy, hoop.dev replaces the value with a placeholder before the data leaves the gateway. The original value remains only in the internal system, ensuring auditors see that masking was applied while the downstream service retains the full record.

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