Repository navigation
v4.22.1
From an adversarial audit of 4.22.0 (56 findings, each reproduced on invented projects): the fixes below close its
highest-ranked findings (the false passes and false resolutions in review, map, passport and config ratings), the
regression 4.22.0 shipped (a passphrase starting with !), and the main ways a scan left input or findings out
without counting them. Still open and planned next: a config in the caller's folder applying to a single named file,
nested repositories and submodules, unusual staged filenames, and the remaining report-wording items. Measured before release on the full scan of the same
1,840 repositories as 4.22.0, in locked-down containers: 139,379 findings became 139,422, almost all from JH107
reporting 49 weak-hash calls marked usedforsecurity=False at info (they used to be skipped) and 9 such multi-line
calls moving from major to info; the rest are single findings in files now read. Every report now carries what it
set aside: files not read as text in 1,323 repositories, files set aside by name in 1,048, findings over a cap in 635.
Changed
- JH107 reports a hashlib MD5 or SHA-1 call that sets
usedforsecurity=Falseat info severity because the caller explicitly declares a non-security use.
Fixed
- An MCP config with more than 200 server definitions makes the map partial and says how many were not inventoried; before, the rest were dropped and coverage read complete. The password-hash explanation is kept in test code, documentation and text files, where a generic message used to replace it.
- Files set aside by name (lockfiles, minified libraries, generated code, maps) are counted by reason with sample paths. The name rule no longer reads any name ending in "lock" as a lockfile (
clockis read), and it no longer drops folders such asBuild/regardless of case: folders are left to the shared folder rule, which matches names exactly and lists what it skips. - What a run sets aside now reaches every output, not only JSON and Markdown: SARIF (a note per item and
setAsidein the run's properties), the HTML report's header, the fix prompt (which no longer says it found nothing to fix when it held findings back), review (review.set_aside, with what the caps held back) and passport (scope.set_asideand a section in its Markdown). The HTML empty state no longer calls an empty result good news. - The
--scorescorecard says how many files it read and lists what the run set aside; over zero files it says the score describes nothing. Before, it showedquietandpasswith no file count. - A rating set by a config or a ruleset applies before the severity floor and the caps: a promotion to major shows at the default floor, a demotion counts below a higher floor, and a finding the config sets aside no longer takes the only display slot. An unknown severity in a config (
"majo") and a wrongly typedignoreare reported and ignored; before, the typo invented a rating that let a gate pass, and the type error stopped the scan. - With
--baseline, a finding that is gone is resolved only when its file was reviewed this time; in a file the review skipped or did not reach it is counted as not reassessed. Before, every missing finding was called resolved. The passport's search for supply-chain evidence uses the scan's folder rule, so a bill of materials in a hidden project folder counts and one inside a virtual environment namedenvdoes not. - A file that could not be read (permission or another read error), a folder the scan could not enter, and binary or empty files are counted with the reason and sample paths; before, a project whose only source was unreadable looked empty and scored quiet. Text in UTF-16 or UTF-32 with a byte-order mark is read instead of being taken for binary.
review onefrom the parent folder reviews the repositoryone, asreview .inside it does; before, the relative path was looked up again inside the repository, no file was reviewed and the gate passed. With--baseline, occurrences of the same finding are numbered across the whole file in line order, so a second copy added on a new line is new while the original sits unchanged.- In a review, the per-file and per-rule caps apply after findings are sorted into new, contextual and unchanged. A finding on a changed line is never capped, so an unchanged finding can no longer take the only slot and let a new one pass the gate. The review summary counts what the caps held back.
- A working-tree review before the first commit reads the files as they are, so an edit made after
git addis reviewed and can fail the gate;--stagedstill reviews the staged copy. Before, it read the staged copy in both modes. - A file the map reads but could not (over the size limit, or unreadable) now counts as considered and makes map coverage partial, naming the file, so the passport's coverage floor holds the release instead of passing. Before, the map counted only the files it read and called its coverage complete.
- A scan counts files skipped by
--excludeand by the config'signoreglobs, with sample paths for each. A file matched by both counts once and the report names both exclusions. - A scan reads untracked files covered by git ignore rules, as a folder without git always did, and reports how many it read, with sample paths. A finding in such a file is at most minor and says the file is not committed, so a key kept in a git-ignored
.envis not reported as a secret the repository carries. A file limit selects files in the same order in a repository and a plain folder. - JH101 reports a passphrase that starts with
!again (4.22.0 read"!correct horse 7"as a command that fetches a key). A command now needs a path or a known secret-fetching program. An authentication method name counts as a placeholder only inside a list of method names, so a single("password", "md5")pair stays a lead. The password-hash message no longer says nobody can sign in with the value: if the code compares a supplied password with it directly, the value is the password.
What's Changed
- 4.22.1: fixes from an adversarial audit of 4.22.0, and the JH101 passphrase regression by @cloudbustinguk in #46
Full Changelog: v4.22.0...v4.22.1