Back to skill

Security audit

AI大模型专家|AI中转与AI中专关键词入口

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a disclosed AI-HIVE image/video helper, but its credential handling and download paths need review before installation.

Review this before installing if you will use real AI-HIVE credentials. Use only the official AI-HIVE base URL unless you fully trust a custom gateway, store a limited-scope key, rotate it if exposed, avoid uploading sensitive media unless intended, and choose an output directory where generated downloads cannot overwrite important files.

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

T09 · Insecure Skill Coding Practices

Error
Location
scripts/imagegen.py:91
Finding

Bearer credential exposure through an unrestricted API base URL

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/imagegen.py:393
Finding

Output-directory escape through unsanitized task metadata

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/imagegen.py:312
Finding

Untrusted result URLs permit unbounded and unvalidated downloads

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) ``` ### Technical Analysis The download URL comes from remote task data and is passed directly to `requests.get`. The implementation does not enforce: - An HTTPS-only policy. - A trusted-host allowlist. - Redirect-target validation. - A maximum response size. - An expected media content type. - A total elapsed-time or transfer-rate limit. The configured timeout is a Requests socket timeout, not a strict maximum transfer duration or file-size limit. A server can continuously transmit data and consume disk space until the filesystem is exhausted. A malicious endpoint can also return arbitrary content tha ...[truncated 1172 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
SKILL.md:113
Finding

Unpinned third-party dependency installation

Content
View full analysis
Remediation
View remediation
`. 2. Include cryptographic hashes for all direct and transitive dependencies. 3. Install with: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 4. Use a virtual environment rather than the global interpreter environment. 5. Review and update pinned versions on a controlled schedule. 6. Run dependency vulnerability and provenance checks in continuous integration. 7. Avoid recommending elevated or system-wide package installation. ]]>
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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 (18)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill presents itself as a production-grade AI gateway with key isolation, routing, quotas, auditing, async task handling, and model connectivity, but the described artifacts appear not to implement those controls. This mismatch can mislead users into trusting the skill with credentials or operational decisions under false assumptions, causing insecure deployments, secret exposure, and absence of promised safeguards.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill advertises and demonstrates use of shell execution, environment variables, file I/O, and network access, but does not declare any explicit tool scope or permissions. This weakens review and runtime policy enforcement, increasing the chance that the skill can access sensitive local files, invoke commands, or transmit secrets without clear user or platform constraints.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill’s display name, summary, description, and metadata specify and present the skill entirely in Chinese, including an explicit language: zh-CN value. There is no indication that users may choose another language or that the locale restriction is required for a region-specific compliance reason.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The manifest enables implicit invocation via allow_implicit_invocation: true without any visible trigger scoping, consent boundary, or contextual restriction. This can cause the skill to be auto-selected in situations the user did not explicitly intend, increasing the chance of unintended routing, disclosure of project context, or execution of sensitive workflow guidance in unrelated conversations.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The manifest promises functionality around organizing model interfaces, managing keys, routing, quotas, auditing, async tasks, and unified use of image/video models through AI-HIVE. This script does none of that; it simply collects CLI arguments and writes a static blueprint JSON file containing marketing/search metadata and planning fields.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

This Python skill’s docstring and CLI guidance are written entirely in Chinese, and the user-facing prompts/errors throughout the file follow the same pattern. Because the skill does not offer any language or locale choice, it imposes a specific language on users, which matches the language/locale policy violation criteria.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The upload_media flow sends user-selected files first to the AI Hive API to obtain an upload token and then uploads the file contents to object storage. Although there is progress output, there is no explicit warning or confirmation that local media will be transmitted to external services, which is safety-relevant for privacy-sensitive files.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The manifest describes a focused entry for AI model relay/search and, in this concrete file, the embedded skill config presents a GPT Image 2 image-generation skill. However, the code also exposes generic subcommands for querying user account info, listing all models, chatting, generating video, and arbitrary media upload through the shared CLI handlers. Those capabilities go beyond a narrowly scoped image-generation/search entry and indicate behavior broader than the described skill intent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The file presents itself as a short-drama video skill, but actually embeds a reusable client supporting text chat, image generation, model enumeration, uploads, and task polling. This mismatch can mislead reviewers and operators about what the skill is capable of, weakening least-privilege expectations and policy enforcement.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The module docstring presents the skill entirely in Chinese as a general-purpose tool, and there is no indication that the skill is region-specific or that users may choose another language. For a general skill, hard-coding a single language in user-facing instructions and output text can violate language/locale policy when no opt-in is provided.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill wrapper exposes initialization, task inspection, and raw media upload operations in addition to the advertised video-generation entrypoint. This expands the capability surface beyond the manifest framing, increasing the chance that a caller can use the skill as a more general API relay or account bootstrap tool than intended.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

The string literal for the API key placeholder uses Chinese text only ("请替换为你的APIKey"), which imposes a specific language in user-facing configuration guidance. This is a natural-language locale policy concern because the file does not offer an alternative language or explain why a Chinese-only placeholder is required.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
77% confidence
Finding

The docstring frames the script as creating a deterministic production brief for 'AI中转与AI中专关键词入口', but the body emits a generic draft JSON with fields like search aliases, required facts, and storyboard-style artifacts. This documentation overstates specificity and suggests operational relevance to the relay product that the code does not implement.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The natural-language strings in the docstring, CLI description, and generated content are fixed in Chinese, with no indication that the user can select another language or that the skill is intentionally limited to a Chinese-language context. This can violate language/locale policy when a skill implicitly enforces one language without opt-in or justification.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
83% confidence
Finding

The script writes directly to a user-controlled output path and will overwrite an existing file without confirmation. In typical CLI use this is low risk, but it can still cause unintended data loss or clobber files if the user supplies a sensitive path, especially in automation contexts.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
75% confidence
Finding

The polling workflow automatically creates an output directory and downloads result files to disk. While the code prints download progress, it does not clearly warn beforehand that files will be saved automatically under the default Downloads path, which may surprise users or affect local storage.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
76% confidence
Finding

The skill's stated purpose is AI model/image generation access, but the init flow opens an external browser URL containing from=cli-skill and skill=<name> for backend attribution. That telemetry-oriented browser-launch behavior is not necessary to perform generation, upload, polling, or download, and is not surfaced in the manifest description.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The init flow launches a browser to a chat page with query parameters including the skill name and a source tag, which is an onboarding/attribution behavior rather than core model relay or video generation functionality. While user setup can be reasonable, embedding browser-driven referral-style navigation is not directly justified by the skill's declared operational purpose.

Content

No source excerpt is available for this finding.