Back to skill

Security audit

AI电商专家|电商全内容一站式生成

Security checks for vulnerabilities and agentic risk

Overview

The skill has a coherent ecommerce-content purpose, but it runs an unpinned npm MCP package with the user's token and inherited environment, which deserves review before installation.

Review this before installing in any environment that contains API keys, cloud credentials, repository tokens, or other secrets. Prefer a pinned MCP package version, a minimal allowlisted environment, and explicit user confirmation before billable generation tasks or local product assets are sent to IMIVA.

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

Unpinned npm Package Is Downloaded and Executed Automatically

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
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
  • 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 (7)

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
89% confidence
Finding

os.environ.copy() passes the full parent environment into a subprocess that executes remotely sourced npm code. Even though the script intentionally sets MCP_TOKEN and API_URL, inheriting all environment variables may expose unrelated secrets such as cloud credentials, proxy tokens, CI secrets, or other sensitive configuration to the child process if the package is malicious or compromised.

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

The skill includes operational examples that invoke shell commands, read local files, and rely on environment variables containing sensitive credentials, but it does not declare any explicit tool scope such as allowed-tools or permissions. This creates a mismatch between documented capability and declared restrictions, increasing the risk that a host agent may grant broader-than-necessary access or that users will execute commands handling tokens and local paths without clear sandboxing expectations.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

The markdown explicitly says the skill is especially suitable for Chinese users, while the file otherwise includes English text and does not present this as an optional language preference or a clearly justified regional compliance constraint. This creates a natural-language locale policy concern because it steers usage toward a fixed language audience without opt-in.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill enables implicit invocation without defining trigger constraints, exclusion conditions, or tighter routing boundaries. This can cause the agent to auto-select the skill in broader contexts than intended, potentially sending user prompts or commerce-related assets to the skill unexpectedly and increasing the risk of unauthorized 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 spawns npx -y @infimind/ecom-content-cli@latest, which executes code fetched from the npm registry at runtime. Using the mutable latest tag means the exact code is not pinned or verified, so a registry compromise, package takeover, or malicious upstream release would result in arbitrary code execution in the local environment with access to the provided token and inherited process context.

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

This helper silently launches a remote npm package without clearly warning the operator that untrusted third-party code may be downloaded and executed. In a security-sensitive skill context, that lack of disclosure increases the risk of users unknowingly exposing credentials or running compromised upstream code.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
96% confidence
Finding

The script emits user-facing error messages only in Chinese, such as when npx or MCP_TOKEN is missing. This imposes a specific language on all users without opt-in or documented locale justification, which matches the language/locale policy violation criteria.

Content

No source excerpt is available for this finding.