Anthropic / Claude

Inference Hooks: What Anthropic's Inline DLP Actually Closes at the Phase 4 Gate

Anthropic shipped inline data loss prevention for Claude Enterprise on August 5: every governed prompt and tool call routes through your own security server for an allow-or-deny verdict before the model runs. It is a direct update to the PII filtering and audit trail work in Phase 4 of the deployment roadmap. Here is what it actually closes, and what it still leaves open for a CISO to sign off on.

AP
Andrew Poole
··8 min read

On August 5, Anthropic shipped inference hooks in beta for Claude Enterprise: a mechanism that routes every governed prompt, and every tool call response, through an organization's own security server for an allow-or-deny verdict before the model sees anything. One configuration covers claude.ai chat, Claude Code, and Cowork, plus tool traffic through MCP connectors, skills, and plugins. It is the kind of inline data loss prevention security teams already run in front of email and web traffic, now sitting in front of Claude.

This lands directly inside Phase 4 of the enterprise Claude deployment roadmap. That phase covers PII filtering, immutable audit trails, and the CISO sign-off that gates rollout, and inference hooks is a real update to how that gate gets satisfied, not a feature announcement to file away. The coverage online so far is mostly what-is-it explainer content. The question that actually matters for a governance program is narrower: what does this close for a CISO sign-off, and what does it still leave open.

Both questions have concrete answers, because Anthropic's own documentation is specific about the mechanism and, more usefully, specific about the limitations. That specificity is the most valuable part of this release for anyone running a Phase 4 hardening track right now.

How an Inference Hook Fires

Inline, before the model runs
1

User submits a prompt

On a governed Claude Enterprise surface: claude.ai chat, Claude Code, or Cowork. The request leaves the client.

2

Anthropic calls your security server

After the request reaches Anthropic and before the model runs, Anthropic sends an HTTPS POST carrying the conversation transcript, signed per the Standard Webhooks spec so you can verify it came from Anthropic.

3

Your server returns a verdict

Your AI security server evaluates the content and responds allow or deny within the verdict timeout you configure (5 seconds by default).

4

Allow proceeds, deny is blocked

On allow, inference runs normally. On deny, the request never reaches the model, the user sees a blocked-by-policy message, and the denial is recorded in your Activity Feed.

The hook runs on Anthropic's servers, not on user devices, so it applies to every governed request uniformly with nothing to install. Your server sees what the user sees: transcript text, tool calls and their results, and text extracted from attachments. It never receives raw file or image bytes, system prompts, or Anthropic-internal context.

How the Verdict Actually Works

The mechanism is a signed webhook, not a plugin or an agent. A user submits a prompt on a governed surface. Anthropic sends an HTTPS POST, carrying the conversation transcript, to the organization's configured AI security server endpoint, signed per the Standard Webhooks specification so the receiving server can verify it actually came from Anthropic. That server evaluates the content and responds with a verdict, a small JSON object, within a timeout the organization configures, five seconds by default. Allow lets the request proceed. Deny rejects it, and the user sees a blocked-by-policy message assembled from the security server's stated reason plus a standing message administrators configure, with the denial logged to the organization's Activity Feed.

One detail matters more than it looks: the security server sees what the user sees, transcript text, tool calls and their results, and text extracted from attachments. It does not receive raw file or image bytes, system prompts, or any Anthropic-internal context. That is a deliberate boundary, and it is also the source of the release's most important limitation, covered below.

Because the hook runs on Anthropic's own infrastructure rather than as something installed on user devices, it applies uniformly to every governed request in the organization the moment it is turned on. There is nothing to deploy to an endpoint and nothing a user can opt out of locally.

What It Covers, and What It Does Not

Inference hooks govern claude.ai chat, Claude Code, and Cowork sessions, whether on the web, in the desktop app, or in the CLI, plus tool call results routed through MCP connectors, skills, and plugins. That MCP coverage is the detail worth sitting with: a use case that retrieves documents through an MCP server, the kind of architecture covered extensively in Phase 3 of this roadmap, now has its tool responses inspected before they return to the model, not just its initial prompts.

