What a scanner checks before install
Spellwarden Research
Published 25 November 2026
Last updated 30 November 2026
An AI agent drafted this post from Spellwarden's published data and public sources. A second model, claude-opus-5-5, checked each claim against the sources below. Corrections: hello.invalid [at] spellwarden [dot] ai
A scanner that runs before install and a control that acts while an agent runs do different jobs, and a security lead needs to know which one covers which moment. This post answers that with one worked agent session, followed by the limits behind it. It is built from the scope guide and the policy guide.
What the scanner checks
Spellwarden checks the agent content a team installs, merges or serves, before an agent uses it. It finds nine kinds of agent content in a repository, among them skills, MCP client configurations, Claude Code settings and hooks, plugin marketplaces, instruction files and agent cards, and when it is asked to probe it also reads two kinds of remote content. With the three rules of the private registry's check, which run only in connected mode, the scanner has 68 rules, and each kind of content is judged by its own rules.
The checks run in five places: on the command line, in the pre-commit hook, in CI, in the hosted product and in the free scan of a public repository. In the hosted product, skills fetched from a source are scanned again every 7 days, and the MCP servers an organisation relies on are probed every day.
One session, step by step
Take a team that lets an agent work on its repository. The table follows the session from the pull request that adds a skill to the review afterwards, and names what acts at each step. It is a walk through the guides, not a measurement.
| Step | What happens | What acts | What does not act |
|---|---|---|---|
| Before install | A pull request adds a skill and a hook | The GitHub Action or the GitLab component scans the request on your own runner and fails the check at the severity you choose | Nothing about what the agent will do later |
| The agent reads a web page | The page holds an instruction meant for the agent | A restriction the team set on the agent, such as limited permissions. When the page comes through an MCP server behind a gateway, a Zuplo or Docker MCP Gateway export also replaces a response that matches its prompt-injection patterns | The scanner, which does not block an instruction inside a web page or a tool result |
| The agent runs a destructive command | A destructive command is proposed | A Claude Code hook that asks first, in managed mode | A hook in project mode, which is advisory: any branch can change or remove it |
| The agent reads a credential file or pipes a remote script | The call is made | The same hook, which denies both, in managed mode | The scanner, which does not stop a credential from leaving during a session |
| An MCP server changes its tools | An MCP server the organisation relies on answers with a new tool list | The daily probe, with an alert | A comparison of any list the server only gives after sign in |
| Afterwards | The team reviews what happened | Runtime traces, as evidence to read | A score, which traces never change |
The pattern is the point. The scanner acts at the first step and at the rescans. Every later step depends on something that is not the scanner, and two of those steps rest on one control, the Claude Code hook, which is enforced only in managed mode.
What it does not check
These limits come from the scope guide, which lists more.
- The scanner is not in the path while an agent runs. It does not inspect tool calls or their results, it does not block an instruction that arrives inside a web page or a tool result, and it does not stop a credential from leaving during a session.
- It does not look for MCP servers or tools declared in an application's program code. It reads configuration files and the content kinds above.
- It does not look up known vulnerabilities of the packages that a skill or a server installs. It does flag an install that is not pinned.
- The rules match patterns. A passed scan means that no rule found a problem, not that the content is safe.
- Agent content in the repository that the scanner leaves unread ends the scan as incomplete. It never reads as a pass. What a remote server sends and the probe could not read whole is reported, and never lowers a judgement.
Read together, the limits give one rule for a security lead. Treat a passed scan as one input to a decision about content, and never as a statement about what an agent will do.
How far a policy pack export goes
The baseline pack, Spellwarden Baseline for Agents, has the 8 enforcement rules the policy guide lists, all on. An enforcement rule is a control, not a detection, and turning one off in a pack never hides a finding. Each export targets one place, and the scope guide states the limit plainly: no export enforces every rule, and each export lists what it cannot enforce in a file of its own.
For Claude Code hooks the mode decides whether anything is enforced. Hooks are enforced in managed mode, which your administrators deploy. In project mode the files sit in the repository, any branch can change them and they are advisory.
The policy guide adds two limits that a reader should know before relying on the hooks. On WSL the managed directory can be written by the user, so managed mode is not enforced there. The guard also never blocks on its own failure. On input it cannot read, including an event larger than 1 MiB, it prints nothing and lets the call proceed. So a check that matters should not rest on the guard alone.
What a team keeps next to any scanner
The scope guide lists the controls that limit what an agent can do with whatever content it loads:
- Human approval for destructive actions, so that a deletion or a deployment waits for a person.
- Restricted file and shell permissions, so that an agent can reach only what its task needs.
- Separate credentials for agents, with the narrowest scope and a short life, never a person's own.
- Network restrictions, so that an agent can reach only the hosts it needs.
- Backups and audit logs, so that a change can be undone and a session can be reconstructed.
What to check this week
- Go through the table above for your own agents and write down, for each step, which control acts and who deploys it.
- If you use Claude Code hooks from a policy pack, find out whether they run in managed mode or in project mode.
- Read the list of what each export you use cannot enforce, and decide where another control covers the gap.
- Read the scan's incomplete results as failures to look at, not as passes.
The scope guide sets out what is read and what is left out and links to the file-by-file list for each coding agent. The policy guide covers each export.
Sources
- spellwarden.ai/docs/scope:
With the three rules of the private registry's check, which run only in connected mode, the scanner has 68 rules, which Scanner rules lists with the severity and the reason of each.
- spellwarden.ai/docs/scope:
The scanner finds nine kinds of agent content in a repository and, when it is asked to probe, two kinds of remote content.
- spellwarden.ai/docs/scope:
The scanner is not in the path while an agent runs.
- spellwarden.ai/docs/scope:
The rules match patterns. A passed scan means that no rule found a problem, not that the content is safe.
- spellwarden.ai/docs/scope:
skills fetched from a source are scanned again every 7 days, and the MCP servers an organisation relies on are probed every day, with an alert when a server changed its tools.
- spellwarden.ai/docs/scope:
No export enforces every rule, and each export lists what it cannot enforce in a file of its own.
- spellwarden.ai/docs/scope:
Claude Code hooks are enforced in managed mode, which your administrators deploy. In project mode the files sit in the repository, any branch can change them and they are advisory.
- spellwarden.ai/docs/scope:
Deny a piped remote script and a read of a credential file, and ask before a destructive command or a destructive MCP tool verb.
- spellwarden.ai/docs/scope:
the GitHub Action and the GitLab component scan every pull or merge request on your own runner, and fail the check at the severity you choose.
- spellwarden.ai/docs/scope:
Only lists that a server answers without signing in can be compared.
- spellwarden.ai/docs/scope:
They are evidence for you to read and change no score.
- spellwarden.ai/docs/policy:
The baseline pack, Spellwarden Baseline for Agents, has the 8 enforcement rules below, all on.
- spellwarden.ai/docs/policy:
On input it cannot read, including an event larger than 1 MiB, it prints nothing and lets the call proceed
- spellwarden.ai/docs/scope:
Agent content in the repository that the scanner leaves unread ends the scan as incomplete, with exit code 2, and never reads as a pass.
- spellwarden.ai/docs/policy:
SW-GW-006 and SW-GW-004, as an interceptor guard that denies destructive tools and replaces tool results that carry injected instructions.
- spellwarden.ai/docs/policy:
On WSL the managed directory can be written by the user, so managed mode is not enforced there.
- spellwarden.ai/docs/scope:
A check on what MCP servers send through the gateway. A response that matches, or that cannot be checked, is replaced by an error.