obielin/skillshield
حول
Security scanner for AI agent skills. Flags known prompt-injection, data-exfiltration and malicious-payload patterns before you install
الأمان والخصوصيةالنمو المقاس للنجوم
- خلال 24 ساعة
- +١٧
- خلال 7 أيام
- جارٍ جمع السجل
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلSkillShield
Security scanner for AI agent skills and MCP servers. It looks for known prompt-injection, data-exfiltration and malicious-payload patterns in a skill or in a saved MCP tool listing before you install it. It runs on your machine and has no runtime dependencies, and scanning a local file never touches the network.
Built in the open by 30+ contributors, and new ones are always welcome.
In one audit of ClawHub, the OpenClaw skill marketplace, 341 of 2,857 skills were malicious [1]. SkillShield checks a skill for the patterns behind attacks like these before an agent reads it.
Join in
SkillShield is shaped by the people who use it. Every release credits its contributors by name: 23 people shipped something in 1.4.0.
Your avatar could be next: pick a good first issue.
Four ways in, from a few minutes to a weekend:
- Close a detection gap. Each attack SkillShield misses today is a sample in the red-team tests, marked as a known gap, with an open detection-gap issue. Catch the sample and the gap is closed.
- Add your language. Prompt-injection phrases are matched in 12 languages. If you speak another, or spot a common phrasing that slips through in one of them, a few patterns and tests make a real difference.
- Report a false positive. If SkillShield flags a skill that is safe, report it with the text. Each one makes the rules sharper.
- Improve the docs. If something here was unclear, it will be unclear to the next person too.
Start with a good first issue and comment /assign to claim it. Questions and ideas go in Discussions. CONTRIBUTING.md walks you through your first pull request.
If SkillShield is useful to you, a star helps other people find it.
See it in action
pip install skillshield
skillshield scan skills/

In a pull request, the GitHub Action flags the line itself:

