cisco-ai-defense/mcp-scanner/security-scan
Claude Code and agent skill by cisco-ai-defense/mcp-scanner
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Scans MCP servers, tools, prompts, and resources for security vulnerabilities using YARA rules, LLM analysis, and Cisco AI Defense API. Use this skill when the user wants to check MCP servers for security issues, detect prompt injection, tool poisoning, or analyze MCP configurations for threats.
Install
npx vskill@latest install cisco-ai-defense/mcp-scanner/security-scanSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as cisco-ai-defense/mcp-scanner/security-scan.
MCP Security Scanning
When the user asks to scan MCP servers or check for security issues in MCP configurations, use the uv run mcp-scanner CLI tool. This tool detects prompt injection, tool poisoning, command injection, data exfiltration, and other MCP-specific threats.
Important: Always run mcp-scanner using uv run mcp-scanner to ensure proper dependency management.
Threat Types Detected
- Prompt Injection: Malicious instructions embedded in tool descriptions or prompts
- Tool Poisoning: Tools that claim to do one thing but actually perform malicious actions
- Command Injection: Tools that execute arbitrary system commands
- Data Exfiltration: Tools that leak sensitive data to external endpoints
- Privilege Escalation: Tools that request excessive permissions
- Cross-Origin Attacks: Tools that access unauthorized resources
- Behavioral Mismatches: Discrepancies between documented and actual tool behavior
Analyzers
| Analyzer | Description | Requirements | Best For | |
|---|---|---|---|---|
yara | Fast pattern-based detection using YARA rules | None | Quick scans, CI/CD pipelines | |
llm | LLM-powered semantic analysis | MCP_SCANNER_LLM_API_KEY | Deep analysis, prompt injection detection | |
api | Cisco AI Defense API | MCP_SCANNER_API_KEY | Enterprise-grade threat detection |
Combine analyzers: --analyzers yara,llm,api for comprehensive scanning.
Scanning Modes
1. Remote MCP Server
Scan tools on a remote SSE or streamable HTTP MCP server:
2. Known Config Locations
Scan well-known MCP config paths (Windsurf, Cursor, Claude Desktop, VS Code):
Config locations scanned:
~/.codeium/windsurf/mcp_config.json(Windsurf)~/.cursor/mcp.json(Cursor)~/Library/Application Support/Claude/claude_desktop_config.json(Claude Desktop on macOS)- VS Code MCP settings
3. Specific Config File
Scan a specific MCP configuration file:
4. Stdio MCP Server
Launch and scan a stdio-based MCP server:
5. Prompts
Scan MCP server prompts for prompt injection and manipulation:
6. Resources
Scan MCP server resources for malicious content:
7. Server Instructions
Scan server instructions from the MCP connect handshake (DiscoverResult on modern servers, InitializeResult on legacy servers) for prompt injection and misleading guidance:
8. Behavioral Code Analysis
Analyze MCP server source code to detect mismatches between documentation and implementation:
Detects:
- Functions that claim to read but actually write
- Hidden network calls not mentioned in documentation
- Credential harvesting disguised as helper functions
- Data exfiltration in seemingly benign operations
9. Static/Offline Scanning (CI/CD Mode)
Scan pre-generated JSON files without connecting to a live server:
Expected JSON format:
Output Formats
| Format | Description | Use Case | |
|---|---|---|---|
summary | Concise overview with key findings | Quick checks | |
detailed | Comprehensive analysis with full breakdown | Investigation | |
table | Clean tabular format | Reports | |
by_severity | Results grouped by severity level | Prioritization | |
raw | Raw JSON output | Automation/CI |
Environment Variables
Core Configuration
LLM Configuration
Severity Levels
- HIGH: Critical security issues requiring immediate attention
- MEDIUM: Potential security concerns that should be reviewed
- LOW: Minor issues or informational findings
- SAFE: No security issues detected
Best Practices
- Start with YARA: Use
--analyzers yarafor quick initial scans (no API keys needed) - Add LLM for depth: Include
llmanalyzer for semantic analysis of suspicious tools - Use detailed format: Use
--format detailedwhen investigating findings - CI/CD integration: Use static scanning with
--format rawfor pipeline integration - Scan before install: Always scan new MCP servers before adding to your configuration
- Regular rescans: Periodically rescan existing configurations for new threats
Example Workflow
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationPassed, 80 of 100Effective. 1 run. Evaluated 8 months ago.
Source
- SKILL.md in the repositoryCheckingclaude-code-plugin/skills/security-scan/SKILL.md
Popularity
- Repository stars
- 1,100
- Repository forks
- 153
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 8 months ago.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cisco-ai-defense/mcp-scanner/security-scan)