Claude apps

Claude traffic reaches the Protector by one of three routes. The route decides which Claude apps it covers and whether the Protector can block a request. Every route ends in the same place: the backend’s guardrail policy, the audit rows in your project, and AI Activity.

Option What it sees What it can block Set-up effort
Claude Code through the gateway Every model call from Claude Code, the Agent SDK or any API client Prompts and replies, by policy One base URL and one header per developer, or one managed setting for a fleet
Claude Enterprise inference hooks Every governed prompt and tool call in a Claude Enterprise organisation, across claude.ai, Claude Desktop, mobile, Cowork and Claude Code Prompts and tool calls, before inference runs A public HTTPS address and one hook registered by a Claude Enterprise admin
TLS interception (experimental) Chat turns on claude.ai and Claude Desktop Prompts and replies, by policy A trusted certificate authority and a proxy setting on every device

Claude Code through the gateway

Claude Code can send its calls to a Protector instead of directly to Anthropic. Create a proxy backend that points at https://api.anthropic.com, forwards all headers and injects none. The developer’s own credentials then pass through. An API key or a Pro, Max, Team or Enterprise sign-in both work. See Backends for the backend panel.

Set up

  1. In the portal, create the backend with the value claude-code and assign a guardrail policy to it.
  2. On the developer’s machine, set the base URL and name the user:
export ANTHROPIC_BASE_URL=https://protector.internal/proxy/claude-code
export ANTHROPIC_CUSTOM_HEADERS="X-S60-User: jane@acme.com"
  1. For a fleet, put both values in Claude Code’s managed settings under env. Set allowedProviders: ["customEndpoint"] so a developer cannot point Claude Code elsewhere.

Context that Claude Code adds

Claude Code adds its own context to the user’s turn inside <system-reminder> blocks. These carry the contents of CLAUDE.md, memory, the user’s e-mail address and skill lists. The text repeats on every call. Scanned as the user’s own words, it would report the same e-mail address as personal data on every turn.

The Protector therefore scans each <system-reminder> block as its own segment, context. The policy setting input.scan.harness_context controls it:

Value What the Protector does with context blocks
secrets (default) Scans them with the secrets filter only. A key pasted into CLAUDE.md is still reported as a leak
all Scans them with every input filter, as it does for user text
off Does not scan them

A mask filter never rewrites a context block unless the value is all.

What is recorded

Each call produces the usual app-guardrail-eval row, and an app-guardrail-violation row when a filter matches. The user comes from the X-S60-User header. Claude Code shows a blocked request as API Error: 403 with the reason.

Try it

Send one prompt that contains a test secret, such as a dummy AKIA access key, from Claude Code. The request should return a 403 when the policy blocks secrets. Then open AI Activity and find the session.

Claude Enterprise inference hooks

Claude Enterprise can call an “AI security server” before every inference and wait for an allow or deny answer. The Protector fills that role. Nothing is installed on devices and nothing is decrypted. The hook covers claude.ai, Claude Desktop, mobile, Cowork, Claude Code and Claude in Chrome.

Set up

  1. Create a backend of type blackhole (an audit-only backend) and assign a guardrail policy to it. Any other type is refused with a 409, because a proxy backend would forward the transcript.
  2. Add the hook settings to the backend:
{"type": "blackhole", "app_name": "claude-enterprise",
 "inference_hook": {"secret_env": "ANTHROPIC_HOOK_SECRET", "timeout_seconds": 10}}
  1. Expose the Protector on a public address. Anthropic requires https:// on port 443 with a certificate from a public authority, a public IPv4 address and no redirects.
  2. In the Claude admin console, register the hook at https://<protector>/hooks/anthropic/<backend>.
  3. Copy the signing secret (whsec_...) from the Claude admin console into the Protector’s env file as ANTHROPIC_HOOK_SECRET. During a secret rotation, keep the old one in ANTHROPIC_HOOK_SECRET_PREVIOUS.

