Content
<h1 align="center">StepSecurity Dev Machine Guard</h1>
<p align="center">
<img src="images/banner.png" alt="StepSecurity Dev Machine Guard — shield logo with terminal prompt" width="800">
</p>
<p align="center">
<img src="images/demo.gif" alt="StepSecurity Dev Machine Guard demo" width="800">
</p>
<p align="center">
<a href="https://github.com/step-security/dev-machine-guard/actions/workflows/go.yml"><img src="https://github.com/step-security/dev-machine-guard/actions/workflows/go.yml/badge.svg" alt="Go CI"></a>
<a href="https://github.com/step-security/dev-machine-guard/actions/workflows/shellcheck.yml"><img src="https://github.com/step-security/dev-machine-guard/actions/workflows/shellcheck.yml/badge.svg" alt="ShellCheck CI"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License: Apache 2.0"></a>
<a href="https://github.com/step-security/dev-machine-guard/releases"><img src="https://img.shields.io/badge/version-1.9.1-purple.svg" alt="Version 1.9.1"></a>
</p>
<p align="center">
<b>Scan your dev machine for AI agents, MCP servers, IDE extensions, and suspicious packages — in seconds.</b>
</p>
## Why Dev Machine Guard?
Developer machines are the new attack surface. They hold high-value assets — GitHub tokens, cloud credentials, SSH keys — and routinely execute untrusted code through dependencies and AI-powered tools. Recent supply chain attacks have shown that malicious VS Code extensions can steal credentials, rogue MCP servers can access your codebase, and compromised npm packages can exfiltrate secrets.
<p align="center">
<img src="images/attack-surface.png" alt="Developer machine attack surface — malicious extensions, rogue MCP servers, unvetted AI agents, compromised packages" width="800">
</p>
**EDR and traditional MDM solutions** monitor device posture and compliance, but they have **zero visibility** into the developer tooling layer:
| Capability | EDR / MDM | Dev Machine Guard |
| --------------------------- | :-------: | :---------------: |
| IDE extension audit | | Yes |
| AI agent & tool inventory | | Yes |
| MCP server config audit | | Yes |
| Node.js package scanning | | Yes |
| Device posture & compliance | Yes | |
| Malware / virus detection | Yes | |
**Dev Machine Guard is complementary to EDR/MDM — not a replacement.** Deploy it alongside your existing tools via MDM (Jamf, Kandji, Intune) or run it standalone.
<p align="center">
<img src="images/blind-spots.png" alt="The developer tooling blind spot — EDR and MDM miss IDE extensions, AI agents, MCP servers, and npm packages" width="800">
</p>
## Quick Start
### Install from release (recommended)
Download the latest binary for your platform from [GitHub Releases](https://github.com/step-security/dev-machine-guard/releases):
```bash
# Apple Silicon (M1/M2/M3/M4)
curl -sSL https://github.com/step-security/dev-machine-guard/releases/latest/download/stepsecurity-dev-machine-guard_darwin_arm64 -o stepsecurity-dev-machine-guard
chmod +x stepsecurity-dev-machine-guard
# Intel Mac
curl -sSL https://github.com/step-security/dev-machine-guard/releases/latest/download/stepsecurity-dev-machine-guard_darwin_amd64 -o stepsecurity-dev-machine-guard
chmod +x stepsecurity-dev-machine-guard
# Run the scan
./stepsecurity-dev-machine-guard
```
### Build from source
```bash
git clone https://github.com/step-security/dev-machine-guard.git
cd dev-machine-guard
make build
./stepsecurity-dev-machine-guard
```
Requires Go 1.24+. The binary has zero external dependencies.
## Usage
```
stepsecurity-dev-machine-guard [COMMAND] [OPTIONS]
```
### Commands
| Command | Description |
| ---------------- | --------------------------------------------------------------- |
| _(none)_ | Run a scan (community mode, pretty output) |
| `configure` | Interactively set all settings (enterprise, scan, output) |
| `configure show` | Show current configuration (API key masked) |
| `install` | Install launchd for periodic scanning (enterprise) |
| `uninstall` | Remove launchd configuration (enterprise) |
| `send-telemetry` | Upload scan results to the StepSecurity dashboard (enterprise) |
### Output Formats
| Flag | Description |
| ------------- | ---------------------------------------- |
| `--pretty` | Pretty terminal output (default) |
| `--json` | JSON output to stdout |
| `--html FILE` | Self-contained HTML report saved to FILE |
### Options
| Flag | Description |
| ---------------------------- | ------------------------------------------------------------- |
| `--search-dirs DIR [DIR...]` | Search DIRs instead of `$HOME` (replaces default; repeatable) |
| `--enable-npm-scan` | Enable Node.js package scanning |
| `--disable-npm-scan` | Disable Node.js package scanning |
| `--verbose` | Show progress messages (suppressed by default) |
| `--color=WHEN` | Color mode: `auto` \| `always` \| `never` (default: `auto`) |
| `-v`, `--version` | Show version |
| `-h`, `--help` | Show help |
### Examples
```bash
# Pretty terminal output (default)
./stepsecurity-dev-machine-guard
# JSON output
./stepsecurity-dev-machine-guard --json
./stepsecurity-dev-machine-guard --json | python3 -m json.tool # formatted
./stepsecurity-dev-machine-guard --json > scan.json # to file
# HTML report
./stepsecurity-dev-machine-guard --html report.html
# Verbose scan with npm packages — shows progress spinners and timing
./stepsecurity-dev-machine-guard --verbose --enable-npm-scan
# Scan specific directories instead of $HOME
./stepsecurity-dev-machine-guard --search-dirs /Volumes/code
./stepsecurity-dev-machine-guard --search-dirs /tmp /opt # multiple dirs
# Pipe JSON through jq to extract just AI tools
./stepsecurity-dev-machine-guard --json | jq '.ai_agents_and_tools'
# Count IDE extensions
./stepsecurity-dev-machine-guard --json | jq '.summary.ide_extensions_count'
# Check for MCP configs (exit 1 if any found — useful in CI)
count=$(./stepsecurity-dev-machine-guard --json | jq '.summary.mcp_configs_count')
[ "$count" -gt 0 ] && echo "MCP servers detected!" && exit 1
# Disable colors for piping or logging
./stepsecurity-dev-machine-guard --color=never 2>&1 | tee scan.log
# Enterprise: configure all settings interactively
./stepsecurity-dev-machine-guard configure
# Enterprise: view saved configuration (API key masked)
./stepsecurity-dev-machine-guard configure show
# Enterprise: install scheduled scanning via launchd
./stepsecurity-dev-machine-guard install
# Enterprise: one-time telemetry upload
./stepsecurity-dev-machine-guard send-telemetry
# Enterprise: remove scheduled scanning
./stepsecurity-dev-machine-guard uninstall
```
## Configuration
Run `configure` to set up enterprise credentials and default search directories:
```bash
./stepsecurity-dev-machine-guard configure
```
This interactively prompts for all configurable settings:
| Setting | Description | Default |
| ------------------ | ------------------------------------------- | --------------- |
| Customer ID | Your StepSecurity customer identifier | _(not set)_ |
| API Endpoint | StepSecurity backend URL | _(not set)_ |
| API Key | Authentication key for telemetry uploads | _(not set)_ |
| Scan Frequency | How often launchd runs scans (hours) | _(not set)_ |
| Search Directories | Comma-separated list of directories to scan | `$HOME` |
| Enable NPM Scan | Node.js package scanning | `auto` |
| Color Mode | Terminal color output | `auto` |
| Output Format | Default output format | `pretty` |
| HTML Output File | Default path for HTML reports | _(not set)_ |
| Quiet Mode | Suppress progress messages | `false` |
View current settings:
```bash
./stepsecurity-dev-machine-guard configure show
```
```
Configuration (~/.stepsecurity/config.json):
Customer ID: my-company
API Endpoint: https://api.stepsecurity.io
API Key: ***a1b2
Scan Frequency: 4 hours
Search Directories: $HOME, /Volumes/code
Enable NPM Scan: auto
Color Mode: auto
Output Format: pretty
Quiet Mode: false
```
Configuration is saved to `~/.stepsecurity/config.json` with `0600` permissions (owner read/write only).
**CLI flags always override config file values** — this matches the shell script behavior. For example, if your config has `output_format: json`, running `./stepsecurity-dev-machine-guard --pretty` uses pretty output. To clear a value during configuration, enter a single dash (`-`).
### Verbose and Quiet Mode
By default in community mode, progress messages (spinners, step details) are **suppressed** — you only see the final output. This keeps stdout clean for piping.
```bash
# Default: quiet — clean output, no progress spinners
./stepsecurity-dev-machine-guard --json > scan.json
# Verbose: show progress spinners and step timing
./stepsecurity-dev-machine-guard --verbose
# Save quiet=true in config so it persists across runs
./stepsecurity-dev-machine-guard configure
```
In enterprise mode (`send-telemetry`, `install`), progress is **always shown** regardless of the quiet setting — the output is captured as execution logs and sent to the backend for debugging.
## What It Detects
See [SCAN_COVERAGE.md](SCAN_COVERAGE.md) for the full catalog of supported detections.
| Category | Examples |
| ------------------- | ---------------------------------------------------------------------------------------- |
| IDEs & Desktop Apps | VS Code, Cursor, Windsurf, Antigravity, Zed, Claude, Copilot |
| AI CLI Tools | Claude Code, Codex, Gemini CLI, Kiro, GitHub Copilot CLI, Aider, OpenCode |
| AI Agents | Claude Cowork, OpenClaw, ClawdBot, GPT-Engineer |
| AI Frameworks | Ollama, LM Studio, LocalAI, Text Generation WebUI |
| MCP Server Configs | Claude Desktop, Claude Code, Cursor, Windsurf, Antigravity, Zed, Open Interpreter, Codex |
| IDE Extensions | VS Code, Cursor (name, publisher, version, install date) |
| Node.js Packages | npm, yarn, pnpm, bun (opt-in) |
## Output Formats
### Pretty Terminal Output (default)
```bash
./stepsecurity-dev-machine-guard
```
<p align="center">
<img src="images/pretty-output.png" alt="Pretty terminal output showing device info, AI agents, IDEs, MCP servers, and extensions" width="700">
</p>
### JSON Output
```bash
./stepsecurity-dev-machine-guard --json
```
See [examples/sample-output.json](examples/sample-output.json) for the full schema, or [Reading Scan Results](docs/reading-scan-results.md) for the schema reference.
### HTML Report
```bash
./stepsecurity-dev-machine-guard --html report.html
```
<p align="center">
<img src="images/html-report.png" alt="HTML report with summary cards, device info, and detailed tables" width="700">
</p>
## Community vs Enterprise
| Feature | Community (Free) | Enterprise |
| ----------------------------- | :--------------: | :--------: |
| AI agent & tool inventory | Yes | Yes |
| IDE extension scanning | Yes | Yes |
| MCP server config audit | Yes | Yes |
| Pretty / JSON / HTML output | Yes | Yes |
| Node.js package scanning | Opt-in | Default on |
| Interactive configuration | Yes | Yes |
| Centralized dashboard | | Yes |
| Policy enforcement & alerting | | Yes |
| Scheduled scans via launchd | | Yes |
| Historical trends & reporting | | Yes |
Enterprise mode requires a StepSecurity subscription. [Start a 14-day free trial](https://www.stepsecurity.io/start-free) by installing the StepSecurity GitHub App.
### Enterprise Setup
```bash
# 1. Configure credentials (interactive)
./stepsecurity-dev-machine-guard configure
# 2. Install scheduled scanning via launchd
./stepsecurity-dev-machine-guard install
# 3. Or run a one-time telemetry upload
./stepsecurity-dev-machine-guard send-telemetry
# 4. Uninstall scheduled scanning
./stepsecurity-dev-machine-guard uninstall
```
**Open-source commitment:** StepSecurity enterprise customers use the exact same binary from this repository. There is no separate closed-source version — all scanning capabilities are developed and maintained here in the open. Enterprise mode adds centralized infrastructure (dashboard, policy engine, alerting) on top of the same open-source scanning engine.
## How It Works
<p align="center">
<img src="images/how-it-works.png" alt="Architecture diagram — scan sources flow through the binary to terminal, JSON, HTML, or StepSecurity dashboard outputs" width="800">
</p>
Dev Machine Guard is a single compiled binary that scans your developer environment. Here's what it does and — importantly — what it does **not** do:
**What it collects:**
- Installed IDEs, AI tools, and their versions
- IDE extension names, publishers, and versions
- MCP server configuration (server names and commands only)
- Node.js package listings (opt-in)
**What it does NOT collect:**
- Source code, file contents, or project data
- Secrets, credentials, API keys, or tokens
- Browsing history or personal files
- Any data from your IDE workspaces
**In community mode**, all data stays on your machine. Nothing is sent anywhere.
**In enterprise mode**, scan data is sent to the StepSecurity backend for centralized visibility. The source code is fully open — you can audit exactly what is collected and transmitted.
## Building from Source
```bash
# Build
make build
# Run unit tests (with race detector)
make test
# Run integration smoke tests
make smoke
# Run linter
make lint
# Clean build artifacts
make clean
```
### Project Structure
```
cmd/stepsecurity-dev-machine-guard/ # Binary entry point
internal/
├── buildinfo/ # Version and build metadata
├── cli/ # Argument parser
├── config/ # Configuration file management and configure command
├── detector/ # All scanners (IDE, AI CLI, agents, frameworks, MCP, extensions, Node.js)
├── device/ # Device info (hostname, serial, OS version)
├── executor/ # OS abstraction interface (enables mocked unit tests)
├── launchd/ # macOS launchd install/uninstall
├── lock/ # PID-file instance locking
├── model/ # JSON struct types
├── output/ # Formatters (JSON, pretty, HTML)
├── progress/ # Progress spinner and logging
├── scan/ # Community mode orchestrator
└── telemetry/ # Enterprise mode orchestrator and S3 upload
```
## How It Compares
Dev Machine Guard is **not a replacement** for dependency scanners, vulnerability databases, or endpoint security tools. It covers a different layer — the developer tooling surface — that these tools were never designed to inspect.
| Tool Category | What It Does Well | What It Misses |
| ----------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| **`npm audit` / `yarn audit`** | Flags known CVEs in declared dependencies | Has no visibility into IDEs, AI tools, MCP servers, or IDE extensions |
| **OWASP Dep-Check / Snyk / Socket** | Deep dependency vulnerability and supply-chain risk analysis | Does not scan the broader developer tooling layer (AI agents, IDE extensions, MCP configs) |
| **EDR / MDM (CrowdStrike, Jamf, Intune)** | Device posture, compliance, and malware detection | Zero visibility into developer-specific tooling like IDE extensions, MCP servers, or AI agent configurations |
Dev Machine Guard fills the gap by inventorying what is actually running in your developer environment. Deploy it alongside your existing security stack for complete coverage.
## Known Limitations
- **macOS only** (for now). Windows support is on the roadmap.
- **Node.js package scanning** is opt-in and results are basic (package manager detection and project count). Full dependency tree analysis is available in enterprise mode.
- **MCP config auditing** shows which tools have MCP configs (source, vendor, and config path) but does not display config file contents in community mode. Enterprise mode sends filtered config data (server names and commands only, no secrets) to the dashboard.
## Roadmap
Check out the [GitHub Issues](https://github.com/step-security/dev-machine-guard/issues) for planned features and improvements. Feedback and suggestions are welcome — open an issue to start a conversation.
## JSON Schema
See [examples/sample-output.json](examples/sample-output.json) for a complete sample of the JSON output, or [Reading Scan Results](docs/reading-scan-results.md) for the full schema reference.
## Contributing
We welcome contributions! Whether it's adding detection for a new AI tool, improving documentation, or reporting bugs.
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
**Quick contribution ideas:**
- Add a new AI tool or IDE to the detection list
- Improve [documentation](docs/)
- Report bugs or request features via [issues](https://github.com/step-security/dev-machine-guard/issues)
## Resources
- [Changelog](CHANGELOG.md)
- [Scan Coverage](SCAN_COVERAGE.md) — full catalog of detections
- [Release Process](docs/release-process.md) — how releases are signed and verified
- [Versioning](VERSIONING.md) — why the version starts at 1.8.1
- [Security Policy](SECURITY.md) — reporting vulnerabilities
- [Code of Conduct](CODE_OF_CONDUCT.md)
## License
This project is licensed under the [Apache License 2.0](LICENSE).
---
If you find Dev Machine Guard useful, please consider giving it a star. It helps others discover the project.
Connection Info
You Might Also Like
everything-claude-code
Complete Claude Code configuration collection - agents, skills, hooks,...
markitdown
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
servers
Model Context Protocol Servers
servers
Model Context Protocol Servers
Time
A Model Context Protocol server for time and timezone conversions.
Filesystem
Node.js MCP Server for filesystem operations with dynamic access control.