fix(settings): close the awk and key-file deny gaps, doctor names every jq consumer
28 deny rows: awk/gawk/mawk 'system (' spacing, -f programs, getline and
pipe-to-command exec primitives; cat and rtk read on .key, .pem, id_rsa
and id_ed25519 without a dir prefix (plus */rtk twins). All rows locked
in push-guard T63; T62 twins hold. doctor.sh jq message names
code-limits and push-guard.
This commit is contained in:
1 parent
07c2c8db65
commit
a43ba1b763
3 files changed
+57
-1
No files matched your search
@@ -252,7 +252,7 @@ fi
|
||||
if command -v jq &>/dev/null; then
|
||||
pass "jq $(jq --version 2>/dev/null | sed 's/^jq-//')"
|
||||
else
|
||||
fail "jq not found — statusline & rtk-rewrite hooks require it"
|
||||
fail "jq not found: statusline, rtk-rewrite, code-limits and push-guard hooks require it"
|
||||
fi
|
||||
|
||||
if command -v cargo &>/dev/null; then
|
||||
|
||||
@@ -455,6 +455,34 @@ Bash(cat * .env*)
|
||||
Bash(cat * */.env*)
|
||||
Bash(rtk read * .env*)
|
||||
Bash(*/rtk read * .env*)
|
||||
Bash(awk *system (*)
|
||||
Bash(gawk *system(*)
|
||||
Bash(gawk *system (*)
|
||||
Bash(mawk *system(*)
|
||||
Bash(mawk *system (*)
|
||||
Bash(awk -f *)
|
||||
Bash(awk * -f *)
|
||||
Bash(cat *.key)
|
||||
Bash(cat *.key *)
|
||||
Bash(cat *.pem)
|
||||
Bash(cat *.pem *)
|
||||
Bash(cat id_rsa*)
|
||||
Bash(rtk read *.key*)
|
||||
Bash(*/rtk read *.key*)
|
||||
Bash(rtk read *.pem*)
|
||||
Bash(*/rtk read *.pem*)
|
||||
Bash(rtk read id_rsa*)
|
||||
Bash(*/rtk read id_rsa*)
|
||||
Bash(cat *id_rsa*)
|
||||
Bash(rtk read *id_rsa*)
|
||||
Bash(*/rtk read *id_rsa*)
|
||||
Bash(cat *id_ed25519*)
|
||||
Bash(rtk read *id_ed25519*)
|
||||
Bash(*/rtk read *id_ed25519*)
|
||||
Bash(gawk -f *)
|
||||
Bash(mawk -f *)
|
||||
Bash(awk *getline*)
|
||||
Bash(awk *| "*)
|
||||
EOF
|
||||
check T63-phase2-rules-present "$missing" ""
|
||||
check T63b-no-root-glob "$(jq -r '(.permissions.ask + .permissions.deny)[]' \
|
||||
|
||||
@@ -192,9 +192,16 @@
|
||||
"Bash(cat */.env.*)",
|
||||
"Bash(cat */secrets/*)",
|
||||
"Bash(cat */*.pem)",
|
||||
"Bash(cat *.pem)",
|
||||
"Bash(cat *.pem *)",
|
||||
"Bash(cat */*.key)",
|
||||
"Bash(cat *.key)",
|
||||
"Bash(cat *.key *)",
|
||||
"Bash(cat */id_rsa*)",
|
||||
"Bash(cat id_rsa*)",
|
||||
"Bash(cat *id_rsa*)",
|
||||
"Bash(cat */id_ed25519*)",
|
||||
"Bash(cat *id_ed25519*)",
|
||||
"Bash(cat */.aws/credentials)",
|
||||
"Bash(head .env)",
|
||||
"Bash(head .env.*)",
|
||||
@@ -354,6 +361,17 @@
|
||||
"Edit(~/.gitconfig)",
|
||||
"Edit(~/.config/git/config)",
|
||||
"Bash(awk *system(*)",
|
||||
"Bash(awk *system (*)",
|
||||
"Bash(gawk *system(*)",
|
||||
"Bash(gawk *system (*)",
|
||||
"Bash(mawk *system(*)",
|
||||
"Bash(mawk *system (*)",
|
||||
"Bash(awk -f *)",
|
||||
"Bash(awk * -f *)",
|
||||
"Bash(gawk -f *)",
|
||||
"Bash(mawk -f *)",
|
||||
"Bash(awk *getline*)",
|
||||
"Bash(awk *| \"*)",
|
||||
"Bash(head * .env*)",
|
||||
"Bash(tail * .env*)",
|
||||
"Bash(head * */.env*)",
|
||||
@@ -364,8 +382,12 @@
|
||||
"Bash(*/rtk read * .env*)",
|
||||
"Bash(rtk read */*.key*)",
|
||||
"Bash(*/rtk read */*.key*)",
|
||||
"Bash(rtk read *.key*)",
|
||||
"Bash(*/rtk read *.key*)",
|
||||
"Bash(rtk read */*.pem*)",
|
||||
"Bash(*/rtk read */*.pem*)",
|
||||
"Bash(rtk read *.pem*)",
|
||||
"Bash(*/rtk read *.pem*)",
|
||||
"Bash(rtk read */.aws/credentials*)",
|
||||
"Bash(*/rtk read */.aws/credentials*)",
|
||||
"Bash(rtk read */.env*)",
|
||||
@@ -376,6 +398,12 @@
|
||||
"Bash(*/rtk read */id_ed25519*)",
|
||||
"Bash(rtk read */id_rsa*)",
|
||||
"Bash(*/rtk read */id_rsa*)",
|
||||
"Bash(rtk read id_rsa*)",
|
||||
"Bash(*/rtk read id_rsa*)",
|
||||
"Bash(rtk read *id_rsa*)",
|
||||
"Bash(*/rtk read *id_rsa*)",
|
||||
"Bash(rtk read *id_ed25519*)",
|
||||
"Bash(*/rtk read *id_ed25519*)",
|
||||
"Bash(rtk read */secrets/*)",
|
||||
"Bash(*/rtk read */secrets/*)",
|
||||
"Bash(rtk read .env*)",
|
||||
|
||||
Reference in new issue
Block a user