Back to skill

Security audit

mcp-security-scan

Security checks for vulnerabilities and agentic risk

Overview

The skill’s scanner script is limited and purpose-aligned, but the package asks for WebFetch and Write while also claiming no network or filesystem access.

Review this before installing. The core script appears to scan MCP tool metadata locally, but the skill metadata should be tightened before broad use: remove or justify WebFetch and Write, align permissions with actual behavior, and avoid giving it sensitive MCP configs unless you are comfortable with those broader tool grants.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (11)

Scope Creep

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The manifest denies network access, but allowed-tools includes WebFetch, which enables outbound requests. In a security-scanning skill reviewing third-party MCP servers, hidden egress is especially sensitive because it could exfiltrate scanned configs, metadata, or user-provided details while appearing non-networked on paper.

Content

No source excerpt is available for this finding.

Scope Creep

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The manifest denies network access, but allowed-tools includes WebFetch, which enables outbound requests. In a security-scanning skill reviewing third-party MCP servers, hidden egress is especially sensitive because it could exfiltrate scanned configs, metadata, or user-provided details while appearing non-networked on paper.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This markdown file defines activation language and trigger words, so SQP-1 applies. Line L06 mixes specific MCP-related phrases with broader terms like 'server扫描' and '协议安全', and it does not provide exclusion conditions or negative examples, making the activation boundary unclear.

Content

No source excerpt is available for this finding.

Unrestricted Tool Access

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill grants unrestricted tool access without appropriate constraints. An agent with unfettered tool access can perform arbitrary actions including file modification, network requests, and code execution.

Content

Scanner excerpt · README.md (reported line 15)May include surrounding context.

md
| MCP can run shell | command-exec flagged high |
| Silent data exfil | network-egress flagged |
| Token in tool description | credential-exposure flagged |
| "Just enable all tools" | least privilege, disable extras |

### What's inside
- `SKILL.md` — 4-risk model + 3-step audit flow + hard rules

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger list includes "server扫描", which is generic and not clearly limited to MCP-specific security review. Because many everyday or technical requests about scanning servers could match this phrase, it creates ambiguity about when this skill should activate.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill metadata and narrative make conflicting security claims: the manifest denies network/filesystem/subprocess access, while the risk rationale says the skill may call APIs, read/write files, and perform local execution. This can mislead reviewers and operators into granting or relying on incorrect trust assumptions, causing unsafe deployment decisions.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The comments and implementation explicitly describe constructing token-like patterns in a way intended to avoid triggering the project's own secret or detection scanners. Even though this specific file is a scanner and not directly exfiltrating secrets, instructions to evade internal detection normalize bypass behavior and can be copied into more dangerous contexts, undermining security controls and code review trust.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
77% confidence
Finding

The file title and opening text describe AGENTS.md as an instruction manual for AI agents, while L12 states the actual invocation entry point is SKILL.md and agents should consult that first. This is a mild documentation-level contradiction about where agent-facing operational guidance is supposed to originate.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
79% confidence
Finding

The file presents a full Chinese section and licensing block in Chinese, but does not indicate whether language selection is optional or user-driven. Under the stated policy, forcing or assuming a language/locale without opt-in can be a natural-language policy issue, especially where important usage or licensing information is duplicated in a specific language without choice guidance.

Content

No source excerpt is available for this finding.

Vague Triggers

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The activation description says to use the skill when onboarding an MCP server and worrying it is a new attack surface, but it does not clearly define boundaries or negative examples. This can blur the distinction between this specialized MCP audit skill and more general security-review requests.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The usage text instructs callers to provide parameters such as target_server_name and access_config, but the declared interface schema only defines tools and optional json. This mismatch can cause integrators to wrap or invoke the skill incorrectly, potentially bypassing validation and leading to ad hoc, less-controlled handling of sensitive input.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.