Repository navigation
Releases
v4.23.3
A security release. A scanned folder's own git settings could still run a program, in two ways, through review,
map --base, passport --base and the stop hook; a repository cloned with git does not carry those settings, a
folder unpacked from an archive, copied or shared can. Reports could also still show a credential from the scanned
project in the places listed below, among them the text of a private key written on one line. Evidence can still
show a secret that nothing marks, and each entry says what it does not cover.
Security
-
A scanned folder's git settings could still run a program, in two ways.
review,map --base,
passport --baseand the stop hook run git on the folder with the settings that name programs switched off.
Two were not. A filter whose name is not valid UTF-8: the names of the filters a folder configures were listed
by a pattern match that skips a name which is not valid text, so that filter stayed on, andreviewand
hook stopran its program on the files the folder's.gitattributesgives it. And an object the repository
lacks: a folder marked as a partial clone makes git fetch a missing object from the remote the folder names,
and that remote's transport is a program (ext::command,core.sshCommand,remote.<name>.uploadpack).
protocol.allow=neveron the command line did not stop it, because the folder's ownprotocol.<name>.allow
outranks it; every form ofreview,map --base,passport --baseandhook stopran the program. As with
the hook command fixed in 4.23.2, a repository cloned with git does not carry its.git/config; a folder
unpacked from an archive, copied from elsewhere or shared with others can. This is in every earlier version,
4.23.2 included. Filter names are now read from the whole configuration byte for byte, git is not run on a
repository whose settings cannot be read, and git is told to fetch no missing object and to refuse every
transport, whatever the folder's settings say. -
map --baseandpassport --basecrashed on a repository that lacks an object. A tree that names an object
the repository does not hold ended both commands with a Python traceback. They now stop with an error. -
A name longer than 64 characters did not mark its value. Every reader of a name stopped at 64 characters, and
a name it could not read whole was not read at all, so the value beside it stayed in evidence and in map and
passport snippets. Real names pass that length:spring.security.oauth2.client.registration.keycloak.client-secret
is 65 characters, and so is its environment form; the same property for a client calledgoogleis 63, so one
line of a file was masked and the next was not. A quoted value after=or:was masked at any length. An
unquoted value (a properties, YAML,.env, Compose, Dockerfile or shell line, a flag, a URL's query), a second
argument (setProperty("...", "...")), a call, a default after a variable, an XML element and a Kubernetes
value:line under such a name were not. This is in every earlier version, 4.23.2 included, whose notes did not
list it. A scan reports no finding of its own on most of these lines, so the value reached a report when
another finding was on the same line, or in a snippet. A name is now read up to 256 characters. These masks hide
text and decide no finding. -
What a secret-looking name holds was shown when it was not one plain value. A name whose value opened with
$,{,[or(was passed over. Evidence and snippets therefore showed the default of a Spring reference
(password: ${DB_PASSWORD:...}; the Compose and shell forms${NAME:-...}and${NAME:=...}were read only
under a name inside the braces that itself looked like a secret), the default of a template
(password: {{ .Values.password | default "..." }}), and the items of a list, tuple or set and the values of a
mapping written on the line (api_key = ["...", "..."],token: [..., ...]in a data file,
secret = {"db": "..."}). The defaults are now masked. An item or a value in brackets is masked when it reads as
a secret (twelve or more characters with a letter and a digit), also under a name for several secrets (tokens,
API_KEYS,passwords): on the 1,840 repositories, what stands in brackets under such a name was a user name, a
message or a query far more often than a secret. This is in every earlier version. These masks hide text and
decide no finding. -
The body of a private key written on its header's line was printed in evidence. JH101 reports a private key
header when key material follows it on the same line, after a literal\n
(importPKCS8("-----BEGIN PRIVATE KEY-----\nMC4C...\n-----END PRIVATE KEY-----"), a template literal, a shell
echo '...' > ~/.ssh/id), or when the body stands in a string literal of its own on the header's line
("-----BEGIN PRIVATE KEY-----\n" + "MC4C..." + ...,["-----BEGIN RSA PRIVATE KEY-----", "MC4C...", ...].join("\n")). The finding's evidence held that body whole in the terminal, Markdown, HTML, JSON and SARIF
output; an Ed25519 or P-256 key fits in the 200 characters evidence keeps. Map and passport snippets already hid
it. This is in 4.23.1 and 4.23.2. Evidence now masks what follows such a header on its line, up to a quote, the
line's end, the END line or the next header, and every other run of 40 base64 characters after the header on its
line, when the run holds a letter and a digit and is not a lower-case path. A header followed by a sentence, a
path or a long name with no digit is left as it is. The mask hides text and decides no finding. Not covered: a
key body on the line after its header is still shown in evidence when no name marks it; in a literal of its own,
a short last line of a body (fewer than 40 characters) is shown; a 40-character name with a digit in it after a
header on its line is masked. -
The password of a URL whose slashes are escaped was shown. JSON written by PHP's
json_encode, and many
JavaScriptJSON.parseliterals, write a URL asmysql:\/\/user:...@host. The same JSON in a single-quoted
JavaScript, PHP or Python string doubles each backslash (postgres:\\/\\/svc:...@host), and JSON inside a JSON
string writes three (mysql:\\\/\\\/root:...@host). Neither evidence nor map and passport snippets read any of
these as a URL, so the password and the user name were shown in both, while the map read the same value as a
database node. This is in 4.23.1 and 4.23.2. Evidence now masks the password, and a token given as the user name,
as it does formysql://, with one, two or three backslashes before each slash; a snippet drops the user
information and the path as it does for any URL. An escaped URL without user information
(https:\/\/registry.npmjs.org\/@babel\/core) is left as written in snippets. The map's nodes are unchanged.
These masks hide text and decide no finding. Not covered: a URL whose slashes are escaped some other way
(%2F%2F,\u002F), or with four or more backslashes before each slash. -
The password flag of curl, mysql, redis-cli and other commands went unread in more places. A flag was given to
the nearest command word before it, and that word could stand inside an earlier argument:zipinbackup.zip,
httpin/api/http,mongoindb.mongo.internal,wgetin$(wget ...). The flag then went to a command
that does not take it, andcurl -o backup.zip -u admin:...,mysql -h db.mongo.internal -p...and
redis-cli -h redis.zip.internal -a ...were shown whole. A;,|or&inside a quoted argument before the
flag (curl "https://...?limit=10&offset=0" -u deploy:...,-H "Accept: a; q=1",mysql -h "h;x" -p...)
was taken as the end of the command, and the password was shown too. The same happened to a command word inside
a quoted argument before the flag (curl -fsSL -d '{"engine": "mysql"}' -u admin:... https://... | sh,
curl --data-urlencode "q=curl http" -u ...), and to a separator escaped with a backslash
(curl https://x/?a=1\&b=2 -u admin:...), which the shell does not take as an end. This is in 4.23.1 and 4.23.2.
A command word inside a file name, a path, a host, a value, a command substitution or a quoted argument that
closes before the flag is now passed over when it takes no such flag, and only a separator outside quotes and not
escaped ends a command. A real command word between them still ends the reach of the earlier one:
sshpass -p ... ssh host wget -p https://...keeps the address, also when"wget -p https://..."is quoted.
These masks hide text and decide no finding. Not covered: an unquoted&before the flag
(curl https://x/?a=1&b=2 -u ...) ends the command as the shell reads it, and the password after it is shown; a
word after$(or a backtick, or a word in a file name or in quotes, that is a real command taking no such flag
can still pass an earlier command's flag on (sshpass -f pw ssh h tar -czf x.zip -p dirmasksdir). -
smbclient's password was shown when written
-Uuser%...,--user=user%...or--user user%.... The entry
for smbclient named-Utwice, where its long flag--userbelongs, and a value attached to a user flag was read
only for curl's-u. So only-U user%...was masked, andcurl --user=user:...andhttp -auser:...were
shown too. This is in 4.23.1 and 4.23.2. All of these are now masked. A longer flag that starts with--user
(--username=,--user-agent) is left as it is. These masks hide text and decide no finding. -
A secret written as a JavaScript template literal was shown as a default or as the argument of a secret-named
call. A default after a secret-named variable (process.env.JWT_SECRET || '...') and the string given to a
call named for a secret (setPassword("...")) were masked in single or double quotes, but the...
v4.23.2
A security release. A credential in a connection value is never shown as a host or a database name, evidence masks
the value beside any name that marks a secret, quoted or not, and a token that a finding reports is masked wherever
it stands. Earlier versions could copy a database user name and part or all of a password or a token into map and
passport output, the session-start briefing, an emitted sandbox policy and scan evidence, and the hook command could
run a program named in a scanned folder's git settings; see Security below.
Evidence can still show a secret that no name marks, and some long lines are still slow to scan: "Not covered", at
the end of that section, lists what remains.
Measured before release on the same 1,840 repositories, in locked-down containers, against 4.23.1. The scan reports
the same 269,144 findings in every repository, and every Jank Score is unchanged. The evidence text of 206 findings
differs, and each of them masks more: 142 gain a mask, and in 64 a mask covers more of a value. No evidence line of
this release holds a token in a format this tool knows; one line of 4.23.1's did. The reach map was measured the
same way and differs in 16 repositories. Nine host values that were never hosts are gone (six ... placeholders, a
name ending in -, a fragment of code, and SQL Server's ., now localhost); eight hosts are new (seven
https://host?query URLs that were unresolved targets, and that localhost); eight targets carry the new
unreadable mark; no database name changed.
Map snippets were compared by file and line. 463 of about 232,000 differ, in 102 repositories. In 448 of them
nothing new can be read, except that 102 keep a quote or a bracket that a mask used to take with it. In 12, more
of a long line's end comes into view because a mask made the text before it shorter. In 2 the host of a database
URL is shown where the whole URL used to be hidden; its credentials are not. One is cut at a different place.
The measurement also caught four faults in earlier candidates, corrected before release. The wider masks decided
findings in n8n exports: 137 new critical findings, nearly all of them ordinary code such as
newPassword = $json.password. The unreadable count fired in 116 repositories on wildcards and placeholders that
were never shown as hosts. Two findings showed more of a password in a URL's query than 4.23.1 did. And once the
masks were widened, 40 map snippets in 14 repositories showed a database user name in place of the host: the mask
of a default written into a reference took the @host after it. That one was found only when snippets were
compared by file and line. A snippet's id is made from its text, so the comparison by id used until then had
skipped every snippet that changed.
Changed
references/soak.mdsays which releases were measured on the full 1,840 repositories before they shipped
(4.22.0, 4.22.1, 4.22.2 and 4.23.1) and which were not: 4.22.4, 4.22.5 and 4.23.0 were compared on 126
repositories, and 4.22.3 was not measured. It used to say every release since 4.22.0 was.- Those four releases are now measured on the 1,840, after the fact (2026-11-29), each against the release before
it. 4.22.3 and 4.22.4 report the same 269,132 findings as 4.22.2 in every repository. 4.22.5 reports 17 more, in 2
repositories: MCP servers after the tenth in a config file, whichJH705used to leave out. 4.23.0 reports the
same 269,149 as 4.22.5; 27 of them, in 3 repositories, are in files whose name holds a tab or a line break and is
now shown escaped. No release in that range stopped reporting a finding, and no Jank Score changed.
references/soak.mdhas the table. - SQL Server connection strings:
Server=.,(local)and(localdb)name this machine (trust domainlocal), and
an instance name after a backslash (db.internal\Reports) is no longer part of the host. Before,.was mapped
as an external host named.andlocalhost\SQLEXPRESSas an internal host of that name. A port or service
written after the host (Host=db.internal:5432, Oracle'sData Source=db.internal:1521/ORCL) is no longer part
of it either. A named-pipe server (np:...) is now an unresolved target counted under
unreadable-endpoint-values. review --baseline: a finding is matched to a baseline by its rule, its path and its evidence text. A finding
whose evidence gains a mask in this release is therefore new against a baseline saved by an earlier version, and
its old entry counts as resolved. Save a new baseline after upgrading (review --save-baseline).map: an evidence item'sidandhashare made from its snippet among other things. An item whose snippet is
masked differently by this release has a new id, and the nodes and edges that refer to it name the new one.
Fixed
- The map read the wrong host from a URL with an
@in its query or fragment and no path:
http://localhost:8080?email=a@b.examplewas mapped tob.example, and scan evidence showed it as
http://localhost:***REDACTED***@b.example, the port masked as if it were a password. The host is now the text
before the first/,?or#, and such a URL is shown as written. A database URL with a query and no path
(postgres://db.internal?sslmode=require) was an unresolved target and now keeps its host.
Security
Each of these could copy a credential from the scanned project into a report. A map, a passport, a session-start
briefing, an emitted sandbox policy or a scan report made by an earlier version from a project that holds such a
value may contain it.
-
A database user name and part of its password could be shown as a host. A connection value with a
;inside
its password, such as the libpq stringhost=db dbname=x user=svc password=abc;...in.env,
appsettings.json, a compose or Kubernetes environment value or an MCP server's environment, was read as a
;-separated string, and everything before the first;became the host.mapandpassportoutput and the
session-start briefing then nameddb dbname=x user=svc password=abcas a host. A database name holding other
settings (Database=x user=svc password=...) was stored the same way. Now a host must be a plain DNS name or IP
address of at most 253 characters, and a database, bucket or path name at most 128 letters, digits,_,$,
.,-,%XXescapes and single spaces. A target without a readable host is shown as unresolved, a name that
cannot be read is left out, the node lists what could not be read (attributes.unreadable), and the new
unreadable-endpoint-valuesunknown counts these nodes. Neither value is printed. -
A database URL with a
/in its password could be shown whole.postgres://user:12/rest@host/dbwas read as
hostuser, port12and databaserest@host; the real host was missing from the map, and an emitted sandbox
policy listeduseramong the allowed hosts. Drivers that split at the last@accept a password with/,?
or#written unescaped; the user information of a database or queue URL now ends at that@too, and so does
any other URL's when the text before its first/cannot behost:port. In code, a URL in a string literal is
read to the quote that opened the literal, so a password holding the other kind of quote no longer cuts the URL
before its host. -
Evidence could show a password, or the end of one, in scan findings and in map and passport snippets:
- an unquoted value after a name ending in
password(PGPASSWORD=...,DB_PASSWORD=...,sslpassword=...,
trustStorePassword=...) or after an upper-case environment name holdingSECRET,TOKEN,API_KEY,
ACCESS_KEY,PRIVATE_KEY,PASSWD,PASSPHRASEorCREDENTIALS(API_KEY=...,JWT_SECRET=...) was not
masked, so a finding on a shell or Dockerfile line printed it; - masking stopped at a
;inside the value (password=abc;...), at a space inside a value of a;-separated
string (Password=my pass phrase;), at a quote inside the value (PASSWORD=ab'...), at the first@of a URL
password (postgres://user:p@ss@host) and, in map snippets, after an escaped quote (password='it\'s ...'); - a URL password that held a quote, or had no user name before it (
redis://:...@cache), and a Go DSN password
that held a quote or a space (user:ab"...@tcp(...)) were not masked in scan evidence; a map snippet of a URL
whose password held a;or a quote showed the user name; - an Oracle password in
jdbc:oracle:thin:user/password@hostwas not masked at all (a map snippet hid it only
when it happened to look like an email address), and a map snippet of a Go DSN or an Oracle connection showed
the user name.
These values are now masked whole. Where an unquoted value ends is read from what separates the settings around
it (references/connectivity.md, "Redaction and safety"). The two wider masks, after a longer name ending in
passwordand after an upper-case environment name, hide text in evidence and decide no finding: what counts as
a credential for a finding is as in 4.23.1. - an unquoted value after a name ending in
-
Evidence showed the value beside most names that mark a secret. Only a short list of names was read
(password,token,secret,api_keyand a few more), most of them only with a quoted value. A finding on a
line such asDB_PASS=...,POSTGRES_PASSWORD: ...,$db_pass = '...',define('DB_PASSWORD', '...'),
app.config['SECRET_KEY'] = '...',dataSource.setPassword("..."),curl -u deploy:...orsshpass -p ...
printed the value. A name is now read part by part (DB_PASS,smtpPass,x-api-key,
spring.datasource.password,APP_KEY), and the value beside it is masked:- after
=,:or=>, quoted or not, also behind a subscript (config["db_pass"] = ...), a type
(password: str = "...", Go'svar dbPass string = "..."), a conversion ([]byte("...")...
- after
v4.23.1
Measured before release on the full scan of the same 1,840 repositories, in locked-down containers, against 4.23.0:
269,149 findings before and 269,144 after; 1,826 repositories identical and 14 changed; every Jank Score unchanged.
The changes are 14 deprecated-transport findings that moved to the line of the field selecting the transport, 7
open-range findings on fields that are not dependencies (engines and tool settings) that are gone, and 2 open
ranges in one-line manifests that are new. The measurement also caught a fault in the first candidate: it stopped
reading page text in PHP templates, which hid three findings on this set (two empty catch blocks in inline script
and one unserialize of a cookie). That was corrected before release, and all three are reported again.
Fixed
- A staged or revision review skips an
envdirectory only when itspyvenv.cfgresolves to a regular
file in that snapshot. Links to directories, missing targets and link cycles leave the source in scope. - Scans count unreadable source links under their selected names. Maps list them as skipped and report
partial coverage when a supported file could not be inspected. - Naming a file link directly applies the language and filename rules for the selected name and the
configuration from its project. - Findings inside an ignored, untracked export inherit its minor severity cap. The scan counts the export once.
Staging the export restores the members' configured severity. - The passport's technical score now applies project and command-line exclusions to archive names before
reading their members. Its file count, findings and score policy match the scan for excluded exports. - A standalone
.msappthat cannot be opened or read as an archive now appears by name in scan warnings
and counts as one unread item in the summary. - The deprecated SSE transport finding points to the field that selects it. Changing an existing server to SSE
now fails a review gated at minor severity. Renaming the server leaves an unchanged transport finding contextual. - A review lists a finding on a changed line even when the file holds more findings than the engine's safety
limit, so the gate sees it. Findings past the limit on unchanged lines are counted in the summary as well as
in the detail. - A staged or revision review looks for the lockfile in the index or the revision under review. A lockfile that
exists only in the working folder no longer passes a manifest staged without one. - The open npm range finding (
*,latest) reads the dependency sections of the parsed manifest. A manifest on
one line is checked like an indented one, two open dependencies on one line are two findings, and a field such
asdescriptionthat says "latest" is not a dependency. - In a PHP file with an opening tag, a quote or comment in the page text ends at the next opening tag. An
apostrophe in the HTML before a block no longer hides the code in it. Page text is still read for findings, as
before: inline script in a template is code. - A project exclusion that names a link's target leaves the permitted link in the passport's score, as in the scan.
What's Changed
- Twelve fixes from a review of 4.22.x by @cloudbustinguk in #53
- 4.23.1: twelve fixes from a review of 4.22.x by @cloudbustinguk in #54
- 4.23.1: PHP templates keep their page-text findings; the pre-release measurement by @cloudbustinguk in #55
Full Changelog: v4.23.0...v4.23.1
v4.23.0
Agent hooks: jankhunt42 now works inside an AI coding agent's own loop.
Added
jankhunt42 hook stop: at the end of each turn, reviews what the agent changed and keeps it working while it has
left a problem at or above--fail-on(default major). Claude Code and Codex receive{"decision": "block", "reason": ...}listing the problems. Each problem stops the agent until it is answered, once per session: an
agent that changes nothing after a block has given its reasons, so it may stop at once; one whose fixes keep
failing may stop after three blocked stops in a turn (--rounds). Either way the user sees a warning with what is
still open (systemMessage), and that problem does not stop the agent again in the session (later turns show a
one-line reminder; a problem fixed and later brought back is raised again). A clean change prints an empty
decision. "What the agent changed" is
everything since the session began (the start hook records that commit), committed or not, so an agent that
commits before it stops is reviewed all the same; each commit of the session is also checked for secrets, since
a secret committed and removed later stays in the history. Ignore comments, or changes to jankhunt42's
configuration, rulesets or policy, that the agent added this session keep it working too: they hide a finding,
they do not fix it. Outside a git repository nothing is reviewed or written; its state stays in the user's cache,
never in the repository.jankhunt42 hook start: a session-start briefing under 2,500 characters, from the map (seconds even on large
projects): the exposure class, the credentials, data stores, outside hosts and AI services in reach (names only,
never values), what the agent must not widen, and, when a saved scan exists (.jankhunt42/scan.json), the
repository's most frequent problems. Every name from the repository is reduced to plain characters, shortened and
marked as data, not instructions. Nothing is written into the project.jankhunt42 hook install --agent claude-code|codex|opencode: prints the hook entries;--writeadds them to
.claude/settings.local.json(or--scope user), or Codex's~/.codex/hooks.json, idempotently and never to the
committed project settings (a committed hook that runs commands is what JH704 reports). OpenCode gets
instructions for calling the hooks from a plugin.- The skill offers the hooks to people working with an AI coding agent.
Security
- A scanned repository can no longer get jankhunt42 to overwrite a file outside the places it was asked to write.
A repository could ship a link named like a report (.jankhunt42 -> ~,.jankhunt42/scan.json -> ~/.bashrc);
--out, which the skill points inside the project, followed it (4.22.4 by writing through it, 4.22.5 by
writing at the link's target), and a report carries text the repository controls. Now--outonscan,
review,map,passportandpassport --comparerefuses any link inside the scanned folder and exits 2 with
the link's name; a link outside the scanned folder (an operator's owndaily.json -> run.json) is still
followed. The new hooks keep their state in the user's cache (~/.cache/jankhunt42/hooks/), never in the
repository,hook install --writerefuses a settings path that runs through a link inside the project, and the
session briefing ignores a saved scan report that is a link or that git tracks (one shipped with the code). - A repository can no longer stall jankhunt42 by making a file git reads into a named pipe, a link or a device: a
.gitignoreor.gitattributesanywhere in the tree,.git/info/exclude, or an excludes file its own config
names. git opens these while it lists and diffs and waits on a pipe forever; each command stalled for 25 s per git
call. Nowscan,mapandpassportwalk the folder instead (the walk never opens special files) and say why,
andreviewrefuses with the reason. The check reads directory entries only: 0.3 s on a 53,651-file repository.
Found by adversarial fuzzing (named pipes at the files jankhunt42 and git read by name). - A repository can no longer rewrite the reader's terminal, or hide its own findings, with control or bidi
characters in its file names or contents. File names in every report now write each control, invisible or
bidi-reordering character as the\xNNbytes of its UTF-8 form (as non-UTF-8 bytes already were; SARIF links
still lead to the real file), and the HTML report replaces such characters in any repository text with U+FFFD.
Before,scanandreviewprinted ESC sequences, carriage returns and backspaces from file names as they were,
so a name could clear the screen or overwrite the line that reported it.
What's Changed
- 4.23.0: agent hooks; security hardening (link writes, stalled git, terminal injection) by @cloudbustinguk in #52
Full Changelog: v4.22.5...v4.23.0
v4.22.5
A scan no longer stops on a link it cannot read or a link loop, and fixes for issues two further review passes found
in the 4.22.2 to 4.22.5 changes. Each fix has its own test.
Fixed
- A committed link whose target cannot be read (a Flutter plugin link into
/root, say) no longer stops a scan on
Python 3.9 to 3.13 with aPermissionError; the link is skipped like any link outside the scanned folder. Found by
scanning a corpus of 17,529 public repositories (1 repository). - Two links that point at each other no longer stop a scan on Python 3.12 (a
RuntimeError); they are set aside
and named in the report. - File names that reports show escaped (a literal backslash before
xand two hex digits, or a byte that is not
UTF-8): a rule'sfilespattern, a project's path ratings and ignore list,map --excludeand the SARIF link all
use the name on disk. The shown form of one name can equal another file's name on disk, which matched the wrong
file, lost a configured rating, scored an ignored file and linked to a file that does not exist. A scan root with
such a byte is shown escaped in the report, and--outwrites nothing until the whole report is encoded, so a
failed write keeps the previous file. - Links: when the real file replaces its link as the representative, it gets the same name checks (a generated
target stays skipped) and keeps its git-ignored rating, whichever comes first in the folder listing; a link with a
generated name is skipped too when it would otherwise be read for its own file type. - Findings past the 100,000-per-file safety bound keep their own line, rating and inline ignores: a line-level
ignore covers them, and an informational peer dependency stays informational, so neither fails a gate. - MCP configs: two servers declared on one line are two findings, the scan's checks read every server (not the
first 200 the map's inventory keeps), and the unpinned-launch and plain-HTTP checks report every server, not the
first ten. - PHP: on a line where a comment ends at
?>, later<?php ... ?>tags on the same line also switch between code
and template text. review: a folder named like an environment marker (pyvenv.cfg) no longer skips its parent; a repository name
ending in a space is the one reviewed; a text file the repository marks as binary still has line-level changes (only small files that read as
text get a text diff: a changed image or zip keeps git's one-line summary); a repository'sdiff.mnemonicPrefixordiff.noprefixsetting no longer hides an added line; moving a line from
one new file to another changes the review's identity.- Output:
map --out,passport --outandpassport --compare --outwrite their report or exit 2. Refreshing a
report with--outkeeps its file permissions and writes through an output link. A project path or config path
with a byte that is not UTF-8 is shown escaped, so the report can always be saved. The JSON report lists every
item that could not be read (the terminal and Markdown views show the first 50 and say how many more), and the
scan and review summaries count them all, show the output name on one short line and say when part of the
project (an app inside a zip) could not be read.
What's Changed
- 4.22.5: a link it cannot read no longer stops a scan; fixes from a further review pass by @cloudbustinguk in #51
Full Changelog: v4.22.4...v4.22.5
v4.22.4
Fixes for regressions a third review pass found in the 4.22.2 changes, each now covered by its own test, and a summary that states the gate verdict.
Fixed
review: the score again reads every finding on changed lines. 4.22.2's score budget (at most 5 per file per rule) applied to review as well, so nine findings on nine changed lines scored as five and a failing score policy passed; review never limited changed-line findings.- PHP: when a one-line comment ends at a closing
?>tag, the rest of that line (up to any<?) is template text, not code. 4.22.2 ended the comment at the tag and then read that text as code, so printed example text such asvar_dump($x)after// end ?>failed a gate. - A file-wide
ignore-filedirective covers calls past the 100,000-per-file safety bound too; they were counted as held back and failed--fail-on. - Every deprecated SSE transport declaration in an MCP config is reported (JH715), not the first ten.
- A file name holding a literal backslash followed by
xand two hex digits, which reports show with the backslash doubled, is still matched by a rule'sfilespattern written as the name on disk. map --baseapplies a subfolder-relative--excludewhen the parent folder's name is shown escaped.- Linked files: when
--excludenames a link's target, the allowed link represents the file, as before 4.22.2; a git-ignored link read for its own language is rated and listed as git-ignored whichever order the folder listing gives. scan --summarystates the--fail-onthreshold and verdict, decided once for the summary and the exit status; a line break or other control character in a file name is shown as\xNN, and a summary never runs past 60 lines.scan --score --out FILEwrites the report;--scorewith--summaryis refused (the summary carries the score).
What's Changed
- 4.22.4: fix regressions from the 4.22.2 changes; the summary states the gate verdict by @cloudbustinguk in #50
Full Changelog: v4.22.3...v4.22.4
v4.22.3
The skill now has an AI agent run only commands whose output stays short on any repository. 4.22.2 added the summaries but left 17 commands in SKILL.md that print a full report (among them passport . --json for AI inventory and OWASP questions, plain scan ., review --json, --md and --brief, and map --json); each is now a summary, a short report, or a full report written to a file and read in parts. A test reads every command out of SKILL.md and fails on any that is not bounded, and runs the short forms on a large project to check they stay under 20 KB.
Added
map --out FILEandpassport --out FILEwrite the full JSON report to a file whatever the output format, asscanandreviewalready do.
Changed
- The formulas in
references/impact-model.md,scoring.md,connectivity.mdandprecision.mdare written as plain sentences and text formulas instead of LaTeX, so they read the same on GitHub, in an editor, in a terminal and to an AI agent.
What's Changed
- Docs: formulas as plain sentences and text formulas instead of LaTeX by @cloudbustinguk in #48
- 4.22.3: the skill runs only commands whose output stays short by @cloudbustinguk in #49
Full Changelog: v4.22.2...v4.22.3
v4.22.2
Closes the findings an audit of 4.22.0 left open in 4.22.1, and the further findings two audit passes made on this
release before it was tagged; each was reproduced on invented projects and is now covered by a test. Two changes of
policy: no findings are capped by default, and no check stops at a fixed count, so every finding reaches JSON and
SARIF. Measured before release on the full scan of the same 1,840 repositories, in locked-down containers: 139,422
findings became 269,132, almost all findings the old per-file and per-rule caps used to hold back (most of them
JH306 suppression comments, JH156 open n8n triggers, JH104 dynamic SQL, JH502 and JH501 test-quality and
JH101 secrets). Scores read the same bounded budget as before: 1,815 repositories kept their score, 25 rose and
none fell, and 4 changed grade (two B to C, one C to D, one D to E), where the old caps had kept the first minor
findings in a file and hidden a more serious one.
Changed
- Agent-sized output.
scan --summaryandreview --summaryprint a bounded overview (counts, top rules, the most serious findings, what was set aside: a few dozen lines on any repository), and--out FILEwrites the full JSON report to a file to be read selectively. On a large repository the default scan printed about 190 KB; the summary is about 2 KB. The skill now tells the agent to use them and never to print a full JSON report into the conversation, where it is paid for on every later turn. A.jankhunt42folder (where--outreports go) is never scanned. - Listing every finding does not by itself change the score. The Jank Score reads the same bounded budget as before (per rule, the 200 highest-point findings, at most 5 per file), now chosen most serious first. Other fixes in this release do change scores where they change findings: on the 1,840 repositories measured, 25 scores rose and 4 grades changed, all where the old caps had hidden a more serious finding.
- No findings are capped by default. Scan and review used to keep 5 findings per rule in one file and 200 per rule, and count the rest; every finding now reaches JSON and SARIF. Human-readable output keeps its own display limit (
--max-findings), and the score already counts a rule's findings past its first ten at 10%.--max-per-file-ruleand--max-per-ruleremain as limits you can set; what they hold back is counted and still fails--fail-on. - The README explains the two ways to use jankhunt42: ask an AI coding agent that has it installed as a skill, or run the command-line tool yourself.
- The mass-testing page (
references/soak.md) says how the evaluation corpus is pinned (tree hash, and for 17,013 snapshots the commit holding that content) and how each release is measured on 1,840 of its repositories before it ships.
Fixed
- A virtual-environment marker deleted in the index no longer hides its folder from a staged review. Revision maps and passports of a subfolder whose path holds a backslash keep their paths relative to that subfolder.
- No check stops at a fixed count any more: 22 checks used to return at most 3, 5 or 10 findings per file without counting the rest (a sixth unpinned base image went unreported); one safety bound now applies to every check and counts what it holds back. The terminal review and the review brief say what the review set aside, and a review counts findings the engine held back.
- A name holding a raw byte has every backslash doubled when shown, so no two files can share a displayed name; an excluded file with such a name no longer breaks the JSON or the map. A link is read under its own name when a rule selects files by that name, and a link the operator excluded stays excluded whatever order the files are listed in.
- A PHP one-line comment (
#or//) ends at the closing?>tag, so code after it on the same line is read. A finding in a git-ignored file is capped at minor as part of its rating, before the limits and the gate, so a limit can no longer make--fail-onact on a rating no finding carries. Findings past a check's safety bound are counted only when the run selected that rule, at the rating the run gives it. - A connection to an international host name in an agent sandbox's log (
café.example.com) is compared in its ASCII (punycode) form, so it is listed by name and reaches the undeclared-destination check instead of being counted as a connection with no destination. - A file that could not be read and has a name byte that is not UTF-8 no longer makes the JSON invalid. In a scan's SARIF, two debug calls (or two weak-hash or inner-HTML findings) on one line are two alerts; every other rule's alert identity is unchanged.
- Review and passport report a supported file a structured check could not parse, as the scan does. A review's SARIF says what the review held back and which changed files it skipped, even when it has no alerts, and names the right project. The working-tree map records the folders and files it set aside, as a revision map does.
- A staged or revision review decides whether a folder is an installed environment from the tree it reviews, not the working folder. Raised limits reach every debug call; past a check's own safety bound (100,000 per file) findings are counted as capped. Untracked names keep their backslashes. A name whose text holds a backslash before
xNNis shown with its backslashes doubled, so it can never look like another file's escaped byte. - The per-file and per-rule limits keep the most serious findings, not the first ones found, and
--fail-onalso counts findings the limits held back: a project-rated major in a later file can no longer be pushed out of the report, and out of the gate, by minor findings found earlier. - PHP
#line comments are read as comments (a#[...]attribute stays code): code rules no longer match text inside them, and a# jankhunt42: ignorecomment in PHP counts as the ignore comments of other languages do. map --basereads each compared revision's own committed config (its ignore globs and declarations, found from the scanned folder up to the repository top), aspassport --basedoes: an uncommitted policy edit no longer changes a comparison of two commits,--no-configis honoured, and a parent folder's declarations apply to a subfolder.- Revision comparisons (
map --base,passport --base,review) apply the same folder rule as a scan: a virtual environment (anenvfolder holdingpyvenv.cfg) and an installed plugin's bundle are set aside, so switching to a revision comparison no longer brings installed code back into the assessment. Map evidence keeps a backslash that is part of a file name instead of pointing at a different file. - In a review, a new file's final newline no longer counts as an extra changed line (which lowered the score); a review's SARIF alert keeps its identity when unrelated files change, using the same finding identity baselines compare; the scorecard names the rulesets behind a changed rating, as the full scan does.
- A review's rule-pack digest covers every field that changes what a rule reports (files, languages, target, exclusions), and its scan id includes the rulesets, rules switched off and changed ratings, so two reviews under different policies no longer share an identity. The review names each ruleset with its digest, and a receipt's reproduction command carries the
--rulesetarguments it needs. - A site rule is matched against every real line as written, spaces-only lines included, the same way its examples are checked when the policy loads; before, a rule could pass its example and miss the same line in a file.
- Review lists every changed path, a staged binary included (recorded as binary), from git's exact name list; accented names, spaces and quotes in staged names are kept as written instead of becoming unreadable paths. A file name byte that is not valid UTF-8 no longer hides the file in a git project or crashes map and passport: reports write it as
\xNNand stay valid UTF-8. The map claims the file limit only when a file was turned away. - A folder link is never followed and is now listed, as a link inside the scanned folder or one leading outside it, instead of vanishing. A stored password hash gets guidance about the verifier (no "rotate now", not tagged as a secret), since nothing shows the password itself was disclosed.
- A ruleset field that is present is checked as written:
"rules": false,"ignore": nullor"severity": ""is refused with the field named (exit 2), while a field left out still takes its default. - Folders and files set aside are recorded relative to the report's root, so two projects scanned together no longer collapse into one path. Version-control folders other than the repository's own
.git(.hg,.svn, a nested.git) are listed, as 4.22.0 promised. An installed plugin's bundle is counted as a file, so its folder is no longer called unread when its settings were read. Findings are ordered once more after every severity change, so the first detailed finding is the most serious. - The file-limit notice appears only when the limit turned an eligible file away (a folder holding exactly as many files as the limit no longer claims later files were skipped); files named on the command line count toward the limit;
--max-filesmust be at least 1. - A run narrowed with
--ruleor--categorysays so (JSONset_aside.selection, a scope line in the report), and what it holds back is counted only among findings it could have shown, so--min-severity inforeally reveals the count it gives. An ignore comment can name a site rule, hyphens included. Review lists the rules--ignore-cior--ignore-ruleswitched off. - JH204 reports every debug call: two on one line are two findings, and its own five-per-file stop is gone, so
--max-per-file-rulereveals them all (what the cap holds back is counted). An ignore directive counts only in a comment: a quot...
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
v4.22.0
Measured before release. The precision changes, against 4.21.1 in locked-down containers: on the agent-category
scan of the same 3,769 repositories, JH703 reports 184 more runner grants in 114 repositories and JH702 177
fewer mentions that are not invocations; on the full scan of 1,840 repositories, 138,848 findings became 138,788
(JH126 70 fewer where markup is assigned a constant, JH134 20 fewer, and six template placeholders no longer
reported as JH101). The folder change, on the 1,149 of 4,000 sampled repositories with an env, tmp, temp or
hidden folder: 1,101 findings added in 101 repositories, among them 10 critical hard-coded secrets in 6 (an API key
in a note-app plugin's settings, a token in an auth folder, a password in env/) and 179 major. In two
repositories, 20 findings fell past the 200-per-rule cap; the report now counts them. The JH101 change, on the
2,867 repositories of both sets: 34 critical findings in 7 repositories are now minor password hashes, and 9 critical
and 8 minor findings that were comments, key-fetching commands or truncated displays are no longer reported.
Added
-
--ignore-cisets aside, by name, the eleven rules that read only CI configuration, so the rest of a report stands on its own without a path or category filter. JH708 stays. -
Every report says what the run held back. A Set aside in this run section (JSON
set_aside) counts findings under the severity floor, hidden by inline ignore comments, set aside by name or by a config, or over a cap, and lists the folders and files not read, each with the switch that shows it.--no-inline-ignorereports what inline ignore comments would hide. -
Rule of Two findings record the files and lines of effective Claude Code grants. SBOM quality reports distinguish component producers and paired checksum evidence, and supply summaries include the full missing-element list.
Changed
-
A scan reads the same folders with or without git. Version control, dependencies, build output and caches are set aside and listed. Other folders are read, including hidden ones and the
.agent,.antigravity,.piand.copilotagent folders. Anenvfolder is read unless it is a Python virtual environment. Before, a copy without.gitskippedenv,tmp,tempand every hidden folder outside a short list, so a credential insrc/env/or an MCP server in.antigravity/could go unreported. -
A config file applies only to its own repository. The search stops at the git work-tree root, and a folder without git uses only its own config. A parent folder's config no longer filters another project. A config that sets findings aside says how many in the report.
-
The lowest score band is called
quiet, notpristine. It describes what these rules flagged, not the code. -
JH101 qualifies name-only credential leads. JH134 describes the operations and audience of a row policy and refers readers to table grants. JH702 distinguishes an approval option in an invocation from an unresolved mention.
-
JH126 checks the whole markup assignment. JH201 reports an ignored error during a locally identified teardown at info severity.
-
The scoring reference documents headline rounding, tie order and use in prioritizing review.
Fixed
-
JH101 reports a committed password hash (argon2, PBKDF2, crypt, LDAP
{SSHA}) at minor severity, with a message saying it is a hash: nobody can sign in with it, but it can be guessed offline. An authentication method named as a value ("password", "scram-sha-256"in apg_hba.confcomment) and a command that fetches a key ('!python3 …/token.py') are no longer reported as secrets. -
Option names, display entries and inert approval-option mentions no longer mask adjacent executable or credential-bearing sites.
-
Agent permission checks share runner recognition, apply deny and ask before allow, and combine settings within the captured scope. Explicit runner grants retain their severity alongside bypass mode.
-
An unanchored allow glob (
"*","B*","mcp__*") is no longer read as a grant: Claude Code skips it and approves nothing. A glob still counts after a literalmcp__<server>__prefix. Gemini transport keys and Claude project-local MCP servers retain their client-specific meanings. -
SBOM quality assesses every declared component before display filtering. Hashes require a digest and algorithm together. Author and tool names need their own evidence. SPDX 3 resolves creation metadata, hashes and licences locally, and SWHIDs and format-specific producer fields count. The passport explains the SPDX 2 generation-context gap. Older minimum-element verdicts require reassessment.
What's Changed
- README: CI gate runs a pinned, verified jankhunt42 outside the candidate by @cloudbustinguk in #44
- 4.22.0: nothing set aside silently, precision fixes, shared agent permission semantics by @cloudbustinguk in #45
Full Changelog: v4.21.1...v4.22.0