mcp-security-review
Skill3 starsChanged 5 months agoMITView on GitHub
Conduct a security review of MCP server and client implementations: threat modeling, auth validation, tool risk assessment, and remediation plan aligned with OWASP LLM and MCP-specific risks. Use when working on MCP servers, MCP tools, MCP clients, or Model Context Protocol integrations.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- alidevai/chiron_agenttheir own version, first seen Jul 17, 2026
- vibesec-advisory/skillstheir own version, first seen May 24, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- alidevai/chiron_agent★ 1same name
- vibesec-advisory/skills★ 0same name
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 repository59 other files it gives its agents.
- agent-memory-designerSkill
- ai-cost-optimizerSkill
- ai-evaluation-builderSkill
- ai-latency-optimizerSkill
- ai-solution-architectSkill
- ai-workflow-builderSkill
- context-engineeringSkill
- human-in-the-loop-designerSkill
- multi-agent-plannerSkill
- prompt-engineerSkill
- prompt-optimizerSkill
- prompt-reviewerSkill
- adr-generatorSkill
- api-designerSkill
- architecture-reviewSkill
- component-diagram-builderSkill
- container-diagram-builderSkill
- data-flow-analyzerSkill
- integration-plannerSkill
- observability-plannerSkill
- scalability-advisorSkill
- solution-architectureSkill
- system-context-builderSkill
- experiment-designerSkill
- go-to-market-plannerSkill
- pricing-strategy-advisorSkill
- mcp-best-practicesSkill
- mcp-client-generatorSkill
- mcp-server-generatorSkill
- mcp-tool-generatorSkill
- acceptance-criteria-generatorSkill
- analytics-instrumentation-plannerSkill
- competitive-analysisSkill
- epic-generatorSkill
- feature-prioritizationSkill
- idea-validatorSkill
- north-star-metric-advisorSkill
- okr-builderSkill
- persona-generatorSkill
- prd-generatorSkill
- problem-statement-builderSkill
- product-discovery-assistantSkill
- product-vision-builderSkill
- sprint-plannerSkill
- story-mappingSkill
- user-story-generatorSkill
- value-proposition-designerSkill
- chunking-strategy-advisorSkill
- embedding-strategy-advisorSkill
- hybrid-search-advisorSkill
- knowledge-ingestion-plannerSkill
- rag-architecture-designerSkill
- retriever-optimizerSkill
- ai-governance-advisorSkill
- ai-threat-modelingSkill
- guardrails-builderSkill
- owasp-llm-reviewerSkill
- prompt-injection-detectorSkill
- skill-nameSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Document trust boundaries: agent, MCP client, MCP server, external API.
- Distinctive: line 72
No full API responses logged at debug in production
- Distinctive: line 123
Use allowlists for URLs (SSRF), paths (traversal), and commands.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP Security Review
Purpose
Conduct a security review of MCP server and client implementations: threat modeling, auth validation, tool risk assessment, and remediation plan aligned with OWASP LLM and MCP-specific risks.
Input: MCP server/client specification, tool designs, auth model, data classification, deployment context
Output: MCP Security Review Report with findings ranked by severity, threat model, and remediation checklist
Examples: See examples.md for worked input/output.
Workflow
Step 1: Classify data and deployment
| Dimension | Classification |
| Data sensitivity | Public / Internal / Confidential / PII |
| Deployment | Local stdio / Self-hosted / Third-party |
| User scope | Single user / Multi-tenant |
| Write access | Read-only / Read-write / Destructive |
Step 2: Build threat model
Apply STRIDE to MCP components:
| Component | Threats | Example |
| Transport | Spoofing, tampering | MITM on HTTP transport |
| Auth | Elevation, spoofing | Token leakage in logs |
| Tools | Tampering, DoS | Unbounded query exhausting API |
| Resources | Info disclosure | Exposing secrets via resources |
| Agent → Tool | Injection | LLM passes malicious args to shell tool |
Document trust boundaries: agent, MCP client, MCP server, external API.
Step 3: Review authentication and secrets
| Check | Pass/Fail | Notes |
| Secrets in environment only | ||
| No secrets in tool responses | ||
| Token scope minimal (least privilege) | ||
| OAuth refresh handled securely | ||
| Per-user vs shared credentials documented |
Step 4: Assess tool risk
Per tool:
| Tool | Risk | Controls present | Gap |
run_query | SQL injection | Parameterized queries | None |
delete_file | Data loss | confirm flag | Missing confirm |
Flag: command injection, path traversal, SSRF, excessive permissions, missing rate limits.
Step 5: Review logging and audit
- Arguments with PII redacted in logs
- Audit trail for destructive operations
- No full API responses logged at debug in production
- Correlation ID for incident investigation
Step 6: Produce findings and remediation
Rank findings: Critical / High / Medium / Low / Info.
Run Validation checklist.
Decision Rules
| Condition | Action |
| Critical finding (RCE, secret leak, unauth access) | Block deployment until fixed |
| Destructive tool without confirmation | Rate High; require remediation |
| HTTP transport without TLS | Block production deployment |
| PII in tool responses without redaction | Require data minimization |
| Third-party MCP server with write access | Require sandbox and explicit user consent |
| Shell/command execution tool | Critical review; prefer API-based alternatives |
Validation
- Data classification and deployment context documented
- Threat model with trust boundaries
- Auth and secrets review completed
- Every tool assessed for risk with controls/gaps
- Logging and audit requirements specified
- Findings ranked with severity and remediation
- Critical/High findings have owner and deadline
- Residual risk accepted explicitly or mitigated
Anti-patterns
- Security theater — checklist without tool-level analysis.
- Trust the LLM — assuming model will never call dangerous tools with bad args.
- Shared admin token — one API key for all users in multi-tenant setup.
- Log everything — recording tokens and PII for debugging.
- Skip review for read-only — read access to secrets still requires review.
Best Practices
- Apply least privilege to every API token scope.
- Validate and sanitize all tool inputs server-side.
- Use allowlists for URLs (SSRF), paths (traversal), and commands.
- Rate limit per user and per tool.
- Re-review on every new tool or auth model change.
Output Structure
# MCP Security Review: [Server/Client Name]
**Date:** [YYYY-MM-DD]
**Reviewer:** [Name or "automated skill"]
## Context
| Dimension | Value |
|-----------|-------|
## Threat Model
[Trust boundaries diagram and STRIDE table]
## Auth & Secrets Review
| Check | Status | Finding |
|-------|--------|---------|
## Tool Risk Assessment
| Tool | Risk | Severity | Remediation |
|------|------|----------|-------------|
## Findings Summary
| ID | Severity | Description | Remediation | Status |
|----|----------|-------------|-------------|--------|
## Deployment Gate
[ ] Approved [ ] Approved with conditions [ ] Blocked
## Residual Risks
| Risk | Acceptance rationale |
|------|---------------------|Next Skills
| Outcome | Recommended Skill |
| Fix tool design issues | mcp/mcp-tool-generator |
| Harden implementation | mcp/mcp-best-practices |
| Broader LLM security | ai-security/llm-threat-modeler |
| Re-review after fixes | mcp/mcp-security-review |
| Client auth hardening | mcp/mcp-client-generator |
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.

