Shadow AI Discovery
Shadow AI is the usage an organization cannot see: an employee pasting a customer list into a public chatbot from a managed laptop. It does not appear in gateway logs, because it never went through the gateway. AgentWatch closes that gap.
What is the shadow AI problem?
Section titled “What is the shadow AI problem?”Public AI assistants are reached directly over the browser, so they bypass any API gateway an organization has deployed. The result is that the most sensitive AI usage in the company is often the least visible: no record of what was shared, no policy applied, no attribution to a person, and no evidence for a regulator asking whether customer data left the environment.
How does AgentWatch discover it?
Section titled “How does AgentWatch discover it?”Through a lightweight endpoint agent deployed to managed devices, shipped as signed installers for macOS, Windows, and Linux and running as a managed system service. On the device it inspects traffic destined for known public AI services and reports it to the central gateway. Crucially, this works without requiring a corporate proxy — the usual blocker on shadow-AI visibility for remote and hybrid workforces, where traffic never traverses the corporate network.
For environments that do route traffic centrally, network-level steering is also supported, and AgentWatch integrates with existing corporate proxies and CASBs such as Zscaler and Netskope.
What does it show you?
Section titled “What does it show you?”- Which public AI tools are in use, across the managed fleet.
- Who is using them, mapped to an employee identity and a device.
- What is being shared — including risky document uploads — with the same DLP categories used on gateway traffic.
- Full conversation records where policy permits, subject to DLP redaction.
- Fleet health, so you know which devices are covered and which are not.
Which AI tools are detected, and which are captured?
Section titled “Which AI tools are detected, and which are captured?”Two different things, and AgentWatch keeps them apart. Detected means AgentWatch knows a machine used the tool: hostname, how often, which machines and people. Captured means the conversation itself is recorded and DLP and guardrails apply to it. From AgentWatch 2.0.415 with Connect 1.0.174, every tool below is detected on every endpoint by default, and capture is switched on only for tools whose traffic has been verified through Connect. A tool’s name alone never turns capture on: decrypting a tool that has not been tested can break it for every user at once.
See it under Observe → Fleet, in the AI tools used on your endpoints panel. It has one row per tool, with how many endpoints and people used it, the hosts seen, and whether your organization captures it. If a tool is not captured, the panel says why.
| Tool | Detected | Captured by default |
|---|---|---|
| ChatGPT, Claude, Gemini, AI Studio, Mistral, DeepSeek, Poe, Phind, Hugging Face chat | Yes | Yes |
| Perplexity | Yes (www.perplexity.ai is reported from Connect 1.0.189; earlier versions missed it) |
No. The built-in perplexity.ai only redirects to www.perplexity.ai, where the chat runs, and that host is not tracked by default because it has not yet been verified through Connect. To capture it, add www.perplexity.ai in Tracked Domains |
| OpenAI, Anthropic, Gemini, Mistral, DeepSeek, Cohere, Groq, OpenRouter, Together, Fireworks APIs | Yes | Yes |
| GitHub Copilot (VS Code, JetBrains, Visual Studio, Copilot CLI) | Yes | Yes, from 2.0.415 with Connect 1.0.174: chat and agent requests. Inline code completions are not captured |
Microsoft 365 Copilot and Microsoft Copilot (copilot.com) |
Yes | Yes, from 2.0.416 with Connect 1.0.185: each turn from the ChatHub WebSocket on substrate.office.com. Outlook on the same host is relayed and never recorded |
Google Antigravity / Gemini Code Assist (cloudcode-pa.googleapis.com) |
Yes | Yes, from 2.0.416: chat calls, with Google’s own token counts. From 2.0.419 each request is one row in Usage Insights however many steps the agent took (tokens summed, every tool call listed), the row shows the model the person picked and Code Assistance as the use case, and the setup calls Antigravity repeats every few minutes are not recorded, in Log only too. Restart Antigravity after capture is turned on: connections it already holds keep going direct |
| Cursor (agent and chat) | Yes | Yes, from 2.0.416 with Connect 1.0.185: each agent turn from wss://api2.cursor.sh/agent/v1/run, with the tools it ran |
| Windsurf (now shipped as Devin.app) | Yes | Not yet. Cascade chats go from Windsurf’s language server to server.self-serve.windsurf.com (server.codeium.com on older installs), not over the app.devin.ai socket Connect reads, so nothing is recorded by default. Connect 1.0.189 can read them on its gRPC listener, switched on per computer with AGENTWATCH_WINDSURF_CAPTURE=1 while it is verified |
| Codex in Xcode and other Responses-API WebSocket clients | Yes | Yes, from 2.0.416 with Connect 1.0.185 (api.openai.com/v1/responses) |
| xAI Grok (grok.com) and Meta AI (meta.ai) | Yes | Yes, from 2.0.416 with Connect 1.0.185: each turn from their WebSockets (grok.com/ws/mgw, gateway.meta.ai/ws/clippy) |
| Tabnine, JetBrains AI, Amazon Q Developer | Yes | No: not yet verified through Connect |
| Qwen, Kimi, Zhipu GLM, Character.AI, LMArena | Yes | No. Qwen and Kimi refuse or change their pages when AgentWatch’s server fetches them; they need to be fetched from the endpoint |
| Azure OpenAI, Amazon Bedrock, Google Vertex AI (any region) | Yes | Vertex us-central1 / europe-west1 only; the others no |
| v0, Bolt, Lovable, Midjourney, ElevenLabs, Jasper, Copy.ai, Writesonic | Yes | Jasper, Copy.ai and Writesonic yes; the others no |
What each captured turn shows. Every captured coding agent records the same figures as a Claude Code session: in Usage Insights → Chat History each turn of a session shows the model, input and output tokens, cached input tokens, time and stop reason, for example gemini-3.8-flash · 9,000 in / 40 out · 8,192 cached · 17.6 s · stop: STOP. A figure appears when the tool reports it: the stop reason is the tool’s own word (end_turn, STOP, tool_calls), and a tool that reports no cache use shows no cached figure. Antigravity, Gemini Code Assist, GitHub Copilot, Codex, Cursor and Windsurf rows are the Code Assistance use case and carry the agent_client and agent_run_id tags, as Claude Code rows do. This needs AgentWatch 2.0.421, and Connect 1.0.189 for the tools Connect reads itself (Cursor, Windsurf, Grok, Meta AI, Microsoft Copilot, Codex in Xcode).
What detection collects. Only hostnames of services that are AI and nothing else, with counts. Mixed-use hosts are deliberately not on the list: substrate.office.com carries Outlook and search as well as M365 Copilot, and github.com is GitHub. Listing them would report every Outlook or GitHub user as an AI user. No URL, path or content is sent, and the sensitive categories below are never reported.
How detection works, per operating system. Connect reads the hostnames the machine looks up, without changing anything on it. It doesn’t redirect, block or decrypt anything to do this:
| OS | Source | Requirement |
|---|---|---|
| Windows | The Windows DNS Client cache, read once a minute | None: Connect’s service runs as LocalSystem |
| macOS | tcpdump on DNS (port 53), on every interface |
None: Connect’s service runs as root |
| Linux | tcpdump on DNS (port 53); resolvectl monitor for a root install without tcpdump |
tcpdump installed (Ubuntu Server includes it). A regular-user service needs CAP_NET_RAW, which the 1.0.174 installer grants |
Tools Connect already captures, such as ChatGPT or GitHub Copilot, are counted from the traffic Connect relays rather than from DNS. Connect looks those hosts up itself, so a DNS lookup would not prove the person used them.
Limits. A browser that uses its own encrypted DNS (DNS over HTTPS) bypasses all three sources, so a tool used only in such a browser may not be listed. On Linux, a service installed by a regular user before 1.0.174 lacks CAP_NET_RAW; re-run the installer one-liner to grant it. The panel says how many endpoints are running detection and how many are not, and why. An endpoint that is not running detection reports no tools, which means nothing was watched there, not that nothing was used.
Capturing a tool that is detected only. In Agent Fleet → Tracked Domains, click Add Tracked Domain and add the host with Domain type set to Web & Chat. Then check one real conversation in Usage Insights before rolling it out widely. If the tool rejects the Connect certificate or stops working, remove the domain again.
Organizations that already saved a tracked-domain list get the GitHub Copilot hosts added to it automatically. To opt out, disable the four *.githubcopilot.com entries rather than deleting them: a disabled entry stays disabled, while a deleted one is added back.
What a refused prompt looks like. DLP checks each prompt before it leaves the computer, and a refused prompt is never sent. Microsoft Copilot shows the reason as its answer. Codex and Windsurf receive an error for that turn. Cursor, Grok and Meta AI show the turn as failed, without the reason; the refusal is in the audit trail.
After adding a site, a browser that already has a connection open to it keeps using that connection until the browser restarts or the connection closes. Restart the browser, or wait, before checking that the site is captured.
Can I see every host an endpoint talks to, not just the AI ones?
Section titled “Can I see every host an endpoint talks to, not just the AI ones?”Yes, from 2.0.302, and it is off until you switch it on.
By default an endpoint only reports hosts that already look like AI — a known vendor, or a name suggestive enough to be worth sampling. Anything else is discarded on the machine and never sent. That keeps the data minimal, but it means a tool on a neutral domain is invisible: if the hostname gives nothing away, nobody learns the machine contacted it. Tools like LM Studio, Antigravity or an in-house endpoint on a plain corporate domain fall in exactly that gap.
Turn on host inventory. In Settings → Compliance, tick Shadow AI host inventory. Endpoints then report every host they resolve. View it under Observe → Fleet, in the Endpoint host inventory panel: hostname, how many lookups, how many distinct endpoints saw it, when it was last seen, and whether it is already being captured.
What is and is not collected
| Collected | Hostnames and counts — api.example.com, seen 40 times, on 3 endpoints |
| Not collected | URLs, paths, query strings, headers, request or response content |
| Never collected | Well-known banking, health, government and adult sites, every .gov and .mil site, plus any host you add — excluded on the endpoint and never transmitted, and excluded again by the gateway |
That last row is the important one. The exclusion happens before the hostname
leaves the machine, so “we never saw it” describes what was collected, not what
we chose to keep. The built-in list names well-known sites (for example
chase.com, hsbc.com, mayoclinic.org, gov.uk); it is not every bank or
clinic in the world. Add your local ones, such as a national bank or health
service. You can extend the list with your own hosts (for example
payroll.acme.internal) in the same panel; matching is on label boundaries, so
acme.com covers hr.acme.com but not notacme.com.
Finding tools whose domain tells you nothing. Inventory shows you that a host was contacted, not what it is. Also identify tools by traffic shape goes further: unknown hosts are briefly sampled to see whether their traffic looks like an LLM API, and anything that does is promoted to full capture automatically.
⚠ This has a real cost, so it is a separate switch. Sampling briefly routes a host through the local proxy. An application that pins its TLS certificate will fail for that moment — once. The result is remembered on disk, so the host is never sampled again, including after a restart or reboot. Sensitive categories are never sampled at all. If you support users who cannot tolerate a single failed request in a pinned app, leave this off and promote hosts from the inventory by hand instead.
Then capture what matters. A host in the inventory is only observed. Once you decide a host is an AI tool, promoting it to full capture gives you the thing inventory deliberately does not: URLs, prompts, responses, DLP and guardrail enforcement — and it appears in Usage Insights like any other gateway traffic.
Why can’t it just capture everything?
Section titled “Why can’t it just capture everything?”Because interception is per-host by design, and the two ways of doing it both have hard limits.
Redirect-based capture rewrites name resolution for hosts AgentWatch knows about; there is no wildcard for “every host”, and there could not be one that behaves safely. Capturing all TLS on a machine would break every application that pins its certificate — banking apps, chat clients, many installers and updaters — and would decrypt personal traffic that has nothing to do with work.
So the model is deliberately two-stage: see everything (hostnames, no decryption, sensitive categories excluded), then capture deliberately (per host, with full content). Inventory plus shape detection is what closes the gap that “capture everything” was reaching for, without the collateral damage.
How do I see every domain one computer talks to, and how much data?
Section titled “How do I see every domain one computer talks to, and how much data?”Open Agent Fleet, find the computer, and click 🌐 Domains & traffic. Use the All domains tab next to Computers for every computer at once. If the dialog says traffic per domain is off, click Turn on traffic per domain; it is the same switch as the host inventory above.
The top of the dialog counts the hosts, the AI tools seen, what is captured (enforced and log only), and the AI tools that are not captured. Tabs narrow the list to AI hosts, Captured or Not captured. On All, hosts are grouped: captured first, then AI tools that are not captured, then everything else. An AI host is labelled with its tool (for example AI · ChatGPT), from the same catalogue as AI tools used on your endpoints. Your own AgentWatch server is labelled Your AgentWatch and is never offered for capture: capturing it would send its own traffic back through itself, and the server refuses it.
Each row is one host:
| Column | Meaning |
|---|---|
| Host · apps | The host, its AI tool when it is one, and the programs that used it (macOS, and Linux when visible). In the All domains view: how many computers |
| Received / Sent | Bytes since the host was first seen on that computer. A host not seen for 30 days drops off. Shown as — where no computer measured bytes (Windows, see below) |
| Connections | Connections opened to the host; “relayed” counts the requests AgentWatch Connect relayed for a captured host |
| Last seen | The last reading that included the host |
| Capture | Enforced or Log only, on this computer or on all computers; or Not captured |
Nothing is decrypted to collect this. Connect (1.0.176 or later) reads the operating system’s own per-connection counters every 10 seconds (30 on Windows) and matches each address to the hostname the computer looked up. On Linux, Connect 1.0.188 or later also reads each connection’s final totals at the moment it closes, so its counts are exact.
| Platform | Source | Bytes |
|---|---|---|
| macOS | nettop (TCP and UDP) |
Yes, approximate: the bytes after a connection’s last reading are missed |
| Linux | ss (TCP, from iproute2); the computer shows ss-events from 1.0.188 |
Yes, exact from 1.0.188; approximate before |
| Linux without iproute2 | /proc/net/tcp |
No; connections only |
| Windows | Get-NetTCPConnection |
No; connections only |
Capture from the list. An uncaptured host has a Capture ▾ menu: Log only or Enforce, on this computer or on all computers (“all” adds it to Tracked Domains). A captured host has Change ▾ instead: switch between Log only and Enforce, move it to all computers, or Stop capturing on this computer. Every choice asks for confirmation first. Computers pick the change up within about a minute. An all-computers capture is stopped by disabling it in Tracked Domains.
| Symptom | Cause | Fix |
|---|---|---|
| “No report yet from this computer” | It runs Connect older than 1.0.176 | Update Connect |
| The computer shows not recorded in Agent Fleet, and its chats never reach Usage Insights | Its Connect key and user match no employee in any workspace: the email is not an account here, or Connect was set up by hand with no key | Run Finish setup from the enrollment portal and sign in. A super admin or admin who has no employee record gets one at that point, in their own workspace (2.0.415). An email that is not an account on this server must be added first |
| Large “unresolved” total | A browser uses its own encrypted DNS, so its lookups are invisible | Expected; turn off the browser’s secure DNS on managed computers to name them |
| A host you expect is missing | Its connection opened and closed between two readings (macOS, Windows, or Linux before Connect 1.0.188), it is in an excluded category, or (Windows) its name was not yet in the DNS cache when the connection was read | Update Linux computers to 1.0.188 for exact counts; elsewhere totals are approximate. Excluded categories are never collected |
| A computer-only capture says not applied | An all-computers entry in Tracked Domains exists for the same host, and it decides the host on every computer | Remove one of the two; the all-computers entry wins |
| Capture failed: CANNOT_CAPTURE_GATEWAY | The host is this AgentWatch server | Expected; its traffic is already AgentWatch’s own |
| Tracked Domains save says CANNOT_CAPTURE_GATEWAY | The list contains this AgentWatch server’s own host, enabled | Remove or disable that entry. It is never sent to Connect either way |
POST /api/admin/agent-fleet/tracked-domains answers 400 INVALID_TRACKED_DOMAIN |
An entry has no valid domain, or its category is missing or not api / web. The answer’s rejected list names each one |
Fix the entry and send the list again. Nothing was saved. Before this check such an entry was dropped silently while the save reported success |
Can I record a host’s traffic without enforcing anything on it?
Section titled “Can I record a host’s traffic without enforcing anything on it?”Yes. Add the host in Agent Fleet → Tracked Domains (or edit an existing entry) and set Policy to Log only. Any hostname is accepted, AI or not.
| Enforce policies (default) | Log only | |
|---|---|---|
| Requests recorded | Chat turns | Every request that sends data (POST, PUT, PATCH, DELETE) |
| DLP | Blocks or redacts per your policy | Scans and notes findings on the row; never blocks or redacts |
| Budgets, corporate-account rule, bandwidth limit | Apply | Never applied |
| Usage Insights row | Model and tokens of the chat | Model web-traffic, tag capture_mode=log-only, 0 tokens, $0 |
Before anything is stored, the values of password, passcode, token, API key,
authorization, auth, bearer, private key, access key, JWT, cookie, session
id, PIN and card-number fields are replaced with [REDACTED], at any depth and
in form fields, and the PII scrubber runs over the request and response.
Fields such as author or authority are kept.
To confirm it is working, send a form or API call to the host from an enrolled
computer, then open Usage Insights → Audit Trail and filter by the tag
capture_mode = log-only. Each request appears as a row whose host is the
one you added.
| Symptom | Cause | Fix |
|---|---|---|
| No rows | Only data-sending requests are recorded; browsing a site produces GETs | Submit a form or make an API call |
| No rows after saving | Agents read the list about once a minute | Wait a minute and retry |
| The site or app fails on that computer | It pins its certificate, so decryption breaks it | Remove the host; use the host inventory (above) to see it by name instead |
Log only still decrypts the host, so the reasons under “Why can’t it just capture everything?” apply to each host you add. Add hosts deliberately.
Can policy be enforced, not just observed?
Section titled “Can policy be enforced, not just observed?”Yes. Captured traffic runs through the same DLP, guardrail, and audit pipeline as API traffic, so sensitive uploads can be blocked or redacted rather than merely recorded. AgentWatch also supports an account identity policy: administrators define which AI accounts employees may use on managed devices — a corporate account rather than a personal one, for example — with dry-run testing of a policy before enforcement, an exemption list for legitimate cases, and a decision log of every enforcement outcome.
How is the endpoint fleet managed?
Section titled “How is the endpoint fleet managed?”Devices enroll through a token exchange and then check in on a heartbeat carrying version and health. Administrators can list enrolled devices, view coverage and version distribution on a fleet health view, send actions (restart, update, disconnect), deauthorize a device, and apply bandwidth limits. Devices authenticate to the gateway with their enrolled credentials over TLS; certificate-based agent authentication can optionally be required on the server (AGENT_MTLS_ENABLED).
Does it work for servers and containers too?
Section titled “Does it work for servers and containers too?”Yes. The same agent runs in a sidecar mode designed for Kubernetes pods and Linux virtual machines, exposing explicit proxy endpoints that workloads opt into — used for governing AI traffic from applications rather than from people. It reports Kubernetes node, pod, and namespace context, and fails open, so a workload never blocks on AgentWatch being reachable. See Agent fleet and insider risk.
How do I roll this out?
Section titled “How do I roll this out?”Do it in the order below; each step stands alone, and you can stop after any one of them and still have gained something.
- Pilot on a handful of devices. Install the agent (see endpoint enrollment) on a few laptops, including one of your own.
- Observe only, first. Leave DLP in warn for this traffic. Let a week of real usage accumulate before you enforce anything — the list of tools in use is usually the surprising part, and it is the argument for the rollout.
- Turn on content inspection once the certificate trust is confirmed on the pilot devices.
- Enforce, starting with the one category you care most about (usually secrets or customer PII) rather than everything at once.
- Widen to the fleet by MDM.
How do I confirm it is actually capturing?
Section titled “How do I confirm it is actually capturing?”On a pilot device, open a public AI assistant in a browser and send a harmless message. Within seconds it should appear in Usage Insights attributed to that employee, with the tool identified.
If it does not, the fastest discriminator is whether you see nothing at all or traffic with no user:
| What you see | Cause | Fix |
|---|---|---|
| Nothing at all | Interception is off, or the trust anchor is missing | agentwatch-connect status on the device; re-run the installer elevated |
| Traffic, no user | The device has no identity, or the address is unknown here | Set the enrollment identity, or enable Auto Create Users |
| Traffic attributed to the organization only | DNS steering with no agent | Install the agent for per-person attribution |
| A tool you expected, missing | Not in the known-services list, or it uses a transport that is not steered | Check discovery; some clients use WebSocket transports that are deliberately not redirected |
What can I do about what I find?
Section titled “What can I do about what I find?”The same policy engine as the API path: warn, redact or block, per category. A sensible first enforcement is to block secrets outbound to public assistants while leaving everything else advisory — it is the finding that most often justifies the programme, and the least likely to generate complaints.
Personal accounts are a genuine limit worth stating to stakeholders up front: activity from an address that does not exist in your directory cannot be mapped to an employee, though it is still visible, still policy-checked, and still attributed to the device.
Sources and references
Section titled “Sources and references”- Policy engines applied to captured traffic: Data protection and guardrails.
- Fleet deployment options: Deployment.