The exclusions are just as specific, and they are the part an explainer piece skips past. Response-side enforcement does not exist yet: today the only hook event is the prompt event, firing once per governed request before inference begins. Anthropic's own documentation states response-side enforcement is planned as a later event, which means Claude's own output is not gated at launch, only what goes in. Platform organizations, meaning API access through the Claude Platform, are out of scope entirely, as are Amazon Bedrock and Google Cloud deployments. Voice mode is not covered. Ancillary requests like conversation title generation are not sent to the endpoint, and system prompts and tool definitions are never included in what the security server receives.

What Inference Hooks Cover at Launch

Beta, Claude Enterprise only

In scope today

+claude.ai chat, Claude Code, and Cowork, in one org-level configuration
+Tool-call results through MCP connectors, skills, and plugins (seen within the prompt transcript)
+Web, desktop app, and CLI sessions in the Enterprise organization
+Denials logged to the compliance Activity Feed

Out of scope today

Response-side enforcement -- Claude's own output is not gated yet; it is planned as a later event
Raw file and image bytes -- image-only content (a screenshot of a document) is not inspected
Platform / API organizations, Amazon Bedrock, and Google Cloud are out of scope
Voice mode, and ancillary requests like title generation; system prompts and tool definitions are never sent

Fail-Open vs. Fail-Closed Is a Real Decision

If the AI security server is unreachable, errors, or does not respond within the configured timeout, the organization's failure handling setting decides the outcome: block the request, or let it proceed uninspected. This is not a checkbox to accept on default. It is a decision that should vary by the sensitivity of the data a given surface touches, and advising a client to set one policy organization-wide is the kind of shortcut that shows up as a finding in Phase 4's penetration test.

Restricted and regulated data, PHI, PII, financial account data, anything with a compliance flag, should fail closed. An unreachable scanner must not become an open door; the cost of a blocked request is inconvenience, and the cost of an uninspected one is a compliance incident. Confidential and internal data warrants the same default, with error rates watched closely, because a security server that trips its failure policy often enough starts generating support tickets from users who assume the tool is broken. Low-sensitivity, general-productivity use cases are the one place fail-open is a legitimate, deliberate choice: availability may reasonably outweigh inspection there, provided that is a documented decision and not just what the default happened to be.

Anthropic also built in a way to prove the configuration before enforcing it: shadow mode observes verdicts on live traffic without blocking anything, a rollout percentage inspects a chosen fraction of requests, and exclusions exempt specific roles entirely. That staged rollout path maps directly onto the way Phase 5 of this roadmap already recommends bringing any new control into an organization, wave by wave rather than all at once.

Failure Policy by Data Sensitivity Tier

A practitioner recommendation

Restricted / regulated

Fail-closed

PHI, PII, financial account data, anything with a regulatory flag

An unreachable or slow scanner must not become an open door. Better to block the request than to let regulated data reach the model uninspected.

Confidential / internal

Fail-closed

Trade secrets, unreleased financials, privileged material

Same default, but watch timeout and error rates closely so blocks do not silently pile up and push users toward shadow IT.

Low-sensitivity / productivity

Fail-open (deliberately)

General drafting, public information, internal Q&A

Availability may outweigh inspection here. A scanner hiccup should not halt low-risk work, but make it a documented decision, not a default.

Pitfall

The verdict timeout defaults to 5 seconds. A slow scanner trips your failure policy just like an unreachable one, so tune the timeout and the fail-open/fail-closed setting together, not separately.

The Limitation That Matters Most: No Redaction

Verdicts are binary. Allow or deny, with no middle option. Anthropic's documentation is explicit that rewriting or redacting a prompt is not supported. That is a real gap against what security teams expect from DLP on email and web traffic, where a policy engine can typically strip a Social Security number and let the rest of the message through. Here, one sensitive token anywhere in a transcript denies the entire request, which means a security server tuned too aggressively will generate a stream of blocked, otherwise-legitimate requests, and a security server tuned too conservatively will let borderline content through because the alternative is blocking productive work outright.

