Back to skill

Security audit

YouTube频道数据采集

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed YouTube data lookup helper that uses a MaxHub API key and does not show hidden persistence, destructive behavior, or credential theft.

Install only if you are comfortable using MaxHub as a third-party API provider for YouTube data, and prefer a version-pinned trusted ClawHub CLI when installing. Keep the MaxHub API key scoped and private, and be mindful that stream URL and comment-data features may have platform or policy implications depending on how you use them.

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

T08 · Insecure Dependencies

Warning
Location
README.md:14
Finding

Unpinned package execution in English installation instructions

Content
View full analysis

Vulnerability Details

File Location: README.md:14-18
Vulnerability Type: Unpinned third-party package execution
Risk Level: Medium

Complete Code Snippet:

markdown
## Install

```bash
npx clawhub install maxhub-youtube
text

### Technical Analysis

The installation instructions invoke `clawhub` through `npx` without specifying an exact package version, lockfile, integrity hash, or verified local artifact. Depending on the local package-manager state, `npx` can download and execute the package version currently selected by the configured registry.

Consequently, the code executed during installation is not fully represented by this audited project. Its behavior can change after review if the package is updated, taken over, or served from a compromised or attacker-controlled registry. This creates a supply-chain trust boundary that is broader than necessary for installing the Skill.

### Attack Path

1. An attacker compromises the registry account, publication process, or dependency chain associated with the `clawhub` package, or influences the user's configured package registry.
2. The attacker publishes or serves a malicious package version that satisfies the unpinned request.
3. A user follows the documented command:
   `npx clawhub install maxhub-youtube`.
4. `npx` retrieves and executes the attacker-controlled package version.
5. The malicious installer runs with the privileges of the user executing the command.

### Impact Assessment

Successful exploitation could execute arbitrary code under the installing user's account. Depending on that account's permissions and environment, this may allow access to user-readable files, environment variables, developer credentials, Skill configuration, network resources, and writable project or configuration directories. If the command is run from a privileged account, the impact could extend to privileged system resources.

The project does not it
...[truncated 188 chars]
Remediation
View remediation

Remediation Suggestions

  • Pin clawhub to a reviewed, trusted version, for example:
    bash
    npx --yes clawhub@X.Y.Z install maxhub-youtube
    
  • Document the expected package registry and recommend checking it before execution.
  • Publish and verify package provenance, signatures, or integrity hashes where supported.
  • Prefer a lockfile-backed installation process or a locally installed, version-pinned CLI over implicit retrieval of the latest package.
  • Avoid recommending execution under an administrator or root account.
  • Establish a release process that reviews the pinned installer version whenever it is updated.

T08 · Insecure Dependencies

Warning
Location
README_CN.md:14
Finding

Unpinned package execution in localized installation instructions

Content
View full analysis

Vulnerability Details

File Location: README_CN.md:14-18
Vulnerability Type: Unpinned third-party package execution
Risk Level: Medium

Complete Code Snippet:

markdown
## 安装

```bash
npx clawhub install maxhub-youtube
text

### Technical Analysis

The localized installation instructions repeat the unpinned `npx` command. No exact `clawhub` version, integrity constraint, lockfile, or verified local installer is specified. The package manager may therefore retrieve and execute whichever package version the configured registry currently resolves.

This makes the effective installation payload mutable after the Skill has been audited. A compromised package publication channel, maintainer account, transitive dependency, or package registry could cause users following these instructions to execute code that was not included in the reviewed project.

### Attack Path

1. An attacker gains control over a future `clawhub` release, its dependency chain, or the registry used by a target.
2. The attacker makes a malicious version resolve for the unversioned package name.
3. A user executes the installation command from `README_CN.md`.
4. `npx` downloads and runs the malicious package.
5. The payload executes with the user's local permissions during installation.

### Impact Assessment

Exploitation could provide arbitrary code execution with the privileges of the user running the installer. Potentially exposed resources include local files, environment variables, API credentials accessible to that user, development repositories, configuration files, and reachable network services. Running the command with elevated privileges would correspondingly increase the affected scope.

This is a supply-chain exposure rather than evidence that the currently documented package is malicious.
Remediation
View remediation

Remediation Suggestions

  • Keep localized installation instructions aligned with the hardened English instructions.
  • Pin the CLI to an explicitly reviewed version:
    bash
    npx --yes clawhub@X.Y.Z install maxhub-youtube
    
  • Specify the trusted registry and provide package provenance or integrity-verification guidance.
  • Use a lockfile-backed or preinstalled version-pinned CLI where possible.
  • Warn users not to run installation commands with unnecessary elevated privileges.
  • Update the pinned version only after reviewing its package contents and dependency changes.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (56)

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 69)May include surrounding context.

md
| 禁止行为 | 正确做法 |
|----------|----------|
| ❌ 自行拼接路径(如 `/api/v1/douyin/search/xxx`) | ✅ 使用 Action Table 或 `<!-- Full path: -->` 中的路径 |
| ❌ 猜测参数名(如把 `aweme_id` 写成 `video_id`) | ✅ 使用 Action Table 或 reference 文件中的参数名 |
| ❌ 假设 v1/v2/v3 参数兼容 | ✅ 降级时重新读取对应版本的参数文档 |
| ❌ 调用 `fetch_hot_search_list` 或 `app/v3/fetch_video_comments` | ✅ 使用替代端点(见废弃标注) |

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 69)May include surrounding context.

