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.

By Kuntur team · Published

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.

Where Crush leaves traces

SignalWindowsmacOSLinux
Package managerswinget %LOCALAPPDATA%\Microsoft\WinGet\Packages\charmbracelet.crush_*; scoop %USERPROFILE%\scoop\apps\crushHomebrew /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 -gSame as macOS
go install%USERPROFILE%\go\bin\crush.exe~/go/bin/crush~/go/bin/crush
Processcrush (from any of the above)
User config%USERPROFILE%\.config\crush\crushrc~/.config/crush/crushrc (follows XDG_CONFIG_HOME); deprecated crush.jsonSame as macOS
State%LOCALAPPDATA%\crush\crush.json~/.local/share/crush/crush.jsonSame 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

SettingWhat it meansWhat Kuntur reports
crush --yoloAll permission prompts skipped for that runA 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 askingAGENT_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 crushrcPrograms or URLs the agent can callMCP 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:

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.

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:

  1. Download scan.ps1.
  2. Read it. It's plain text; here's what it does.
  3. Check its SHA-256 against the published hash: Get-FileHash .\scan.ps1 -Algorithm SHA256
  4. Run it: powershell -ExecutionPolicy Bypass -File .\scan.ps1

Windows shortcut, if you trust the source (PowerShell)

irm https://app.kuntur.io/scan.ps1 | iex

macOS and Linux (Terminal)

curl -fsSL https://app.kuntur.io/scan.sh | sh

It 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's charmbracelet.crush_* folder, scoop's apps\crush, or ~/go/bin/crush. Its config is in ~/.config/crush and its state in ~/.local/share/crush (%LOCALAPPDATA%\crush on Windows).
How do I check if Crush is installed?
Run command -v crush (or Get-Command crush) and check the path, then look for ~/.config/crush/crushrc or ~/.local/share/crush/crush.json. A binary in ~/.cargo/bin is 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

  1. Crush README (install methods, config files, --yolo, permissions)
  2. @charmland/crush on npm

Detect other AI tools:

Related guides: