2026-11-26 15:47 UTC

Stroq releases an open-source tool that scans live Claude Code, Codex, and Cursor sessions for secrets and guards future sessions with local hooks tracing risky commands to their source.

state: significantheat: lowuncertainty: mediumrelevance: highagent-security secret-scanning session-monitoring coding-agentsAGGIB

Why it matters

The tool addresses a consequential risk as coding agents gain access to credentials and can execute commands. Its local scanning and prevention approach could help developers, but reliability and coverage remain unverified independently.

Current assessment

Stroq’s public GitHub repository describes an Apache-2.0, local-first tool that scans recorded Claude Code, Codex CLI and Cursor sessions for known credential values and offers hooks to guard some future actions. Its documented limits remain important: coverage depends on local records, known values, and host/version/channel support; a transcript match alone does not prove a secret reached a model provider. The project’s attack-replay and coverage claims have no independent testing or meaningful uptake evidenced here. A later Show HN thread attracted more engagement but provides no new validation. Ranwhat is a separate project addressing adjacent risks, not corroboration of Stroq. Practical reliability, protection breadth and adoption remain unresolved.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 2017h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

09-03 14:00⭐ origin echo-reconstructedThe repo is the original artifact being launched. README/About: "Find known secrets in your AI coding agent sessions (Claude Code, Codex, Cu
Agybay Gibatollayev (GitHub: AGGIB, HN: agybay_07) on github (echo) · attributed from hn.story.50074883
—
10-13 16:56first on hacker news · published · +962.9hShow HN: Check your Claude Code, Codex and Cursor sessions for secrets
agybay_07
—
10-13 16:56amplified on hacker newshn.story.50074883
agybay_07
peak 1 · 1 comments · 2% of case engagement
10-26 15:19amplified on hacker newshn.story.50245260
ranwhatcom
peak 3 · 0 comments · 2% of case engagement
11-05 15:54amplified on hacker news 👑hn.story.50380704
agybay_07
peak 96 · 34 comments · 96% of case engagement
10-13 17:20our radar first saw it · +963.4hdiscovery anchor: hn.story.50074883—

Evidence (4) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Check your Claude Code, Codex and Cursor sessions for secrets
Retrieved article excerpt

Open article · Retrieved 2026-10-13T17:31:43.984269+00:00

Stroq

### Find known secrets in AI coding agent sessions

[CI](https://github.com/AGGIB/Stroq/actions/workflows/ci.yml)
[stroq attack: 0 of 36 passed through](https://github.com/AGGIB/Stroq/blob/main/docs/GUIDE.md#replay-thirty-six-attacks-from-public-reports-and-synthetic-cells)
[npm version](https://www.npmjs.com/package/@stroq/cli)
[npm downloads](https://www.npmjs.com/package/@stroq/cli)
[License: Apache 2.0](https://github.com/AGGIB/Stroq/blob/main/LICENSE)

Stroq scans recorded Claude Code, Codex CLI and Cursor sessions for values matching credentials on your machine. It names the credential and the tool call without printing the value, then helps guard supported actions in future sessions. A local transcript match does not by itself prove delivery to a model provider.

```
npx @stroq/cli sent --last   # scan the latest recorded session; no hook setup needed
npx @stroq/cli init          # hook into your agent and guard the next session
```

Needs Node.js 22 or newer.

What a finding looks like (a synthetic session, trimmed):

```
stroq sent — credential evidence in recorded agent sessions

✗ 1 known credential value(s) in this session's recorded tool calls: aws_secret_access_key

CREDENTIAL VALUES FOUND IN THIS SESSION RECORD (1)

  ● aws_secret_access_key — ~/.aws/credentials
      seen once, first at 2026-09-28T10:00:01Z
      └─ in the result of    Read       ~/.aws/credentials

NEXT
  Rotate each credential named above that is still live.
    aws_secret_access_key: https://console.aws.amazon.com/iam/home#/security_credentials
```

[An agent fixing a bug runs a helper package named in a GitHub issue, reads .env, and POSTs an AWS secret key to an unknown collector. stroq replay --last traces both commands back to that issue, and with Stroq installed the request is denied by deny-secret-egress, naming the variable, the file and the issue it came from.](https://github.com/AGGIB/Stroq/blob/main/docs/assets/case-study.gif)

[stroq replay --last on a recorded session: a poisoned README scores SUSPECT and the curl | sh it dictated is denied 12 seconds later; an npx command copied from an MCP result is asked about and traced back to it; an unrelated pnpm test is allowed](https://github.com/AGGIB/Stroq/blob/main/docs/assets/demo.gif)

- **Looks back.** `stroq sent` reads local Claude Code, Codex CLI and Cursor records, including sessions from before Stroq was installed. It matches known values in available tool arguments and results, and reports names and sources, not values. It reads local credential files to build the comparison index; old, rotated or unknown values may be missed.
- **Guards what's next.** Native hooks for Claude Code, Cursor, Codex, Copilot CLI, Windsurf and Antigravity, a plugin for OpenClaw, and a stdio MCP proxy. Supported outbound calls containing a known secret can be denied; provenance ties some later actions to earlier tool output. Coverage depends on the host, version and channel.
- **Local.** No network calls from the hooks, no telemetry. Apache-2.0.

Start with the [session secret scan walkthrough](https://stroq.dev/session-secret-scan/) (no session yet? [try it with a made-up key](https://stroq.dev/session-secret-scan/#try-it)) or read [integration limits](https://github.com/AGGIB/Stroq/blob/main/docs/AGENTS.md) before relying on a live hook.

## Docs

- **[Guide](https://github.com/AGGIB/Stroq/blob/main/docs/GUIDE.md)**: everything, section by section. [Install](https://github.com/AGGIB/Stroq/blob/main/docs/GUIDE.md#install) · [Commands](https://github.com/AGGIB/Stroq/blob/main/docs/GUIDE.md#commands) · [How it works](https://github.com/AGGIB/Stroq/blob/main/docs/GUIDE.md#how-it-works) · [Guarantees and limits](https://github.com/AGGIB/Stroq/blob/main/docs/GUIDE.md#guarantees-and-limits)
- [Per-agent details](https://github.com/AGGIB/Stroq/blob/main/docs/AGENTS.md): what each agent's hooks allow, and every documented limit
- [False positives](https://github.com/AGGIB/Stroq/blob/main/docs/BENCH.md) · [Attack coverage](https://github.com/AGGIB/Stroq/blob/main/docs/COVERAGE.md) · [Cloak vs AgentCloak](https://github.com/AGGIB/Stroq/blob/main/docs/CLOAK-COMPARISON.md)
- [Security](https://github.com/AGGIB/Stroq/blob/main/SECURITY.md) · [Changelog](https://github.com/AGGIB/Stroq/blob/main/CHANGELOG.md) · [Contributing](https://github.com/AGGIB/Stroq/blob/main/CONTRIBUTING.md)

[stroq.dev](https://stroq.dev)
agybay_0711
🟧 echo.github ⭐The repo is the original artifact being launched. README/About: "Find known secrets in your AI coding agent sessions (Claude Code, Codex, CuAgybay Gibatollayev (GitHub: AGGIB, HN: agybay_07)——
🟧 hnShow HN: Ranwhat.comranwhatcom30
🟧 hnShow HN: Stroq – a local audit of what your coding agent did and whyagybay_079634

Interpretation history

Decision trace