Antinel

← All 24 rules

SEC-02 SSH key file read

block 0 hits here sandbox-verified

① What it stops

Agent attempted to read SSH private key or authorized_keys file

Keep SSH keys outside agent working scope; use ssh-agent forwarding instead of key files.

② Criteria

ItemValue
Severitycritical
Categorysecrets
GateGate 2 sensitive surface
Criterion typetool_call
Applies toRead、Bash

File path patterns

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

③ Real hits

2026-09-24T01:43:52+08:00 ✗ block [SEC-02] tool: Read exit code: 2 criterion: path hit: .ssh/id_

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).

Zero hits in the 13-day ledger on this machine — we do not post a sample. Zero hits means this machine never hit it, not that the rule is dead; effectiveness is covered by the sandbox trigger above.

④ 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 toRead、Bash
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-02" .psl/audit/*.jsonl | head python challenge/generate_challenge.py python challenge/verify.py
Cite this page

Antinel AgentState. SEC-02 SSH key file read — rule detail. https://antinel.com/en/agentstate/rules/SEC-02/ (accessed YYYY-MM-DD)

Antinel. (2026). SEC-02 SSH key file read — rule detail. AgentState. https://antinel.com/en/agentstate/rules/SEC-02/

BibTeX

@misc{antinel_en_agentstate_rules_SEC_02,
  title        = {SEC-02 SSH key file read — rule detail},
  author       = {{Antinel}},
  year         = {2026},
  url          = {https://antinel.com/en/agentstate/rules/SEC-02/},
  note         = {claim tier: measured}
}

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