Answer security round 1: 0 🔴, 1 🟡 (0 misread); refuse a Grep with a glob over a folder holding an ignored env-file, and file item 370 for recursive Bash searches
CI / tests (pull_request) Successful in 2m36s
CI / tests (pull_request) Successful in 2m36s
This commit is contained in:
@@ -38,7 +38,7 @@ RULES: dict[RuleName, Rule] = {
|
||||
# A marker would let the credentials into the transcript all the same, so no marker waives it.
|
||||
"env-file-read": Rule(
|
||||
"an agent never reads ~/.claude/.env or a project's env-file, the file of credentials its config names, since a value it reads lands in its transcript, which loop-claude archives and the backups copy; a tool that needs a credential reads the file itself, and `project-config env-file` prints the file's path",
|
||||
"a Read of the file, a Grep of the file or of a folder that holds it where no checkout ignores it, and a Bash command that spells the file's path or names it from the directory `cd` left the command in, against ~/.claude/.env and the env-file of every config under ~/.claude-projects",
|
||||
"a Read of the file, a Grep of the file, or of a folder that holds it where the Grep sets a glob or no checkout ignores the file, and a Bash command that spells the file's path or names it from the directory `cd` left the command in, against ~/.claude/.env and the env-file of every config under ~/.claude-projects",
|
||||
overridable=False,
|
||||
),
|
||||
"ignorefile-sorted": Rule(
|
||||
|
||||
Reference in New Issue
Block a user