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.

By Kuntur team · Published

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.

Where Droid leaves traces

SignalWindowsmacOSLinux
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 packagedroid or @factory/cli under %APPDATA%\npm\node_modulesSame packages under npm root -gSame as macOS
Processdroid.exe from %USERPROFILE%\bindroiddroid
Settings%USERPROFILE%\.factory\settings.json, settings.local.json~/.factory/settings.json, settings.local.jsonSame 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

SettingWhat it meansWhat Kuntur reports
sessionDefaultSettings.autonomyLevel: "high"High-risk actions (remote writes, deployments, migrations) run without asking, within Droid's hard checksAGENT_PERMISSIONS_BYPASS (user and project settings.json / settings.local.json)
--skip-permissions-unsafeSkips every permission prompt for that run; command blocks still applyA flag, not a file: only EDR process command lines show it
permissionRules with broad allow rulesCommands that never prompt (older files use commandAllowlist)Not a finding yet
Servers in mcp.jsonPrograms or URLs the agent can call; approvals can persist across sessionsMCP 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:

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.

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:

  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 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/droid on macOS and Linux and %USERPROFILE%\bin\droid.exe on 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 droid and @factory/cli, and ~/.factory/settings.json. command -v droid alone can find an unrelated program with the same name.
What is Droid's autonomy level?
A setting (sessionDefaultSettings.autonomyLevel, or --auto low|medium|high for droid exec) that decides which actions run without asking. high pre-authorizes remote writes, deployments and migrations; organizations can cap it with maxAutonomyLevel.
Where does Droid store MCP servers?
In ~/.factory/mcp.json for the user and .factory/mcp.json in a project or parent folder, under mcpServers.

Sources

  1. Factory Droid settings (autonomy, permission rules)
  2. Droid Exec (install methods, --auto, --skip-permissions-unsafe)
  3. Droid MCP configuration
  4. Homebrew cask droid

Detect other AI tools:

Related guides: