🔒 Introducing Self-Improving Security in Beacon Cloud
← Back to blog
Beacon update

Introducing LLM Gateway Telemetry in Beacon

Beacon, our open-source telemetry layer for AI agents, now integrates with LiteLLM, Envoy Gateway, Istio, and Portkey, normalizing gateway traffic into our unified agent telemetry schema.

From model requests to agent activity

LLM gateways already see much of what AI agents do, but their logs are structured around model requests rather than agent behavior. Extracting shell commands, file reads, and MCP calls from those logs requires custom parsing for each harness.

Beacon handles this normalization out of the box, without requiring teams to build and maintain their own parsers or detection infrastructure.

What this unlocks:

  • Agentless visibility: Collect telemetry from contractor machines, CI runners, and hosted sandboxes without endpoint deployments.
  • Unified telemetry: Bring gateway, endpoint, browser, and cloud agent activity into a single event schema.
  • Built-in threat detection: Detect prompt injections, risky shell commands, and suspicious MCP activity from model traffic.
  • Centralized enforcement: Block risky tool calls at the gateway with Asymptote’s enterprise platform.
CapabilityLLM gateway aloneLLM gateway + Beacon
Model requests and responses✓✓
Token usage and spend✓✓
Raw tool calls and results✓✓
Harness-aware event normalizationVaries✓
Unified shell, file, and MCP event schemaVaries✓
Shared schema with endpoint, browser, and cloud telemetryNot supported natively✓
Agent-specific threat detection libraryVaries✓
Cross-harness agent security policiesVaries✓Asymptote’s enterprise platform

Collecting from the gateway

Enterprises already use gateways like LiteLLM, Envoy Gateway, Istio, and Portkey to route model traffic, manage access, and monitor usage. For teams running AI agents, these gateways also provide a central point for telemetry collection.

Developer laptopNothing installed
Contractor laptopNothing installed
CI runnerNothing installed
Hosted sandboxNothing installed
LLM gatewayLiteLLM · Envoy · Istio · Portkey
every call
Beacon sidecarturns each call into events
Model providersAnthropic, OpenAI and more
events.jsonlon your infrastructure
{"action":"mcp.tool_listed","harness":"codex_cli","user":"sandbox@acme.dev"}
{"action":"file.read","harness":"claude_code","user":"ana@acme.dev"}
{"action":"token.usage","harness":"codex_cli","user":"lee@acme.dev"}
{"action":"session.context","harness":"claude_code","user":"ci@acme.dev"}
{"action":"tool.completed","harness":"codex_cli","user":"sandbox@acme.dev"}
{"action":"session.context","harness":"claude_code","user":"ci@acme.dev"}
{"action":"tool.completed","harness":"codex_cli","user":"sandbox@acme.dev"}
Agents send their model calls through the gateway wherever they run, with nothing installed on the machine.

Beacon runs alongside your LLM gateway as an open-source sidecar, using existing gateway hooks to capture and normalize model traffic into Beacon’s unified event schema.

Setup requires just a few lines of configuration, with no changes to developers’ existing URLs, API keys, or workflows. Instructions for each supported gateway are available in the docs.

What goes to the model

Model requests contain conversation context, including system prompts, available tools, user messages, and tool results. This gives the gateway visibility into security-sensitive activity, such as credentials returned by a file read or a malicious instruction embedded in a web page.

Beacon extracts only new events from each request, avoiding duplicate telemetry as conversations grow.

Gateway visibility is limited to the context sent to the model. A file the agent opens without passing its contents to the model, or work done on the machine that never reaches a prompt, doesn’t cross the gateway.

Request · agent → modelBeacon event
Reply · model → agentBeacon event
Each part of a call becomes a Beacon event, the same kinds the endpoint collector writes.

Beacon also inspects tool results for indirect prompt injection, including malicious instructions embedded in web pages, files, and MCP responses.

Beacon attributes each event to a user and an agent harness. User identity comes from gateway metadata, such as a LiteLLM virtual key, while the harness is identified from the client making the request.

Detecting threats before execution

The model’s reply can contain the agent’s next requested action, and the gateway sees that reply on its way to the agent.