Try it on a live pull request in skillshield-demo.
The problem
An agent skill is a file of instructions or code that an AI agent loads and follows. A malicious skill can tell the agent to ignore its instructions, read your files and send them to someone else.
- On 1 February 2026, Koi Security reported that it audited all 2,857 skills on ClawHub, the skill marketplace for OpenClaw. It found 341 malicious skills. 335 of them came from one campaign, which Koi named ClawHavoc. [1]
- Snyk's ToxicSkills study scanned 3,984 skills from ClawHub and skills.sh. 534 skills (13.4%) had at least one critical issue. 1,467 skills had at least one security issue. Snyk confirmed 76 malicious payloads. [2]
- The OWASP Agentic Skills Top 10 lists Malicious Skills as AST01 and Supply Chain Compromise as AST02. [3]
skillshield checks skill files for these patterns with 24 rules. It runs locally and needs no network access.
Install
pip install skillshield
Python 3.10 or later, MIT licence. This installs the skillshield command and the skillshield Python package. The project was called skillguard until version 1.1.0; the old command and import still work until 2.0.0 (details).
Quick start
skillshield scan SKILL.md # scan one file
skillshield scan ./skills/ # scan a directory
skillshield scan https://github.com/owner/repo # check a skill before you install it
skillshield scan --installed # scan the skills your agents already load
skillshield scan ./skills/ --format sarif # SARIF for GitHub code scanning
skillshield check "ignore previous instructions" # scan a piece of text
skillshield rules # list all rules
A scan exits 1 when a file is HIGH or CRITICAL, so it can fail a build as it is. In a workflow, use the GitHub Action:
- uses: actions/checkout@v7
- uses: obielin/skillshield@v1
with:
path: skills
From Python:
from skillshield import SkillScanner
result = SkillScanner().scan_file("SKILL.md")
print(result.risk_level, [f.rule_id for f in result.findings])
Accepting a reviewed finding
Some findings are expected: documentation that quotes an attack as an example, or a package index your team runs. Once you have reviewed one, accept it in a .skillshield-ignore file at the root of your repository, with the reason, and pass it with --ignore-file .skillshield-ignore. Accepted findings no longer count towards the risk level or the exit code, but they are never hidden: the report says how many were accepted, --show-accepted lists them, and SARIF output keeps them marked as suppressed with the reason.
# rule or fingerprint path glob reason (required)
SG-013 setup/** Our internal package mirror
fp:3f9a1c0e7b2d4a55 - Reviewed 2026-11-21: installer pins a hash
- First column: a rule ID, or a finding's fingerprint (
fp:and 16 hex characters). - Second column: a path glob relative to the ignore file, or
-for any path.*matches within one folder and**across folders. - The rest of the line: the reason. A line without one is an error, and so is an unknown rule ID; the scan exits with code 2 and names the line.
A rule entry accepts findings up to HIGH. A CRITICAL finding can only be accepted by its own fingerprint, so a broad entry can never hide a new critical finding.
A fingerprint is tied to the rule, the file and the text that matched. Moving the text up or down the file keeps it accepted; changing the matched text brings the finding back for review. To accept every current finding in a folder by fingerprint:
skillshield accept docs/ --reason "Attack phrases quoted as examples, reviewed 21 Nov 2026"
skillshield scan . --ignore-file .skillshield-ignore
On the command line, SkillShield only reads the file you name with --ignore-file. It never picks one up by itself, so a skill you downloaded cannot accept its own findings, even when you scan it from inside its own folder, and an ignore file is not used for GitHub URL scans or --installed. The GitHub Action and python -m skillshield.ci read .skillshield-ignore from the repository root by default, because the workflow that runs them belongs to the repository; any change to that file shows in the pull request that makes it. An entry that accepted nothing in a scan prints a warning, so old entries get cleaned up.
What it detects
24 rules, run on every file:
| Rule | Severity | Name |
|---|---|---|
| SG-001 | CRITICAL | Prompt Injection |
| SG-002 | CRITICAL | Data Exfiltration |
| SG-003 | CRITICAL | Privilege Escalation |
| SG-004 | HIGH | Identity Hijacking |
| SG-005 | HIGH | Hardcoded Secret / Credential |
| SG-006 | CRITICAL | Rug Pull / Remote Code Execution |
| SG-007 | HIGH | Scope Creep / Excessive Permissions |
| SG-008 | HIGH | Obfuscated Payload |
| SG-009 | HIGH | Covert Channel |
| SG-010 | HIGH | Social Engineering |
| SG-011 | CRITICAL | Lethal Trifecta (Supply Chain Attack Pattern) |
| SG-012 | MEDIUM | Suspicious URL |
| SG-013 | HIGH | Untrusted Package Registry |
| SG-014 | HIGH | Compiled Python Payload |
| SG-015 | MEDIUM | Well-known Skill Name Impersonation |
| SG-016 | MEDIUM | Certificate Checks Turned Off |
| SG-017 | HIGH | Git Setting That Runs a Program |
| SG-018 | MEDIUM | Library Preloaded Into Other Programs |
| SG-101 | HIGH | Unsafe Server Authentication |
| SG-102 | HIGH | Over-broad Tool Permissions |
| SG-103 | HIGH | Unrestricted Path Parameter |
| SG-104 | HIGH | Suspicious Tool Name |
| SG-105 | MEDIUM | Tool with No Description or Input Schema |
| SG-106 | LOW | Excessive Tool Count |
SG-001 to SG-018 read skill files of any kind. SG-101 to SG-106 check the structure of a saved MCP tool listing.
Documentation
- Using SkillShield: every command and option, GitHub URL scans, installed skills, exit codes and the Python API
- Rules and scoring: what each rule looks for, the OWASP mapping, how the risk score is worked out, and custom rules
- Scanning MCP servers: how a saved tool listing is read
- Output formats: text, JSON and SARIF, field by field
- Running in CI: the GitHub Action, code scanning and other CI systems
- Threat coverage: reported attacks on agent skills, and which ones SkillShield catches
- Changelog and roadmap
Limitations
SkillShield matches known patterns. It is a first line of defence, not a guarantee:
- Reworded attacks can get through. A rule that catches "ignore all previous instructions" may miss the same instruction said another way.
- Only the listed English, Chinese, Japanese, Korean, Arabic, Russian, Italian, French, Spanish, Portuguese, German and Hindi phrasing is matched. The same instruction in another language is not flagged yet (#66), and rewording it also switches off the lethal-trifecta rule (#67).
- Hidden characters are not yet removed before matching. Zero-width characters inside a word, or lookalike letters from other alphabets, can stop a rule from matching.
- Some techniques have no rule yet, such as piping a downloaded script into a shell, leaking data through a markdown image URL, or an instruction that waits for a trigger word.
- Documentation about attacks can be flagged. A guide that quotes an attack phrase as an example may be reported as if it were an attack.
docs/threat-coverage.md lists the attack techniques reported against agent skills in 2025–2026, with sources, and what SkillShield covers today. tests/test_redteam.py holds a corpus of realistic attacks and safe look-alikes. Each technique SkillShield does not catch yet is marked as a known gap and has an open issue labelled detection-gap. Fixing one is a good way to contribute.
Roadmap
ROADMAP.md sets out how SkillShield goes from a pattern scanner to a layered defence: measuring detection and false positives, closing evasions, judging what a skill does rather than how it is worded, an optional local semantic check, locking reviewed skills, and a runtime guard. Each stage has a tracking issue. Picking up a stage is a good way to get deeper into the project.
Contributing
CONTRIBUTING.md explains which changes need an issue first, how to add a detection rule and how to keep test samples safe. To set up:
git clone https://github.com/obielin/skillshield
cd skillshield
pip install -e ".[dev]"
pytest
- GOVERNANCE.md: how decisions are made, and the contributor ladder
- SUPPORT.md: where to ask what
- SECURITY.md: how to report a vulnerability in SkillShield privately
- CODE_OF_CONDUCT.md
Sources
- Koi Security, "ClawHavoc: 341 Malicious Clawed Skills Found by the Bot They Were Targeting", 1 February 2026. Original URL (now redirects) · Archived copy
- Snyk, "Snyk Finds Prompt Injection in 36%, 1467 Malicious Payloads in a ToxicSkills Study of Agent Skills Supply Chain Compromise", 5 February 2026. The figures above come from the body of the post. https://snyk.io/blog/toxicskills-malicious-ai-agent-skills-clawhub
- OWASP Agentic Skills Top 10. https://owasp.org/www-project-agentic-skills-top-10/ · Risk list on GitHub
- EU AI Act, Article 50: Transparency obligations for providers and deployers of certain AI systems. https://artificialintelligenceact.eu/article/50/
- OWASP GenAI Security Project, OWASP Top 10 for Agentic Applications for 2026, 9 December 2025. https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/
Linda Oraegbunam
Senior AI Engineer | ML Engineer
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…