The Protector verifies the Standard Webhooks signature with a five-minute timestamp tolerance. It refuses an unsigned request unless inference_hook.allow_unsigned is true.

What the Protector judges

Anthropic re-sends the full transcript on every turn. The Protector skips blocks it already allowed, and always scans the latest message. A block that was part of a denied frame is refused again on each later turn while it stays in the conversation.

The hook answers before inference. It does not see Claude’s reply, so output filters do not apply on this route.

If the hook fails, the answer is a non-200 status: 404 for an unknown backend, 409 for a wrong type, 401 for a bad signature and 502 for a guard error. Your Claude organisation’s failure setting then decides between block and allow.

What is recorded

The usual guardrail rows, with app_name set to the Claude product (claude-ai, claude-code, cowork and so on), user_name set to the user’s e-mail address, and the conversation as the session.

Try it

In the Claude admin console, send the hook’s test event. The Protector allows a config-test frame. Then send a prompt that contains a dummy secret from a Claude Enterprise account and check that it appears in AI Activity.

Experimental: TLS interception for claude.ai and Claude Desktop

Experimental. Secure60 does not recommend this route. It needs a trusted certificate authority on every device and a proxy setting that you manage. Use the inference hooks above for claude.ai and Claude Desktop where you can. Secure60 has not run it end to end against a real claude.ai sign-in.

Claude Desktop and claude.ai call Anthropic’s own service, not the API, so there is no base URL to change. A workplace that already inspects TLS does the same thing. The device trusts the Protector’s certificate authority and sends its HTTPS traffic through the Protector’s proxy.

There is no portal screen for this. Configure it only through the container’s env file.

Set up

  1. Set these variables on the Protector and publish port 3128:
Variable Default Meaning
S60_INTERCEPT off on starts the proxy
S60_INTERCEPT_PORT 3128 The proxy port (HTTP CONNECT)
S60_INTERCEPT_HOSTS claude.ai,api.anthropic.com The only hosts the proxy decrypts. Every other host passes through untouched
S60_INTERCEPT_CLAUDE_WEB_BACKEND claude-web The backend that a claude.ai chat turn goes through
S60_INTERCEPT_API_BACKEND not set The backend for calls to api.anthropic.com/v1/messages. When unset, those calls pass straight on
S60_INTERCEPT_ALLOWED_ORG_IDS not set Your Claude organisation IDs, sent as anthropic-allowed-org-ids. Anthropic then refuses personal and other companies’ accounts
S60_INTERCEPT_CA_DIR /var/lib/s60-protector/intercept-ca Where the certificate authority lives
  1. Create a proxy backend with the value claude-web, the URL https://claude.ai and all headers forwarded, so the browser’s cookies pass through. Assign a policy to it.
  2. Take the certificate from the container. The Protector generates one named Secure60 Protector Intercept CA (<group>), or uses the corporate authority you mount in S60_INTERCEPT_CA_DIR:
docker cp s60-ai-protector:/var/lib/s60-protector/intercept-ca/mitmproxy-ca-cert.pem .
  1. On each device, set the system proxy or a PAC file to <protector>:3128. Install mitmproxy-ca-cert.pem as a fully trusted root. On macOS, -p ssl alone is not picked up by Claude Desktop.

What it covers

The proxy sends POST claude.ai/api/organizations/<org>/chat_conversations/<id>/completion (and retry_completion) through the backend’s policy. It scans the prompt and pasted attachments on the way in, and the streamed reply on the way out. Everything else on claude.ai passes through unchanged.

A blocked request reaches the app as an Anthropic-style permission_error that begins “Blocked by your organisation’s Secure60 Protector”. The user comes from the proxy login when there is one, otherwise from the e-mail address that claude.ai returns in its own account data.

It does not cover files uploaded to claude.ai, or Claude Desktop’s local MCP servers, which never cross the proxy.

For the full list of Protector variables, see Environment variables.

Back to top