← All posts
· by Omnodex Team · 4 min read
agent-security credentials incident-anatomy

Your agent's history is a credential store

Cursor traced its November incident back to stored coding agent traces that still held credentials. Any record of what an agent did holds what the agent was handed, so Omnodex masks the credentials it recognizes before anything is written down.

A wall of agent shell history with a few live keys in it, and a magnifier showing one key masked

On November 13, Cursor published how its recent incident started. An access key Cursor had issued to Fireworks, one of its inference providers, was exposed, and an attacker used it to copy a read-only storage bucket. The bucket held coding agent traces, mostly from 2025, from sessions not in Privacy Mode. “A small number of those traces contained credentials that had not been redacted,” Cursor wrote; fewer than 0.01% of customers had API credentials exposed (Cursor).

Those credentials reached some of the SaaS tools Cursor uses internally, and from there the attacker got more. On October 29 a stolen credential let them put malicious copies of the Claude Code extension in Cursor’s extension marketplace cache. The copies were up for about 11 hours, and at most 5,000 users who requested those cached versions could have received them. Anthropic didn’t publish them, and Open VSX, the marketplace’s source, never had them. Cursor says the last attacker activity it saw, on November 1, was blocked.

The extension is the part that made headlines. The part worth sitting with is the first step: a record of what agents did turned out to be a store of the secrets they were handed.

Why agent history fills up with secrets

A coding agent works with whatever is in front of it. It runs curl with a bearer token in the header, connects to a database with a password in the URL, exports a key before running a script. Every system that keeps a history of those sessions keeps the secrets too, unless something takes them out first: the agent vendor’s traces, the inference provider’s logs, your terminal history, and any tool you run to watch your agents.

That last one includes us. Omnodex exists to keep a record of each tool call an agent makes, so the question applies to our record as much as anyone’s.

What Omnodex writes down instead

Since version 0.14.0, when a tool call carries a credential Omnodex recognizes (an API key, an access token, a bearer token, a password), Omnodex replaces it with a short marker before the event is written to your log, synced or streamed. The full value never reaches the log on disk, the hosted service or your browser.

The marker keeps the kind of credential, a few characters from each end and a fingerprint made with a key that stays on your machine. That’s enough for the credential ledger to group every call that used the same key, so you can still answer “where did this key go?” without the record holding the key. Detection runs on the call before it’s masked, so the findings don’t change.

On the hosted dashboard there’s a second layer. Activity is encrypted on your machine before it’s uploaded, with a key derived from your stream’s secret, and the service stores only ciphertext. A copy of our storage is not a copy of your sessions (how encryption works).

Try it

Masking is part of the free version and on by default. Install or upgrade, and new events are masked from then on:

npm install -g omnodex@latest
omnodex install claude-code
omnodex dashboard

The credential ledger in the local dashboard lists each credential your agents used, masked, with every call that carried it. If a vendor you use reports a trace or log exposure, that list is where your rotation plan starts. Where did your agent keys go? walks through it.

To see your sessions across machines, the hosted dashboard keeps them end-to-end encrypted: omnodex connect links a machine.

What it does not do

  • It only masks credentials Omnodex recognizes. A secret in a format it doesn’t know is recorded as it was.
  • Prompts, and the parameters of permission requests, are recorded as typed. A key pasted into a prompt is in the log. For MCP servers routed through the Omnodex proxy, redact_parameters keeps parameter values out entirely.
  • Events recorded before you upgraded stay as they were.
  • It covers our record only. Your agent vendor’s traces, your inference provider’s logs and your shell history are outside it, and so is whatever the agent sends elsewhere. For a vendor’s traces, its privacy settings are the control: Cursor’s Privacy Mode sessions weren’t in the bucket.
  • Encryption protects stored data from us and from anyone who copies our storage. It doesn’t protect a machine that is already compromised, where the key lives.

A key that was ever written down in plain text, anywhere, is worth rotating. Masking makes sure the next copy isn’t ours.

Details: how credentials are masked and the 0.14.0 release note.

Sources