Back to skill

Security audit

AI大模型专家|AI API中转站

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a disclosed AI-HIVE local client, but it handles API keys and media with insufficient endpoint validation that could expose credentials or selected files if configuration or API responses are malicious.

Review before installing. Use only a low-privilege AI-HIVE key, avoid custom base URLs unless you fully trust the endpoint, keep the config file private, and do not upload sensitive media until endpoint and storage URL validation is added. Prefer an isolated Python environment with pinned dependencies.

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

Unrestricted API base URL can disclose the bearer credential in imagegen.py

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/videogen.py:91
Finding

Unrestricted API base URL can disclose the bearer credential in videogen.py

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/imagegen.py:280
Finding

Unvalidated server-provided upload and download URLs in imagegen.py

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/videogen.py:280
Finding

Unvalidated server-provided upload and download URLs in videogen.py

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
SKILL.md:119
Finding

Unpinned third-party dependency installation

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • 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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (10)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

This second mismatch indicates the skill behaves like an end-user client that can collect API keys, upload local media, and download generated results, while the description frames it as a managed unified model gateway for teams. In context, that increases the risk of credential mishandling, sensitive file exposure, and operator confusion because users may believe they are using a centrally governed relay when they are actually running local actions with broader direct access to data and secrets.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

This second mismatch indicates the skill behaves like an end-user client that can collect API keys, upload local media, and download generated results, while the description frames it as a managed unified model gateway for teams. In context, that increases the risk of credential mishandling, sensitive file exposure, and operator confusion because users may believe they are using a centrally governed relay when they are actually running local actions with broader direct access to data and secrets.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill advertises and demonstrates code execution paths using shell commands, local file access, environment variables, and networked API usage, but it does not declare any explicit tool scope or permission boundaries. This creates a trust and review gap: consumers or platforms may grant broader capabilities than expected, increasing the risk of unintended command execution, local file modification, or credential exposure during use.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill enables allow_implicit_invocation without any visible trigger constraints, so the agent may auto-select this skill in contexts the user did not clearly intend. Because this skill is positioned as handling API relay, routing, keys, quotas, and audit workflows, ambiguous activation increases the chance of unintended sensitive guidance, configuration changes, or overbroad handling of infrastructure-related requests.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The manifest describes a skill for unifying model APIs, managing keys, routing, quotas, auditing, async tasks, and media-model workflows. In contrast, this file only parses CLI arguments and writes a local blueprint JSON containing project/audience/goal plus storyboard-style artifacts, with no API relay, model management, routing, auditing, or task orchestration behavior.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The file-level docstring says the script 'Create[s] a deterministic production brief for AI API中转站,' which frames the functionality as content/planning artifact generation. That intent conflicts with the broader skill description centered on API aggregation, key management, routing, quotas, auditing, and async model-task handling.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This file contains user-facing descriptions, prompts, and CLI guidance in Chinese only, starting from the module docstring and continuing throughout the skill. Because the skill does not offer a language/locale choice or explain that it is intentionally region-specific, it may violate language/locale policy requirements.

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 instructions are written only in Chinese, presenting the tool as a general-purpose skill without stating any locale restriction or giving users an opt-in language choice. Under the language/locale policy, a general-purpose skill should not implicitly force a specific language unless that constraint is documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The example API key value includes Chinese text ('请替换为你的APIKey'), which imposes a specific language in user-facing configuration content. There is no indication that the skill offers language choice or that the locale constraint is intentional and documented.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

This code embeds Chinese-language user-facing text in the module docstring, argparse description, and output payload, which effectively fixes the skill's locale without any opt-in or alternative. The policy calls for flagging language or locale constraints when they are forced rather than user-selectable or clearly justified.

Content

No source excerpt is available for this finding.