Repository navigation
Description
A fifth false-positive shape, found while triaging week 1 of the dogfood clock
on 2026-09-09. It is not #44, #49, #50 or #51.
credential-exfil fired critical on a session where no credential material
was ever read.
The two evidence events
From detection.event_ids, correlation 9854e61f, 2026-09-02:
19:48:49 cursor Shell traits: ['credential_access']
Write-Output "DEEPSEEK=$([bool]$env:DEEPSEEK_API_KEY)"; Write-Output "OPENROUTER=$([bool]$env:OPENROUTER_API_KEY)"; ...
20:14:03 cursor Shell traits: ['staging_fetch', 'net_egress']
git -C "...\agentic-os" status -sb; git ... log -5 --oneline; git ... remote -v;
try { (Invoke-WebRequest -Uri "https://agentmetry.ai/.well-known/funding-manifest-urls" ...
The rule is right that a credential trait was followed by an egress trait in one
session. It is wrong that anything was exfiltrated.
Why it is a false positive
[bool]$env:SECRET is an existence probe, not a read. It prints True or
False. The value never enters the output, the shell history, or anywhere a
later command could pick it up. This is the careful way to check whether a key
is configured, and it is the form a security-conscious operator uses precisely
to avoid printing the secret. Flagging it teaches people to write the worse
version.
The egress was the project fetching its own public file. The second command
is git status, git log, git remote -v, then an Invoke-WebRequest to
agentmetry.ai/.well-known/funding-manifest-urls and the repo's public
funding.json. net_egress is correctly assigned. There is simply no path
between the two events.
The two commands are also 25 minutes apart with unrelated work between them,
which is the session-window behaviour the rule is designed to have and is not
itself the bug.
Distinct from the four known shapes
| Issue | Shape | Why this is not it |
|---|---|---|
| #44 | .env.example read as credential access |
A real env var, not a sample file |
| #49 | credential path named inside an MCP argument | A shell command, not an argument string |
| #50 | pipe into an interpreter running its own script | No pipe, no interpreter |
| #51 | GitHub-raw fetch plus a later python -c |
The fetch is real egress and correctly tagged |
The new shape is: a credential-existence test counted as credential access.
The fix, and when
Not now. traits.py is frozen and #55 is already parked to land in one pass.
This belongs in the same batch: a trait that distinguishes reading a secret from
testing whether one is set.
The immediately useful output is the corpus case. This session is a benign
sequence that must stay silent, with both commands available verbatim from the
trail, and it is the highest-value kind of case because nobody invented it.
Reproduction
Write-Output "DEEPSEEK=$([bool]$env:DEEPSEEK_API_KEY)"
# ... later in the same session ...
Invoke-WebRequest -Uri "https://example.com/anything" -UseBasicParsingDisposition already recorded as false_positive with this reasoning attached.
Activity