Back to skill

Security audit

mcp-code-execution

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report context and intermediate data storage concerns, along with possible mismatches between its stated purpose and some described actions.

The verdict is suspicious, so review the skill carefully before installing. Consider whether its data logging and external storage practices suit your needs, and whether its broad activation terms and described operations match what you expect. The findings indicate security weaknesses and possible purpose mismatches; they do not establish malicious intent.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (5)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The visible code presents direct local script execution rather than the declared MCP-based workflow routing. The implementation of extracted_tool.py is not supplied, so its internal behavior cannot be verified; the mismatch assessment is limited to the shown commands.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied function delegates a risk assessment to mcp_validation_assess_mecw_risk; it does not visibly route or execute a data-processing pipeline. Using an MCP function is consistent with the description, but the specific operation has a materially different purpose. The token-budget allocation is a supporting implementation detail, not a separate mismatch.

Content

No source excerpt is available for this finding.

The debug-logging workflow persists a context snapshot without warning users about potential sensitive-data retention.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The logging example unconditionally includes capture_context_state() and arbitrary event details in a persisted log entry, without filtering sensitive content. In data-heavy agent workflows, implementing this pattern could copy confidential inputs, credentials, or tool outputs into logs with different access and retention controls; this is a sensitive-data logging risk, not evidence of deliberate exfiltration.

Content

No source excerpt is available for this finding.

The workflow instructs agents to persist intermediate results externally without a user-facing data-storage warning.

Medium
Category
Output Handling
Confidence
87% confidence
Finding

The skill explicitly directs agents to set up external storage and store intermediate results there, rather than merely listing a storage capability. It does not warn users that workflow data may persist outside the conversation or clarify the storage destination, access permissions, or retention.

Content

No source excerpt is available for this finding.

Automatic activation uses generic keywords without an explicit MCP-only restriction.

Medium
Category
Trigger Abuse
Confidence
97% confidence
Finding

The automatic triggers include everyday terms such as validate, check, and monitor, which commonly occur in requests unrelated to MCP validation. Although the introduction mentions MCP workflows, the activation rules do not explicitly restrict keyword matching to those workflows or provide exclusions.

Content

No source excerpt is available for this finding.