Audit mcp.json, n8n workflows & Docker Compose before secrets or RCE hit production.
StackGuard is a 100% local, zero-telemetry static analyzer built for engineering teams shipping AI agents and automation stacks. It catches supply-chain npx -y risks, unauthenticated webhooks, exposed database ports, and hardcoded tokens in real time—with zero code egress.
What StackGuard catches locally (56 rules)
Standard linters ignore AI agent configs and workflow exports. StackGuard parses JSONC and YAML ASTs directly in your editor with exact line/column squiggles and CWE / SOC 2 / ISO 27001 / DORA control mappings.
MCP Configs (18 rules · MCP001–MCP018)
mcp.json, .cursor/mcp.json, .vscode/mcp.json, claude_desktop_config.json
- Hardcoded API keys & tokens in
env/headers - Unpinned
npx/uvx/dockersupply-chain RCE curl | shpipes, inlineeval, andsudowrappers--allow-all,--dangerously-skip-permissions, wildcardallowedTools0.0.0.0bindings, cleartexthttp://,~/.ssh/~/.aws//mounts- Prompt-injection & tool-poisoning instructions in config metadata
n8n Workflows (20 rules · N8N001–N8N020)
*.n8n.json, *workflow*.json
- Webhooks with
authentication: "none"or wildcard CORS* Execute CommandOS injection &Codenodeeval/child_processallowUnauthorizedCerts: trueTLS bypass & cleartext HTTP- Hardcoded Bearer / API keys &
$envsecrets leaked in query strings - Missing
errorWorkflow,retryOnFail,timeout,executionTimeout - SQL injection, runaway LLM loops,
meta.instanceId&pinDataleaks
Docker Compose (18 rules · DKR001–DKR018)
docker-compose*.yml, compose*.yml
- Postgres, Redis, MongoDB, n8n & admin ports exposed on
0.0.0.0 privileged: true,/var/run/docker.sock, sensitive host bind mounts- Unpinned
:latesttags,network_mode: host,pid/ipc: host - Dangerous
cap_add(ALL,SYS_ADMIN,NET_ADMIN) - Plaintext secrets in
environment& missingN8N_ENCRYPTION_KEY - Missing
healthcheck,restart,mem_limit,user,no-new-privileges
1-Click Quick Fixes, SARIF 2.1.0 & Compliance Evidence
Fix common exposure bugs directly from VS Code Quick Fix (Cmd+. / Ctrl+.), or export auditor-ready artifacts straight from your repo.
ERROR DKR001 [docker-compose.yml:6:9] Service 'db' exposes sensitive port '5432:5432' on 0.0.0.0. Quick Fix -> Bind port to 127.0.0.1 ("127.0.0.1:5432:5432") ERROR MCP001 [.cursor/mcp.json:9:24] MCP server 'ai' exposes OpenAI API key in 'OPENAI_API_KEY'. Quick Fix -> Replace secret with "${input:OPENAI_API_KEY}" ERROR N8N004 [workflows/sync.n8n.json:41:37] Node 'HTTP Request' disables TLS validation (allowUnauthorizedCerts: true). Quick Fix -> Set allowUnauthorizedCerts to false
POST https://api.polar.sh/v1/customer-portal/license-keys/validate) and caches the activation in VS Code SecretStorage with a 14-day offline grace period. Your code never leaves your machine.
Simple One-Time Pricing (No Recurring Subscription)
Free (MIT)
- 19 critical rules across MCP, n8n & Docker Compose
- Real-time Problems panel & Status Bar score
- 1-click Quick Fixes on free rules
- 100% offline & zero telemetry
Pro — Solo License
- All 56 rules (MCP + n8n + Docker hardening)
- Full 1-click Quick Fix suite
- Full multi-repo workspace audit &
stackguard-cli - SARIF 2.1.0 export (GitHub Code Scanning)
- SOC 2 / ISO 27001 / DORA Markdown report + SHA-256 seal
Pro — Team License
- Everything in Pro Solo
- 10 activations for dev workstations & CI runners
- Self-service seat management via Polar Customer Portal
- VAT / Sales Tax invoice automatically issued by Polar (MoR)