Back to skill

Security audit

Instagram社媒数据采集

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed read-only Instagram data assistant that uses a MaxHub API key and does not show hidden execution, persistence, or data exfiltration behavior.

Install only if you trust MaxHub and are comfortable sending queried Instagram identifiers and your MaxHub API key to `www.aconfig.cn`. Prefer a pinned ClawHub installer and pinned skill version when available, and avoid exposing unrelated secrets in the install environment.

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

T08 · Insecure Dependencies

Warning
Location
README.md:14
Finding

Unpinned npx Installation Executes a Mutable Supply-Chain Dependency

Content
View full analysis

Vulnerability Details

File Location: README.md:14-18 and duplicated in README_CN.md:14-18
Vulnerability Type: Unpinned package retrieval and execution
Risk Level: Medium

Vulnerable code snippet:

markdown
## Install

```bash
npx clawhub install maxhub-instagram
text

### Technical Analysis

The documented installation command invokes `clawhub` through `npx` without specifying an exact package version or integrity hash. If the package is not already available locally, `npx` can retrieve and execute the currently resolved registry version. Consequently, the code executed during installation may differ from the version reviewed when this Skill was audited.

The command also installs the Skill by an unversioned slug, `maxhub-instagram`, so users are not explicitly guaranteed to receive the audited Skill version `3.6.1`. This creates a mutable dependency chain involving both the installer and the installed artifact.

Exploitation requires compromise of the relevant package publication channel, malicious transfer of package ownership, dependency confusion, registry compromise, or publication of a malicious future release. There is no evidence in the audited files that the current `clawhub` package or Skill release is malicious; the finding concerns the unsafe, unpinned installation mechanism.

The separately identified transmission of `MAXHUB_API_KEY` to `https://www.aconfig.cn` is not classified as a vulnerability. The destination is declared in `SKILL.md`, HTTPS is used, the key is marked sensitive, and bearer authentication is necessary for the Skill's stated API-query functionality.

### Attack Path

1. An attacker gains the ability to publish or redirect a future `clawhub` package release, or compromises a dependency resolved by that package.
2. Alternatively, an attacker compromises or replaces a future release associated with the unversioned `maxhub-instagram` slug.
3. A user follows the docume
...[truncated 1161 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin the installer to a reviewed version:

    bash
    npx --yes clawhub@<reviewed-version> install maxhub-instagram@3.6.1
    

    Use the actual supported version syntax of the registry and installer.

  2. Publish and document cryptographic integrity information, such as a package-manager lockfile, registry integrity digest, signed release, or SHA-256 checksum.

  3. Ensure the installer verifies the downloaded Skill's signature or digest before installation.

  4. Avoid automatic fallback to mutable tags such as latest. Fail closed if the requested version or expected digest cannot be verified.

  5. Recommend installation from a trusted registry explicitly configured by the user, and document the expected package publisher and repository.

  6. Run installation in a restricted environment without unnecessary credentials present. Do not expose MAXHUB_API_KEY or other secrets to the installer process.

  7. Update both README.md and README_CN.md so their installation commands remain identical and version-pinned.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (77)

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-post.md (reported line 11)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_comment_replies`

<!-- Full path: /api/v1/instagram/v1/fetch_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-post.md (reported line 11)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_comment_replies`

<!-- Full path: /api/v1/instagram/v1/fetch_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-post.md (reported line 83)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_hashtag_posts`

<!-- Full path: /api/v1/instagram/v1/fetch_hashtag_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-post.md (reported line 110)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_hashtag_posts`

<!-- Full path: /api/v1/instagram/v2/fetch_hashtag_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-post.md (reported line 142)May include surrounding context.

md
`GET /api/v1/instagram/v2/fetch_highlight_stories`

<!-- Full path: /api/v1/instagram/v2/fetch_highlight_stories -->

### 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-post.md (reported line 198)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_location_posts`

<!-- Full path: /api/v1/instagram/v2/fetch_location_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-post.md (reported line 228)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_music_posts`

<!-- Full path: /api/v1/instagram/v1/fetch_music_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-post.md (reported line 259)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_music_posts`

<!-- Full path: /api/v1/instagram/v2/fetch_music_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-post.md (reported line 289)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_post_by_id`

<!-- Full path: /api/v1/instagram/v1/fetch_post_by_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-post.md (reported line 314)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_post_by_url`

<!-- Full path: /api/v1/instagram/v1/fetch_post_by_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-post.md (reported line 339)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_post_by_url_v2`

<!-- Full path: /api/v1/instagram/v1/fetch_post_by_url_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-post.md (reported line 364)May include surrounding context.

md
`GET /api/v1/instagram/v2/fetch_post_comments`

<!-- Full path: /api/v1/instagram/v2/fetch_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-post.md (reported line 396)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_post_comments_v2`

<!-- Full path: /api/v1/instagram/v1/fetch_post_comments_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-post.md (reported line 439)May include surrounding context.

md
`GET /api/v1/instagram/v2/fetch_post_info`

<!-- Full path: /api/v1/instagram/v2/fetch_post_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-post.md (reported line 465)May include surrounding context.

md
`GET /api/v1/instagram/v2/fetch_post_likes`

<!-- Full path: /api/v1/instagram/v2/fetch_post_likes -->

### 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-post.md (reported line 494)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_section_posts`

<!-- Full path: /api/v1/instagram/v1/fetch_section_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-post.md (reported line 527)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_user_posts`

<!-- Full path: /api/v1/instagram/v1/fetch_user_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-post.md (reported line 558)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_user_posts`

<!-- Full path: /api/v1/instagram/v2/fetch_user_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-post.md (reported line 589)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_user_posts_v2`

<!-- Full path: /api/v1/instagram/v1/fetch_user_posts_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-post.md (reported line 618)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_user_reposts`

<!-- Full path: /api/v1/instagram/v1/fetch_user_reposts -->

### 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-post.md (reported line 647)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_user_tagged_posts`

<!-- Full path: /api/v1/instagram/v1/fetch_user_tagged_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-post.md (reported line 676)May include surrounding context.

md
`GET /api/v1/instagram/v1/fetch_user_tagged_posts`

<!-- Full path: /api/v1/instagram/v2/fetch_user_tagged_posts -->

### Parameters

Static analysis

No suspicious patterns detected.