AI Detection & Response (AIDR)

An LLM chat request is easy to secure: one prompt in, one answer out. An AI agent is a different problem. It chooses its own tools, reads content it was never meant to trust, holds credentials, calls MCP servers and APIs, touches the file system, and chains all of that into actions, often dozens of steps deep, with no human watching each one. Inspecting any single request in that chain tells you little; the risk lives in the sequence.

AI Detection & Response (AIDR) follows the agent for its whole run. It records what the agent does, judges each action in the context of what came before, and enforces your policy on prompts, answers, tool calls and the actions they trigger.

You set the policy in the dashboard under Edge, and you see the results under Activity, on the Dashboard and in Reports.

How it works

Diagram of Netzilo AIDR: on the left the Netzilo Server with the Edge objects Providers, MCP, Guardrails, Limits and Filters; endpoint filters go to the enforcement points on devices (the Netzilo client's proxy and coding-agent hooks, the SDK and the browser extension), gateway filters go to the Netzilo AI Gateway; verdict events, AI sessions and usage flow to Activity > Events, Activity > AI Sessions, kill chains, the Dashboard, Reports and Event Streaming

  1. You write guardrails. A guardrail is a detection rule in YAML. It can match one event, such as a card number in a prompt, or run a script over the agent's history, such as "loaded instructions from an unknown site, then read a credential file".
  2. Filters bind guardrails to the places they run. An Endpoint filter applies to devices (and browsers) in its groups. A Gateway filter applies to users in its groups when they call the Netzilo AI Gateway.
  3. An enforcement point evaluates every action against the guardrails that reach it, and allows, reports, redacts, blocks, or sends a prompt to another model.
  4. Everything is recorded as observations, attributed to the session that acted, and folded into a behavior graph. The Netzilo client and the AI Gateway also record each model call and MCP call, after the guardrails, into an AI session. Verdicts become AI events in Activity.

Two enforcement points

Netzilo client on a deviceNetzilo AI Gateway
What it governsWhat runs on the device: desktop AI apps, coding agents, agents built with the SDK, and AI in the browserWhat any agent sends to your LLM providers and MCP servers through the gateway
PolicyEndpoint filters: groups and operating systems, the Agents to intercept, guardrailsGateway filters: groups of users, model grants, limits, MCP servers, gateway addresses, guardrails
IdentityThe device and its userThe Netzilo user, from the token the agent sends or the calling peer
SeesPrompts, answers, tool calls, MCP calls, HTTP, and on the device also processes, files and connectionsPrompts, answers, tool calls and MCP calls; no processes or files
RecordsAI sessions of the device's agents and appsAI sessions of every user who calls the gateway
Best forManaged workstations and serversServers, CI jobs and devices you do not manage; budgets and model access for everyone

The two compose. The device sees everything a governed process does; the gateway sees every user's model and MCP traffic wherever the agent runs, holds the provider keys and the budgets, and is the only place that serves MCP servers. On developer workstations, use both.

Ways into the device engine

SurfaceHow it worksPage
TLS-inspecting proxy in the Netzilo clientSteers the traffic of the processes listed in an endpoint filter's Agents into the client's inspection, on Windows and macOSGeneral-Purpose Agents
Coding-agent hooksClaude Code, Codex CLI, Gemini CLI and OpenClaw ask the client before each tool call and prompt, so a block happens before the action runsCoding Agents
SDKThe client embedded in an agent you build, in Python or TypeScriptCustom Agents
Browser extensionChatGPT, claude.ai, Gemini and Perplexity in Chrome, Edge, Firefox and Safari, governed by endpoint filters that include BrowserBrowser Extension

The proxy, the hooks and the SDK need no change to how you run the agent, except the SDK, which you add to your agent's code. For the gateway, you point the agent's base URL at the gateway and give it the user's token, see AI Gateway.

Policy objects

Under Edge, in this order:

  • Providers: the LLM providers and models the gateway routes to.
  • MCP: MCP servers and bundles the gateway serves.
  • Guardrails: the detection rules.
  • Limits: spend, token and request quotas at the gateway.
  • Filters: bind all of it to groups, as endpoint or gateway filters.

Users find their gateways, models and MCP servers in the Workplace under Agentic Access.

The behavior graph

Every action an enforcement point sees becomes an observation, attributed to the session that performed it: one run of an agent, one browser tab, one process. Sessions know their parent, so the process an agent started belongs to the agent's run. From the observations Netzilo builds a behavior graph of sessions, programs, models, tools, hosts, skills and file activity.

Representing activity this way makes agentic threats detectable. A single credential read or a single upload is unremarkable on its own; a skill pulled from an untrusted source, followed by a credential read, followed by an upload to an unsanctioned destination is an attack. Scripted guardrails read that history before they decide, and when they fire they attach a kill chain: the ordered steps that led to the verdict.

The Behavior Graph dialog for a chatgpt.com browser session with user, browser, tab, program, device, URL and LLM nodes

See Behavior Graph & Kill Chains.

Governance as code

Guardrails are YAML: a Sigma detection with Netzilo actions, plus Starlark scripts for behavioral rules. They can be reviewed, version-controlled and tested like any other code.

Netzilo maintains an open library of AIDR rules at github.com/netzilo/aidr-sigma. In the dashboard, Edge > Guardrails > Add Guardrail can also turn a plain-language description of a threat into a rule with the AI Assistant, when a model is approved for Assistant under Artificial Intelligence. See Detection Rules.

Where the results show

  • Activity > AI Sessions: every recorded session, LLM and MCP, searchable, each with its trajectory, MCP calls and behavior graph. See AI Sessions.
  • Activity > Events, category AI Edge: AI blocked, AI redacted, AI redirected and AI detected, each with the agent, the model or tool, the rule and the filter. Allowed calls are not events; they are in the sessions. Session trajectory available rows open a new AI session; Session snapshot rows open a browser tab's behavior graph; events from scripted rules open their kill chain. See Events.
  • Dashboard > Agentic Activity: top teams, guardrails, agents, models, MCP servers and tools. Its window goes down to each team, person, agent, MCP client, server and tool, and to each AI session recorded on a device or the AI Gateway, with the session's trajectory, MCP calls, kill chains and behavior graph. See Dashboard.
  • Reports: AI Agent Activity for agents, models and violations, and AI Usage for recorded requests, tokens and cost (gateway and devices).
  • Event Streaming to your SIEM, see Event Streaming.

What to expect

  • Streamed answers are held back slightly. On every enforcement point, streamed answer text is released about 1 KB behind the model, so that a match can be redacted before it is shown. Long answers appear with a short delay.
  • Conversations are recorded after the guardrails. The client inspects on the device and the gateway on your gateway host. Both record each model call and MCP call into an AI session, with its prompts, answers, tool arguments and results as they passed your guardrails (redacted text stays redacted), and send them to the Netzilo Server, where administrators read them under Activity > AI Sessions. When a rule matches, its event also carries the content that matched, so the dashboard can show why.
  • Some applications cannot be inspected. Applications that pin certificates or require mutual TLS break under inspection; remove them from the filter's Agents.

Demos

How-to videos

One video per enforcement point, each about two minutes. The whole series is on Video How-To Guides.

Browser · 1:47

Govern ChatGPT and Claude in the browser

Redact a customer ticket and block a private key in ChatGPT and claude.ai, with only the extension installed.

Read: Browser Extension →YouTube ↗

Endpoint · 1:30

Govern every AI tool on a laptop

Claude Code and a homemade script with a personal API key get the same guardrails, on the device itself.

Read: Coding Agents →YouTube ↗

Your agents · 1:28

Govern the agents you build, from the inside

Two lines of the Netzilo SDK put an agent under the guardrails, with its processes and files in its session.

Read: Custom Agents →YouTube ↗