Back to skill

Security audit

AI电商专家|Amazon A+ 页面 图片视频全内容

Security checks for vulnerabilities and agentic risk

Overview

The skill’s ecommerce purpose is coherent, but it automatically runs an unpinned npm package with the user’s IMIVA token and full inherited environment.

Review before installing. Use only if you trust the IMIVA npm package publisher and are comfortable giving it your IMIVA token and any inherited environment variables. Prefer a pinned package version, a minimal allowlisted environment, scoped/rotatable tokens, and manual confirmation before credit-spending generation 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:12
Finding

Automatic Execution of an Unpinned npm Dependency

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 (6)

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

The skill documents shell execution, environment-variable access, and local file path handling, but it does not declare any explicit tool scope such as allowed-tools or permissions. That creates an overbroad execution surface where a host may permit more capabilities than the skill strictly needs, increasing the risk of unintended command execution, exposure of local files, or misuse of secrets like MCP tokens. In this context, the risk is elevated because the workflow explicitly references shell commands, local file paths, and environment-based authentication.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The description ends with 'Use this skill for IMIVA ecommerce content, product images, product detail pages, KOC seeding, product video, viral creative recreation, marketplace listing and social commerce workflows.' This is an expansive invocation description covering many common ecommerce tasks without explicit boundaries or negative examples, making activation scope ambiguous for a markdown skill description.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The file states the skill is especially suitable for '中文用户', and the provided command examples hard-code 'language':'简体中文'. This indicates a language/locale constraint in the natural-language instructions without presenting user choice or documenting why other languages are excluded.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The user-facing error messages are hard-coded in Chinese, and the CLI description/help text later in the file is also Chinese-only. For a general-purpose skill, this imposes a specific language on users without opt-in or documented justification, which matches the language/locale policy violation criteria.

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,