Back to skill

Security audit

AI电商专家|爆款主图复刻与改造

Security checks for vulnerabilities and agentic risk

Overview

The skill appears to be a real IMIVA ecommerce image workflow, but it runs an unpinned remote npm package with broad environment access and a generic MCP call wrapper.

Review before installing. Use a dedicated low-privilege IMIVA token, avoid running it in shells or CI jobs that contain unrelated secrets, and prefer a pinned reviewed version of the npm MCP package with a minimal environment allowlist. Treat generated tasks as potentially billable and confirm model, quantity, and credit limits before submitting.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (2)

T08 · Insecure Dependencies

Error
Location
scripts/imiva_mcp.py:13
Finding

Automatic Execution of an Unpinned npm Dependency

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/imiva_mcp.py:49
Finding

Third-Party MCP Process Inherits the Complete Parent Environment

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (8)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill is described as a dedicated '爆款主图复刻与改造' workflow centered on create_visual_migration_task, but its documented behavior includes listing all MCP tools and invoking arbitrary tool names through a generic wrapper. That mismatch is dangerous because it broadens the effective authority of the skill beyond user expectations, enabling unintended actions against the IMIVA MCP surface if additional tools become available to the token.

Content

No source excerpt is available for this finding.

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/imiva_mcp.py (reported line 51)May include surrounding context.

python
def invoke(method: str, params: dict | None = None) -> dict:
    npx, token = require_runtime()
    env = os.environ.copy()
    env["MCP_TOKEN"] = token
    env["API_URL"] = os.environ.get("IMIVA_API_URL", os.environ.get("API_URL", DEFAULT_API_URL))
    proc = subprocess.Popen(

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
85% confidence
Finding

The skill exposes shell, file-read, and environment-variable handling behaviors but does not declare any explicit tool scope such as allowed-tools or permissions. This creates unnecessary capability ambiguity: a caller may trust the skill as a narrow ecommerce workflow while it can access broader local resources and execute helper commands, increasing the chance of unintended data exposure or misuse.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The description states the skill is especially suitable for '中文用户', which imposes a language preference in natural language rather than merely describing a regional compliance scope. The file does not offer an alternative language option or indicate that language selection is user-controlled.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The script forwards MCP_TOKEN and user-supplied tool arguments to a remote API endpoint without an in-band disclosure at execution time. While sending credentials and arguments is expected for an API client, the lack of clear notice increases the risk of inadvertent sensitive-data transmission, especially in an agent skill that may be run by non-expert users.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/imiva_mcp.py (reported line 54)May include surrounding context.

python
env = os.environ.copy()
    env["MCP_TOKEN"] = token
    env["API_URL"] = os.environ.get("IMIVA_API_URL", os.environ.get("API_URL", DEFAULT_API_URL))
    proc = subprocess.Popen(
        [npx, "-y", PACKAGE],
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The script silently runs an external package via npx, which can download and execute code from the package registry at runtime. In a skill context, this is risky because users may not realize they are triggering remote code execution and package retrieval on the local machine, especially with @latest allowing unpinned updates.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script's error messages are hard-coded in Chinese, and there is no indication that the tool is region-specific or that users can select another language. This can violate language/locale policy where user-facing text should not force a specific language without opt-in or justification.

Content

No source excerpt is available for this finding.