safe-chains v0.242.0
Released 2026-11-12 · View on GitHub
- feat (registry) Refuse_operands for subcommands
- feat (mise) Accept any ASCII-letter environment name on use, u and set
- fix (policy) Count a lone - as an operand
- fix (screen) Check the command screen runs
- fix (at) Approve only listing, showing and removing queued jobs
- fix (mise) Approve mise trust only with --show
- fix (regions) Shield the sign-in files of other coding agents
- fix (open) Approve only web addresses, or files opened for editing or revealing
- fix (cargo) Refuse cargo run when its arguments would change safe-chains' rules
- fix (chmod) Refuse a mode that sets the setuid or setgid bit
- fix (codex) Stop approving the subcommands that run an agent or a command
- fix (printenv) Refuse printing the environment, which carries credentials
- fix (screen) Refuse starting a detached session, and judge the shell and rc file a session starts
- fix (mise) Refuse mise settings set through the environment
- fix (codex) Stop approving the app server and the config changes that run at the next start
- fix (env) Refuse the spellings that print the environment
- fix (regions) Shield more coding agents' key and token files
- fix (open) Refuse an address with any scheme but the web's, whatever the flags
- fix (chmod) Refuse ACL edits, and setuid or setgid modes given to mkdir or rsync
- fix (cargo) Apply the rule-change check to cargo run only when it starts safe-chains
- fix (screen) Approve a session name after the reattach, detach and listing options, and a scrollback length
- fix (env) Count a lone - or + as the end of options, and refuse typeset -m listings
- fix (ps) Treat the uppercase E modifier as printing the environment
- fix (tmux) Refuse show-environment, and formats naming anything but tmux's own values
- fix (cargo) Refuse cargo install, which writes into the cargo bin directory, unless it only lists
- fix (cargo) Place cargo run's folder after following links, and read the manifest's package, binary and dependency names
- fix (screen) Refuse starting an attached session, approving only reattaching, detaching and listing
- fix (env) Accept SHELL only as a program in a standard bin directory
- fix (codex) Refuse config overrides in front of any subcommand, and mcp list and get except for their help
- fix (rsync) Judge remote options as if given locally, and gate the log and batch files
- fix (archive) Refuse extracting with pax, cpio and ditto as tar extraction is, and xar keeping set-id bits
- fix (credentials) Refuse kubectl config view --raw and direnv export, and shield more tools' key and transcript files
- fix (env) Accept SHELL only as a shell, not any program in a bin directory
- fix (codex) Refuse config overrides after the subcommand too, and CODEX_HOME and the cloud server address
- fix (rsync) Approve a remote shell only when it is ssh or rsh with plain options, in -e, --rsh and RSYNC_RSH
- fix (rsync) Approve --rsync-path only as a plain path to rsync
- fix (rsync) Gate --temp-dir and --partial-dir as the folders rsync writes into
- fix (rsync) Refuse a remote option that would need the next word as its value, and --server
- fix (env) Refuse typeset -m even beside an assignment, which still lists the matching variables
- fix (screen) Refuse -R beside a reattach, since it creates a session when there is none to resume
- fix (cargo) Read the manifest for cargo run --bin and --example too, since any target of this package can change the rules
- fix (cargo) Read a package or binary named with underscores or capitals as safe-chains
- fix (archive) Read pax -w and cpio -t only where they are options, before the first operand
- fix (archive) Refuse cpio -W, which bsdcpio reads as a long option name such as extract
- fix (archive) Read GNU cpio's -D and -M as taking a value, so a letter in their value is not taken for -t
- fix (registry) Never admit an unlisted flag as the first argument of a first_arg glob, so kubectl get --raw is refused
- fix (registry) Refuse a credential name in any argument a first_arg glob reads, so kubectl get pods,secrets is refused
- fix (regions) Shield a home credential store spelled with another case or through /System/Volumes/Data on macOS
- fix (regions) Treat /users/someone and /System/Volumes/Data/Users/someone as another user's home
- fix (regions) Judge a path with characters outside ASCII as every protected name it could spell
- fix (archive) Gate a pax copy's destination and what lands below it as writes, and refuse pax -s
- fix (env) Judge RSYNC_CONNECT_PROG as the command rsync runs
- fix (env) Judge PROMPT_COMMAND and the shell prompt variables, so tmux -e and setenv cannot plant them
- fix (env) Refuse declare and typeset options outside the documented attribute letters
- fix (registry) Read a glob among credential-checked arguments as every name it could match
- fix (safe-chains) Gate cargo run of this project with --setup, --auto-detect or --log
- fix (archive) Refuse a cpio pass-through copy with --insecure
- fix (archive) Refuse ptar -x and ptargrep without --list-only
- fix (registry) Accept a listed valued short flag with its value glued on in front of a glob's argument
- fix (rsync) Approve ssh or rsh with plain options as the remote shell, in a standard bin directory too
- fix (rsync) Refuse a local rsync --server
- fix (commands) Approve the help and version spellings of printenv, batch, mise set, launchctl print and codex exec, sandbox and resume
- fix (at) Approve atrm in a folder of unknown kind, since it removes queued jobs and writes nothing there
- fix (regions) Shield the Claude desktop app's folder, whose config gives MCP servers their API keys
- fix (archive) Judge the file names cpio -o and -p, pax and zip -@ read from stdin as the path the previous stage prints, and refuse names from nowhere
- fix (env) Refuse any program named to reach an rsync daemon
- fix (mise) Judge the names left after set removes one
- fix (regions) Treat a volfs path as a credential read
- fix (read) Refuse archivers and searchers that follow a link to a secret
- fix (rsync) Refuse a remote shell that escapes the project or a frozen path
- fix (rsync) Refuse a remote shell login name that is an option
- fix (screen) Accept a session name after a valued option
- fix (read) Resolve tar members against the directory in effect
- fix (read) Walk ripgrep paths using its valued options
- fix (read) Give ag its own options when it follows links
- fix (read) Walk the names zip reads from stdin
- fix (read) Assume ripgrep follows links when its config is set
- fix (read) Walk links followed by pax, 7z, ack and diff
- fix (screen) Describe where a session name sits
- fix (read) Judge a followed file link as that one file
- fix (exec) Judge a worktree script run by its path as the same script run by bash
- fix (exec) Judge a worktree path no better than the command its name spells
- fix (reach) Judge a followed link to an outside folder by what that folder holds
- fix (zip) Read a y inside an option's value as that value, not as -y
- fix (7z) Judge what a list file or an include switch names
- fix (search) Judge the config files rg and ack read before their arguments
- fix (docs) Put each policy bullet after Requires on its own line
- fix (paths) Read a macOS lookup prefix as the path after it
- fix (regions) Shield a home store whose parent folders are spelled outside ASCII
- fix (regions) Shield Claude Code's copies of its user state
- fix (regions) Shield a thread's view of a process's environment, memory and argv
- fix (rsync) Refuse a program or a merge file named through rsync's options
- fix (env) Judge rsync's partial folder and the option strings tools read from the environment
- fix (tmux) Refuse every option prefix that runs a command, and pipe-pane input
- fix (tmux) Judge typed text where the pane may be, not where the agent is
- fix (env-print) Refuse ps words, env -i values and mise set -g that show or plant the environment
- fix (open) Read every word after the first operand as an operand
- fix (at) Refuse printing a job, whose script exports the environment
- fix (launchctl) Refuse examine, which runs a tool on a service
- fix (exec) Judge a relative path by its name in any case, with a build hash or an agent's extension
- fix (cargo) Count a workspace as this project when a member is, or when its members cannot all be read
- fix (reach) Judge the links inside an outside folder a followed link leads to
- fix (reach) Walk a home-spelled operand where it lies
- fix (paths) Refuse a command run from a folder outside the standard bins
- fix (parse) Read NAME+=value as an appending assignment
- fix (envvars) Judge every folder a PATH assignment adds to the search
- fix (hash) Refuse binding a command name to a file, in every spelling
- fix (registry) Find a multi-letter single-dash flag inside a short cluster
- fix (zip) Judge zip-family operands and refuse zip's test command
- fix (read) Judge the file operands of commands that read or write them
- fix (registry) Judge flags after a first_arg glob argument against the sub's own lists
- fix (kubectl) Refuse output formats that read a template file
- fix (envvars) Refuse a search path whose $PATH the shell keeps as text
- fix (kustomize) Refuse build flags that run plugins or lift the load restrictor
- fix (ansible-vault) Refuse a vault password file or id, which run the file named
- fix (pathgate) Gate the files vim, nvim, nano and emacs open by read locus
- fix (editors) Refuse pager and editor startup commands and keystrokes fed on stdin
- fix (envvars) Refuse the lesskey variables, whose #env section sets the preprocessor less runs
- fix (envvars) Judge the editor, man and less variables that name code to run
- fix (man) Refuse a config file, whose settings name the programs man runs
- fix (envvars) Judge TAPE and the kubectl diff, kuberc and cache variables
- fix (tmux) Refuse an appended option value that starts with a brace
- fix (cargo) Read the manifest when cargo run -p names another package
- fix (kubectl) Judge the manifests kubectl diff reads as read paths
- fix (pax) Judge every word after the first operand as an operand, as BSD pax reads it
- fix (xar) Gate the archive, the operands and the files -C, -s and --dump-toc name, and refuse extraction
- fix (ptar) Gate the operands, the -T list, and the archives ptargrep and ptardiff read
- fix (cpio) Judge -f both as bsdcpio's valued pattern and GNU cpio's flag, so it hides no letter
- fix (7z) Refuse x and e, which extract, as every other extractor is refused
- fix (bash) Match dot names with a glob once the line turns on dotglob or sets GLOBIGNORE
- fix (tar) Refuse an archive named host:path, which GNU tar opens on another machine
- fix (cpio) Refuse an archive named host:path, which GNU cpio opens on another machine
- fix (zipinfo) Gate the archive it names as a read, as unzip -Z is
- fix (kustomize) Refuse a build whose target is a repository address, which kustomize clones
- fix (bash) Read ${…} as a parameter, not a brace group, as bash does
- fix (export) Refuse an operand that could expand into any assignment
- fix (man) Refuse a word or variable macOS man would evaluate as shell text
- fix (xip) Refuse --expand, which extracts the paths the archive names, as other extractors are
- fix (zless) Refuse a flag the macOS zless and zdiff scripts would split or expand
- fix (task) Require a listing, help or version flag and gate the Taskfile location
- fix (borg) Give each global and listing flag one arity, gate pattern files and the passphrase command
- fix (ansible-vault) Read the vault id and stdin name as values
- fix (borg) Refuse check --repair and config --delete, in either spelling
- fix (mvn) Accept only listed phases, listed -D properties and in-project files
- fix (mkdir) Count the word after --context as an operand
- fix (printf) Refuse a format with a %n conversion
- fix (rg) Gate the file named by --ignore-file by read locus
- fix (mise) Tighten what set and use accept
- fix (registry) Refuse_operands refuses an argument whose text the shell decides
- fix (mise) Gate the file that set, unset and use write by its locus
- fix (mise) Refuse inline tool options on install, upgrade and exec
- fix (env-print) Read the value of a mise set option as its value, not as a name to print
- fix (dotenv) Leave -v undeclared, since dotenv-cli reads its value as a variable for the child
- fix (envvars) Refuse MAVEN_ARGS, and gate ANSIBLE_LOG_PATH as a file ansible writes
- fix (mise) Accept only plain environment names, refuse the global config and path: versions
- fix (targets) Install the droid hook into hooks.json when that file exists
- fix (targets) Accept qwen's runtime shell tool id in the hook payload
- fix (engine) Judge a tool's write to its own folder against the folder a cd moved to
- fix (envvars) Refuse storing a variable that changes what later shells run or trust
- fix (registry) Judge mise x as mise exec
- fix (envvars) Gate the borg and go-task folders that hold state trusted on the next run
- fix (mvn) Refuse a log file written over the build's own pom.xml or .mvn folder
- fix (registry) Test a value glued to a short flag against a sub's refused operands
- fix (ansible) Gate an inventory source as code the run executes
- fix (envvars) Gate the folders ansible loads plugins, modules, roles and collections from
- fix (cst) Carry what an if condition leaves in the shell into the branches after it
- fix (engine) Judge the folder a cd moved to as the place code is loaded from for a tool that runs or builds the folder's code
- fix (registry) Refuse a flag mise exec reads before its separator unless the sub lists it
- fix (mise) Restore -g and --global on use, u and unset to 0.240.0
- fix (mise) Remove the stored-variable list from mise set
- fix (mise) Accept -g and --global on set, as on use and unset
- fix (tools) Refuse runtime options for GHC-built tools
- fix (less) Treat --LINE-NUMBERS and --LONG-PROMPT as switches across the less family
- fix (cst) See a dot-names option however the shell spells it
- fix (cst) Read a dot-names option after time and other prefixes, and after brace expansion
- fix (more) Refuse -p, and LESS_IS_MORE on a less-family pager, which make -p a startup command
- fix (mise) Refuse setting an audited variable in the global config
- fix (engine) Judge the folder a cd moved to as the code mvn, task, ansible-inventory, ansible-playbook and mise exec and install run
- fix (grep) Judge any prefix of --file and --dereference-recursive as that option
- fix (exec) Refuse running a script from node_modules or a frozen folder, directly or through a shell
- fix (exec) Judge a script or folder code from node_modules or a frozen folder after a cd moved there
- fix (exec) Read node_modules and a frozen folder however a folding character spells them
- fix (envvars) Judge MORE, the options more reads before its arguments, as LESS is judged
- fix (envvars) Judge LESSKEY_CONTENT_SYSTEM as LESSKEY_CONTENT, and hold every variable less reads to an audit
- fix (more) Refuse -p and --pattern on zmore, bzmore, xzmore and lzmore, which hand them to more
- fix (build) Judge make, bundle, gradle and nox as running the folder's code, and refuse make text from the command line
- fix (make) Refuse a second -C, or a -C with a relative -f, since make applies each in turn
- fix (make) Require -n alongside -p, which prints the database and then builds
- fix (exec) Judge a frozen or package folder as unreviewed code when a tool runs the folder's code
- fix (bundle) Judge the Gemfile Bundler finds above the folder, and bundle exec as running folder code
- fix (zless) Refuse -p and --pattern on a line that may set PAGER
- fix (git) Refuse git in a folder outside the project, whose repository configuration names programs git runs
- fix (parse) Refuse bash function substitutions ${ cmd; } and ${| cmd; }
- fix (pdf) Judge the output operand of ps2ascii and fix-qdf as a write
- fix (c) Stop approving dltest, which loads the library it is given
- fix (c) Judge cmpdylib operands as read paths
- fix (parse) Refuse a function substitution behind a line continuation
- fix (registry) A required flag given as another flag's value is not given
- fix (handlers) Refuse zless and zmore flags on a line that may set PAGER
- fix (vcs) Refuse repository tools run against a repository outside the project
- fix (vcs) Refuse jj and jjpr in a repository outside the project
- fix (tools) Judge the gitleaks report path as a write and drop --log-opts
- fix (mvn) Accept a glued value on a short flag, as commons-cli does
- fix (registry) A valued flag that is also standalone takes no next word
- fix (exec) A program named by a relative path is approved only where a rule names that spelling
- fix (wrappers) Heavy-slot.sh is trusted only at its installed locations
- fix (pathgate) A flag's separate value is consumed the way the policy consumes it