The second limitation compounds the first: attachments are represented by metadata and extracted text only. Raw file and image bytes are never sent, so image-only content, a screenshot of a regulated document, a photographed form, is not inspected at all. A PII filtering pipeline built to catch text-based leaks, the kind covered in Phase 4's Task 4.5 and 4.6, does not get a second layer of protection here for anything that arrives as an image rather than extracted text. That gap is structurally identical to the OCR formatting gap that broke a PII filter in the Phase 4 hardening deep-dive: a control that looks comprehensive until the input stops being clean text.

What This Means at the Phase 4 Gate

Phase 4 requires four things before a CISO signs off: all critical and high pentest findings remediated and retested, a PII filtering pipeline validated against a noisy corpus, an immutable audit trail, and a load test passed at twice projected peak. Inference hooks is a genuine addition to the audit trail and PII filtering side of that gate, not a replacement for either. It adds inline enforcement in front of the model, with denials landing automatically in the Activity Feed, which is exactly the kind of real-time control a CISO review packet benefits from having documented.

It does not close the gate by itself. The security server's verdict quality is entirely the organization's own responsibility, not something Anthropic is validating; a security server that always returns allow provides no protection regardless of how well the webhook plumbing is configured. Response-side leakage is still ungated, image-based PII is still unscanned, and the Enterprise-only scope means any use case built on Platform API access, which Phase 3's MCP server builds commonly are, gets no benefit from this control at all.

At the Phase 4 Gate: Closes vs. Leaves Open

What a CISO should weigh

What it closes

Inline DLP on prompts: your own scanner sees the transcript and can deny before the model processes it
One configuration spans chat, Claude Code, Cowork, and MCP tool-call results
Runs server-side with nothing on user devices, so enforcement is uniform across the org
Denials land in the compliance Activity Feed, feeding the audit-trail requirement
Rollout controls (shadow mode, rollout percentage, role exclusions) let you prove it before enforcing

What it leaves open

No redaction: verdicts are allow or deny, so one sensitive token denies the whole prompt rather than masking it
Image-only content is uninspected -- a screenshot of a regulated document passes as an attachment
Response-side is not enforced yet: Claude's own output is not gated at launch
Enterprise only -- no API/Platform, no Bedrock, no GCP, and voice mode is not covered
You still build, operate, and staff the security server; the verdict quality is yours, not Anthropic's
This is a direct update to the Phase 4 gate: PII filtering, audit trails, and CISO sign-off.Read Phase 4 →

What to Do Now

For an organization already in or approaching Phase 4, three things are worth doing this week. First, treat inference hooks as an input to the PII filtering validation task, not a substitute for it: the existing filtering pipeline still has to cover what this control cannot, particularly image content and response-side output. Second, set failure-handling policy deliberately, by data sensitivity tier, and document the reasoning, because an auditor will ask why a given surface is fail-open rather than assume the default was a considered choice. Third, use shadow mode before enforcing anything: a security server's first week of real verdicts against real traffic is the fastest way to find out whether it is calibrated correctly, before it starts blocking legitimate work or missing what it was built to catch.

For organizations already through Phase 4 and into Phase 6, this is also a live example of the model-and-platform monitoring discipline that phase requires. A new Anthropic capability that materially changes what a hardening gate should require is exactly the kind of changelog event Task 6.11 exists to catch, and inference hooks is a case where the honest answer is that the gate's requirements just got a little more specific than they were on August 4.

Work with Riptide

Ready to put a governance framework behind your Claude deployment?

Our Claude Enterprise Readiness Assessment maps your file structure, permissions model, and MCP surface in three weeks.

Book a discovery call
AP

Andrew Poole

Founder of Riptide Consulting, an Anthropic-first AI engineering firm based in Carlsbad, CA. Building the intelligence layer for enterprise and growth-stage companies on the Anthropic platform.