Data protection
What the AI receives and what is storedNew
Masking before a prompt is sent and redaction of the stored record are two separate things. This page states, per integration, which one applies and under which conditions.
AgentID does two different things with sensitive values. Keep them apart when you assess a deployment:
| Masking before sending | Redaction of the stored record | |
|---|---|---|
| What it changes | The prompt, paste or file that the AI service receives | The text AgentID keeps in the activity log |
| When it applies | Only where the integration can rewrite the outgoing content, and only when masking is switched on and the system is not in Shadow Mode | Always, on every integration, also in Shadow Mode and with masking switched off |
| Where it is configured | Guardrails and masking settings of the AI system | Nothing to configure; see What is logged |
A redacted row in the activity log therefore does not prove that the AI service received a masked prompt. The activity log shows the decision of each check (allowed, masked, blocked, or the simulated outcome in Shadow Mode), and for browser extension turns the Masked values table lists what the provider received for each value.
Conditions for masking before sending
All of these must hold:
- The AI system is in Active Guard. In Shadow Mode nothing is masked or blocked; the content reaches the AI unchanged and AgentID records what it would have done.
- Mask Personal Information or Mask Secrets & API Keys is on. A new AI system starts with these off: personal data is then detected and recorded, not masked.
- The integration can rewrite the content on that surface (tables below).
- The check succeeded. When AgentID cannot be reached, the failure mode decides: fail-closed holds the prompt back, fail-open lets it through unchanged.
- The value was detected. Detection is not complete for every kind of value; add content policies for terms only you know.
Browser extension
| Surface | Typed prompt | Pasted text | Files |
|---|---|---|---|
| Validated apps: ChatGPT, Claude, Gemini, Microsoft Copilot | Replaced with the masked text before it is sent | Checked on paste; the message is inserted already masked | Supported files are replaced with a protected copy before upload |
| Recognized AI tools without a validated adapter (the default behaviour) | Sent masked from the tool's recognized message field. If the extension cannot rewrite that field, a prompt that needs masking is not sent and the user is told that masking is unavailable | Not replaced at the moment of pasting. The pasted text is checked in the background, and the whole message is checked again and masked when it is sent | Files picked in the tool's message area are checked and replaced with a protected copy. This is covered by an automated test with a synthetic AI tool, not verified on live third-party tools |
| Applications set to Don't monitor | Not checked, not changed, not logged | Same | Same |
| Business applications with embedded AI (office suites, help desks, CRMs) | Their own editors, documents and cells are never intercepted; the AI request is logged | Not changed | Not changed |
Further limits that apply on every surface:
- Files from cloud storage (Google Drive, OneDrive, SharePoint, Dropbox, Box) that an AI tool attaches itself never pass through the browser. They are not checked and not masked; AgentID logs their name, type, size and provider.
- Files AgentID cannot check follow the failure mode: blocked with fail-closed, uploaded unchanged with a warning and a log row with fail-open.
- At most four files are checked per message; further ones are reported to the user and not uploaded.
- Shadow Mode: prompts, pastes and files reach the AI tool at once and unchanged. Masking and blocking appear only as the simulated outcome in the activity log.
- A tool without a validated adapter is checked once the extension has recognized it as an AI tool. Coverage of such tools is best effort; rely on the validated apps where masking must be dependable.
The validated adapters are covered by automated tests with synthetic pages. AI providers change their pages often; the adapter health on the Integration tab shows whether the message field and the send button are still detected. See Supported AI apps.
In every case above the stored record is redacted: browser extension prompts and answers pass a server-side redaction before they are written to the activity log.
Claude
| Integration | What the AI receives |
|---|---|
| Claude plugin, prompts | Claude cannot rewrite a submitted prompt. By default a prompt that needs masking is held back and the user gets a protected version to send. With Send as written and record, Claude receives the prompt unchanged and AgentID only records it. |
| Claude plugin, tool calls | Calls that send data to a third party (web tools, MCP actions other than reads) are rewritten with placeholders. One exception keeps a connector working: an opaque identifier in an identifier field (such as file_id or cursor) that AgentID masked as an identity id is sent as it is, when the same value appears nowhere else in the call. A value AgentID masked as a secret, password or credential is never sent as it is, whatever the field is called. Each identifier sent as it is gets an activity log record with the count, the placeholder type and the field name, not the value. Shell commands and local tools are inspected and logged, never rewritten. |
| Claude plugin, tool results and documents | Masked before Claude sees them, with the same identifier exception as tool calls; supported documents are replaced with masked text copies before a tool reads them. |
| Claude Desktop companion, prompts | Held when the user sends, then submitted with placeholders. In Shadow Mode the Windows companion sends the prompt as typed. |
| Claude Desktop companion, files | Windows: files added with Add files or photos are replaced with a masked copy. Files dragged into the window are not protected. macOS: files dropped on Claude's window, pasted with Cmd+V or chosen with Upload or add files are attached unchanged when nothing needs masking, otherwise masked in their own format or as a masked text copy; files added another way are not checked. |
SDKs and API
| Integration | What the AI receives |
|---|---|
| Node.js SDK, Vercel AI SDK, Python SDK | The wrapper sends the masked text for the calls it wraps. Calls that are not wrapped, and earlier turns of a history that were never masked, reach the provider as they are. Each SDK page lists what it covers. |
| Guard API called directly | Whatever your code sends. Guard returns transformed_input; your application must send that text, not the original. |
Claude inference hook
The Claude inference hook cannot change a prompt. A prompt or tool call that AgentID would mask is denied before inference, with a masked version for the user to submit instead; in the hook's shadow mode it is let through unchanged and recorded.
The stored record
Independent of everything above, AgentID redacts personal data in the text it stores, and stores the originals only if you turn on encrypted storage. See What is logged and encrypted.