Repository navigation
bash permissions: deny rules catch capitalised program names on macOS - #1695
Open
aft-alfonso[bot] wants to merge 7 commits into
Open
aft-alfonso[bot] wants to merge 7 commits into
aft-alfonso[bot] wants to merge 7 commits into
Conversation
Pin both deny-rule spellings, basename-only normalization, and launcher recognition with injected case behavior; the new macOS cases are red until the matching change. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
Offer the host the ASCII-folded executable basename and the original resource so both lowercase and exact-spelling denies still work. Apply the same case policy to recognized launchers and to bridge denial attribution without changing refusal wording or Linux matching. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
… slice descriptor Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
…tion as the host matches The synthetic-load guard read a mixed-case launcher's options under its original spelling, so `Caffeinate -i yes` slipped past. Options are now read under the folded name, with the exact word kept to tell Bash's `time` keyword from an external time. The bridge's refusal attribution mirrors the host again: case-insensitive only on Windows. The scanner already sends the lower-case program-name variant as its own part, so attribution needs no wider matching. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
… Windows Both match file names with Unicode case folding, so `ſh -c ...` runs sh and a Kelvin-sign `maKe` runs make. The program such a name runs can't be told from its spelling, so the line is unreadable there. File commands (`Touch`, `RM`) also get their outside-the-project asks under any ASCII letter case. Found by an internal review of the bash permission scanner. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
…eping the others Replacing every ask with one unreadable `*` ask hid the line's readable commands from deny rules: `git push --force; é` asked instead of being denied. Readable commands now keep their asks beside the unreadable one. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
On a hosted Windows runner (run 47680427371, shard 8) the job-object kill had ended the task, but one descendant was still running 5 s later. Process teardown on a loaded runner can take that long, so the positive wait is now 30 s. A process that really escaped the job still fails, now with its job membership in the message, which tells the two apart. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
ualtinok
force-pushed
the
fix/bash-case-fold-macos
branch
from
December 6, 2026 18:06
3effb25 to
1df9ffe
Compare
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.
macOS (and Windows) find programs whatever the letter case, so
Git push --forceruns git, but OpenCode matches rule patterns case-sensitively, so a deny rulegit push*didn't apply.xargsand the synthetic-load guard's launchers are recognised under any letter case on those platforms.An allow rule that names only one spelling can now ask once for a mixed-case command.
Found by an internal security review of the bash permission scanner. Red-first tests in Rust and TypeScript (platform injected). Linux bash-permission tests and the Windows lib check pass.
Summary by cubic
Fixes the bash permission scanner so deny rules catch mixed-case program names on macOS and Windows, where filesystems are case-insensitive but rule matching was case-sensitive.
xargsand synthetic-load guard launchers are recognized under any ASCII letter case, and launcher options are read under the folded name soCaffeinate -i yesno longer slips past.Found by an internal security review of the bash permission scanner; covered by red-first Rust and TypeScript tests with platform injection. The Windows memory-cap test now waits 30 s for capped processes to exit and reports job membership if one survives.
Written for commit 1df9ffe. Summary will update on new commits.
Confidence Score: 5/5

The PR appears safe to merge; no actionable new issues remain.Summary
The PR checks lowercase and original executable spellings on macOS and Windows so mixed-case names match deny rules.
All three earlier findings remain fixed. No new actionable issues were found in the latest change.
Reviews (5) · Last reviewed commit: "test: Windows memory-cap test waits 30 s..." · Reviewed by Greptile