Implementation Guide

Blocking PHI from LLM Providers That Have Not Signed a BAA

Record BAA status as a policy attribute of each LLM destination, then enforce it in sequence at network egress, an AI gateway, agent tool-call and MCP inspection, and prompt and context inspection. Each layer detects PHI, checks the destination, and blocks, redacts, or reroutes before data leaves. No single layer is sufficient, and detection and redaction reduce risk without eliminating it.

Make BAA status a destination attribute

Treat BAA status as a machine-enforceable attribute of each LLM destination, then enforce it at egress, gateway, agent tool, and prompt layers. Every LLM endpoint belongs in a registry with BAA status, scope, owner, and review date, so each layer can check the destination before data leaves.

Enforcement layers in sequence

Each layer detects PHI, checks the destination, and blocks, redacts, or reroutes before data leaves. The layers below form the enforcement path for LLM requests.

  1. Network egressDeny traffic to LLM endpoints that are not on the approved list.
  2. AI gatewayResolve the destination, look up its BAA status, and apply routing policy.
  3. Agent tool and MCP layerInspect tool calls and tool outputs before they join model context.
  4. Prompt and context inspectionDetect PHI, then block, redact, tokenize, or reroute.
  5. Audit loggingRecord destination, decision, and detection result without storing PHI.

Detection, redaction, and their limits

Bypass paths and compensating controls

The main failure modes are:

  • Direct SDK calls with embedded API keys
  • Browser-based AI tools
  • Shadow AI adoption
  • Model features built into SaaS applications that send data to a provider you never registered

A gateway sees none of this traffic. Egress deny-by-default handles much of it, but it does not cover SaaS features that call out from the vendor's infrastructure.

Compensating controls

  • Managed browser policies for AI sites
  • Centralized management of API keys so direct calls fail without gateway credentials
  • Discovery of unknown LLM destinations from egress and DNS logs
  • An inventory of SaaS applications with embedded AI features

For SaaS applications with embedded AI features, review the vendor's data handling and agreement terms, and disable the feature where PHI could flow and no BAA applies. These measures narrow the gap, and they do not close it.

Evaluation checklist before rollout

  • Every LLM endpoint is in a registry with BAA status, scope, owner, and review date.
  • Egress is deny-by-default for LLM destinations not in the registry.
  • Agent tool calls and MCP traffic pass through the same policy engine as direct prompts.
  • False-negative rate and per-request latency are measured on representative unstructured text.
  • The system fails closed for non-BAA destinations when detection errors or times out.
  • Audit logs capture destination, decision, and detection result without storing PHI.

Enforce BAA policy at runtime

Trussed AI provides runtime policy enforcement, MCP security, and audit logging for enterprise AI agents. Talk to an expert about applying these controls to your LLM request paths.

Talk to an Expert