Presets: strict, balanced and low-noise
Last updated 24 November 2026
Since 1.18.0 a preset changes how loud the scanner is, without writing rules of your own. strict raises named rules so that more findings fail a build, low-noise lowers or leaves out named rules that fire on most benign content, and balanced is the scanner as it is. The table at the end of this page says what each preset does to every rule, and why.
Set a preset
Three ways, as for every setting of the scanner:
- the flag:
spellwarden scan --preset low-noise; - the environment variable
SPELLWARDEN_PRESET; - the setting
presetin.spellwarden/config.yml, with one of the three names; any other value is an invalid settings file, exit 2.
The flag wins over the environment, which wins over the file; without any of them there is no preset, which is the same as balanced. On a pull or merge request the settings file is read from the base revision, so a request cannot choose its own preset through the file. The flag is the choice of whoever runs the scanner. --preset cannot be used with --user.
The three presets
| Preset | What it does |
|---|---|
balanced | Each rule's own severity. With balanced, or no preset, nothing changes at all: every report and exit code is the one a scan without presets writes, with no notice and no added field. |
strict | Raises the medium rules that describe a direct risk (credentials, code execution, exfiltration paths, authentication) to high, so they fail at the default --fail-on high, and the low metadata rules to medium. It turns nothing off. |
low-noise | Turns off the rules about metadata, format or protocol age that fire on most benign content, and lowers to low the medium rules whose pattern is common in benign skills and configurations. |
A rule a later release adds is balanced in every preset until a release gives it a row.
The rule benchmark shows how many harmless skills the rules flag at medium and at high, which is what the presets trade.
What a preset never changes
- A critical or high finding, or a malicious indicator: low-noise changes medium and low findings only.
- An organisation rule (
SW-ORG-) or a finding of the private registry's check (SW-REG-): a preset changes only the scanner's own rules. - What the baseline file accepts: the baseline is applied first and matches by fingerprint, which a preset does not change.
spellwarden baselineandspellwarden lockignore presets. - An error: an incomplete scan stays exit 2.
- What your organisation sees in connected mode: the upload carries every finding at the rule's own severity and the exit code they give, while the reports written and the process exit code are the preset's.
How reports show a preset
Every report says when a preset other than balanced applied, with a notice that counts what it changed. With preset: low-noise in the settings file it reads, for example:
Preset low-noise (from .spellwarden/config.yml): 14 findings of 6 rules are not listed and 9 findings were lowered. The organisation's rules, its registry gate and the baseline file are applied as they are. See https://spellwarden.ai/docs/presets?utm_source=scanner&utm_medium=cli&utm_campaign=presetsA connected run that uploaded adds: The upload to your organisation carries every finding at the rule's own severity.
A finding whose severity a preset moved carries preset_from, its severity without the preset, and the reports say raised from medium by the strict preset, or lowered from medium by the low-noise preset. A finding a preset turns off is counted, never silently dropped: everything was judged. The JSON report's preset block holds the name, where it was set (flag, environment or file), how many findings it changed and how many it left out; SARIF has it in runs[0].properties.preset, and the HTML report shows it at the top (see the HTML report). spellwarden rules --preset NAME prints each rule with its severity under that preset, or off.
Presets in CI and in the pre-commit hook
The GitHub Action and the GitLab component take an input preset from their 1.18.0 release: empty by default, or strict, balanced or low-noise. Empty passes no flag, so the scanner's own settings decide. A value outside the list fails the input check before the scan. See presets in CI. In the pre-commit hook, add args: [--preset, low-noise] (see the pre-commit hook).
The table of every rule
One row per rule of the scanner: its own severity, which balanced keeps, and its severity under strict and under low-noise, where off means its findings are left out of the reports and counted. This is the table of release 1.18.0, as the scanner's README prints it.
| Rule | Title | balanced | strict | low-noise | Why |
|---|---|---|---|---|---|
| SW-A2A-001 | Agent card does not follow A2A 1.0 | medium | medium | low | format conformance, no attack path |
| SW-A2A-002 | Agent card uses a format older than A2A 1.0 | medium | medium | off | protocol age only |
| SW-A2A-003 | Agent card at the path used before A2A 0.3 | medium | medium | off | protocol age only |
| SW-A2A-004 | Agent endpoint or authentication URL not served over HTTPS | high | high | high | high: never lowered |
| SW-A2A-005 | OAuth implicit or password flow declared (deprecated in A2A 1.0) | high | high | high | high: never lowered |
| SW-A2A-006 | OAuth authorization code flow without PKCE required | medium | high | medium | authentication weakness: strict raises; low-noise keeps a real risk at medium |
| SW-A2A-007 | Agent declares no authentication | medium | high | medium | authentication: as above |
| SW-A2A-008 | API key sent in the URL query | medium | high | medium | credential exposure: as above |
| SW-A2A-009 | Skill inherits every scope of the agent | low | medium | off | least-privilege hygiene, low |
| SW-A2A-010 | Agent card signature does not verify | high | high | high | high: never lowered |
| SW-A2A-011 | Agent card signature is malformed or uses a refused algorithm | high | high | high | high: never lowered |
| SW-A2A-012 | Agent card is not signed | low | medium | off | most cards are unsigned; hygiene |
| SW-A2A-013 | Signing key not bound to the card's host | medium | high | medium | trust of the signature: strict raises |
| SW-A2A-014 | Agent card text contains injected instructions or hidden characters | high | high | high | high: never lowered |
| SW-A2A-015 | Credential in the agent card | critical | critical | critical | critical: never lowered |
| SW-A2A-016 | Agent card fetched through a redirect to another host | medium | high | medium | possible card substitution: strict raises |
| SW-A2A-017 | Agent card signed with a shared secret that only the agent can check | medium | high | medium | unverifiable signature: strict raises |
| SW-A2A-018 | Agent card cannot be read | high | high | high | high: never lowered |
| SW-A2A-019 | Agent card member spelled two ways | high | high | high | high: never lowered |
| SW-CFG-001 | Remote MCP server over plain HTTP | high | high | high | high: never lowered |
| SW-CFG-002 | Credential written into an MCP server configuration | critical | critical | critical | critical |
| SW-CFG-003 | MCP server launched from an unpinned package | medium | high | low | npx -y package style launches are the common way configurations are written; strict treats an unpinned launch as supply-chain risk |
| SW-CFG-004 | MCP server at a raw IP address or behind a URL shortener | medium | high | medium | a hidden destination: strict raises; not common in benign configurations |
| SW-CFG-005 | Hook pipes remote content to a shell | high | high | high | high |
| SW-CFG-006 | Hook sends local file contents to an external host (malicious indicator) | critical | critical | critical | malicious indicator |
| SW-CFG-007 | Hook decodes and runs an encoded payload (malicious indicator) | critical | critical | critical | malicious indicator |
| SW-CFG-008 | Settings switch off approval prompts | high | high | high | high |
| SW-CFG-009 | Marketplace plugin source not pinned to a commit | medium | high | medium | supply chain: strict raises |
| SW-CFG-010 | Literal value under a secret name in an MCP server configuration | high | high | high | high |
| SW-CFG-012 | MCP server configured to approve every tool call automatically | high | high | high | high |
| SW-CFG-013 | Database or cluster MCP server with write access although a read-only mode exists | high | high | high | high |
| SW-MCP-001 | Server lists tools without authentication | high | high | high | high: never lowered, although it fires on 16,546 census hosts, most of them public read-only servers by design; the largest remaining source of MCP noise |
| SW-MCP-002 | Static key authentication instead of OAuth | medium | high | medium | authentication: strict raises |
| SW-MCP-003 | OAuth dynamic client registration (deprecated; use Client ID Metadata Documents) | medium | medium | low | protocol migration; 5,366 census hosts (63% of OAuth servers) |
| SW-MCP-004 | HTTP+SSE transport (deprecated) | medium | medium | low | protocol migration |
| SW-MCP-005 | Spec version older than 2026-07-28 | low | low | off | protocol age; 13,897 census hosts |
| SW-MCP-006 | Protocol sessions (Mcp-Session-Id) in use | medium | medium | off | protocol migration; 1,708 hosts |
| SW-MCP-007 | Requires the initialize handshake; no server/discover | medium | medium | off | protocol migration; 13,852 hosts |
| SW-MCP-008 | Uses deprecated Roots, Sampling or Logging | medium | medium | off | protocol migration; 715 hosts |
| SW-MCP-009 | Endpoint not served over HTTPS | high | high | high | high |
| SW-MCP-010 | No protected resource metadata, or issuer not validated | medium | high | medium | token audience and issuer checks: strict raises |
| SW-MCP-011 | MCP server text contains instruction-like text | high | high | high | precision tuned on its own record (87 holdout false alarms in 1.12.0); a preset does not override it |
| SW-MCP-012 | MCP server's tools changed since they were approved | high | high | high | high |
| SW-REG-001 | Skill package not admitted in the organisation's private registry | high | high | high | the organisation's policy: no preset touches it |
| SW-REG-002 | MCP server not admitted in the organisation's private registry | high | high | high | as above |
| SW-REG-003 | Agent content the private registry cannot judge | high | high | high | as above |
| SW-SKL-001 | Prompt-injection phrases in skill instructions | high | high | high | high |
| SW-SKL-002 | Hidden text: zero-width or bidirectional control characters | high | high | high | high |
| SW-SKL-003 | Instructions to skip approvals or disable hooks | high | high | high | high |
| SW-SKL-004 | Encoded payload decoded and executed (malicious indicator) | critical | critical | critical | malicious indicator |
| SW-SKL-005 | Writes to agent configuration | high | high | high | high |
| SW-SKL-006 | Destructive command without a confirmation step | medium | high | low | common in benign operations skills (rm -rf build/); strict treats it as a direct risk |
| SW-SKL-007 | Remote script piped to a shell | high | high | high | high |
| SW-SKL-008 | Sends local file contents to an external host (malicious indicator) | critical | critical | critical | malicious indicator |
| SW-SKL-009 | Unpinned dependency install | medium | high | low | unpinned installs are the analyzer's most common benign category; strict treats them as supply-chain risk |
| SW-SKL-010 | Bundled binary or executable file | medium | high | medium | an unreadable file: strict raises; kept at medium because a binary cannot be judged |
| SW-SKL-011 | Hard-coded credential in the package | critical | critical | critical | critical |
| SW-SKL-012 | Reads a credential file path without stating purpose | medium | high | low | many benign cloud skills name ~/.aws/credentials to explain setup; strict treats it as an exfiltration path |
| SW-SKL-013 | Network calls to raw IP addresses or URL shorteners | medium | high | medium | a hidden destination: strict raises |
| SW-SKL-014 | Obfuscated script code | medium | high | medium | obfuscation: strict raises |
| SW-SKL-015 | Frontmatter missing or invalid (name, description) | low | medium | off | metadata only |
| SW-SKL-019 | Fetches external URL content into context without an allowlist | medium | high | low | common in research and documentation skills; strict treats it as an injection path |
| SW-SKL-031 | Missing license and version metadata | low | medium | off | metadata only |
| SW-SKL-032 | Instructions lure the user into running a password-protected download or a pasted script (malicious indicator) | critical | critical | critical | malicious indicator |
| SW-SKL-036 | Frontmatter pre-approves an unscoped shell or interpreter | medium | high | low | many benign skills pre-approve Bash; strict treats unscoped execution as a direct risk |
| SW-SKL-037 | Executable downloaded from a moving reference and run without an integrity check | medium | high | low | the same pattern as SW-SKL-009 for executables; strict raises |