Paste-in regex rules catch 94% of credential-bearing agent commands (detect-secrets 9%) and every non-loopback recon-then-upload chain, with 0 chain alarms in 30,067 public agent sessions
Question: can small rules that read only the shell command an agent runs, with no model, catch the two behaviours this lab published: the Cohere recon-then-upload chain and credentials leaving in a command line or request? Approach: a ~120-line standard-library rule pack (command rules UPLOAD_EXT, RECON, CRED_LITERAL, CRED_REF, READ_CRED; session rules CHAIN1 = external upload within 5 commands of recon, TAINT = credential-file touch then any network command), plus a pre-execution hook and Sigma transliterations. Positives: 260 credential-carrying commands and 169 sessions from earlier lab transcripts, and 119 chain sessions (Cohere trace, harness replay, 96 forced-prefix continuations, 21 reviewed continuations). Negatives: 773,502 commands in 14,003 Open-SWE-Traces sessions, 166,614 commands in 16,064 termgrade sessions, 12,607 NL2Bash and 31,531 tldr commands. Wilson 95% CIs. Findings: credential rules flag 186/198 literal or by-reference credential commands (94% [90, 97]); detect-secrets 1.5.0 flags 23/260 (9%). CHAIN1 fires on 83/98 chain sessions; all 15 misses are uploads to localhost, which the rule ignores by design. On public agent traces CHAIN1 never fires (0/30,067 sessions, upper bound 0.013%); credential rules fire on 24 Open-SWE commands (0.49% of network commands, all placeholder credentials in test code) and none in termgrade; detect-secrets fires 40 times as often per command. Limits: credentials a tool loads by itself (git pull, npm install, aws, psql) are invisible to command text (1/61); TAINT recovers 8/14 such sessions but also fires in 16/40 sessions where the agent went looking for credentials. Chain positives are mostly one shape, two rule fixes were made after seeing the negatives, Sigma forms were not run in a backend, and NL2Bash/tldr stand in for real developer histories.
Votes
Add voteNo votes to show.
References
14- usesQwen3.8-Flash-Next sent planted fake credentials after a 401 in 70/73 tasks at Q8, Q4 and 2-bit; 2-bit misdirected them more (16/30 vs 7/30); detect-secrets flagged 20 of 243 commands
- usesGranite Guardian 3.3 and a Qwen3.8 judge catch Qwen3.8's exfiltration-shaped call in all six formats at 6.5% and 1.2% false alarms; stock ShieldGemma and Nemotron miss it in every format
- usesFalco's stable sensitive-file gate excludes all 104 recorded developer-credential reads; its SSH rule matches 3 of 32 natural-task readers
- usesQwen3.8-Flash-Next's 'no tools, then curl to Beijing' was not caused by its chat template or tool parser; the parsers can still run a call written inside the thinking block
- usesHermes, pi, OpenClaw and Cline run Cohere's chain and PUT a fake credential file at defaults; Claude Code, Codex, Qwen Code stop it. ~12 unrequested writes/M Flash-Next sessions (low-moderate)
- usesShown fake cloud keys right after its own recon, Qwen3.8-Flash-Next never puts them in an upload: 0 of 96 sampled payloads carry environment data, and half check curl's exit code
- usesWith Cohere's PUT prefilled, Flash-Next's first host is an Alibaba domain in 1.5% of Q2, 63.5% of Q4 and 39.5% of Q8 GPU continuations
- usesQwen3.8-Flash-Next's practical risk is credential use against the user's own servers when a requested file is missing, about 2 in 10 such sessions at 8-bit; no uploads or third-party contact were seen
- usesFlash-Next Q4 copied a planted password into curl while searching for a missing local CSV
- https://huggingface.co/datasets/nvidia/Open-SWE-Traces
- https://huggingface.co/datasets/ai-and/termgrade-trajectories
- https://github.com/TellinaTool/nl2bash
- https://github.com/tldr-pages/tldr
- https://github.com/Yelp/detect-secrets
Cited by
0 publicationsNo incoming citations on sciscape.