Back to skill

Security audit

AI电商专家|Amazon 亚马逊 图片视频全内容

Security checks for vulnerabilities and agentic risk

Overview

This skill has a coherent ecommerce content purpose, but it downloads and runs a mutable npm package with broad environment access, so users should review it before installing.

Install only if you are comfortable running the IMIVA npm MCP client locally. Prefer a pinned reviewed package version, run it in a restricted environment with only MCP_TOKEN and API_URL exposed, and avoid launching it from shells that contain unrelated cloud, CI, or production credentials. Confirm costs before creating image or video tasks.

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

T08 · Insecure Dependencies

Error
Location
scripts/imiva_mcp.py:14
Finding

Unpinned npm Package Is Automatically Downloaded and Executed

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
95% confidence
Finding

Using os.environ.copy() forwards the entire parent environment into a child process that runs remotely sourced npm code. If that process or any dependency is malicious or compromised, it can read and exfiltrate unrelated secrets from the environment beyond MCP_TOKEN, such as cloud credentials, CI tokens, or proxy settings.

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
86% confidence
Finding

The skill documents shell commands, environment variable handling, and file-path based inputs, but it does not declare any explicit tool restrictions such as allowed-tools or permissions. That creates a mismatch where an agent may infer broad capability to read local files, access environment secrets, or invoke shell-backed helpers without a clearly bounded scope, increasing the chance of unintended data exposure or overbroad execution.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The top-level description says to use the skill for broad ecommerce content and workflow needs without clear triggering boundaries. In agentic routing systems, this can cause the skill to activate for loosely related requests and then steer the agent toward external tool use, file handling, or token-dependent workflows that the user may not have explicitly requested.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The search coverage section enumerates many brands, marketplaces, models, and commercial-intent keywords far beyond the core Amazon content workflow. This broad keyword net can bias retrieval or auto-invocation toward this skill for unrelated user queries, potentially leading to inappropriate tool suggestions, unnecessary exposure to local/remote asset handling, or accidental use in contexts outside the intended trust boundary.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The display name, description, and default prompt are written to operate in Chinese and do not indicate that users may choose another language. This is a natural-language policy concern because it imposes a specific language without documented opt-in or alternative locale handling.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill enables implicit invocation without any trigger constraints, exclusions, or clear scoping. In a broad ecommerce assistant, this can cause the agent to auto-select the skill in unrelated contexts and initiate content-generation or downstream tool workflows based on ambiguous user input, increasing the chance of unintended actions, data exposure, or prompt-routing abuse.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
93% confidence
Finding

The script launches npx -y @infimind/ecom-content-cli@latest, which fetches and executes the latest remote npm package at runtime. This creates a supply-chain execution risk: a compromised publisher account, malicious dependency, or unexpected package update would result in arbitrary code execution on the host with access to the provided environment and local system resources.

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
90% confidence
Finding

The tool silently executes a remote npm package without clearly warning the operator that code will be downloaded and run. In a skill intended for enterprise ecommerce workflows, this reduces informed consent and increases the chance that users execute unreviewed third-party code in sensitive environments containing tokens, product assets, or internal data.

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 user-facing error messages and command descriptions are written in Chinese, with no option to select another language and no indication that the tool is intentionally region- or locale-specific. This can violate language/locale policy when a skill imposes a language without user opt-in.

Content

No source excerpt is available for this finding.