Rule benchmark: detection and false positives
Last updated 24 November 2026
Every release of the open-source scanner is measured on the same public sets of malicious and harmless (benign) skills. This page shows what the rules find in each release. Rules only: no model is called. The release workflow fetches every sample from its source at a pinned commit, checks it by hash and runs the released scanner over it, and anyone can run the same command.
Download the figures as JSON. The figures are licensed CC BY 4.0. The samples belong to their authors and are not copied here.
Key figures
For scanner 1.21.0, rules version 2026.11.8, released 24 November 2026: on each test set, the share of malicious skills the rules found and the share of harmless skills they flagged, at each line, with the 95% interval and the counts behind it.
| Set | Line | Detection | False positives |
|---|---|---|---|
| MaliciousSkillBench test split (source-disjoint) | medium or above | 36.0% (302 of 839; 32.8% to 39.3%) | 26.6% (145 of 545; 23.1% to 30.5%) |
| MaliciousSkillBench test split (source-disjoint) | high or above | 3.7% (31 of 839; 2.6% to 5.2%) | 9.7% (53 of 545; 7.5% to 12.5%) |
| Held-out half of Spellwarden's labelled set | medium or above | 54.7% (29 of 53; 41.5% to 67.3%) | 29.1% (32 of 110; 21.4% to 38.2%) |
| Held-out half of Spellwarden's labelled set | high or above | 37.7% (20 of 53; 25.9% to 51.2%) | 6.4% (7 of 110; 3.1% to 12.6%) |
Trail of Bits scanner-bypass skills: found 3 of 4 at medium or above and found 0 of 4 at high or above. Each skill is shown below.
How it is measured
A skill is found at a line when the rules report at least one finding at or above it: medium or above and high or above, the lines that --fail-on and the presets use. Each rule counts at its own severity, with no preset, as the balanced preset leaves it.
A package that holds several skills is one item, found when any of its skills is found. A skill the scanner could not read whole is counted apart, never as found and never as clean, and is left out of the rates.
A rate counts skills: the detection rate is the share of malicious skills found, the false-positive rate the share of harmless skills found, each with its 95% Wilson interval and the counts behind it. A set with both kinds of skill also shows the macro-F1 that MaliciousSkillBench recommends: the mean of the F1 score of the malicious skills and that of the harmless ones.
Only the skill rules can be measured on skills. The rules that judge MCP servers, configuration, the registry check and A2A agent cards are listed as not measured, never with a rate.
MaliciousSkillBench test split (source-disjoint)
Test set: a change to a rule never cites one of its samples, adds one as a test or gives one of its results as the reason for the change.
| Stratum | Label | Skills | Not read whole | Medium or above | High or above |
|---|---|---|---|---|---|
| Harmless skills (ATR) | harmless | 455 | 0 | 27.9% (127 of 455; 24.0% to 32.2%) | 7.7% (35 of 455; 5.6% to 10.5%) |
| Curated attacks (ATR) | malicious | 21 | 0 | 66.7% (14 of 21; 45.4% to 82.8%) | 33.3% (7 of 21; 17.2% to 54.6%) |
| Harmless skills (SkillFortifyBench) | harmless | 90 | 0 | 20.0% (18 of 90; 13.0% to 29.4%) | 20.0% (18 of 90; 13.0% to 29.4%) |
| Constructed attacks (SkillFortifyBench) | malicious | 90 | 0 | 28.9% (26 of 90; 20.5% to 39.0%) | 11.1% (10 of 90; 6.1% to 19.3%) |
| Constructed attacks (SkillHarm) | malicious | 728 | 0 | 36.0% (262 of 728; 32.6% to 39.5%) | 1.9% (14 of 728; 1.1% to 3.2%) |
| All malicious | malicious | 839 | 0 | 36.0% (302 of 839; 32.8% to 39.3%) | 3.7% (31 of 839; 2.6% to 5.2%) |
| All harmless | harmless | 545 | 0 | 26.6% (145 of 545; 23.1% to 30.5%) | 9.7% (53 of 545; 7.5% to 12.5%) |
Macro-F1: medium or above 0.505, high or above 0.300.
Skills not read whole: none.
Held-out half of Spellwarden's labelled set
Test set: a change to a rule never cites one of its samples, adds one as a test or gives one of its results as the reason for the change.
| Stratum | Label | Skills | Not read whole | Medium or above | High or above |
|---|---|---|---|---|---|
| Public skills listed as safe (Liu et al.) | harmless | 110 | 0 | 29.1% (32 of 110; 21.4% to 38.2%) | 6.4% (7 of 110; 3.1% to 12.6%) |
| Public skills a study labelled malicious (Liu et al.) | malicious | 38 | 0 | 57.9% (22 of 38; 42.2% to 72.1%) | 42.1% (16 of 38; 27.9% to 57.8%) |
| Public skills that leak data (SkillLeakBench) | malicious | 15 | 0 | 46.7% (7 of 15; 24.8% to 69.9%) | 26.7% (4 of 15; 10.9% to 52.0%) |
| All malicious | malicious | 53 | 0 | 54.7% (29 of 53; 41.5% to 67.3%) | 37.7% (20 of 53; 25.9% to 51.2%) |
| All harmless | harmless | 110 | 0 | 29.1% (32 of 110; 21.4% to 38.2%) | 6.4% (7 of 110; 3.1% to 12.6%) |
Macro-F1: medium or above 0.622, high or above 0.669.
Skills not read whole: none.
Trail of Bits scanner-bypass skills
Four skills that the Machine Learning Security team at Trail of Bits wrote to test how reliable skill scanners are. Four skills are too few for a rate, so each one is shown as found or not found.
| Skill | Medium or above | High or above |
|---|---|---|
m-tob-context-loader | not found | not found |
m-tob-csv-summarizer | found | not found |
m-tob-dev-env-setup | found | not found |
m-tob-simple-formatter | found | not found |
Tuning half of Spellwarden's labelled set
Tuning set: rules may be tuned on it, so its rates can look better than those of a test set.
| Stratum | Label | Skills | Not read whole | Medium or above | High or above |
|---|---|---|---|---|---|
| Public skills listed as safe (Liu et al.) | harmless | 109 | 0 | 34.9% (38 of 109; 26.6% to 44.2%) | 6.4% (7 of 109; 3.1% to 12.7%) |
| A malware campaign (Agent Skill Malware) | malicious | 7 | 0 | 42.9% (3 of 7; 15.8% to 75.0%) | 14.3% (1 of 7; 2.6% to 51.3%) |
| Public skills a study labelled malicious (Liu et al.) | malicious | 38 | 0 | 42.1% (16 of 38; 27.9% to 57.8%) | 26.3% (10 of 38; 15.0% to 42.0%) |
| Public skills that leak data (SkillLeakBench) | malicious | 16 | 0 | 62.5% (10 of 16; 38.6% to 81.5%) | 18.8% (3 of 16; 6.6% to 43.0%) |
| All malicious | malicious | 61 | 0 | 47.5% (29 of 61; 35.5% to 59.8%) | 23.0% (14 of 61; 14.2% to 34.9%) |
| All harmless | harmless | 109 | 0 | 34.9% (38 of 109; 26.6% to 44.2%) | 6.4% (7 of 109; 3.1% to 12.7%) |
Macro-F1: medium or above 0.561, high or above 0.566.
Skills not read whole: none.
Rule by rule
For scanner 1.21.0, each skill rule on each test set, at the rule's own severity. A rule whose severity is below a line shows below this line there, since it can never reach it. The skills shown one by one have counts in place of rates.
| Rule | Title | Detection, medium or above | False positives, medium or above | Detection, high or above | False positives, high or above |
|---|---|---|---|---|---|
| SW-SKL-001 | Prompt-injection phrases in skill instructions | 0.0% (0 of 839) | 0.6% (3 of 545) | 0.0% (0 of 839) | 0.6% (3 of 545) |
| SW-SKL-002 | Hidden text: zero-width or bidirectional control characters | 0.2% (2 of 839) | 0.2% (1 of 545) | 0.2% (2 of 839) | 0.2% (1 of 545) |
| SW-SKL-003 | Instructions to skip approvals or disable hooks | 0.0% (0 of 839) | 0.7% (4 of 545) | 0.0% (0 of 839) | 0.7% (4 of 545) |
| SW-SKL-004 | Encoded payload decoded and executed | 0.4% (3 of 839) | 0.0% (0 of 545) | 0.4% (3 of 839) | 0.0% (0 of 545) |
| SW-SKL-005 | Writes to agent configuration | 0.0% (0 of 839) | 0.2% (1 of 545) | 0.0% (0 of 839) | 0.2% (1 of 545) |
| SW-SKL-006 | Destructive command without a confirmation step | 0.7% (6 of 839) | 0.7% (4 of 545) | below this line | below this line |
| SW-SKL-007 | Remote script piped to a shell | 1.0% (8 of 839) | 6.6% (36 of 545) | 1.0% (8 of 839) | 6.6% (36 of 545) |
| SW-SKL-008 | Sends local file contents to an external host | 0.1% (1 of 839) | 0.0% (0 of 545) | 0.1% (1 of 839) | 0.0% (0 of 545) |
| SW-SKL-009 | Unpinned dependency install | 25.9% (217 of 839) | 15.2% (83 of 545) | below this line | below this line |
| SW-SKL-010 | Bundled binary or executable file | 0.0% (0 of 839) | 0.0% (0 of 545) | below this line | below this line |
| SW-SKL-011 | Hard-coded credential in the package | 1.4% (12 of 839) | 1.5% (8 of 545) | 1.4% (12 of 839) | 1.5% (8 of 545) |
| SW-SKL-012 | Reads a credential file path without stating purpose | 0.7% (6 of 839) | 0.7% (4 of 545) | below this line | below this line |
| SW-SKL-013 | Network calls to raw IP addresses or URL shorteners | 0.1% (1 of 839) | 0.2% (1 of 545) | below this line | below this line |
| SW-SKL-014 | Obfuscated script code | 1.5% (13 of 839) | 0.2% (1 of 545) | below this line | below this line |
| SW-SKL-015 | Frontmatter missing or invalid (name, description) | below this line | below this line | below this line | below this line |
| SW-SKL-019 | Fetches external URL content into context without an allowlist | 7.5% (63 of 839) | 2.6% (14 of 545) | below this line | below this line |
| SW-SKL-031 | Missing license and version metadata | below this line | below this line | below this line | below this line |
| SW-SKL-032 | Instructions lure the user into running a password-protected download or a pasted script | 0.6% (5 of 839) | 0.0% (0 of 545) | 0.6% (5 of 839) | 0.0% (0 of 545) |
| SW-SKL-036 | Frontmatter pre-approves an unscoped shell or interpreter | 0.4% (3 of 839) | 4.0% (22 of 545) | below this line | below this line |
| SW-SKL-037 | Executable downloaded from a moving reference and run without an integrity check | 0.2% (2 of 839) | 0.2% (1 of 545) | below this line | below this line |
| Rule | Title | Detection, medium or above | False positives, medium or above | Detection, high or above | False positives, high or above |
|---|---|---|---|---|---|
| SW-SKL-001 | Prompt-injection phrases in skill instructions | 0.0% (0 of 53) | 0.0% (0 of 110) | 0.0% (0 of 53) | 0.0% (0 of 110) |
| SW-SKL-002 | Hidden text: zero-width or bidirectional control characters | 0.0% (0 of 53) | 0.0% (0 of 110) | 0.0% (0 of 53) | 0.0% (0 of 110) |
| SW-SKL-003 | Instructions to skip approvals or disable hooks | 3.8% (2 of 53) | 0.9% (1 of 110) | 3.8% (2 of 53) | 0.9% (1 of 110) |
| SW-SKL-004 | Encoded payload decoded and executed | 1.9% (1 of 53) | 0.0% (0 of 110) | 1.9% (1 of 53) | 0.0% (0 of 110) |
| SW-SKL-005 | Writes to agent configuration | 0.0% (0 of 53) | 0.9% (1 of 110) | 0.0% (0 of 53) | 0.9% (1 of 110) |
| SW-SKL-006 | Destructive command without a confirmation step | 1.9% (1 of 53) | 3.6% (4 of 110) | below this line | below this line |
| SW-SKL-007 | Remote script piped to a shell | 24.5% (13 of 53) | 0.9% (1 of 110) | 24.5% (13 of 53) | 0.9% (1 of 110) |
| SW-SKL-008 | Sends local file contents to an external host | 3.8% (2 of 53) | 0.9% (1 of 110) | 3.8% (2 of 53) | 0.9% (1 of 110) |
| SW-SKL-009 | Unpinned dependency install | 15.1% (8 of 53) | 16.4% (18 of 110) | below this line | below this line |
| SW-SKL-010 | Bundled binary or executable file | 0.0% (0 of 53) | 0.0% (0 of 110) | below this line | below this line |
| SW-SKL-011 | Hard-coded credential in the package | 9.4% (5 of 53) | 2.7% (3 of 110) | 9.4% (5 of 53) | 2.7% (3 of 110) |
| SW-SKL-012 | Reads a credential file path without stating purpose | 3.8% (2 of 53) | 1.8% (2 of 110) | below this line | below this line |
| SW-SKL-013 | Network calls to raw IP addresses or URL shorteners | 3.8% (2 of 53) | 0.0% (0 of 110) | below this line | below this line |
| SW-SKL-014 | Obfuscated script code | 5.7% (3 of 53) | 0.9% (1 of 110) | below this line | below this line |
| SW-SKL-015 | Frontmatter missing or invalid (name, description) | below this line | below this line | below this line | below this line |
| SW-SKL-019 | Fetches external URL content into context without an allowlist | 26.4% (14 of 53) | 10.0% (11 of 110) | below this line | below this line |
| SW-SKL-031 | Missing license and version metadata | below this line | below this line | below this line | below this line |
| SW-SKL-032 | Instructions lure the user into running a password-protected download or a pasted script | 0.0% (0 of 53) | 0.0% (0 of 110) | 0.0% (0 of 53) | 0.0% (0 of 110) |
| SW-SKL-036 | Frontmatter pre-approves an unscoped shell or interpreter | 9.4% (5 of 53) | 5.5% (6 of 110) | below this line | below this line |
| SW-SKL-037 | Executable downloaded from a moving reference and run without an integrity check | 3.8% (2 of 53) | 0.0% (0 of 110) | below this line | below this line |
| Rule | Title | Found, medium or above | Found, high or above |
|---|---|---|---|
| SW-SKL-001 | Prompt-injection phrases in skill instructions | 0 of 4 | 0 of 4 |
| SW-SKL-002 | Hidden text: zero-width or bidirectional control characters | 0 of 4 | 0 of 4 |
| SW-SKL-003 | Instructions to skip approvals or disable hooks | 0 of 4 | 0 of 4 |
| SW-SKL-004 | Encoded payload decoded and executed | 0 of 4 | 0 of 4 |
| SW-SKL-005 | Writes to agent configuration | 0 of 4 | 0 of 4 |
| SW-SKL-006 | Destructive command without a confirmation step | 0 of 4 | below this line |
| SW-SKL-007 | Remote script piped to a shell | 0 of 4 | 0 of 4 |
| SW-SKL-008 | Sends local file contents to an external host | 0 of 4 | 0 of 4 |
| SW-SKL-009 | Unpinned dependency install | 1 of 4 | below this line |
| SW-SKL-010 | Bundled binary or executable file | 1 of 4 | below this line |
| SW-SKL-011 | Hard-coded credential in the package | 0 of 4 | 0 of 4 |
| SW-SKL-012 | Reads a credential file path without stating purpose | 1 of 4 | below this line |
| SW-SKL-013 | Network calls to raw IP addresses or URL shorteners | 0 of 4 | below this line |
| SW-SKL-014 | Obfuscated script code | 0 of 4 | below this line |
| SW-SKL-015 | Frontmatter missing or invalid (name, description) | below this line | below this line |
| SW-SKL-019 | Fetches external URL content into context without an allowlist | 0 of 4 | below this line |
| SW-SKL-031 | Missing license and version metadata | below this line | below this line |
| SW-SKL-032 | Instructions lure the user into running a password-protected download or a pasted script | 0 of 4 | 0 of 4 |
| SW-SKL-036 | Frontmatter pre-approves an unscoped shell or interpreter | 2 of 4 | below this line |
| SW-SKL-037 | Executable downloaded from a moving reference and run without an integrity check | 0 of 4 | below this line |
46 rules judge other kinds of content and are not measured here: SW-A2A, SW-CFG, SW-MCP and SW-REG. Scanner rules lists them. SW-MCP-011, one of them, has its own published recall on its page.
Release by release
The last six releases at most, oldest first. Sets changed marks a release whose sets differ from those of the release before it, so its rates and the earlier ones are not measured on the same skills.
| Set and line | 1.21.0 |
|---|---|
| Released | 24 November 2026 |
| MaliciousSkillBench test split (source-disjoint), detection, medium or above | 36.0% (302 of 839) |
| MaliciousSkillBench test split (source-disjoint), false positives, medium or above | 26.6% (145 of 545) |
| MaliciousSkillBench test split (source-disjoint), detection, high or above | 3.7% (31 of 839) |
| MaliciousSkillBench test split (source-disjoint), false positives, high or above | 9.7% (53 of 545) |
| Held-out half of Spellwarden's labelled set, detection, medium or above | 54.7% (29 of 53) |
| Held-out half of Spellwarden's labelled set, false positives, medium or above | 29.1% (32 of 110) |
| Held-out half of Spellwarden's labelled set, detection, high or above | 37.7% (20 of 53) |
| Held-out half of Spellwarden's labelled set, false positives, high or above | 6.4% (7 of 110) |
| Trail of Bits scanner-bypass skills, found, medium or above | found 3 of 4 |
| Trail of Bits scanner-bypass skills, found, high or above | found 0 of 4 |
| Tuning half of Spellwarden's labelled set, detection, medium or above | 47.5% (29 of 61) |
| Tuning half of Spellwarden's labelled set, false positives, medium or above | 34.9% (38 of 109) |
| Tuning half of Spellwarden's labelled set, detection, high or above | 23.0% (14 of 61) |
| Tuning half of Spellwarden's labelled set, false positives, high or above | 6.4% (7 of 109) |
Other published figures on the same split
Figures that others published on the MaliciousSkillBench test split, as published, not measured here. Read on 24 November 2026. Each publication says under which configuration its figures hold; follow its link for its method.
| Source | Configuration | Detection | False positives |
|---|---|---|---|
| Cisco AI Defense skill-scanner 2.2.0, measured results | Rules only, balanced, high or above | 7.7% | 4.0% |
| Cisco AI Defense skill-scanner 2.2.0, measured results | Rules and judge, balanced, medium or above | 66.7% | 15.4% |
| MaliciousSkillBench scanner comparison | Cisco-local-behavioral | 2.5% | 1.1% |
| MaliciousSkillBench scanner comparison | SkillFortify-offline | 25.3% | 49.9% |
| MaliciousSkillBench scanner comparison | SkillSpector-static | 0.0% | 0.55% |
What these numbers do not say
- They measure the rules only. The model-assisted analyzer is measured apart and is not in this table: see The model-assisted analyzer.
- They measure skills only. The rules for MCP servers, configuration, the registry check and A2A agent cards are not measured here.
- On the public skills that a study labelled malicious or leaking, a detection says the rules reported the risky pattern the study labelled, not that they stopped an attack.
- Presets change what a team sees: a rule that a preset turns off or lowers is still counted here at its own severity. See Presets.
- The held-out half here holds 163 of the 436 skills the analyzer was measured on: its ATR samples are measured once, in the MaliciousSkillBench test split. A rate on these 163 skills is not comparable with a figure of the analyzer on the 436.
- Trail of Bits scanner-bypass skills: four skills say whether these four are found, and nothing about a rate.
Sources and licences
Nothing below is copied into Spellwarden's repository or attached to a release. The benchmark keeps a pointer and a hash for every object and file, and each person fetches the samples from their owner.
| Source | What is fetched | Pin | Licence and terms |
|---|---|---|---|
| MaliciousSkillBench | The archives of skill packages it publishes, one for each source | commit 893afd609be22a2dfac5a2b94bbebb4eeb99515e | Apache-2.0 for code, CC BY 4.0 for metadata, annotations and split manifests; third-party skill artifacts keep their own upstream terms and are not relicensed. Its responsible-use terms ask for defensive research and detection evaluation in isolated analysis, and say not to run the skills, follow their links or install their packages. |
| MaliciousSkillBench on Hugging Face | The skill text of the harmless rows of the test split | revision d4b42ce5766a6e0359c987cf59c1007cb3795a90 | CC BY 4.0, not gated |
| Public skills listed as safe by Liu et al. | Each file of each skill, from its owner's repository | the commit recorded when the skill was collected | Each repository's own licence, or none |
| trailofbits/overtly-malicious-skills | Each file of its skills | commit 4ffbf9461ef0505f9ce76a0d3694a18ec33ea531 | No licence file; its README says the skills are for security research purposes only and not to be installed. Nothing of it is copied here. |
The packages of MaliciousSkillBench come from these benchmarks:
- MaliciousAgentSkillsBench, Liu et al., arXiv 2602.06547, MIT
- SkillLeakBench, arXiv 2604.03070, MIT
- Agent Skill Malware, Hugging Face yoonholee/agent-skill-malware, MIT
- SkillHarm, arXiv 2606.02540, CC BY 4.0
- ATR Skill-Security Benchmark, Hugging Face Agent-Threat-Rule/atr-skill-benchmark, MIT
- SkillFortifyBench, arXiv 2603.00195, MIT
Checked and not used: SkillSieve (arXiv 2604.06550) says its code, labels and results are open source, but on 23 November 2026 it named no location, and only labels, not skill texts, are said to be released, so there is nothing to fetch.
Run it yourself
From a checkout of the scanner's repository at the tag v1.21.0, which gives the newest column of this page:
python -m venv .bench
.bench/bin/pip install "spellwarden==1.21.0"
.bench/bin/pip install --require-hashes -r benchmarks/requirements.txt
.bench/bin/python benchmarks/rule_benchmark.py runOn Windows the interpreter is .bench\Scripts\python.exe. With uv:
uv run --no-project --with "spellwarden==1.21.0" --with-requirements benchmarks/requirements.txt python benchmarks/rule_benchmark.py runThe first run fetches the samples from their sources and checks every object against its hash before it is used; later runs read a cache outside the repository and need no network. No sample is written to disk as files, printed or logged. The benchmark's README says more.