Scanning and admission
DefenseClaw scans skills, MCP servers and plugins when they appear, then allows, warns about or blocks them by severity.
DefenseClaw scans skills, MCP servers and plugins as they appear. A scan gives a severity. Your admission settings turn that severity into an action: allow it, warn, or block and quarantine it. Block and allow lists you write always come first. MCP tool calls made while a new server's scan is pending follow the tier behavior described below.
Guided example · Synthetic skill bundle
Catch a malicious skill and quarantine it
The watcher scans a new skill where it landed; static and optional intent checks feed the skill admission policy, which quarantines it.
{ "skill": "workspace-helper", "severity": "critical", "findings": ["path_escape", "external_exfiltration_intent"], "file": "quarantined", "runtime": "disabled", "install": "blocked"}{ "skill": "workspace-helper", "severity": "critical", "findings": ["path_escape", "external_exfiltration_intent"], "file": "quarantined", "runtime": "disabled", "install": "blocked"}
CRITICAL skill findings
Move to quarantine, disable runtime, block install, write audit event
What DefenseClaw did — and did not do
What it did
- Scan the skill where it was installed
- Combine deterministic checks with optional LLM analysis
- Quarantine on the admission.skill.actions verdict
What it did not do
- Hide the skill from the agent while the scan runs
- Treat LLM analysis as mandatory or sufficient alone
- Skip the audit trail for a manual allow
How a decision is made
List view for small screens. Use the expand button to open the drawing.
- A skill, MCP serveror plugin appears
- checksOn a list?
- On a list?asset_policy rules
- deniedBlocked
- allowedAllowed
- no ruleFirst party?
- First party?admission list
- matchesAllowed
- no matchScan on install?
- Blockedno scan
- Scan on install?admission setting
- offAllowed
- onScan, then apply
- Scan, then applythe severity action
- decidesClean, warning,
- Allowedno scan
- Clean, warning,allowed or rejected
- When it runs. The gateway's install watcher checks a skill, plugin or MCP server when it appears in a watched folder or when an agent adds it. A rescan runs every 60 minutes and whenever the asset or the scanner settings change. The CLI runs the same check on demand.
- What a verdict does. The defaults quarantine CRITICAL and HIGH skills, warn on MEDIUM and queue it for review, and allow LOW and INFO. The skill scanner settings
fail_on_severity(HIGH) andreview_queue_min(MEDIUM) set these lines;defenseclaw config get admission.skillshows the actions in force. Plugins and MCP servers have their own defaults:defenseclaw config get admission.pluginandadmission.mcp. A rejected skill or plugin moves to a quarantine folder and is disabled. A rejected MCP server stays where it is and its tool calls are refused. - When the scanner fails. A scan that errors or cannot run counts as rejected. Admission fails closed.
- Blocked tool calls. Agent hooks refuse a denied skill, plugin or MCP tool even if the install watcher never saw it.
- A judge reads what the rules flag. Both scanners use the LLM judge when a model and key are set (
DEFENSECLAW_LLM_KEY). Set one up; the rules alone miss most malicious assets.
Skills
A skill is a bundle of instructions an agent follows. The skill scanner checks SKILL.md and bundled files for prompt injection, dangerous shell and Python calls, and untrusted binaries. Findings at HIGH or above quarantine the skill. Findings from MEDIUM up to that line warn and go to the review queue.
defenseclaw skill scan --path ~/code/risky-skillSee Skill scanner for the commands and settings.
MCP servers
An MCP server lists tools an agent can call. The MCP scanner reads each tool's name, schema and description, and flags tools whose behavior does not match what they claim. DefenseClaw scans a server when you add it with defenseclaw mcp set, when an agent adds it, and on every rescan. While admission is pending, per-user default and permissive hooks allow a call with a visible warning; strict and managed hooks block it with retry guidance. A scan that finds something blocks the server in every tier. A server DefenseClaw cannot scan (a launcher other than npx or uvx, or a loopback or private URL) runs with a warning in the default and permissive tiers and is blocked in strict and managed ones; an administrator's allow rule beats that block. See Admission for the tier table.
See Scan an MCP server.
Plugins
Plugins go through the same admission check. Plugin scanning runs from defenseclaw plugin scan and from the install watcher. Settings use admission.plugin and the plugin-scanner override key. Block and allow lists work the same way as for skills. defenseclaw plugin list and plugin info show what admission does with the scan, for example warning for a plugin the watcher admitted with a warning, not the bare severity. A plugin copied into a Claude plugin cache is listed as one disabled plugin, origin copy, not loaded by Claude Code.
What it does not do
- It does not scan tools. Nothing installs a tool, so tools have name lists only.
- It does not stop a process that is already running. A block stops tool calls and new installs; use
disableorquarantinefor a running asset. - A local MCP scan starts the server as you. Scan only servers you would run.
- Admission belongs to the device. Rules can be scoped to a connector, not to a user or group.
Next
Skill scanner
One-shot scan, install watcher, read the verdict.
MCP scanner
Local npx and uvx servers and private URLs.
Block or allow an asset
Lists and which rule wins.
Registries
Approved catalogs.
Reference
Admission, the scanners, registries and AI Discovery in full detail.
Admission
Every admission and asset_policy key in config.yaml, with defaults, the scanner gate, overrides, first-party assets, tool lists and managed-device behavior.
Skill scanner
Skill scanner settings, analyzers, judge, gate, custom policy and pinned version.
MCP scanner
MCP scanner settings, analyzers, judge, action mapping, pinned version and removed keys.
Registries
Registry source kinds, all twelve registry subcommands, entry lifecycle, flags and sync schedules.
AI Discovery
Discovery categories, local model inventory, continuous-scan knobs, signature packs, IDE plugin inventory, AIBOM, runtime planes per OS and data destinations.
Regex cookbook
RE2 regex patterns for DefenseClaw guardrails, quoted from the shipped strict pack — secrets, prompt injection, exfiltration endpoints and enterprise data — with what makes each one precise.
Skill scanner
Scan connector skills on demand and whenever one is installed or changed. DefenseClaw wraps cisco-ai-skill-scanner with the recommended quiet policy and an LLM judge, and writes its verdicts into the same admission policy as the watcher.