teeshield
Integrates with GitHub Actions for automated security scanning in CI/CD pipelines and supports SARIF output for integration with GitHub Code Scanning.
SpiderShield -- Security Scanner & Runtime Guard for MCP Servers
Security toolkit for MCP servers and AI agents. Static analysis, runtime policy enforcement, DLP, and audit logging -- from development to production.
Security Contributions
SpiderShield has identified and fixed vulnerabilities in these projects (merged PRs):
Project | Stars | Fix |
49K+ | Path traversal (CWE-22) | |
35K+ | Timing attack (CWE-208) | |
-- | Command injection (CWE-78) | |
1.3K+ | Timing attack (CWE-208) | |
-- | Shell injection (CWE-78) |
Related MCP server: meok-mcp-injection-scan-mcp
What SpiderShield does
SpiderShield is a 5-subsystem security toolkit:
Subsystem | Command / API | What it does |
Static Scanner |
| Score tool descriptions, detect code vulnerabilities, rate overall quality (F/C/B/A/A+) |
Agent Security |
| 18 config checks, 15 malicious pattern detections, toxic flow analysis, rug pull detection |
Runtime Guard SDK |
| Pre/post-execution policy enforcement for tool calls |
MCP Proxy |
| Transparent security proxy between agent and MCP server |
DLP Engine | Built into Guard SDK | Scan tool outputs for PII/secrets, redact or block |
Install
pip install spidershieldRequires Python 3.11+. See SUPPORT.md for version compatibility and optional dependencies.
5-Minute Success Path
# 1. Install
pip install spidershield
# 2. Scan any MCP server
spidershield scan ./your-mcp-server
# 3. See what's wrong and how to fix it
spidershield rewrite ./your-mcp-server --dry-run
# 4. (Optional) Protect at runtime
spidershield proxy -- npx server-filesystem /tmpFor contributors:
git clone https://github.com/teehooai/spidershield && cd spidershield
make verify-oss # One command: install + lint + type check + test + scanQuick Start
Static scan (CI / development)
spidershield scan ./your-mcp-serverExample output:
SpiderShield Scan Report
modelcontextprotocol/servers/filesystem
+---------------------------------------------+
| Metric | Value | Score |
|-----------------------+-----------+---------|
| License | MIT | OK |
| Tools | 14 | OK |
| Security | 0 issues | 10.0/10 |
| Descriptions | | 3.2/10 |
| Architecture | | 10.0/10 |
| Tests | Yes | OK |
| | | |
| Overall | Rating: B | 7.6/10 |
| Improvement Potential | | 2.4/10 |
+---------------------------------------------+Runtime Guard SDK (production)
Enforce security policies on every tool call at runtime:
from spidershield import SpiderGuard, Decision
guard = SpiderGuard(policy="strict")
result = guard.check("read_file", {"path": "/etc/passwd"})
if result.decision == Decision.DENY:
print(result.reason) # "System file access blocked"
print(result.suggestion) # "Use application-level files instead"Policy presets:
Preset | Behavior |
| Deny by default, explicit allow list |
| Block known-dangerous patterns, allow common operations |
| Warn on suspicious patterns, allow most operations |
Custom YAML | Load your own policy file: |
With audit logging and DLP:
guard = SpiderGuard(
policy="strict",
audit=True, # Write audit trail to disk
audit_dir="./logs", # Custom audit directory
dlp="redact", # Scan outputs for PII/secrets, redact matches
)
# Pre-execution check
result = guard.check("query_db", {"sql": "SELECT * FROM users"})
# Post-execution DLP scan
clean_output = guard.after_check("query_db", raw_result)With data flywheel (opt-in telemetry to local SQLite):
guard = SpiderGuard(policy="balanced", dataset=True)
# Every check() call feeds the local dataset for scoring calibrationMCP Proxy (transparent protection)
Wrap any MCP server with SpiderShield policy enforcement:
from spidershield import guard_mcp_server
# Proxy between agent and server, enforcing "balanced" policy
guard_mcp_server(
["npx", "server-filesystem", "/tmp"],
policy="balanced",
audit=True,
)Or from the CLI:
spidershield proxy -- npx server-filesystem /tmp --policy balancedRewrite tool descriptions
SpiderShield can automatically rewrite tool descriptions to be action-oriented, with scenario triggers, parameter examples, and error guidance.
# Preview changes (no files modified)
spidershield rewrite ./your-mcp-server --dry-run
# Apply changes to source files
spidershield rewrite ./your-mcp-serverBefore (score 2.9):
"Shows the working tree status"After (score 9.6):
"Query the current state of the Git working directory and staging area.
Use when the user wants to check which files are modified, staged, or
untracked before committing."The rewriter works offline using templates (zero cost). Set ANTHROPIC_API_KEY for higher-quality LLM-powered rewrites.
Scan results across the MCP ecosystem
Server | Tools | Security | Descriptions | Overall | Rating |
filesystem | 14 | 10.0 | 3.2 | 7.6 | B |
git | 12 | 10.0 | 2.4 | 7.3 | B |
memory | 9 | 10.0 | 2.3 | 7.3 | B |
fetch | 1 | 9.0 | 3.5 | 7.3 | B |
supabase | 30 | 9.0 | 2.3 | 6.4 | B |
Full report: MCP-SECURITY-REPORT.md | Raw data: CURATION-REPORT.md
Try it on an example
The repo includes example MCP servers for instant demo:
git clone https://github.com/teehooai/spidershield
cd spidershield
spidershield scan examples/insecure-server # Rating: D (3.3/10)
spidershield scan examples/secure-server # Rating: D (4.7/10)What SpiderShield checks
Static Scanner
Security (weighted 35%)
Path traversal
Command injection / dangerous eval
SQL injection (Python + TypeScript)
SSRF (unrestricted network access)
Hardcoded credentials
Unsafe deserialization (pickle, yaml.load)
Prototype pollution (TypeScript)
Descriptions (weighted 35%)
Action verb starts ("List", "Create", "Execute")
Scenario triggers ("Use when the user wants to...")
Parameter documentation
Parameter examples
Error handling guidance
Disambiguation between similar tools
Length (too short = vague, too long = noisy)
Architecture (weighted 30%)
Test coverage (gradual: count-based)
Error handling (gradual: coverage-based)
README quality (gradual: length-based)
Type annotations
Dependency management
Environment configuration
License (pass/fail gate, not weighted)
MIT, Apache-2.0, BSD = OK
GPL, AGPL = warning
Missing = fail
Agent Security Checker
Scan AI agent installations for security misconfigurations and malicious skills.
spidershield agent-check ~/.openclawWhat it checks:
10 configuration security checks (auth, sandbox, SSRF, permissions, etc.)
20+ malicious skill patterns (reverse shells, credential theft, prompt injection)
Toxic flow detection -- flags skills that can read sensitive data AND send it externally
Typosquat detection for skill names
Excessive permission requests
Advanced options:
# Verify skill integrity (rug pull detection)
spidershield agent-check --verify
# Only approved skills allowed
spidershield agent-check --allowlist approved.json
# Strict mode: fail on any finding
spidershield agent-check --policy strict
# Ignore specific rules
spidershield agent-check --ignore TS-W001 --ignore typosquat
# Auto-fix configuration issues
spidershield agent-check --fix
# SARIF output for GitHub Code Scanning
spidershield agent-check --format sarif > results.sarifSkill pinning (rug pull protection):
spidershield agent-pin add ~/.openclaw/skills/my-skill/SKILL.md
spidershield agent-pin add-all
spidershield agent-pin verify # detect tampered skills
spidershield agent-pin list46 standardized issue codes across 4 categories:
Code | Category | Example |
TS-E001~E015 | Error (malicious) | Reverse shell, credential theft, prompt injection |
TS-W001~W011 | Warning (suspicious) | Typosquat, toxic flow, unapproved skill |
TS-C001~C018 | Config | No auth, sandbox disabled, SSRF enabled |
TS-P001~P002 | Pin | Verified, tampered |
Rating scale (SpiderRating)
Rating | Score | Meaning |
A | 9.0+ | Exemplary |
B | 7.0+ | Production-ready |
C | 5.0+ | Usable, needs improvements |
D | 3.0+ | Significant issues |
F | <3.0 | Unsafe, do not deploy |
Formula (MCP servers): description × 0.38 + security × 0.34 + metadata × 0.28
Formula (Skills): description × 0.45 + security × 0.35 + metadata × 0.20
JSON output
spidershield scan ./server --format json
spidershield scan ./server --format json -o report.jsonGitHub Action
Add SpiderShield to your CI pipeline. Available on the GitHub Marketplace.
Basic usage
# .github/workflows/security.yml
name: SpiderShield Security Scan
on: [push, pull_request]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: teehooai/spidershield@v1
with:
target: '.'
fail-below: '6.0'With outputs
- uses: actions/checkout@v4
- id: scan
uses: teehooai/spidershield@v1
with:
target: '.'
fail-below: '6.0'
format: 'json'
- run: |
echo "Score: ${{ steps.scan.outputs.score }}"
echo "Rating: ${{ steps.scan.outputs.rating }}"Action inputs
Input | Description | Default |
| Path to MCP server directory |
|
| Fail if score is below this threshold (0-10) |
|
| Output format ( |
|
Action outputs
Output | Description |
| Overall scan score (0-10) |
| Rating: F / C / B / A / A+ |
| Number of tools detected |
Commands
Command | Description |
| Scan and rate an MCP server |
| Rewrite tool descriptions |
| Suggest security hardening (advisory only) |
| Compare tool selection accuracy |
| Scan an AI agent for security issues |
| Manage skill pins for rug pull detection |
| Wrap any subprocess with security guard |
| MCP proxy with policy enforcement |
| Manage security policies |
| View guard audit logs |
| View data flywheel statistics |
| Add a benchmark entry |
| Re-run benchmarks |
| Run scoring calibration |
Threat model
SpiderShield provides both static analysis and runtime policy enforcement.
What it catches:
Ambiguous tool definitions that lead to agent misuse
Missing side-effect declarations (writes, deletes, network calls)
Unsafe permission patterns (unbounded file access, unrestricted queries)
Vague descriptions that give agents no operational boundaries
Malicious agent skills (reverse shells, credential theft, prompt injection)
Dangerous capability combinations (data exfiltration flows)
Insecure agent configurations (no auth, disabled sandbox, open DM policy)
Skill tampering (rug pull detection via content hashing)
PII/secret leakage in tool outputs (DLP engine)
Policy violations at runtime (Runtime Guard)
What it does NOT do:
Network traffic monitoring
Container-level sandboxing
Access control management (it enforces policies, not manages identities)
License
MIT
Available Tools
2 toolscheck_agent_securityA
Scan an AI agent installation for security issues. Checks agent configuration (gateway binding, authentication, sandbox, API keys in plaintext, DM policy, tool permissions, SSRF protection, file permissions, log redaction) and installed skills for malicious patterns (reverse shells, credential theft, prompt injection, toxic data flows). Returns findings with severity levels and fix hints. Use when auditing an agent's security posture or before deploying an agent to production.
| Name | Required | Description | Default |
|---|---|---|---|
| agent_dir | No | Path to agent config directory. Defaults to ~/.openclaw if not specified. | |
| scan_skills | No | Include skill scanning for malicious patterns (default: true) | |
| verify_pins | No | Verify pinned skills for rug pull detection (default: false) | |
| policy | No | Scan policy preset (default: balanced) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Without annotations, the description adequately discloses the tool's behavior: it scans configuration and skills, and returns findings with severity and fix hints. It implies a read-only operation, though explicitly stating non-destructiveness would improve transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise: two sentences for the main functionality and one for usage. Every sentence provides value, no redundancy, and the structure is front-loaded with the core purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema, the description covers the return format (findings with severity and fix hints). It adequately describes the tool's scope and outcome, though it could mention the sibling tool to avoid confusion.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents each parameter well. The description adds overall context but does not enhance parameter semantics beyond what the schema provides, meeting the baseline.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'scan' and the resource 'AI agent installation'. It lists specific security checks on configuration and skills, distinguishing it from the sibling tool 'scan_mcp_server' which likely scans MCP servers instead.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicit usage guidance is provided: 'Use when auditing an agent's security posture or before deploying an agent to production.' This gives clear context but does not mention when not to use or alternative tools, such as the sibling for MCP servers.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
scan_mcp_serverA
Scan an MCP server for security vulnerabilities, description quality, and architecture issues. Checks for path traversal, command injection, SQL injection, SSRF, hardcoded credentials, and unsafe deserialization. Scores tool descriptions for scenario triggers, parameter docs, and disambiguation. Returns a security rating (F/C/B/A/A+) with actionable recommendations. Use when evaluating whether an MCP server is safe to install or deploy.
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | GitHub repo URL or local directory path of the MCP server to scan |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries full burden. It explains the tool scans for specific vulnerabilities, scores descriptions, and returns a rating. It does not disclose whether it modifies files or requires network access, but overall it provides substantial behavioral insight.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise, with every sentence serving a purpose. It starts with the main action, lists what it checks, and ends with when to use it. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simple one-parameter schema, no output schema, and no annotations, the description is complete. It explains the tool's purpose, checks, and output (security rating with recommendations). There are no apparent gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The single parameter 'target' is described in the schema as 'GitHub repo URL or local directory path'. The tool description does not add new meaning beyond that, so a baseline score of 3 is appropriate given 100% schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool scans MCP servers for security vulnerabilities, description quality, and architecture issues, listing specific checks and a rating system. It distinguishes itself from the sibling tool 'check_agent_security' by focusing on server security rather than agent security.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides a clear use case: 'Use when evaluating whether an MCP server is safe to install or deploy.' However, it does not mention when not to use this tool or contrast it with alternatives like the sibling tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
v0.3.4- First observed
check_agent_security - First observed
scan_mcp_server
TDQS
The two tools target completely different security domains—agent installations vs MCP servers—with no functional overlap. An agent can easily distinguish which to use based on the target.
Both tools follow a consistent verb_noun pattern: check_agent_security and scan_mcp_server. The naming is predictable and immediately conveys purpose.
With only two tools, the server is minimal but well-scoped to its purpose of security scanning. Each tool covers a distinct area, and adding more would risk bloat. However, a third tool for scanning server configurations could be justified.
The set covers the two primary use cases implied by the server name 'teeshield': scanning agents and scanning MCP servers. Agent scanning includes configuration and skills; MCP scanning includes vulnerabilities and description quality. Minor gaps like scanning for network security or runtime behavior might exist, but are outside the stated scope.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Scan any MCP server for tool-poisoning, security, auth & license. Trust score before install.
Security & DLP proxy for MCP: tool-poisoning scans, PII redaction on tool args/results. Beta.
Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceSecurity scanner for MCP servers. Detects prompt injection, command injection, auth bypass, and excessive permissions across tools, resources, and prompts.262MIT
- AlicenseAqualityCmaintenanceScans MCP servers for prompt-injection, tool-poisoning, and SSRF vulnerabilities using 30+ canonical rules across 5 severity tiers, with optional signed safety reports for procurement.5MIT
- AlicenseNot gradedqualityAmaintenanceSecurity scanner for MCP servers — vet an MCP before you wire it into an agent. Detects prompt-injection, credential exfiltration (via taint analysis), RCE, and supply-chain risks, and catches cross-server exfil chains no single server reveals. Zero-dependency local CLI, SARIF output, CI-gateable, no account.65MIT
- AlicenseCqualityBmaintenanceSecurity scanner and MCP server that catches dangerous patterns in MCP servers and AI agent projects, such as leaked secrets, shell execution, and prompt-injection text. Runs as both a CLI and MCP server with CI-friendly severity gates.21MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/teehooai/spidershield'
If you have feedback or need assistance with the MCP directory API, please join our Discord server