Security & trust
What shellfirm protects against, how to report a vulnerability or a bypass, supported versions, what data it handles, and how to verify what you install.
What shellfirm is, and is not
shellfirm is a guard against mistakes: it reads a command line before it runs and asks you (or answers an AI agent) when the command matches one of its checks. It is not a sandbox and not a security boundary against someone who wants to cause damage on purpose: it cannot see what a script or program does once it has started, a user can remove the hook from their own shell, and some risky commands have no check yet. The gaps are listed, by name, on Known limitations.
Report a vulnerability
A way to run a risky command without the challenge, deny list or project policy stopping it is a security bug. Please do not open a public issue for a vulnerability or a bypass.
- Email the maintainer listed in the
authorsfield ofshellfirm/Cargo.toml: Elad Kaplan, kaplan.elad@gmail.com. - Or use GitHub's private vulnerability reporting form: Report a vulnerability (the repository's Security tab → Report a vulnerability).
Include:
- the shellfirm version (
shellfirm --version), your shell and OS; - how shellfirm is hooked in: shell hook,
wrap, Claude Code, Cursor or MCP; - an exact reproduction (the command line, and the settings or policy involved).
The project aims to acknowledge reports within 7 days and to agree on a disclosure date with you once a fix is ready.
In scope
- A command that matches a built-in check, deny list or project policy but runs without a challenge or denial (parser, quoting, wrapper or hook bypasses).
- Ways for an AI agent or a repository to weaken shellfirm settings or policies without the user noticing.
- Audit-log tampering or spoofing that shellfirm claims to prevent.
- Crashes or hangs that make a hook fail open.
Out of scope
- A dangerous command that no check covers. Please open a normal issue, or add the check in a pull request: see Contributing.
- Limits that are already documented, such as Nushell built-ins. See Known limitations.
Supported versions
Security fixes go into the latest release only. Keep shellfirm up to date; release notes are in the CHANGELOG and on the releases page.
Data handling
| Question | Answer |
|---|---|
| Does shellfirm send commands anywhere? | No, unless you turn on LLM analysis. It is off by default and used only to review AI-agent commands when agent.llm_review is enabled and a provider is configured. In the source, the HTTP client is used only by the LLM module. |
| Does it phone home, check for updates or collect telemetry? | No. The shell hook, check, the agent hooks and the MCP server (stdio) run locally. |
| What does it store? | Your settings, and the audit log of challenged and denied commands, in your configuration directory (Linux ~/.config/shellfirm/, macOS ~/Library/Application Support/shellfirm/, Windows %APPDATA%\shellfirm\). |
| Who can read the audit log? | On Linux and macOS, only you (and root): the file is created with mode 0600, and wider permissions on an existing file are tightened to 0600. On Windows it has the permissions of your profile folder (%APPDATA%); administrators can read it. It never leaves the machine unless you ship it. |
| Are secrets in commands redacted? | Common forms are: passwords such as mysql -pSECRET are stored as mysql -p***. Redaction is best effort; see Known limitations. |
shellfirm status shows the LLM state. On a default install:
LLM analysis: not configured (experimental; see `shellfirm config llm`)Verify what you install
Be aware of what the release process does and does not provide today:
- Release binaries are not signed, and no checksum file is published yet. The release workflow builds the binaries on GitHub Actions and uploads them to GitHub releases and npm, without signatures, checksums, provenance attestations or an SBOM.
- To build from audited source instead, use Cargo (
cargo install shellfirmfrom crates.io, optionally with--locked), or clone the repository at a release tag and runcargo build --release --locked. - Pin the version you roll out (
npm install -g @shellfirm/cli@<version>,cargo install shellfirm --version <version>), and upgrade deliberately. See Rolling out to a team.
Supported platforms per install method are listed on Installation.
Maintainers and support
- shellfirm is maintained by Elad Kaplan (@kaplanelad), with contributions from the community.
- Support is community support through GitHub issues. There is no commercial support offering.
- How to contribute: Contributing.
License
shellfirm is open source under the Apache License 2.0, which allows commercial use, modification and distribution.