Back to skill

Security audit

AI大模型专家|电商品牌 GEO 内容优化

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly coherent for AI-HIVE media and content planning, but it handles API keys in a way that can send them to arbitrary configured endpoints and should be reviewed before install.

Review this skill before installing. Use it only with the official AI-HIVE endpoint unless you fully trust a custom endpoint, and do not set `AI_HIVE_BASE_URL` or `base_url` to an untrusted host because your API key will be sent there. Prefer a dedicated, revocable API key, rotate it if exposed, and avoid running downloads from untrusted task results.

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

T09 · Insecure Skill Coding Practices

Error
Location
scripts/imagegen.py:91
Finding

API Credential Disclosure Through an Unrestricted Custom Base URL in imagegen.py

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/videogen.py:91
Finding

API Credential Disclosure Through an Unrestricted Custom Base URL in videogen.py

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/imagegen.py:312
Finding

Unvalidated Remote Download URLs and API-Controlled Output Paths in imagegen.py

Content
View full analysis
0: pct = int(downloaded * 100 / total) bar = "█" * (pct // 5) + "░" * (20 - pct // 5) print(f"\r {bar} {pct}% ({downloaded // 1024}KB)", end="", flush=True) print() size_mb = downloaded / (1024 * 1024) print(f"[ok] {out_path} ({size_mb:.1f} MB)") except requests.exceptions.RequestException as e: print(f"\n[error] Download failed: {e}", file=sys.stderr) ``` ```python out_dir = Path(output_dir) out_dir.mkdir(parents=True, exist_ok=True) task_type = task.get("taskType", "task") for i, item in enumerate(succeeded): result_url = item.get("resultUrl") if not result_url: continue ext = ".mp4" if "video" in task_type.lower() else ".png" filename = f"{task_type}_{task_id}_{i+1}{ext}" out_path = out_dir / filename download_file(result_url, out_path) for item in succeeded: last_frame = item.get("lastFrameUrl") if last_frame: out_path = out_dir / f"{task_type}_{task_id}_lastframe.png" download_file(last_frame, out_path) ``` ### Technical Analysis The script downloads `resultUrl` and `lastFrameUrl` values returned ...[truncated 1969 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/videogen.py:312
Finding

Unvalidated Remote Download URLs and API-Controlled Output Paths in videogen.py

Content
View full analysis
0: pct = int(downloaded * 100 / total) bar = "█" * (pct // 5) + "░" * (20 - pct // 5) print(f"\r {bar} {pct}% ({downloaded // 1024}KB)", end="", flush=True) print() size_mb = downloaded / (1024 * 1024) print(f"[ok] {out_path} ({size_mb:.1f} MB)") except requests.exceptions.RequestException as e: print(f"\n[error] Download failed: {e}", file=sys.stderr) ``` ```python out_dir = Path(output_dir) out_dir.mkdir(parents=True, exist_ok=True) task_type = task.get("taskType", "task") for i, item in enumerate(succeeded): result_url = item.get("resultUrl") if not result_url: continue ext = ".mp4" if "video" in task_type.lower() else ".png" filename = f"{task_type}_{task_id}_{i+1}{ext}" out_path = out_dir / filename download_file(result_url, out_path) for item in succeeded: last_frame = item.get("lastFrameUrl") if last_frame: out_path = out_dir / f"{task_type}_{task_id}_lastframe.png" download_file(last_frame, out_path) ``` ### Technical Analysis The download implementation places complete trust in URLs and task ...[truncated 1365 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
SKILL.md:124
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (15)

Tp4

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

If the skill supports general chat, wallet/account information retrieval, model enumeration, direct media upload, video generation, and local credential setup, that is materially broader than the stated optimization/planning role. Such mismatch can mislead users into exposing credentials or authorizing actions they did not anticipate, especially where local key storage and external API use are involved.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

If the skill supports general chat, wallet/account information retrieval, model enumeration, direct media upload, video generation, and local credential setup, that is materially broader than the stated optimization/planning role. Such mismatch can mislead users into exposing credentials or authorizing actions they did not anticipate, especially where local key storage and external API use are involved.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

If the skill supports general chat, wallet/account information retrieval, model enumeration, direct media upload, video generation, and local credential setup, that is materially broader than the stated optimization/planning role. Such mismatch can mislead users into exposing credentials or authorizing actions they did not anticipate, especially where local key storage and external API use are involved.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The file implements a broad AI-Hive CLI for account access, model enumeration, media upload, task polling, and image/video generation, while the declared skill purpose is GEO/content-planning assistance. This mismatch is dangerous because it expands the skill's effective capability far beyond user expectations, creating a deceptive trust boundary and enabling data transfer and external service operations unrelated to the advertised function.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill advertises executable scripts that use shell, network, file, and environment capabilities, but it does not declare any tool scope or permissions boundaries. This increases the chance that an agent or reviewer cannot accurately constrain what the skill may access, leading to overbroad execution and accidental exposure of local files, secrets, or network actions.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The description says users can invoke the skill by saying broad phrases like “电商GEO、商品AI搜索、品牌收录、商品知识库,” but it does not define whether these are exact triggers, examples, or merely topic areas. Because these are common business-topic phrases rather than narrowly scoped commands, the skill risks unintended activation in ordinary discussion about ecommerce or AI search.

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's natural-language description and user-facing strings are entirely in Chinese, including the argparse description and skill metadata, with no indication that users may select another language or that the skill is limited to a Chinese-only region-specific workflow. This can violate a language/locale policy when a skill implicitly mandates a specific language without opt-in or documented justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module docstring and all user-facing CLI messages are written only in Chinese, which imposes a language choice on users without offering an alternative or opt-in. Under the stated policy, forcing a specific language or locale without user choice is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The manifest describes a skill for helping teams decompose brand, e-commerce, GEO/AEO, storyboarding, and content-planning goals into executable plans and evidence fields, with AI-HIVE media support as an implementation aid. In this file, the exported skill entrypoint is a fixed image tool (gpt-image-2) that only exposes image generation, task query, upload, and API-key init behavior, with no code for planning, GEO optimization, brand knowledge structuring, or strategy decomposition.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This code embeds user-facing descriptions, help text, and operational guidance entirely in Chinese, beginning with the module docstring and continuing throughout the CLI UX. Because the skill does not offer an explicit language or locale choice, it imposes a specific language on users, which matches the natural-language policy violation criteria.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The code exposes infrastructure-style functions such as user/account info retrieval and model inventory access that are not justified by a GEO/content-optimization skill. Even if these are legitimate product APIs, bundling them into an unrelated skill increases the chance of unauthorized account probing, metadata leakage, and misuse of capabilities under false pretenses.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The interactive init flow opens a browser, guides the user through obtaining an API key, and stores the credential locally, despite the skill being described as business/content-planning assistance. This is dangerous because it normalizes credential collection and persistence in a context where users would not reasonably expect secret onboarding, increasing phishing-like risk and expanding compromise impact if the host is shared or the skill is repurposed.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

The metadata sets the language to zh-CN, and the document consistently presents the skill as Chinese-only, without offering users a language or locale choice. This can violate language/locale policy when the skill is not clearly documented as region-specific or opt-in for Chinese output.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The placeholder value contains Chinese-only instructional text ('请替换为你的APIKey'), which imposes a specific language in user-facing configuration guidance. The file does not indicate that the skill is region-specific or provide an alternative language/locale option.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The codebase includes a user-info operation that retrieves user information and wallet balance from the AI Hive API. That capability is unrelated to the manifest’s stated purpose of GEO/content optimization for e-commerce brands and also unrelated to the concrete exported image-generation skill behavior in this file.

Content

No source excerpt is available for this finding.