How to Detect Crush (Charm) on Employee Laptops
Crush is the terminal coding agent from Charm, the makers of popular terminal tools. It ships through almost every package manager, and its command name is shared with an unrelated shell. Here are the traces per OS, a read-only check, and what deserves a finding.
How to check if Crush is installed: look for Homebrew's opt/crush, the npm package @charmland/crush, winget's charmbracelet.crush_* folder, scoop's apps\crush or ~/go/bin/crush, and the files ~/.config/crush/crushrc or ~/.local/share/crush/crush.json. A crush binary under ~/.cargo/bin is a different program.
What Crush is and why security teams care
Crush is an open-source terminal agent by Charm. It works with many model providers, reads and edits code, runs commands and connects to MCP servers and language servers, as the logged-in user.
- Many install paths. Homebrew, npm, winget, scoop,
go install, apt and yum repositories, the AUR, Nix and plain release binaries. Inventories that look in one place miss the rest. - YOLO flag.
crush --yoloskips all permission prompts; Charm's README warns to be very careful with it. - Allow lists.
permissions allow ...incrushrcpre-approves tools, including shell and MCP tools.
Where Crush leaves traces
| Signal | Windows | macOS | Linux |
|---|---|---|---|
| Package managers | winget %LOCALAPPDATA%\Microsoft\WinGet\Packages\charmbracelet.crush_*; scoop %USERPROFILE%\scoop\apps\crush | Homebrew /opt/homebrew/opt/crush or /usr/local/opt/crush (from charmbracelet/tap) | Linuxbrew /home/linuxbrew/.linuxbrew/opt/crush; apt, yum, AUR, Nix packages |
| npm global package | @charmland/crush under %APPDATA%\npm\node_modules | @charmland/crush under npm root -g | Same as macOS |
| go install | %USERPROFILE%\go\bin\crush.exe | ~/go/bin/crush | ~/go/bin/crush |
| Process | crush (from any of the above) | ||
| User config | %USERPROFILE%\.config\crush\crushrc | ~/.config/crush/crushrc (follows XDG_CONFIG_HOME); deprecated crush.json | Same as macOS |
| State | %LOCALAPPDATA%\crush\crush.json | ~/.local/share/crush/crush.json | Same as macOS |
| Project files | .crushrc or crushrc (and the older .crush.json or crush.json) in a repository | ||
Lookalike: crush is also the name of a shell installed with Cargo. Kuntur's rule does not count a bare crush on PATH and ignores crush processes from .cargo; it needs a package-manager location, the npm package, ~/go/bin/crush, or Crush's own config and state files. CRUSH_GLOBAL_CONFIG and CRUSH_GLOBAL_DATA can move the files.
Check one machine
Both checks only read files and the process table. They send nothing over the network, change nothing, and print paths and labels only, never the contents of a settings or credentials file.
Windows (PowerShell)
# Read-only, no network. Run as the user (not SYSTEM). Prints paths only.
# 1. Installed? winget, scoop, go install, npm, then anything named crush on PATH
Get-ChildItem "$env:LOCALAPPDATA\Microsoft\WinGet\Packages" -Filter 'charmbracelet.crush_*' -Directory -ErrorAction SilentlyContinue |
Select-Object FullName
Test-Path "$env:USERPROFILE\scoop\apps\crush"
Test-Path "$env:USERPROFILE\go\bin\crush.exe"
Test-Path "$env:APPDATA\npm\node_modules\@charmland\crush"
Get-Command crush -ErrorAction SilentlyContinue | Select-Object Source # check the path: not every crush is Charm's
# 2. Running now? Skip binaries under .cargo (a different program with the same name)
Get-CimInstance Win32_Process -Filter "Name = 'crush.exe'" |
Where-Object { $_.ExecutablePath -notlike '*\.cargo\*' } | Select-Object ProcessId, ExecutablePath
# 3. Config and state files (paths only)
foreach ($f in "$env:USERPROFILE\.config\crush\crushrc", "$env:USERPROFILE\.config\crush\crush.json",
"$env:LOCALAPPDATA\crush\crush.json") {
if (Test-Path $f) { $f }
}
macOS and Linux (bash)
# Read-only, no network. Run as the user. Prints paths only.
# 1. Installed? Homebrew, go install, npm, then anything named crush on PATH
ls -d /opt/homebrew/opt/crush /usr/local/opt/crush /home/linuxbrew/.linuxbrew/opt/crush 2>/dev/null
ls -l "$HOME/go/bin/crush" 2>/dev/null
ls -d "$(npm root -g 2>/dev/null)/@charmland/crush" 2>/dev/null
command -v crush # check the path: ~/.cargo/bin/crush is a different program
# 2. Running now? Skip binaries under .cargo
pgrep -fl crush | grep -v '\.cargo/'
# 3. Config and state files (paths only), plus project config in a repo
ls -l "$HOME/.config/crush/crushrc" "$HOME/.config/crush/crush.json" \
"$HOME/.local/share/crush/crush.json" 2>/dev/null
ls -l ./.crushrc ./crushrc ./.crush.json ./crush.json 2>/dev/null
The project-file check in the bash snippet runs in the current folder; run it from a repository root. A Linux install inside WSL is invisible to the Windows check (see the WSL guide).
Settings worth a finding
| Setting | What it means | What Kuntur reports |
|---|---|---|
crush --yolo | All permission prompts skipped for that run | A flag: only EDR process command lines show it |
permissions allow bash ... in crushrc (or bash in allowed_tools of crush.json) | Shell commands run without asking | AGENT_UNRESTRICTED_SHELL for top-level, unconditional lines (unless bash is also denied); other allowed tools are not a finding |
mcp servers in crush.json or mcp add in crushrc | Programs or URLs the agent can call | MCP inventory and MCP findings for both; crushrc is read as text and never run, so values that come from $VAR or $(...) are not known |
Find it across a fleet
The commands above answer the question for one laptop. Across a fleet, run the same read-only checks from the management tool you already use and collect one line per device. These guides show how to deploy a read-only script and read the results; their ready-made scripts cover the most common AI tools, so paste the Crush checks from this page into the same script:
- Windows with Intune: Detect AI tools with Intune Remediations (detection-only script, results in the device status column).
- Windows with NinjaOne: Inventory AI tools with NinjaOne (writes a summary to a device custom field).
- macOS with Jamf Pro: Find AI tools with a Jamf Pro extension attribute (plus a Smart Group to act on it).
- macOS with Iru (Kandji): Detect AI tools with an Iru custom script (with an allowlist).
MDM scripts usually run as SYSTEM or root, where %USERPROFILE% and ~ point at the wrong home folder, so loop over every profile under C:\Users, /Users or /home and replace the home path in each check. The Kuntur agent already does this for Crush on every endpoint.
How to restrict Crush with Intune or Jamf
Kuntur does not block, restrict or uninstall anything. If your policy says Crush should not run, the restriction is done with your MDM or with the vendor's own admin controls, and the inventory tells you who the rule will affect before you enforce it.
- Windows (Intune): an App Control for Business or AppLocker deny rule on the binary, by publisher, path or hash, in audit mode first. How to restrict Claude Code with Intune walks through the same steps for another terminal agent; swap in the paths from the table above.
- macOS (Jamf Pro): a Restricted Software record with the exact process name. How to restrict Claude Code with Jamf Pro shows how to find the name on a test Mac and what the record will not catch.
- npm installs run under Node. A rule on the tool's own binary does not apply to
node, and denying Node breaks every JavaScript developer. For node-hosted installs, vendor settings that users cannot override are the more practical control.
Crush is a native Go binary in most install methods (the npm package wraps it), so an App Control publisher or path rule on crush.exe, or a Jamf Restricted Software record named crush, does match it, unlike agents that run under Node. Check that the record does not also hit the Cargo shell if someone uses it.
How Kuntur detects Crush
Kuntur's catalog identifies Crush by the Homebrew, winget, scoop and go install locations, the npm package @charmland/crush, a crush process outside .cargo, and Crush's config and state files. The agent also reads MCP servers from ~/.config/crush/crushrc and crush.json and from project .crushrc, crushrc, crush.json or .crush.json files (a crushrc is parsed as text, never executed), and links MCP servers that Crush starts to it.
To check one machine now, the free Kuntur scanner lists Crush together with every other AI tool, extension, local model and MCP server it finds:
- Download scan.ps1.
- Read it. It's plain text; here's what it does.
- Check its SHA-256 against the published hash:
Get-FileHash .\scan.ps1 -Algorithm SHA256 - Run it:
powershell -ExecutionPolicy Bypass -File .\scan.ps1
Windows shortcut, if you trust the source (PowerShell)
irm https://app.kuntur.io/scan.ps1 | iexmacOS and Linux (Terminal)
curl -fsSL https://app.kuntur.io/scan.sh | shIt needs no account and no admin rights, writes an HTML report to the Desktop (or home folder) and uploads nothing. You can read scan.ps1 or scan.sh before running it; what it collects is documented.
Across a fleet, the Kuntur agent reports the same inventory for every user profile on Windows, macOS and Linux. You mark Crush approved or unauthorized once for the organization, the dashboard shows which machines carry it, and every decision lands in an audit log.
Free for up to 5 endpoints. Pro is US$3 per endpoint per month (or US$30 per endpoint per year) for 10 to 30 endpoints. The trial needs no credit card. Kuntur detects and reports; it does not block or uninstall anything.
FAQ
- Where is Crush installed?
- Wherever its package manager puts it: Homebrew's
opt/crush, the npm package@charmland/crush, winget'scharmbracelet.crush_*folder, scoop'sapps\crush, or~/go/bin/crush. Its config is in~/.config/crushand its state in~/.local/share/crush(%LOCALAPPDATA%\crushon Windows). - How do I check if Crush is installed?
- Run
command -v crush(orGet-Command crush) and check the path, then look for~/.config/crush/crushrcor~/.local/share/crush/crush.json. A binary in~/.cargo/binis the unrelated crush shell. - What does crush --yolo do?
- It skips all permission prompts, so every tool call, including shell commands, runs without asking. It is a command-line flag and leaves nothing in the config files.
- Is Crush the same as the crush shell?
- No. The shell is a separate project installed with Cargo. Kuntur's rule ignores it and only reports Charm's coding agent.
Sources
Detect other AI tools:
Related guides: