Get the daily emailDaily email
  1. Home
  2. Agents
  3. This story

Stroq: a local audit and guard for what coding agents did with your keys

Stroq is an Apache-2.0 tool that reads local Claude Code, Codex and Cursor sessions to show which commands came from text the agent read and which secrets left the machine, printing key names but never values. It can also install native hooks that deny risky…

Published Read the original
Stroq: a local audit and guard for what coding agents did with your keys

Why it matters

Prompt injection and credential leaks through coding agents are real risks, and this lets you audit past sessions without installing hooks.

What happened

1 min read

Stroq is an Apache-2.0 tool that reads local Claude Code, Codex and Cursor sessions to show which commands came from text the agent read and which secrets left the machine, printing key names but never values. It can also install native hooks that deny risky calls like curl | sh or outbound requests carrying known secrets, and ask before running commands that repeat text from tool output.

inscraper analysis

Our analysis

The replay and sent commands, which check past sessions without hooks, are the cheapest place to start. The docs candidly say matching is text-level, it is "a filter, not a sandbox", and keys that leave via a script or variable can be missed. The 36-attack result (0 passing) is the author's own test. It is a young project (0.30) that reads your credential files, so review the code before trusting it on a work machine; it overlaps with the permission and sandbox features agents already ship.

More in Agents