safe-chains releases
← Back to safe-chains · RSS
-
- fix (cst) Remember parsed backtick bodies across passes in a classification
-
- fix (cst) Judge what follows a cd from the folder before it as well as after
-
- feat (workon) Allow create --base as a revision
- feat (jj) Allow read-only op show
-
- 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
-
- fix (folder-code) Judge a tool by the folder it actually runs in
- fix (cd) Claim pwd from the directory the shell is already in
- fix (path-gate) Judge a tool's project, entry, and manifest paths
- fix (npm) Judge flags after an npm or yarn script name
- fix (rollup) Judge an inline plugin expression as code
- fix (env) Judge per-target linker and compiler variables
- fix (env) Judge XDG_DATA_HOME as pandoc's data directory
- fix (folder-code) Admit a build in a granted unknown folder
- fix (folder-code) Keep the unknown-workdir sentinel in the project
- fix (pathgate) Judge a program run by a path by where it lives
- fix (pathgate) Drop a working-directory claim at user or above
- fix (allowlist) Do not let a rule skip a path gate or local config off
- fix (mvn) Require every phase and refuse properties that load code
- fix (npx) Judge a package spec before running the command it names
- fix (xcodebuild) Ask before a build setting names a compiler or an install root
- fix (pathgate) Judge a named entry by the path after the equals
- fix (mvn) Treat -f as the pom file
- fix (pathgate) Ask before a sibling runner loads code outside the project
- fix (npm) Ask when --prefix names a package folder
- fix (pathgate) Ask when folder code runs in an unknown folder
- fix (xcodebuild) Judge every build setting and path flag
- fix (env) Judge package registry, certificate and xcconfig variables
- fix (pathctx) Do not slice inside a multi-byte character when stripping the data-volume prefix
-
- fix (rustup) Check the toolchain word of rustup run and every --toolchain value
- fix (env) Treat rustup's download-location variables and cargo's per-target flags, aliases and registry settings as unsafe
- fix (pandoc) Check the format named by --list-extensions
- fix (env) Treat RUSTUP_FORCE_ARG0 and rustup's fallback settings file as unsafe
- fix (env) Judge cargo's nightly profile, [unstable] and [host] settings set through the environment
- fix (env) Judge CARGO_DOC_BROWSER, CARGO_BUILD_BUILD_DIR and cargo's proxy and CA bundle
- fix (env) Judge the rest of cargo's environment settings that name a program, a path or a target file
- fix (cargo) Gate a --target value that names a target specification file
- fix (env) Judge every target spelling of the C toolchain variables the build crates read
- fix (env) Refuse git and cargo settings that lower trust in what they download
- fix (pathgate) Refuse build tools run from a foreign temporary directory, which they take code and configuration from
- fix (pathgate) Judge more tools by the folder they run in, and an unpinnable folder as foreign
- fix (env) Judge cargo's source replacement and patch settings set through the environment
- fix (path_gate) Judge the config, required files and operands test runners and build tools execute where that code comes from
- fix (rollup) Leave out the watch-mode flags that name a command to run
-
- fix (pandoc) Check format values after optional-value flags
- fix (env) Restrict RUSTUP_TOOLCHAIN to toolchain names
-
- feat (entries) Approve read-only df
- feat (entries) Approve read-only xcrun swift-format lint
- feat (entries) Approve cargo fmt check mode after --
- feat (entries) Restrict pandoc to read-only stdout conversion
- fix (entries) Add property tests for passthrough tails
- fix (entries) Reject a passthrough on a sub that is not a plain policy
- fix (entries) Drop --config from the cargo fmt passthrough
- fix (entries) Accept only format names for pandoc format flags
- fix (pandoc) Refuse GHC runtime options
- fix (shellcheck) Refuse GHC runtime options
- fix (pandoc) Accept only built-in reader and writer formats
- fix (env) Refuse GHCRTS as the environment twin of +RTS
- fix (env) Gate RUSTFMT at the executor locus
- fix (xcrun) Gate DEVELOPER_DIR, TOOLCHAINS and --toolchain at the executor locus
- fix (pandoc) Gate --data-dir at the executor locus
- fix (df) Accept only documented libxo option values
- fix (perl) Refuse sub dereference calls and special variable assignments
- fix (perl) Close flag, heredoc, deref, and special-var bypasses
- fix (perl) Read operands that two-argument open treats as a mode as unsupported
- fix (perl) Accept only in-place backup names that stay beside the file
- fix (perl) Read sort with a sub named by a variable as a call
- fix (perl) Read the O compiler backend and the if loader as unsupported modules
- fix (hadolint) Refuse GHC runtime options
- fix (codex) Abstain on model-request and other unhandled hook events
-
- feat (hook) Classify a gated command as not-yet-approved or a boundary
- feat (targets) Let a target choose its gated policy by kind and permission mode
- feat (grok) Ask about a command safe-chains has not approved yet instead of refusing it
- feat (allowlist) Apply the user's rules inside groups, loops and functions
- fix (hook) Call a gated command a boundary unless its text settles every word
- fix (explain) Keep the agent's chaining lesson out of --explain
- fix (explain) Name a path that reaches a command through an earlier statement
- fix (reach) Say another user's home folder, not a credential store
- fix (cst) Forget a function redefinition when the next command starts
- fix (cst) Refuse a call to a function whose body is unknown
- fix (cst) Keep a redirect written on a function's body
- fix (cst) Judge a function the shell runs by its name alone
- fix (cst) Refuse a command that defines an alias
- fix (cst) Refuse a hash that binds a name to a path
- fix (envvars) Refuse filling a zsh hook array, and setting a name not spelt out
- fix (cst) Refuse a word or argument that assigns through arithmetic
- fix (cst) Refuse a redirect that names its descriptor by a variable
- fix (cst) Refuse an expansion that runs what a variable holds
- fix (cst) Read a counter as the number it is, judged over the whole line
- fix (cst) Treat values the shell sets itself as unknown in arithmetic
- fix (cst) Read a name as a number in arithmetic only when the line gave it one
- fix (cst) Keep a known one-word argument in its place
- fix (cst) Close the arithmetic reads a further review found
- fix (cst) Read zsh print's format from its -f option
- fix (cst) Read a format or option word a substitution builds as numeric
- fix (cst) Read a word that brace expansion, a glob or a split fans out
- fix (cst) Read $? and $$ as special parameters in test
- fix (scripts) Pin the mutants output directory the verdict is read from
- fix (gate) Call a link out of the workspace a boundary, and read every place a command reaches
-
- feat (wrappers) Classify heavy-slot.sh run -- <cmd> by its inner command
- feat (explain) Route --unknown-folder anchors through the plain-words dictionary
- fix (jq,perl,cst) Gate jq file and module inputs, heredocs, and perl patterns
- fix (resolve) Skip frozen-reach disk walks outside the sandbox
- fix (glob,pathctx) Match globs in linear time and bound walk entries
- fix (resolve) Walk a glob match as a literal directory
- fix (resolve) Walk a glob operand's literal path and refuse unreadable directories
- fix (resolve) Fail closed when a listing gap hides a frozen name
- fix (resolve) Refuse globs and symlink operands the walk cannot judge
- fix (resolve) Judge every expansion of a destructive operand
- fix (eval) Expand brace sequences before judging an operand
- fix (eval) Expand braces over the whole word, as bash does