Skip to main content
Version: 1.16.0-dev

Find AI calls that skipped the gateway

DVARA, the AI gateway, governs the calls sent to it. A script, an agent or a browser that calls a model provider directly never reaches it, so the gateway cannot audit, check or bill that call. Your proxy and DNS servers already log those calls. The Shadow AI page reads one of those logs and lists each call to a known AI service that skipped the gateway.

Enterprise only, from 1.14.0

Not included in DVARA Open Source. Open Governance → Shadow AI. Only the platform roles that set policy, owner and policy-admin, see the page. billing-admin and every workspace role are refused. See the role-access matrix.

The page reads the log you upload once, shows the report, and stores nothing. It touches no traffic and looks nothing up: a host is taken as the log wrote it.

Upload a log​

  1. Open Governance → Shadow AI.
  2. Choose the Log format.
  3. Choose a Log file (up to 20 MB), or paste the log under Or paste the log.
  4. Under Gateway addresses, enter the addresses your gateways call providers from and the name clients call the gateway by, separated by commas or new lines: for example 10.1.0.0/16, dvara.example.com. You can enter IP addresses, IPv4 CIDR blocks or host names, up to 20. A URL is cut down to its host.
  5. Click Find shadow AI.

Without gateway addresses, every AI call in the log counts as shadow.

FormatWhat it reads
CSV with a header rowColumns are found by name, in any order. A client column (source, src, src_ip, source_ip, client, client_ip or user) and a destination column (host, domain, dest_host, dst_host, destination, query, qname, sni, server_name or url) are required. A time column (time, timestamp, ts, date) and a size column (bytes, bytes_out, sent_bytes, size) are optional. The destination can be a URL or host:port.
Squid access.logSquid's native log format. A CONNECT line names host:443.
DNS query logA BIND query log or a dnsmasq log. A DNS query is not a request: it shows the client was about to call the host.

A CSV whose header names no client or no destination column is refused. So is a log with no line DVARA can read in the format you chose. Lines it cannot read are skipped and counted.

Cut a large log down first​

A day of a busy proxy is larger than 20 MB. Download the list of AI hosts with the ai-hosts.txt link on the page, then keep only the lines that name one:

grep -F -f ai-hosts.txt access.log > ai-only.log

Upload ai-only.log.

Read the report​

The top of the report gives four counts: AI calls that skipped the gateway, the clients that made them, AI calls the gateway made, and calls to the gateway. It also says how many lines were read and how many could not be.

By service lists each known AI service in the log, model APIs and chat apps, with its calls that skipped the gateway, its clients and its calls through the gateway. What to do says, for each one:

  • Route it through the gateway, naming the DVARA provider type that can carry it, when the gateway has an adapter for the service.
  • Decide whether to allow it at the proxy, for a chat app.
  • Block it at the proxy or ask for an adapter, when the gateway has none.

By client lists each client and host pair: Shadow or Governed, the service, the number of calls, the bytes when the log has them, and when the pair was first and last seen. A call from a gateway address is governed. A client that calls the gateway and also calls a provider directly is marked Also uses the gateway. Only the first 2,000 pairs are listed; the counts above are always complete.

What is recorded​

Each report writes a SHADOW_AI_LOG_REVIEWED audit event with the user, the format, the line, call and client counts, the number of gateway addresses, and up to 50 services with their shadow call counts. It never holds a client address, because an address can name a person. A log that cannot be read is refused and writes no event.

Limits​

  • It reads what you upload. The page does not watch the network. Upload a new log to see new calls.
  • Known services only. A host that is not on the list of AI hosts is not counted. Download ai-hosts.txt to see the list.
  • It does not block. To stop direct calls, block the hosts at your proxy or firewall, and send the traffic through the gateway.