security-scanner
Skill1 starsChanged 31 days agoMITView on GitHub
Instructions for the upstream workflow: Scan Python skills and MCP servers for malicious code — dangerous imports, network exfiltration, filesystem abuse, subprocess injection, obfuscation, crypto weakness, environment leaks, and supply-chain attacks. Use when auditing code for security, running pre-commit hooks, or preparing CI/CD security gates.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- rmichak/claude-skillstheir own version, first seen Nov 8, 2026
- kcayme/k-agentstheir own version, first seen Nov 1, 2026
- jazzpujols34/claude-skillstheir own version, first seen Oct 13, 2026
- leonvanzyl/agentic-coding-starter-kittheir own version, first seen Oct 8, 2026
- alexblag023/claude-skillstheir own version, first seen Oct 1, 2026
- dkpapadopoulos/auto-claude-skillstheir own version, first seen Sep 22, 2026
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- leonvanzyl/agentic-coding-starter-kit★ 447same name
- glincker/claude-code-marketplace★ 37same name
- dkpapadopoulos/auto-claude-skills★ 6same name
- casedone/claude-code-security-plugins★ 4same name
- ianalloway/openclaw-skills★ 4same name
- leonvanzyl/claude-code-pro-workflow-demo★ 4same name
- mehdiozdemir/awesome-agent-skills★ 2same name
- alexblag023/claude-skills★ 1same name
- cicoccc/openclaw-security-scanner★ 1same name
- rmichak/claude-skills★ 1same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository114 other files it gives its agents.
- agent-cacheSkill
- agent-compressionSkill
- agent-intelSkill
- agent-overlapSkill
- agent-stateSkill
- ambient-hudSkill
- app-testSkill
- audit-dagSkill
- auto-distillSkill
- auto-memorySkill
- auto-routerSkill
- benchSkill
- bootstrapSkill
- botte-learnSkill
- botte-nnSkill
- botte-proxySkill
- botte-wrapSkill
- cacheSkill
- call-chainsSkill
- capabilitiesSkill
- cardinalSkill
- checkupSkill
- clarificationSkill
- clusterSkill
- code-complexitySkill
- code-duplicationSkill
- code-fingerprintSkill
- code-rulesSkill
- code-stateSkill
- code-wrappersSkill
- comfyuiSkill
- completion-proofSkill
- conductorSkill
- context-budgetSkill
- context-compressorSkill
- context-profilerSkill
- context-slicerSkill
- context-windowsSkill
- control-loopSkill
- cost-estimatorSkill
- dag-optimizerSkill
- dashboardSkill
- decision-ladderSkill
- demoSkill
- diff-languageSkill
- directives-auditSkill
- docgenSkill
- docs-stewardSkill
- dynamic-workflowsSkill
- efficiencySkill
- eventsSkill
- fallow-likeSkill
- fallowSkill
- fast-contextSkill
- fixSkill
- fleetSkill
- hailo-visionSkill
- harness-deltaSkill
- harvestSkill
- hermes-bridgeSkill
- The first 60 shown.
The file
Files
security-scanner — code security scanner
Package scope and prerequisites
This catalog ships instructions, not the executable runtime. Python modules, scripts, local services and optional tools named below must be installed separately from the upstream project. Check their availability before running commands; if they are missing, explain the prerequisite instead of claiming execution or results. The host agent may use model tokens while following these instructions.
Détecte les patterns malveillants dans les skills Python, MCP servers, et pipelines. Combinaison de regex pattern-matching et d'analyse AST Python.
Usage
# Scanner un dossier
python -m skills.security_scanner.cli scan skills/ --fail-on critical
python -m skills.security_scanner.cli scan . --format json
python -m skills.security_scanner.cli scan src/main.py --verbose
# Audit complet
python -m skills.security_scanner.cli audit skills/ --format compactChecks effectués
| Check | Regex | AST | Exemple |
dangerous_imports | ✅ | ✅ | eval(user_input), exec(code) |
network_exfil | ✅ | ✅ | requests.post("evil.com") |
filesystem_abuse | ✅ | ✅ | open("/etc/passwd", "w") |
subprocess_injection | ✅ | ✅ | shell=True avec input concaténé |
obfuscation | ✅ | ❌ | base64.b64decode, bytes([...]).decode() |
crypto_weak | ✅ | ❌ | RSA.generate(512), MD5 |
env_leak | ✅ | ✅ | print(os.environ["SECRET"]) |
supply_chain | ✅ | ❌ | Imports de packages inconnus |
Architecture
security_scanner/
├── scanner.py # Orchestrateur : itère fichiers, appelle analyseurs
├── patterns.py # Base de patterns (regex + metadata)
├── ast_checker.py # Analyse Python AST
├── report.py # Compilation du rapport
├── rules/ # YAML rules extensibles
├── cli.py # CLI argparse
└── test_security_scanner.pyIntégration
# Pre-commit hook
python -m skills.security_scanner.cli scan . --fail-on critical --format compact
# CI/CD
python -m skills.security_scanner.cli scan skills/ --format json --output security-report.json
# Nightly audit
python -m skills.security_scanner.cli audit . --format markdownPitfalls
- Faux positifs —
evaldans un contexte contrôlé (ex:eval("1+1")) est signalé. L'AST checker permet de filtrer les évaluations statiques. - Fichiers binaires — Skip automatique (.pyc, .so, .dll, images).
- Dossiers ignorés — .git, node_modules, pycache, .venv.
- Performance — Utilise
concurrent.futurespour scanner en parallèle.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

