All posts

FFIEC for Subagents: A Compliance Guide

A regional bank recently hired a third‑party data‑analytics firm to run nightly risk models on its loan portfolio. The FFIEC expects the bank to prove that every subagent action complies with its standards, yet the firm’s subagents connect to the bank’s internal PostgreSQL cluster through a shared service account, trusting that the connection is safe and that the bank will be able to demonstrate who ran what when an examiner asks. In practice, subagents inherit a blanket credential that grants

Free White Paper

Subagents: The Complete Guide

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

Free. No spam. Unsubscribe anytime.

A regional bank recently hired a third‑party data‑analytics firm to run nightly risk models on its loan portfolio. The FFIEC expects the bank to prove that every subagent action complies with its standards, yet the firm’s subagents connect to the bank’s internal PostgreSQL cluster through a shared service account, trusting that the connection is safe and that the bank will be able to demonstrate who ran what when an examiner asks.

In practice, subagents inherit a blanket credential that grants wide‑read access, and the bank’s security team lacks visibility into individual commands or data that leaves the database. The result is a compliance blind spot: auditors cannot verify that a subagent’s activity matched the approved use case, and any accidental exposure of sensitive borrower information goes undocumented.

Why FFIEC compliance matters for subagents

The Federal Financial Institutions Examination Council (FFIEC) requires financial institutions to maintain a continuous, tamper‑evident audit trail for all privileged access. Auditors look for evidence that shows:

  • Who authenticated and when.
  • Which resource was accessed and what operation was performed.
  • Any data that was read, written, or exported, with sensitive fields redacted.
  • Approval steps for high‑risk commands.

The FFIEC also expects institutions to grant access on a just‑in‑time basis, not through long‑lived standing credentials. Without a mechanism that captures these signals at the moment of use, an institution must rely on manual logs that are incomplete, error‑prone, and difficult to correlate.

How continuous evidence is built

Effective FFIEC evidence originates at the point where the subagent’s request meets the target system. The ideal solution records every session, masks any regulated fields in real time, and forces a human or policy‑based approval before a destructive command runs. The recorded metadata, user identity, timestamps, command text, and approval decisions, stores the session data in a repository that auditors can access without exposing the underlying service credentials.

hoop.dev as the data‑path enforcement layer

hoop.dev is a Layer 7 gateway that sits between the subagent and the database. Because it proxies the wire‑protocol, it is the only place where the request can be inspected, altered, or blocked. The gateway performs three FFIEC‑relevant functions:

  1. Session recording. hoop.dev captures every connection, including the exact SQL statements issued and the raw responses. It stores the recordings outside the subagent’s host, providing an immutable audit trail.
  2. Inline data masking. hoop.dev redacts sensitive columns such as SSN or account numbers in the response stream before they ever reach the subagent’s console. This satisfies the “redacted data” requirement while still allowing the subagent to see the rest of the result set.
  3. Just‑in‑time approval. hoop.dev pauses high‑risk statements such as DROP TABLE or bulk updates. A policy engine or a designated approver can grant or deny the operation, creating an explicit approval record.

Because hoop.dev occupies the sole gateway, subagents cannot bypass these controls by reconfiguring their client. hoop.dev never reveals the database credentials; it holds them and presents a short‑lived token to the target only after the policy checks have passed.

Setup versus enforcement

The identity foundation, OIDC or SAML federation with the bank’s IdP, least‑privilege service accounts for the gateway, and role‑based group membership, determines who may initiate a connection. Those pieces are essential, but they do not enforce the FFIEC controls on their own. hoop.dev provides the enforcement outcomes (recording, masking, JIT approval) that generate the required evidence.

Continue reading? Get the full guide.

Subagents: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

Architectural flow for a subagent request

1. The subagent obtains an OIDC token from the bank’s identity provider.
2. hoop.dev validates the token, extracts the user’s groups, and checks the request against the policy catalog.
3. If the request passes, hoop.dev opens a short‑lived connection to the PostgreSQL instance using its own stored credential.
4. The subagent’s SQL statements travel through hoop.dev, where the gateway logs, inspects, and optionally masks them.
5. For any statement that matches a high‑risk pattern, hoop.dev pauses execution and routes the request to an approver. The approver’s decision records alongside the session.
6. The final response, with sensitive fields redacted, streams back to the subagent.
7. The complete session record, including identity, timestamps, command text, approval decision, and masked output, writes to the audit store.

This flow guarantees that every FFIEC evidence element captures automatically, without requiring the subagent to run additional logging tools or remember to enable masking.

Continuous evidence for auditors

Because hoop.dev stores session data in a repository, auditors retrieve a chronological view of all subagent activity. The repository can be queried by user, time range, or risk level, producing a report that shows exactly which statements ran, which received approval, and which fields were redacted. The bank can export these logs in a format that aligns with FFIEC’s audit‑trail definition, demonstrating continuous compliance rather than a point‑in‑time snapshot.

Having this evidence generate automatically reduces the manual effort of gathering logs from multiple hosts, eliminates gaps caused by missing agents, and provides a single source of truth for both internal reviewers and external examiners.

Getting started with hoop.dev

To adopt this architecture, start with the official getting‑started guide, which walks through deploying the gateway, configuring OIDC federation, and defining masking and approval policies. The open‑source repository contains example policies for database masking and JIT approval that map directly to FFIEC requirements.

Once the gateway runs, register the PostgreSQL target, assign the appropriate service account, and enable session recording. From that point forward, every subagent connection produces the audit evidence required by FFIEC.

FAQ

Does hoop.dev replace my existing IAM controls?

No. hoop.dev complements your identity provider and service‑account permissions. It enforces additional controls at the protocol level, which IAM alone cannot provide.

How do I choose which fields to mask?

You define masking rules in hoop.dev’s policy configuration. Specify column names or regex patterns, and the gateway redacts matching values in real time before they leave the database.

Can auditors view the session logs without seeing the underlying database credentials?

Yes. hoop.dev never exposes the stored credentials to the auditor or to the subagent. The logs contain only the masked output and the metadata needed for compliance.

For full implementation details, see the learn portal. The source code and contribution guidelines are available on GitHub.

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