Back to skill

Security audit

JMCAI Comfypet

Security checks for vulnerabilities and agentic risk

Overview

This skill serves its stated purpose, but a remote bridge can make it save files outside its download folder and contact unrelated network services.

Prefer the default local desktop connection. Before enabling remote bridges, seek a version that confines downloads to a private folder and restricts download URLs and redirects to the configured bridge. Remote mode uploads selected input files and automatically saves results; use limited filesystem and network permissions if remote access is essential.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
jmcai_skill.py
Finding

Unvalidated response run ID controls the local download directory

Content
View full analysis

Impact

The bridge can create attacker-chosen files in directories writable by the CLI process, outside the intended download cache. This can plant configuration or startup files where the corresponding consumer is enabled. Existing files are normally skipped, so unrestricted overwrite is not established.

Vulnerability Patterns
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Code capability 'file_write' detected in jmcai_skill.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
99% confidence
Finding

Output downloads are legitimate, but localize_output_asset incorporates the bridge-controlled run ID into the download directory without validating it. A malicious or compromised remote bridge can return an absolute path or traversal components to create directories and write attacker-controlled files outside the temporary download root, subject to process permissions and the destination-existence check.

Content

No source excerpt is available for this finding.

Code capability 'network' detected in jmcai_skill.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
98% confidence
Finding

Bridge communication is necessary, but build_bridge_url accepts arbitrary absolute HTTP(S) URLs from bridge-provided download_path values, and urllib follows redirects without destination restrictions. A malicious or compromised remote bridge can therefore induce requests from the agent's machine to unrelated external hosts or internal services, with response bytes saved locally; this does not by itself demonstrate that those bytes are returned to the attacker.

Content

No source excerpt is available for this finding.

Code capability 'file_read' detected in jmcai_skill.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'file_read' capability that is not covered by the declared 'allowed-tools' preapproval. Review the host runtime's actual enforcement policy; runtime permissions are unknown unless separately verified, and this declaration alone does not establish a permission ceiling.

Content

No source excerpt is available for this finding.