Antinel

← All 24 rules

SEC-06 Secret literal in content

block 1 hits here sandbox-verified

① What it stops

Secret-looking literal (API key, private key, token) appeared in written or edited content

Use environment variables or a secrets manager; never paste plaintext keys into files.

② Criteria

ItemValue
Severitycritical
Categorysecrets
GateGate 2 sensitive surface
Criterion typetool_call
Applies toWrite、Edit、Read、Bash

Content patterns

Exclude patterns (hit ⇒ not blocked)

Generated directly from rules/default.json — never hand-written or paraphrased.

③ Real hits

2026-09-24T01:44:01+08:00 ✗ block [SEC-06] tool: Write exit code: 2 criterion: content hit: sk-A[已脱敏]

Triggered in a disposable sandbox project using the real hooks/pre_tool_use.py — the same method as challenge/generate_challenge.py. All 24 rules verified this way (24/24).

Daily ledger on this machine: 1 hits

2026-09-11T18:23:48+08:00 ✗ blocked [SEC-06] tool: Bash host: generic criterion: content sk-A[已脱敏]

④ False positives & exemptions

Built-in exclude patterns are listed under ②. Four exemption mechanisms exist globally (declared workspace roots, policy path whitelist, path-suspect alert-only, exclude patterns); counts on this machine are published on the Chinese page and in Limits.

⑤ Boundaries

Boundary
Criterion typetool_call
Applies to-
Platformall platforms
Case sensitivityMeasured: insensitive (RM -RF is blocked like rm -rf)
Path normalisationMeasured: effective (./sub/../.env is blocked)
Scripts not parsedAn absolute path outside the project mentioned in a Bash command is alerted, not blockedscripts are not parsed (THREAT_MODEL Non-goals)
Failure posturefail-open; best-effort, not a hard security boundary

⑥ Reproduce

grep -h "SEC-06" .psl/audit/*.jsonl | head python challenge/generate_challenge.py python challenge/verify.py
Cite this page

Antinel AgentState. SEC-06 Secret literal in content — rule detail. https://antinel.com/en/agentstate/rules/SEC-06/ (accessed YYYY-MM-DD)

Antinel. (2026). SEC-06 Secret literal in content — rule detail. AgentState. https://antinel.com/en/agentstate/rules/SEC-06/

BibTeX

@misc{antinel_en_agentstate_rules_SEC_06,
  title        = {SEC-06 Secret literal in content — rule detail},
  author       = {{Antinel}},
  year         = {2026},
  url          = {https://antinel.com/en/agentstate/rules/SEC-06/},
  note         = {claim tier: measured}
}

Claim tier: measured 采集时刻:2026-09-23T22:41:18+08:00