fix(guardrails): consult HOOK_JQ_FIELDS_NUL in verdict-owning hooks - #2386
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @kyle-sexton's task in 1m 46s —— View job Security Review
I reviewed the diff ( FindingsNo security issues found. The five new NUL-byte checks added to
This is a net security hardening (closing a fail-open gap where a NUL-bearing field could pass a match check after silent stripping) and doesn't loosen any permission, trigger, or matching logic elsewhere. Non-security note (FYI, not part of this review's scope)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e9b34fb334
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
e9b34fb to
51316c6
Compare
|
Warning Automated security review did not complete — this is an infrastructure failure, not a review verdict. Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."
The check is green on purpose, and it is not evidence. It certifies that a security pass ran, and this one did not complete — but the cause is outside this PR's control, so merging is deliberately left unblocked rather than locking every merge for the length of the outage. Nothing was reviewed at this head. Where this check is required, it is satisfied without that evidence; a human should review security-sensitive changes here before merging. Re-run the job to retry the review; a new push also retries it only if the caller's Re-running does NOT help for every class:
|
fdd662c to
9979885
Compare
…2136) Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
9979885 to
af9be36
Compare
|
Warning Automated review did not complete — this is an infrastructure failure, not a review verdict. Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."
Re-run the job to retry the review. A new push re-triggers this lane only if the caller's |
Fixes #2136
Summary
HOOK_JQ_FIELDS_NULchecks to five verdict-owning hooks that were missing them:block-convention-violation,block-hook-bypass,block-noncanonical-commit,secret-pattern-detection, andhardcoded-path-check.exit 2) before matching/scoring when any requested field carried a NUL byte — the helper strips NULs, so a clean verdict would not reflect the bytes the payload carried.block-dangerous-gitandblock-no-verifyalready consulted the flag.Test plan
secret-pattern-detection.test.sh(54/0)hardcoded-path-check.test.sh(96/0)block-convention-violation.test.sh(44/0)block-hook-bypass.test.sh(413/0)block-noncanonical-commit.test.sh(204/0)Related
HOOK_JQ_FIELDS_NULsignal in the helper