Rule families
| Rule | What it catches | Response |
|---|---|---|
| TR-CRED-EXFIL | A credential source feeding an outbound transfer | Critical denial |
| TR-DESTRUCT-OUTSIDE | Recursive deletion of user or system data outside the project | Critical denial; review for other paths outside the project |
| TR-POLICY-TAMPER | Removing or disabling TraceRook or its hooks | Critical denial |
| TR-REMOTE-EXEC | Remote content piped into an interpreter | High review |
| TR-UNKNOWN-EGRESS | Uploads, remote copies and object-storage transfers | High review |
| TR-SENSITIVE-READ | SSH, cloud, Keychain and token locations | High review |
| TR-DOTENV-ACCESS | Private environment files | High review |
| TR-PRIV-ESC | sudo, doas and privilege elevation | High review |
| TR-SECURITY-CONFIG | Security configuration, ownership or permission changes | High review |
| TR-PUBLISH-DEPLOY | Publishing, releasing or deploying | High review |
| TR-ENCODED-COMMAND | Encoded content inside an execution pipeline | High review |
| TR-REPEAT-DENIED | Another denied action proposed in the same session | High review |
| TR-INSPECTION-INCOMPLETE | Dynamic syntax or nesting beyond inspection depth | High review |
Scores route decisions
| Score | Severity | Response |
|---|---|---|
| 0–39 | Low | Allow and record |
| 40–69 | Medium | Allow and notify |
| 70–89 | High | Human review |
| 90–100 | Critical | Denial backed by concrete deterministic evidence |
Automatic critical blocking comes from an enabled catastrophic rule, never from a numeric score alone. Scores rank how urgently something deserves attention.
Evidence has precedence
- A catastrophic deterministic match denies immediately.
- Deterministic high-risk evidence requests review.
- A Claude recommendation can request review or add a warning.
- Medium risk warns while allowing; low risk records with no override.
Claude can raise the level of scrutiny but never lowers a deterministic critical denial, and Allow once is never offered for one.
Commands are read as a shell reads them
Rules consider paths, quoting, redirection, pipelines, wrappers such as sudo and env, embedded interpreter flags and relative path components. A sensitive path alone gets a review; a sensitive path flowing into an upload gets a block. Anything TraceRook can't fully inspect moves to review rather than being waved through.
Unsafe actions and agent behavior
Findings fall into two categories. Unsafe action findings concern the proposed operation itself. Agent behavior findings concern the session: drift away from your task, instructions from repository content that redirected the agent, or repeated attempts at denied actions. Claude flags session drift directly in its verdict, and a finding can belong to both categories.