Repository navigation
fix: address review findings from #249 and #250 - #260
Merged
Merged
Conversation
Placeholder commit that opens the follow-up pull request. The fixes land in later commits on this branch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
marked this pull request as ready for review
October 30, 2026 07:45
15 of 20 tasks
looks_like_inline_secret called itself once per nested '${A:-...}' layer, so about 1,000 layers in one .mcp.json or hooks.json value raised RecursionError and stopped the analysis. It now unwraps at most eight layers in a loop and judges what is left as a literal.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
…dential
Only Bearer and Basic payloads counted, so 'Authorization: Token <hex>', 'ApiKey <base64>' or a raw value in an MCP server or HTTP hook header got no inline-secret finding. Authorization and Proxy-Authorization now name a credential as header names, and a scheme word followed by references ('ApiKey ${KEY}') is still allowed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
The 'sk-' shape needed 16 letters or digits right after the prefix, so 'sk-proj-', 'sk-svcacct-', 'sk-admin-', 'sk-ant-api03-' and 'sk-ant-admin01-' keys had no secret shape and went unflagged in MCP args, header values and URL queries. Those typed prefixes are now accepted before the key body. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
WHATWG clients read 'http:/user:pw@host', 'http:\user:pw@host' and 'http:user:pw@host' as userinfo, but report_text only removed it after '//' and redact_secrets missed the one-slash forms, so hook targets and MCP command findings kept the password. Both now remove userinfo after a special scheme followed by any run of '/' or '\'. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
safe_url removed userinfo only after a literal '//', so a malformed URL such as 'https:/ops:pw\@host:bad/x' fell back to its raw text and showed the password in MCP and hook findings. safe_url now writes the run of '/' and '\' after a special scheme as '//' first, the way WHATWG clients read it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The section 'One credential rule for MCP server URLs and HTTP hook URLs' had lost its test. It is ported to analyze_plugin and checks that 14 URLs get the same verdict on both surfaces, plus the documented exception that reference-only userinfo counts for a hook URL only. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…n header
Treating Authorization as a credential name made reference-only values such as 'Basic ${USER}:${PASS}' or 'Bearer ${A}.${B}' an inline secret for MCP headers, because the ':' or '.' left between the references counted as a literal. A scheme word followed only by separators is now allowed, as the HTTP hook header check already does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
…puted An allow value held apart from permissionDecision, decision or behavior (a variable, a helper argument, a ternary, a jq --arg or a shell assignment) gave no auto_approve flag. The analyzer now reports these too and says the decision may be computed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
… value A fetch piped into 'sudo -u root bash', 'nice -n 10 bash' or 'env -u HISTFILE bash' was not remote code, because the interpreter pattern reads wrapper options only as one word. A stage the pattern does not match is now unwrapped with the MCP launch-command unwrapper before its interpreter is checked. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
A newline after a trailing '|' ended the shell command, and a '| \' line continuation left a backslash and newline in front of the next stage, so 'curl ... |' followed by 'bash' on the next line was not remote code. Command splitting now keeps the pipeline together, and stage parsing skips line continuations. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…ipt strings
In os.system("curl ... | bash") or execSync('curl ... | sh', {...}), the call syntax after the closing quote read as the interpreter's script path, so the stage did not count as running the download. An unquoted ')', ',' or backtick at the start of a word now ends the stage's arguments, as it ends the string, subshell or substitution that holds the command.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
…ched ';'
'(cd "${CLAUDE_PLUGIN_ROOT}" && ./hooks/s.sh)', 'cd -- ...' and a ';' attached to a word hid the plugin script, so non-approval hooks got no remote-code finding and a wrong outside-root one. Command words now drop attached '(', ')', ';' and '&', and cd options are skipped before the target directory.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
…apper The wrapper fallback for '| sudo -u root bash' ran on every stage after a fetch, which slowed scans of padded scripts. A cheap anchored check now limits it to stages that start with a wrapper such as sudo, doas, env, nice or timeout. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
A script that a second-level hook script runs was never read and never reported, so remote code or an auto-approval three scripts deep went unflagged. Script references are now followed breadth first within the existing read budget, and notes from every level count as unanalyzed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Command hooks and monitors reported only credentials in a URL, so 'Authorization: Bearer ...', '--api-key ...', 'GITHUB_TOKEN=... tool' or a bare token gave no plugin_hook_inline_secret. Hook command words now go through the MCP command-argument credential rule plus credential-named assignments, and an http hook URL with a token-shaped path segment is reported too. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
For 'https://169.254.169.254\@hooks.example.com/x' the http hook findings and target named hooks.example.com, although Claude Code posts to the text before the backslash. As in the MCP endpoint check, an ambiguous URL whose userinfo carries no credential is now shown the way the client reads it; a token in the userinfo stays hidden. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
A hook command that reads its credential at run time, such as --token "$(gh auth token)", was reported as a CRITICAL inline secret, and so was a reference with a ';' attached. Command substitutions now read as references and attached shell punctuation is dropped before the credential checks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
An LSP server launched through cmd /c or PowerShell -Command keeps the CRITICAL shell-metacharacter finding, because those wrappers do chain programs. Broad allow rules are quoted bounded and redacted, and every Codex profile is checked, with one HIGH finding counting bypasses past the listed 64. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
A config-file MCP server with no usable command or url no longer replaces an earlier server of the same name, as Claude Code drops it before merging. A backslash after a plugin-root variable now names a plugin path, and mcpServers references are reported without URL userinfo, queries or credentials. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
PowerShell allow rules are classified like Bash rules, with Claude Code's PowerShell launcher prefixes, so a broad PowerShell grant is flagged. The config walk now skips only prose under documentation keys, so a server named notes or help is still inspected. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…dget The Windows walker refused a junction or directory symlink before counting it, so a link that crossed max_paths raised unsafe_path there but path_count_limit on POSIX; admit_directory now counts the link first. The walker parity tests also run natively on Windows with real handles (exact CLAUDE.md alias, excluded and case-alias pruning, budget errors), and the redirect test now checks that no handle was opened below a link. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The redirect parity test was the only touched walker test still writing its fixtures with the platform default encoding. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
October 30, 2026 15:43
A string ref kept empty name segments (shared/, t//shared) while the selector form dropped them, so refs to one folder got separate rows and were counted twice. Both forms now share one canonical id. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
A declared skills folder skipped every child whose name starts with a dot, so `.hidden/`, `.evals/` and `.versions/` skills got no row and no hook record, although clients load them and the default `skills/` folder lists them. Only dependency, VCS and cache folders are skipped now. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Codex accepts only `./` paths for `commands`, drops an object value and loads `commands/` instead, but discovery still turned each map entry into an effective declared command. The map is now reported like any other wrong-type value (MEDIUM `plugin_component_path_invalid`) and only the default folder is inventoried. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…te walks The searches for skills that discovery prunes compared exact folder names, so `EVALS/`, `Results/` or `Node_Modules/` folders, which discovery prunes on a case-insensitive filesystem, hid skills and agents with no finding. They now match the spellings discovery prunes, and the unscanned-skill walk returns whether it finished and adds a LOW `plugin_skill_scan_incomplete` when its entry budget or depth limit stops it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…e Code Frontmatter ended only at a line that is exactly `---`, so a `----`, `--- # end` or `---end` closer turned the whole file into body and hid `allowed-tools` and frontmatter `hooks` that Claude Code still loads. The block now ends at the first `---` after the opening line, after a BOM, as Claude Code splits it; tests also cover the lenient retry and the over-limit `frontmatter_error` that fails closed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The Claude Code-style frontmatter split kept carriage returns in the block, so the lenient retry quoted a flow list such as [Bash, Read] as a string and hid an unrestricted Bash grant. The block's CRLF line endings now become LF, as they did before the split changed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The standalone verifier imported datetime.UTC, which only exists from Python 3.11, so on 3.9 and 3.10 task images an HTTP-date Retry-After header fell back to the default delay. It now uses timezone.utc. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
MCP launch paths were checked against pruned folder names without the plugin root, so a server under Node_Modules/ or EVALS/ was not reported on case-insensitive filesystems, where whole-tree scans prune that spelling too. Both call sites now pass the plugin root. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The 3.9 smoke now runs the staged eval.py the way test.sh does and checks the reward files, and asserts that HTTP-date Retry-After values parse on the task interpreter. The changelog entry now describes what CI covers. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Adapter cases now use inputs where Skill tool names, group workspace mode, workspace skill names, acceptable alternates and fuzzy matching each change the verdict, and pin those verdicts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The exact $schema match used re.match with a $ anchor, which also accepts one final newline. It now uses fullmatch, so any padding makes the value invalid, as the docstring says. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Unique-key YAML now checks only a mapping's own keys, so a key that overrides a merged one is no longer a duplicate. Integers too large to format are a limit error, and invalid tagged scalars such as !!int "" are syntax errors instead of escaping as IndexError, KeyError or AttributeError. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The own-key duplicate check ran before flatten_mapping turned a plain = key into a string, so strict mode rejected documents such as '=: 1' that loaded before. The check now applies the same conversion first. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The URL Standard parses an IPv4 part written as bare "0x" as 0, so clients connect to hosts such as 0x7f.0x.0x.1 as 127.0.0.1. The endpoint classifier now does the same and rejects non-hex digits after the prefix. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…e host
A literal scheme is now checked when a ${VAR} without a default decides the host or port, and a Codex URL whose reference sits outside the authority keeps its endpoint checks. A '[' in the userinfo no longer skips the credential and host checks, and a token-shaped path segment is reported as an inline secret.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
…ders and --creds A URL in command or args now goes through the shared URL credential rule, and an Authorization or Proxy-Authorization header is an inline credential under any scheme, in headers and in command words such as --header. Container runs read podman, nerdctl and hidden Docker value options so their values are not taken as the image, and --creds user:password is an inline credential. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…s and other launchers PowerShell switches are matched by prefix and -EncodedCommand is a dangerous form, npx/npm exec -c/--call and pnpm dlx --shell-mode lines are read as shell programs, and a shell with -c behind any launcher (uv run, wsl, taskset, su -c) is reported. A package runner's plaintext http registry or index URL is now a HIGH mcp_command_insecure_registry finding. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…n findings An invalid transport is shown through the shared report redaction (or by its type when it is not a string), and the server name in mcp_name_invalid and in every finding prefix is redacted and bounded to 64 characters, so a token or a very long name is not echoed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Each permission option hit rejoined line continuations and rescanned command breaks from the start of the string, so a string with many hits took quadratic time. The command breaks and the first command word of each command are now computed once per string and each hit is answered with a bisect lookup. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Server names in finding messages are now redacted and bounded, so a caller that strips the raw mcpServers['<name>']: prefix (the LSP rewording) no longer matches it for long or unusual names. mcp_message_prefix gives the exact prefix mcp_finding writes, for those callers to strip. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
MCP finding messages now show a bounded, redacted server name, so the LSP rewording no longer matched the raw-name prefix and printed both prefixes for long or unusual names. It now strips the prefix that the MCP checks write and shows the same bounded name. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…iew-findings Signed-off-by: Narendran Raghavan <[email protected]> # Conflicts: # CHANGELOG.md
Main now omits judge-scored reward dimensions when no judge runs, so the verifier smoke pins the three deterministic dimensions and the overall score instead of all six. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
4 of 9 tasks
chrisknvidia
pushed a commit
that referenced
this pull request
Oct 30, 2026
* chore: start follow-up fixes for the #249 and #250 review * fix(security): unwrap nested env defaults without recursion * fix(security): treat an Authorization header with any scheme as a credential * fix(security): recognise current OpenAI and Anthropic API key shapes * fix(security): drop URL userinfo written with one slash from report text * fix(security): keep userinfo out of safe_url for one-slash URLs * test: restore the MCP and hook URL credential parity test * fix(security): allow separators between references in an Authorization header * fix(plugin): report hook auto-approval when the allow decision is computed * fix(plugin): see the interpreter behind a wrapper option that takes a value * fix(plugin): continue a hook pipeline after a trailing pipe * fix(plugin): find curl-into-shell pipelines inside Python and JavaScript strings * fix(plugin): read the hook script after a subshell, cd option or attached ';' * perf(plugin): unwrap only pipeline stages that start with a launch wrapper * fix(plugin): follow hook script references past the second level * fix(security): report inline credentials anywhere in a hook command * fix(plugin): name the host Claude Code posts to for a backslash hook URL * fix(security): ignore command substitutions in hook inline-secret checks * fix(plugin): keep LSP parser chains critical and bound settings checks * fix(plugin): match MCP merge, Windows root paths and ref redaction * fix(plugin): classify PowerShell rules and walk tables under doc keys * fix(security): count directory links against the Windows discovery budget * test: write the redirect test fixtures as UTF-8 * fix(plugin): drop empty name segments in string dependency refs * fix(plugin): treat an SSH host alias origin as a hosted remote * fix(plugin): decode the origin remote URL as UTF-8 * fix(security): refuse dependency refs through .git and other never-content folders * fix(plugin): cap ref-derived text in dependency reasons * fix(plugin): keep linked or unreadable marketplace sources advisory * fix(plugin): probe only the supported manifest paths when locating a plugin * fix(plugin): list hidden and dotted children of a declared skills folder * fix(plugin): stop inventorying a Codex commands map * fix(plugin): report pruned-folder skills in any spelling and incomplete walks * fix(plugin): split frontmatter at the first closing dashes like Claude Code * fix(plugin): keep CRLF frontmatter values whole in the lenient retry * fix(tier3): honour HTTP-date Retry-After in the verifier on Python 3.9 * fix(plugin): report MCP server code in case-variant pruned folders * test(ci): score a trajectory with the Python 3.9 Harbor verifier * test(tier3): cover verifier adapter options that change results * fix(plugin): reject a trailing newline in Agent Plugins schema URLs * fix(security): keep YAML merges, huge ints and bad tags in bounds * fix(security): keep a plain = YAML key loading in unique-key mode * fix(plugin): read a bare 0x IPv4 part as zero in MCP host checks * fix(plugin): keep MCP URL checks when a reference or bracket hides the host * fix(plugin): catch MCP command credentials in URLs, Authorization headers and --creds * fix(plugin): report MCP shell lines behind PowerShell, package runners and other launchers * fix(plugin): redact and bound MCP transport values and server names in findings * fix(plugin): scan permission flags in linear time per string * refactor(plugin): expose the MCP finding message prefix * fix(plugin): strip the bounded MCP prefix when rewording LSP findings * test(ci): expect only applicable reward dimensions in the 3.9 smoke Signed-off-by: Narendran Raghavan <[email protected]>
This was referenced Nov 2, 2026
rng1995
added a commit
that referenced
this pull request
Nov 2, 2026
…ier redaction (#260 follow-ups) (#312) * fix(utils): decode git output in helpers as UTF-8 resolve_git_root and resolve_git_remote_url decoded git's UTF-8 output with the locale code page, so on a cp1252 Windows host a repository under a non-ASCII folder resolved to a garbled path or raised an uncaught UnicodeDecodeError. All git calls now decode as UTF-8, keeping path bytes losslessly with surrogateescape and replacing bad bytes in URLs and refs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]> * fix(plugin): read PowerShell hook conditions as PowerShell rules A hook 'if' condition such as PowerShell(iex *) was rewritten to a Bash rule, so its launcher looked narrow and an auto-approve hook went unreported; the condition now keeps its own tool. Skill, command, and subagent findings for a flagged PowerShell grant now suggest a scoped PowerShell rule, and a subagent's PowerShell grant is no longer hidden by disallowedTools: Bash. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]> * fix(plugin): name the granted shell tool in inert allowed-tools findings A skill or command that only Codex loads had its shell grant reworded as unrestricted 'Bash' with "it has no Bash tool", even for a PowerShell(iex *) grant. The finding now keeps the grant and tool the component analysis named. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]> * refactor(tier3): reuse shared log redaction in the Harbor verifier The verifier template kept its own copy of the LOG_* patterns and redact_secrets_in_log_line although _copy_verifier stages secret_redaction.py beside it and checks.py already imports that function. The template now aliases the shared function, and the drift-guard tests become one identity test. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]> * test: guard the shared verifier redaction and note the Git decoding fix The Python 3.9 verifier smoke now asserts that the staged verifier uses the shared secret_redaction function. The JWT redaction test no longer runs every case twice against the same function, and the CHANGELOG notes the Windows Git output decoding fix. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Signed-off-by: Narendran Raghavan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #249 and #250, which are merged. A review of their pre-merge heads found 61 defects (26 P2, 35 P3). Each one was reproduced by one agent and challenged by a second, with a third agent deciding when the two disagreed. This PR rechecks every one on current main:
The #250 code is private and not yet called from the public CLI, so most of these fix the analysis before it is turned on. Three changes reach existing public paths:
Retry-Afterheaders on Python 3.9 and 3.10. It importeddatetime.UTC, which only exists from Python 3.11.main()on a sample trajectory and pins the reward files. Before, it only imported the verifier.#249: bounded readers, client profiles, verifier
#250: URL policy and secret shapes
#250: MCP static checks
#250: hook and component risk
| sudo -u root bashand similar wrapper forms are not remote codecurl | shpipeline inside a Python or JavaScript string is missedcd --before the plugin script hides it on non-approval hooks#250: MCP declarations, config risk, permissions
#250: manifests, dependencies, references
#250: discovery, member paths, frontmatter
.hidden/,.evals/and.versions/were never listed and their hooks were missed._child_skill_manifestsnow skips only dependency, VCS and cache folders, which matches how the defaultskills/folder is handled.commandsobject map still produced effective declared command rows, even though Codex drops the map and loadscommands/instead. The map branch is now skipped for profiles withcodex_path_rules, so the map gets the same MEDIUMplugin_component_path_invalidas any other wrong-type value.frontmatter_error. New tests check thatdescription: Deploy: runs the scriptplusallowed-tools: Bashstill raises the skill and command unrestricted-Bash HIGH findings, and that a 70,000-character value setsfrontmatter_errorand a HIGHplugin_component_unreadable.parse_markdownended frontmatter only at a line that was exactly---, so closers such as----,--- # endor---endhid the grants and hooks that Claude Code loads. It now removes a leading BOM and ends the block at the first---after the opening line, the same way Claude Code splits it.find_unscanned_plugin_skill_manifestsstopped silently when it hit its entry budget or the depth limit, so discovery reported nothing and stayed complete. It now returns(found, complete), and_declared_skill_treeadds a LOWplugin_skill_scan_incompletefinding when the walk is cut short.EVALS,ResultsandNode_Moduleson case-insensitive filesystems, but the checks that report pruned skills and agents compared exact names, so those items were hidden with no finding. A newscan_excluded_namehelper (built onmatches_filesystem_name) is now used by the unscanned-skill walk, the dependency-folder walk and its finding text, and_unscanned_folderwhen it is given the plugin root.normalize_declared_pathno longer strips the declared value, so discovery resolves the literal whitespace-suffixed path that Codex loads; the repro now listscustom /evil. The existing whitespace test covers this.#250: secure filesystem walks
Behaviour changes worth a look
These changes flag more configurations, on purpose:
-e,-ec,-encfor-EncodedCommand) on every argument, including script arguments after-File.-cin a launched command line is reported, whatever launcher comes first.AuthorizationorProxy-Authorizationvalue with any scheme counts as a credential. Prose such asauthorization: <two words>in a command word can also be flagged.Also fixed while integrating
Node_Modules/,EVALS/) are now reported, matching the R34 member-path fix.lspServers[...]and anmcpServers[...]prefix for long or unusual server names. R48 made the MCP prefix bounded and redacted, and the LSP rewording now strips that same prefix.Optimizations
mcp_static.py): the permission-flag scan rescanned the whole string for every option it found, which was quadratic. Each string is now lexed once.plugin_component_risk.py): only pipeline stages that start with a launch wrapper are unwrapped, instead of every stage.The optimization review kept 5 of 14 proposals after measuring and challenging each. Two are applied above. The other three are not in this PR:
plugin_manifest.pyandplugin_dependencies.pyno longer apply, because Compose private inventory, audits and catalog checks #257 now calls those helpers.Not in this PR
These were noticed while fixing and left for separate changes:
utils/helpers.resolve_git_rootdecodesgitoutput with the locale code page on Windows, like R20 did.ifconditions are still read as Bash rules.Finding.metadata["mcp_server"]keeps the raw server name for inventory attribution.plugin_paths.pypruned-folder walk.Verification
make lintmake testmake buildThe diff is 35 files, +3,499/-340: about +1,280/-300 in
srcandscripts, and about +2,220 in tests.What was run instead of the three unchecked targets:
-n 4): 10,678 passed, 13 skipped. 15 tests failed and one collection error occurred, all identical on unchanged main in this environment:test_judge_failure_artifacts,test_harbor_secure_docker_environmentand timing-sensitivetest_retrycases under heavy load. The full suite and the platform matrix run in CI.ruff checkis clean on every touched Python file.ruff format --checkis clean on every touched file except the verifier template, which has the same 12 pre-existing lines as main.scripts/ci/smoke_harbor_verifier.py --pythonpasses with Python 3.9.6 and 3.13 task interpreters after merging current main, includingmain()and the HTTP-dateRetry-Aftercase. Main now omits judge-scored reward dimensions when no judge runs, so the smoke expects only the deterministic dimensions.gitmode reports no leaks.Release Impact
CHANGELOG.mdThe existing #249 entry is corrected: the 3.9 verifier now also honours HTTP-date
Retry-After, and CI scores a sample trajectory on Python 3.9. The other fixes are in private analysis code that is not yet turned on, or are covered by that entry.🤖 Generated with Claude Code