AI agent permissions checker
Paste a Claude Code settings.json and find wildcard Bash rules, bypass mode, allowed curl, rm and sudo, auto-enabled MCP servers and missing deny rules.
Checked as you type. Nothing you paste leaves this page.
The file is read in your browser. It is not uploaded.
Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the AI agent permissions checker
- Paste ~/.claude/settings.json or a project’s .claude/settings.json, drop the file, or load the example.
- Remove wildcard and interpreter rules; allow the exact commands you run often.
- Add deny rules for .env files and ~/.ssh.
- Check .claude/settings.local.json too: approvals from prompts are saved there.
About this tool
A coding agent runs commands on your machine, and its settings file decides which ones run without asking you. Those files grow by accretion: each "yes, and don’t ask again" adds an allow rule, and a year later the list contains Bash(*) or Bash(curl *) and nobody remembers why. From then on, one instruction hidden in a web page or an issue is enough to use them.
This checker reads a Claude Code settings.json as its documentation describes it: permissions.allow, ask and deny rules written as Tool or Tool(content), defaultMode, additionalDirectories, enableAllProjectMcpServers and hooks. It reports rules that allow every shell command, interpreters and sudo, rm and network tools with wildcards, forced pushes, bypassPermissions as the default mode, project MCP servers approved in bulk, hooks that download and run scripts, and missing deny rules for .env files and ~/.ssh.
It checks this one format, because it is the one whose schema we have verified against the published documentation. It does not see managed settings or the other settings files that merge with this one, and Anthropic’s documentation is clear that Bash rules are not a security boundary by themselves: for that, use the sandbox.
Sources
Questions
It is equivalent to a bare Bash rule and matches every shell command. In the allow list, that means no command prompts for approval. Replace it with rules for the specific commands you want to run unattended, such as Bash(npm run test *).
Only inside an isolated environment such as a container or a virtual machine that holds nothing you care about. The mode skips permission prompts, so anything the model is talked into doing happens without review. Organizations can turn it off with permissions.disableBypassPermissionsMode.
Deny first, then ask, then allow, and the first match decides. A deny rule therefore always wins over an allow rule, however specific the allow rule is. That makes deny rules the right place for files that must never be read, such as .env and ~/.ssh.
curl can upload as well as download, so a rule such as Bash(curl *) lets the agent send any file it can read to any server. An injected instruction only has to ask. Deny curl and wget, and use WebFetch rules limited to the domains you need.