Nivoryn Scanner · free · open source
See every permission your agent has been given.
A local CLI that reads Claude Code, Claude Desktop, MCP client and n8n workflow configuration and reports risky permissions with evidence and remediation. Nothing is executed. Nothing is uploaded.
Get started
Install and run in under a minute.
# Node.js 20+ and pnpm 10+ $ git clone https://github.com/adamchemlelao-ai/test1.git nivoryn $ cd nivoryn && pnpm install && pnpm build:cli $ node packages/scanner/dist/cli.js scan --path ./my-agent-project # The npm package (npx nivoryn) is being prepared for publication.
Commands
Simple by design.
nivoryn scan # scan current directory nivoryn scan --path ./project # scan another project nivoryn scan --format json # machine-readable output nivoryn scan --format html -o r.html nivoryn scan --format pdf # needs a local Chromium nivoryn scan --include-user-config # also ~/.claude, Claude Desktop nivoryn scan --fail-on high # exit 1 in CI nivoryn rules # list rules and files nivoryn version
What it reads
Explicit files only.
The scanner never crawls your disk. It checks these locations and reports each one as evaluated, invalid or unreadable.
Claude Code (project)
- .claude/settings.json
- .claude/settings.local.json
- .mcp.json
- .claude/agents/*.md
Generic MCP
- mcp.json
- .cursor/mcp.json
- .vscode/mcp.json
- .gemini/settings.json
- .roo/mcp.json
- .kiro/settings/mcp.json
n8n
- Workflow exports in the root, workflows/, n8n/, .n8n/
- --file path/to/workflow.json
Claude Desktop
- claude_desktop_config.json (project copy)
- OS location with --include-user-config
User level (opt-in)
- ~/.claude/settings.json
- ~/.claude.json
- ~/.claude/agents/*.md
- ~/.cursor/mcp.json
Rules
What it checks.
| Rule | Name | Default severity | Method |
|---|---|---|---|
| NIV-001 | Unrestricted shell execution The agent is pre-approved to run any shell command without asking a human first. | CRITICAL | static |
| NIV-002 | Human approval disabled The agent's permission mode removes or weakens the human-in-the-loop approval step. | CRITICAL | static |
| NIV-003 | Broad filesystem access The agent or one of its MCP servers can read or modify an entire disk, system directory or home directory. | HIGH | static |
| NIV-004 | Access to sensitive credential paths The configuration explicitly grants access to locations that normally hold credentials (.ssh, .aws, .env, key files, keychains). | HIGH | static |
| NIV-005 | Unrestricted network access The agent can contact arbitrary hosts without approval, as far as can be determined from configuration. | MEDIUM | static |
| NIV-006 | Unpinned external package execution An MCP server is started by downloading the latest version of a package or container image at launch time. | MEDIUM | static |
| NIV-007 | Risky MCP server launch configuration An MCP server is launched in a way that weakens isolation or executes code that cannot be reviewed in advance. | HIGH | static |
| NIV-008 | Missing tool restrictions Tools are enabled or approved in bulk instead of individually. | MEDIUM | static |
| NIV-009 | Sensitive actions run without human approval Actions that publish, deploy, merge, change cloud resources or contact external parties are pre-approved, so no human confirms them. | MEDIUM | static |
| NIV-010 | Dangerous command permissions Commands that escalate privileges, destroy data, change permissions, or run arbitrary code through an interpreter are pre-approved. | HIGH | static |
| NIV-011 | Potentially exposed secrets A credential appears to be stored as a literal value in an agent configuration file. | HIGH | static |
| NIV-012 | Insecure remote transport and unverified authorization A remote MCP server is reached over unencrypted HTTP, or its authorization scope cannot be determined from configuration. | HIGH | static |
| NIV-013 | Automatic hook commands Claude Code hooks run shell commands automatically on agent events. | INFO | manual review |
| NIV-014 | Secret files are not explicitly denied Project Claude Code settings exist, but none of them deny reading environment files such as .env. | LOW | heuristic |
| NIV-015 | n8n command and code execution An n8n workflow runs shell commands (Execute Command, SSH) or Code nodes with access to the host, environment or dynamic code evaluation. | HIGH | static |
| NIV-016 | n8n unauthenticated trigger A webhook, public chat or form trigger starts the workflow without authentication. | MEDIUM | static |
| NIV-017 | n8n agent tools with side effects An n8n AI Agent can call tools that send messages, write data, call APIs or execute code, with no human approval step visible in the workflow. | MEDIUM | heuristic |
Limits
What the scanner cannot tell you.
It does not start servers, read server source code, check OAuth scopes, test prompt-injection resilience or see network controls outside the config. A clean result is not a statement that an agent is secure. When it matters, get a human review.