md
| 禁止行为 | 正确做法 |
|----------|----------|
| ❌ 自行拼接路径(如 `/api/v1/douyin/search/xxx`) | ✅ 使用 Action Table 或 `<!-- Full path: -->` 中的路径 |
| ❌ 猜测参数名(如把 `aweme_id` 写成 `video_id`) | ✅ 使用 Action Table 或 reference 文件中的参数名 |
| ❌ 假设 v1/v2/v3 参数兼容 | ✅ 降级时重新读取对应版本的参数文档 |
| ❌ 调用 `fetch_hot_search_list` 或 `app/v3/fetch_video_comments` | ✅ 使用替代端点(见废弃标注) |

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · SKILL.md (reported line 189)May include surrounding context.

md
| "analyze" / "分析一下" | Switch to analyze mode |
| "compare with X" / "和X对比" | Add X as second query |

## Output Guidelines

1. **Language consistency** — ALL output matches user's detected language.
2. **Markdown links** — All URLs in `[text](url)` format.

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 11)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_channel_community_posts`

<!-- Full path: /api/v1/youtube/web_v2/get_channel_community_posts -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 86)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_channel_description`

<!-- Full path: /api/v1/youtube/web_v2/get_channel_description -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 206)May include surrounding context.

md
`GET /api/v1/youtube/web/get_channel_id`

<!-- Full path: /api/v1/youtube/web/get_channel_id -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 231)May include surrounding context.

md
`GET /api/v1/youtube/web/get_channel_id`

<!-- Full path: /api/v1/youtube/web_v2/get_channel_id -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 259)May include surrounding context.

md
`GET /api/v1/youtube/web/get_channel_id_v2`

<!-- Full path: /api/v1/youtube/web/get_channel_id_v2 -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 287)May include surrounding context.

md
`GET /api/v1/youtube/web/get_channel_url`

<!-- Full path: /api/v1/youtube/web/get_channel_url -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 320)May include surrounding context.

md
`GET /api/v1/youtube/web/get_channel_url`

<!-- Full path: /api/v1/youtube/web_v2/get_channel_url -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 353)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_post_comment_replies`

<!-- Full path: /api/v1/youtube/web_v2/get_post_comment_replies -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 399)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_post_comments`

<!-- Full path: /api/v1/youtube/web_v2/get_post_comments -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 465)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_shorts_search_v2`

<!-- Full path: /api/v1/youtube/web_v2/get_shorts_search_v2 -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-channel.md (reported line 500)May include surrounding context.

md
`GET /api/v1/youtube/web/search_channel`

<!-- Full path: /api/v1/youtube/web/search_channel -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-search.md (reported line 11)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_general_search_v2`

<!-- Full path: /api/v1/youtube/web_v2/get_general_search_v2 -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-video.md (reported line 11)May include surrounding context.

md
`GET /api/v1/youtube/web/get_channel_info`

<!-- Full path: /api/v1/youtube/web/get_channel_info -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-video.md (reported line 36)May include surrounding context.

md
`GET /api/v1/youtube/web/get_channel_short_videos`

<!-- Full path: /api/v1/youtube/web/get_channel_short_videos -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-video.md (reported line 63)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_channel_shorts`

<!-- Full path: /api/v1/youtube/web_v2/get_channel_shorts -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-video.md (reported line 122)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_channel_videos`

<!-- Full path: /api/v1/youtube/web_v2/get_channel_videos -->

### Parameters

YARA rule 'agent_skill_mcp_tool_poisoning_metadata': MCP/tool metadata poisoning indicators in tool schemas or skill manifests [agent_skills]

High
Category
YARA Match
Confidence
80% confidence
Finding

YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).

Content

Scanner excerpt · references/api-video.md (reported line 188)May include surrounding context.

l": "...", "width": 168, "height": 94}, {"url": "...", "width": 336, "height": 188} ], "moving_thumbnail": "https://i.ytimg.com/an_webp/zd3yCa1bJCM/mqdefault_6s.webp?...", "duration": "16:57", "duration_accessibility": "16分钟57秒钟", "view_count": "343,369次观看", "short_view_count": "34万次观看", "published_time": "18小时前", "description": "Today, we're trapped in a super weird dream...", "is_live": false, "is_verified": true, "url": "https://www.youtube.com/watch?v=zd3yCa1bJCM", "playback_url": "https://rr5---sn-ogueln67.googlevideo.com/initplayback?..." } ], "continuation_token": "下一页token" }

text
 ### 清洗后的字段说明:
- `video_id`: 视频ID
- `title`: 视频标题
- `thumbnail`: 最高清晰度缩略图URL
- `thumbnails`: 所有分辨率的缩略图列表
- `moving_thumbnail`: 动态缩略图URL(webp格式,鼠标悬停预览)
- `duration`: 视频时长

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-video.md (reported line 220)May include surrounding context.

md
`GET /api/v1/youtube/web/get_channel_videos_v2`

<!-- Full path: /api/v1/youtube/web/get_channel_videos_v2 -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-video.md (reported line 261)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_general_search`

<!-- Full path: /api/v1/youtube/web_v2/get_general_search -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-video.md (reported line 334)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_post_detail`

<!-- Full path: /api/v1/youtube/web_v2/get_post_detail -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-video.md (reported line 391)May include surrounding context.

md
`GET /api/v1/youtube/web/get_relate_video`

<!-- Full path: /api/v1/youtube/web/get_relate_video -->

### Parameters

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/api-video.md (reported line 419)May include surrounding context.

md
`GET /api/v1/youtube/web_v2/get_related_videos`

<!-- Full path: /api/v1/youtube/web_v2/get_related_videos -->

### Parameters

Static analysis

No suspicious patterns detected.