SKA auditor
Security audit for Claude Code SKILL.md files using static analysis + LLM-powered threat detection. Detects prompt injection, data exfiltration, MCP tool poisoning, privilege escalation, sandbox escapes, and 15 other threat categories. Run before ...From its SKILL.md
npx -y skills add asong56/skills --skill SKA-auditorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.0 KB, 616 tokens by cl100k_base, as published. Nobody here has run it
/SKA — Skill Security Auditor
Use this skill to run a security audit on .claude/skills/ directories or individual SKILL.md files
before installation. Combines static YARA-based pattern matching with LLM semantic analysis
via a LangGraph multi-node pipeline.
Setup
cd .claude/skills/SKA/scripts
pip install -e . --break-system-packages
Requires: Python 3.11+, ANTHROPIC_API_KEY (or OPENAI_API_KEY) in environment.
Usage
# Scan a single skill file
python -m SKA path/to/SKILL.md
# Scan a full skills directory
python -m SKA .claude/skills/
# JSON output (for CI integration)
python -m SKA .claude/skills/ --output json
# Exit 1 if any HIGH or CRITICAL finding (for pre-install gate)
python -m SKA .claude/skills/ --fail-on HIGH
What It Detects
SKA runs 14 static analyzers + 3 LLM semantic analyzers in parallel:
| Category | Examples |
|---|---|
| Prompt injection | Override system prompt, jailbreak instructions |
| Data exfiltration | Leak env vars, files, secrets via tool calls |
| MCP tool poisoning | Manipulate tool definitions to cause unsafe ops |
| Privilege escalation | Gain capabilities beyond skill scope |
| Rogue agent patterns | Override agent behavior, autonomous takeover |
| Supply chain attacks | Malicious dependencies in skill setup steps |
| Memory poisoning | Corrupt cross-session memory/context |
| Excessive agency | Skills claiming unlimited permissions |
| Harmful content | Instructions for harmful real-world actions |
| System prompt leakage | Extract confidential system instructions |
| Output handling abuse | Manipulate Claude output to downstream systems |
| Cryptominer patterns | Embed crypto-mining in skill execution |
| MCP rug-pull | Tools that change behavior after trust established |
| Least-privilege violations | Over-broad tool permission requests |
Risk Levels
LOW— Safe to installMEDIUM— Review flagged sections before installingHIGH— Do not install without manual security reviewCRITICAL— Likely malicious — reject
CI Integration
Add to your pre-skill-install workflow:
- name: Scan skill for security
run: |
cd .claude/skills/SKA/scripts
pip install -e . -q
python -m SKA ../new-skill/ --fail-on MEDIUM
SARIF Output
For GitHub Advanced Security integration:
python -m SKA .claude/skills/ --output sarif > results.sarif
Source
Powered by the SKA Python package in scripts/.
Architecture: LangGraph pipeline → static analysis nodes → LLM semantic nodes → meta-aggregator → report.
What ships with it: 59 files
394.0 KB alongside SKILL.md, 51 of them executable
scripts/
- pyproject.toml2.8 KB
- skillspector/cli.pyruns7.7 KB
- skillspector/constants.pyruns2.1 KB
- skillspector/graph.pyruns2.3 KB
- skillspector/__init__.pyruns934 B
- skillspector/input_handler.pyruns7.3 KB
- skillspector/llm_analyzer_base.pyruns15.1 KB
- skillspector/llm_utils.pyruns3.7 KB
- skillspector/logging_config.pyruns2.5 KB
- skillspector/model_info.pyruns2.6 KB
- skillspector/models.pyruns3.6 KB
- skillspector/nodes/analyzers/behavioral_ast.pyruns7.0 KB
- skillspector/nodes/analyzers/behavioral_taint_tracking.pyruns12.7 KB
- skillspector/nodes/analyzers/common.pyruns6.7 KB
- skillspector/nodes/analyzers/__init__.pyruns5.1 KB
- skillspector/nodes/analyzers/mcp_least_privilege.pyruns13.0 KB
- skillspector/nodes/analyzers/mcp_rug_pull.pyruns1.3 KB
- skillspector/nodes/analyzers/mcp_tool_poisoning.pyruns31.8 KB
- skillspector/nodes/analyzers/osv_client.pyruns9.2 KB
- skillspector/nodes/analyzers/pattern_defaults.pyruns27.9 KB
- skillspector/nodes/analyzers/semantic_developer_intent.pyruns7.2 KB
- skillspector/nodes/analyzers/semantic_quality_policy.pyruns6.4 KB
- skillspector/nodes/analyzers/semantic_security_discovery.pyruns4.8 KB
- skillspector/nodes/analyzers/static_patterns_data_exfiltration.pyruns8.1 KB
- skillspector/nodes/analyzers/static_patterns_excessive_agency.pyruns9.1 KB
- skillspector/nodes/analyzers/static_patterns_harmful_content.pyruns6.9 KB
- skillspector/nodes/analyzers/static_patterns_memory_poisoning.pyruns8.3 KB
- skillspector/nodes/analyzers/static_patterns_output_handling.pyruns8.1 KB
- skillspector/nodes/analyzers/static_patterns_privilege_escalation.pyruns7.5 KB
- skillspector/nodes/analyzers/static_patterns_prompt_injection.pyruns7.7 KB
- skillspector/nodes/analyzers/static_patterns_rogue_agent.pyruns7.3 KB
- skillspector/nodes/analyzers/static_patterns_supply_chain.pyruns29.4 KB
- skillspector/nodes/analyzers/static_patterns_system_prompt_leakage.pyruns8.3 KB
- skillspector/nodes/analyzers/static_patterns_tool_misuse.pyruns11.5 KB
- skillspector/nodes/analyzers/static_runner.pyruns4.7 KB
- skillspector/nodes/analyzers/static_yara.pyruns9.0 KB
- skillspector/nodes/build_context.pyruns8.6 KB
- skillspector/nodes/__init__.pyruns774 B
- skillspector/nodes/meta_analyzer.pyruns15.4 KB
- skillspector/nodes/report.pyruns14.5 KB
19 more files not listed here. See all 59 in the repository.