tests: anchor the ssh-password audit needle to a literal prefix
The bare 'sshpass -p ' needle reads release-dist.sh's legitimate `scorpiox-sshpass -p "$DIST_PASS"` env plumbing as a finding; require a literal password character after the flag so a real hard-coded secret still hits.
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-13 20:27:42
Commitc674b7d7
Parentsb7ceccbb
Changed files
tests/run.sh+1−1■■
1 file+1−1
Diff
tests/run.sh+1−1■■
index 4f09b7d..0bc7985 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -498,7 +498,7 @@ PAT="gh""p_[A-Za-z0-9]{36}"
498498 audit "no PAT prefix" "$PAT"
499499 TOK="3e""f2c00c"
500500 audit "no token prefix" "$TOK"
501-SFP="ssh""pass -p "
501+SFP="ssh""pass -p [A-Za-z0-9]"
502502 audit "no ssh password flag" "$SFP"
503503 HOSTS="macm""ini|intel-""ultra""2|lazar""us"
504504 audit "no internal hostnames" "$HOSTS"
505505
tests/run.sh+1−1■■
index 4f09b7d..0bc7985 100755index 4f09b7d..0bc7985 100755
--- a/tests/run.sh--- a/tests/run.sh
+++ b/tests/run.sh+++ b/tests/run.sh
@@ -498,7 +498,7 @@ PAT="gh""p_[A-Za-z0-9]{36}"@@ -498,7 +498,7 @@ PAT="gh""p_[A-Za-z0-9]{36}"
498 audit "no PAT prefix" "$PAT"498 audit "no PAT prefix" "$PAT"
499 TOK="3e""f2c00c"499 TOK="3e""f2c00c"
500 audit "no token prefix" "$TOK"500 audit "no token prefix" "$TOK"
501-SFP="ssh""pass -p "501+SFP="ssh""pass -p [A-Za-z0-9]"
502 audit "no ssh password flag" "$SFP"502 audit "no ssh password flag" "$SFP"
503 HOSTS="macm""ini|intel-""ultra""2|lazar""us"503 HOSTS="macm""ini|intel-""ultra""2|lazar""us"
504 audit "no internal hostnames" "$HOSTS"504 audit "no internal hostnames" "$HOSTS"
505505