Shell
Agent
Gateway + Beacon
Model
request · conversation + tool results
tool_use Bash: curl … | sh
Beacon at the gatewaycommand.executed · requestedcurl-pipe-to-shell · high
01Open sourceRecordedWritten to the log as the reply passes through.
reply passes on unchanged
runs it, unless the user declines
$ curl … | sh
02Enterprise platformBlockedStopped before the agent gets it.
beacon-gateway: curl-pipe-to-shell: …
idle · nothing runs
The open-source build records the requested command as the reply passes. Asymptote’s enterprise platform stops it before the agent gets it.

Beacon records the command the moment the model asks for it, before the agent runs it. Shell commands, file reads and MCP calls become the kinds of events the endpoint collector writes, so the same threat rules apply, even on machines without Beacon installed.

The sidecar is MIT-licensed. Asymptote’s enterprise platform adds inline policy enforcement, evaluating model responses before they reach the agent.

Policies are enforced centrally at the gateway, without requiring separate enforcement integrations for each supported harness.

Deployment and performance

The open-source sidecar runs entirely within your infrastructure. Telemetry is written locally for ingestion by your existing log shipper or SIEM, and no data is sent to Asymptote. Events go through the same secret redaction as Beacon’s endpoint collection, and a metadata-only mode records the person, the agent, the command and the file, without prompts, replies or tool output.

The open-source sidecar answers the gateway as soon as it admits a call and analyzes afterwards. Asymptote’s enterprise platform evaluates security policies inline before allowing model traffic to proceed. We measured both in load tests:

Results
Added latency, open sourceAbout 1 ms (analysis runs after the gateway is answered)
Analysis time, enterpriseAbout 0.1 ms for a typical request, before answering
ThroughputAbout 5,800 model round trips a second (about 11,600 sidecar calls)
p99 latencyAbout 1.1 ms
Peak memory97 MB
Test setup
Sidecar2 vCPUs and 512 MiB, in its own cgroup
Load generatorBeacon’s stress tool, sharing the sidecar’s network namespace, like a pod sidecar
TrafficMixed LiteLLM, Portkey and Envoy Gateway calls
AnalysisA no-op analyzer running inline, so every verdict waited for analysis
Round tripTwo sidecar calls: one for the request, one for the reply

Gateway, endpoint, or both

The gateway covers every supported agent that routes its model traffic through it, without touching a laptop. The endpoint covers what happens on a managed machine: the approvals an agent was given, the hooks that ran, the files it wrote outside a tool call. A gateway sees a model ask for a command, and an endpoint sees the command run.

CapabilityGatewayEndpoint
Software on each machineNoneRequired
Agents with no endpoint integrationYesNo
Model requests and responsesYesPer agent
Requested tool actionsYesYes
Commands confirmed to runLimitedYes
Local file changes and approvalsLimitedYes
Visibility outside the LLM gatewayNoYes

Gateway and endpoint collectors can run independently or together. Both use the same event schema, detection rules, and SIEM integrations, and Beacon can correlate model calls observed by both collectors.

One schema, wherever agents run

Beacon now collects telemetry from coding agents, browsers, agent SDKs, CI pipelines, cloud environments, and LLM gateways.

All integrations use the same open event schema, so teams can expand their coverage without rebuilding their detection rules, SIEM integrations, or security workflows.

[ Where agents run ]
Coding agentsClaude Code, Codex, Cursor, Gemini CLI…
Browser chatsClaude, ChatGPT
Agent SDKsAnthropic, OpenAI, Vercel AI SDK
CI runs
Cloud agentsClaude Code, Cursor, Devin
LLM gatewaysNewLiteLLM, Envoy, Istio, Portkey
[ Beacon · open source ]One schema
  1. 01Collect
  2. 02Normalize
  3. 03Redact
  4. 04Detect
runtime JSONL · your storage
SIEMSplunk, Microsoft Sentinel, Elastic, Datadog, CrowdStrike Falcon…
Object storageS3, GCS
Local JSONL
Asymptote platformoptional
The gateway is one more source. All of them land in one schema, written as JSONL to storage you control.

Deploy Beacon at the gateway, on endpoints, or both. Use Asymptote’s enterprise platform to enforce security policies across supported agents in real time.