How to Detect Factory Droid CLI on Employee Laptops
Droid is Factory's terminal coding agent. It installs per user with a script, Homebrew or npm, and its autonomy level decides how much it does without asking. Here are the traces per OS, a read-only check, and the settings that turn an install into a finding.
How to check if Factory Droid is installed: look for ~/.local/bin/droid on macOS and Linux or %USERPROFILE%\bin\droid.exe on Windows, the npm package droid (or @factory/cli), the Homebrew cask droid, and the folder ~/.factory with settings.json or mcp.json. Other programs are also called droid, so check the path.
What Droid is and why security teams care
Droid reads and edits code, runs commands and calls MCP servers with the permissions of the logged-in user, interactively or headless with droid exec in scripts and CI.
- Per-user installs. The install script writes to the user's home folder; Homebrew and npm are the other documented options. None need admin rights.
- Autonomy is a setting.
sessionDefaultSettings.autonomyLevelin~/.factory/settings.jsoncan beoff,low,mediumorhigh; athighDroid pre-authorizes remote writes, deployments and migrations, subject to its own hard safety checks. - Skip all prompts.
--skip-permissions-unsafeskips every permission prompt (command blocks still apply); Factory recommends it only in disposable environments.
Where Droid leaves traces
| Signal | Windows | macOS | Linux |
|---|---|---|---|
| Install script | %USERPROFILE%\bin\droid.exe | ~/.local/bin/droid | ~/.local/bin/droid |
| Homebrew cask | - | droid in /opt/homebrew/bin or /usr/local/bin, linked from Caskroom/droid | - |
| npm global package | droid or @factory/cli under %APPDATA%\npm\node_modules | Same packages under npm root -g | Same as macOS |
| Process | droid.exe from %USERPROFILE%\bin | droid | droid |
| Settings | %USERPROFILE%\.factory\settings.json, settings.local.json | ~/.factory/settings.json, settings.local.json | Same as macOS |
| MCP servers | ~/.factory/mcp.json (user); .factory/mcp.json in a project or a parent folder | ||
Lookalike: droid is a common name for other tools. Kuntur's rule does not count a bare droid on PATH or a droid process from an arbitrary folder; it needs the installer location, the Homebrew cask folder (/opt/homebrew/Caskroom/droid or /usr/local/Caskroom/droid), one of the two npm packages or the ~/.factory settings files. Another program linked as /opt/homebrew/bin/droid does not count.
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? Installer location, npm packages, anything named droid on PATH
Test-Path "$env:USERPROFILE\bin\droid.exe"
Test-Path "$env:APPDATA\npm\node_modules\droid"
Test-Path "$env:APPDATA\npm\node_modules\@factory\cli"
Get-Command droid -ErrorAction SilentlyContinue | Select-Object Source # may be another "droid"
# 2. Running now?
Get-CimInstance Win32_Process |
Where-Object { $_.ExecutablePath -like '*\bin\droid.exe' -or $_.CommandLine -like '*@factory\cli*' } |
Select-Object ProcessId, Name, ExecutablePath
# 3. Settings and MCP files, and the settings worth a finding (labels only, no values)
$d = "$env:USERPROFILE\.factory"
foreach ($n in 'settings.json', 'settings.local.json', 'mcp.json') {
if (Test-Path "$d\$n") { "$d\$n" }
}
foreach ($f in "$d\settings.json", "$d\settings.local.json") {
if ((Test-Path $f) -and (Select-String -Path $f -Pattern '"autonomyLevel"\s*:\s*"high"' -Quiet)) { " $f : autonomyLevel high" }
}
macOS and Linux (bash)
# Read-only, no network. Run as the user. Prints paths only.
# 1. Installed? Installer location, Homebrew, npm packages, PATH
ls -l "$HOME/.local/bin/droid" /opt/homebrew/bin/droid /usr/local/bin/droid 2>/dev/null
ls -d "$(npm root -g 2>/dev/null)/droid" "$(npm root -g 2>/dev/null)/@factory/cli" 2>/dev/null
brew list --cask --versions droid 2>/dev/null
command -v droid # may be another program called droid: check the path
# 2. Running now?
pgrep -fl '\.local/bin/droid|@factory/cli|/bin/droid'
# 3. Settings and MCP files, and the settings worth a finding (labels only, no values)
for n in settings.json settings.local.json mcp.json; do
f="$HOME/.factory/$n"
[ -f "$f" ] && echo "$f"
done
for f in "$HOME/.factory/settings.json" "$HOME/.factory/settings.local.json"; do
[ -f "$f" ] && grep -Eq '"autonomyLevel"[[:space:]]*:[[:space:]]*"high"' "$f" && echo " $f: autonomyLevel high"
done
Headless runs (droid exec) in CI use the same binary; this page is about laptops. 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 |
|---|---|---|
sessionDefaultSettings.autonomyLevel: "high" | High-risk actions (remote writes, deployments, migrations) run without asking, within Droid's hard checks | AGENT_PERMISSIONS_BYPASS (user and project settings.json / settings.local.json) |
--skip-permissions-unsafe | Skips every permission prompt for that run; command blocks still apply | A flag, not a file: only EDR process command lines show it |
permissionRules with broad allow rules | Commands that never prompt (older files use commandAllowlist) | Not a finding yet |
Servers in mcp.json | Programs or URLs the agent can call; approvals can persist across sessions | MCP inventory and MCP findings |
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 Droid 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 Droid on every endpoint.
How to restrict Droid with Intune or Jamf
Kuntur does not block, restrict or uninstall anything. If your policy says Droid 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.
Factory also documents organization-managed settings, including maxAutonomyLevel (a cap on any session's autonomy level) and MCP policies such as mcpPolicy. If Droid is approved, capping autonomy is a gentler control than blocking the binary.
How Kuntur detects Factory Droid
Kuntur's catalog identifies Droid by the installer paths (~/.local/bin/droid, %USERPROFILE%\bin\droid.exe), the Homebrew cask folder, the npm packages droid and @factory/cli, a droid process from those locations, and ~/.factory/settings.json or mcp.json. The agent also reads ~/.factory/mcp.json and project .factory/mcp.json files for every user profile, and links MCP servers that Droid starts to it.
To check one machine now, the free Kuntur scanner lists Droid 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 Droid 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 Factory Droid installed?
- The install script puts it in
~/.local/bin/droidon macOS and Linux and%USERPROFILE%\bin\droid.exeon Windows. Homebrew (brew install --cask droid) and npm (npm install -g droid) are the other options. Settings live in~/.factory. - How do I check if Droid is installed?
- Check the installer path for your OS, the npm packages
droidand@factory/cli, and~/.factory/settings.json.command -v droidalone can find an unrelated program with the same name. - What is Droid's autonomy level?
- A setting (
sessionDefaultSettings.autonomyLevel, or--auto low|medium|highfordroid exec) that decides which actions run without asking.highpre-authorizes remote writes, deployments and migrations; organizations can cap it withmaxAutonomyLevel. - Where does Droid store MCP servers?
- In
~/.factory/mcp.jsonfor the user and.factory/mcp.jsonin a project or parent folder, undermcpServers.
Sources
- Factory Droid settings (autonomy, permission rules)
- Droid Exec (install methods, --auto, --skip-permissions-unsafe)
- Droid MCP configuration
- Homebrew cask droid
Detect other AI tools:
Related guides: