Repository navigation
docs(security): state that exec deny rules are a guardrail - #567
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
No shell analysis can stop a copied or renamed binary, an interpreter, a build script, or a git alias from running what an exec deny rule names, so calling such a rule a boundary in yolo promised more than the gate can keep. State the guarantees that hold: in manual a command runs without approval only if the gate reads all of it and every simple command is allowed or known-safe, and path deny rules on the file tools remain a boundary. Move exec-rule bypasses out of the security scope.
hakula139
force-pushed
the
docs/exec-deny-guardrail
branch
from
October 22, 2026 19:12
2fabe7f to
67f6fb7
Compare
3 of 5 tasks
hakula139
added a commit
that referenced
this pull request
Oct 22, 2026
## Summary Prepares `v0.1.0-alpha.6` from `main` at `cc11ae10`. This prerelease carries the security fixes merged since alpha.5, which are listed under Security in the changelog. It also adds the `-r` resume-by-ID and prompt-argument CLI changes, mid-turn compaction, `/exit`, and the session file field removals. - **Version:** Set the workspace package and lockfile versions to `0.1.0-alpha.6`. - **Changelog:** Prepend the git-cliff draft and curate it for users. The section leads with highlights and a Security section that states, for each fix, what the gap let through and which releases it affected. Affected versions come from each PR body where it states them. For the others, they come from checking the pre-fix code at each tag. The section also notes #567's guardrail scope change and #554's session-file change, under which binaries through alpha.5 list sessions titled by newer builds as untitled. - **Install snippets:** Point the pinned download commands in the README and installation guide at the new tag. ## Test plan - [x] `pnpm format`, `pnpm lint`, and `pnpm spellcheck` in the dev shell. - [x] `cargo fmt --all --check`, `cargo build`, `cargo clippy --all-targets -- -D warnings`, `cargo clippy -- -D warnings`, and `cargo doc --no-deps`. - [x] `cargo llvm-cov --summary-only` ran to completion with 98.85% line coverage. - [ ] `cargo deny` not run: no dependency changed, only the workspace crate versions in `Cargo.lock`. - [ ] Current-head CI and the release archive checks are pending.
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
The security policy and the permission design doc treated an
execdeny rule as a boundary inyolo, so any way around one was an in-scope vulnerability. No analysis of a command line can uphold that:cp /bin/rm ./x && ./x -rf ~defeats any rule that names a program, and a rule cannot see whatpython3 -c,make, abuild.rsthatcargo buildruns, or a git alias runs once it starts.yoloalso runs the edit that writes such a script. This PR states the narrower claim thatoxkeeps, which describes currentmain.SECURITY.md: a new trust-model paragraph callsexecdeny and ask rules (the built-inrmrule included), andreadandeditrules and protected paths applied to abashcommand, a guardrail in every mode, and names what they cannot see. It then states the two properties whose gaps are vulnerabilities. Inmanual, abashcommand runs without approval only if the gate parses all of it and nothing in it hides what it runs, every simple command is allowed by a rule or is a known-safe read, and every redirected write lands inside the working directory or an extra root or is allowed by aneditrule. Path deny and ask rules and protected paths hold for the file tools in every mode, short of a symlink swapped into a parent directory after the check (Sandbox bash and file tools at the OS level #133). The scope bullets follow these properties, and guardrail gaps go to public issues.yolomode entry points to it, decision 8 names ask rules beside deny rules as the path-tool boundary, decision 14 stops saying a deny rule holds only inmanual, and decision 15 claims only that a misparse cannot hide a simple command from deny rules. The decision pipeline now names the shell-variable ask beside the parse ask.execdeny pattern as the remedy for a program that reads guarded files. The headless guide names the shell-variable denial and gives the same sandbox advice.#568 tracks the guardrail gaps #555 deferred (
hash -p,alias,enable, function definitions,shopt, and[ a > b ]), so reporters have an issue to point at.Test plan
cargo fmt --all --check,cargo build, bothcargo clippyruns with-D warnings,cargo doc --no-deps, andcargo llvm-covpassed on the branch, with no code changes.pnpm format,pnpm lint,pnpm spellcheck, and the pre-commit hooks passed.Decisions
--yolokeeps no rules, so neither offers more. An unattended boundary belongs to the OS sandbox (Sandbox bash and file tools at the OS level #133), and theautoclassifier (Use a cheap model classifier to decide ambiguous calls in auto mode #131) will add judgment for the calls the rules leave open.yolo, so a misparse cannot hide a simple command from deny rules.