Back to skill

Security audit

Heyi Paid Api

Security checks for vulnerabilities and agentic risk

Overview

The skill is a disclosed paid API helper that installs local skill instructions and tells the agent to use the user's Heyi API key only for the documented Heyi API workflow.

Install only if you intend to let your agent make Heyi paid API calls with your Heyi API key. Keep HEYI_API_BASE_URL at https://bot.01011.top unless you knowingly use a trusted Heyi staging endpoint, confirm before paid or bulk calls, and pin the npm package version if you need reproducible installs.

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
SKILL.md:220
Finding

Bearer API key can be transmitted to an arbitrary or insecure origin

Content
View full analysis
dict: headers = {"Authorization": f"Bearer {KEY}", "Accept": "application/json"} if json_body is not None: headers["Content-Type"] = "application/json" r = httpx.request(method, f"{BASE}{path}", params=params, json=json_body, headers=headers, timeout=30.0) ``` ### Technical Analysis The documented clients take `HEYI_API_BASE_URL` directly from the environment and attach the secret `HEYI_API_KEY` as a Bearer credential without validating the URL scheme, hostname, port, or origin. Consequently, the base URL can point to: - An attacker-controlled HTTPS service. - A plaintext HTTP endpoint. - An internal service reachable from the Agent's environment. - A lookalike or otherwise untrusted domain. This conflicts with the Skill's own instruction that business requests should remain under ...[truncated 1163 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Error
Location
bin/publish-all.sh:225
Finding

Publishing workflow executes a mutable third-party package through npx

Content
View full analysis
/dev/null 2>&1 || true elif ! $CLAWHUB_BIN whoami --no-input >/dev/null 2>&1; then info "未登录,启动 device flow:" warn "执行: npx clawhub login --no-browser" warn "它会打印 verification URL + user_code。" warn "你在浏览器打开 URL、输入 code、用 GitHub 授权 clawdhub。授权完成后 CLI 自动收到 token 并保存到 ~/.config/clawhub/credentials。" warn "授权完成后重跑本脚本即可。" return 1 fi local cur owner owner="${CLAWHUB_OWNER:-heyi-byte}" cur=$($CLAWHUB_BIN inspect "heyi-paid-api" --no-input 2>/dev/null \ | /usr/bin/env python3 -c "import json,sys; d=json.load(sys.stdin); print(d.get('latestVersion',{}).get('version',''))" 2>/dev/null || echo "") local commit_sha commit_sha="$(git -C "$SKILL_DIR" rev-parse HEAD 2>/dev/null || echo "")" $CLAWHUB_BIN skill publish "$SKILL_DIR" \ --slug heyi-paid-api \ --owner "$owner" \ --version "$VERSION" ``` ### Technical Analysis The publishing helper invokes `npx -y clawhub@latest`. The `latest` tag is mutable, and the script neither pins a reviewed version nor verifies package integrity. Each invocation may download and execute code that was not present during this audit. The downloaded package runs in a sensitive release environment with access to: - `CLAWHUB_TOKEN` through standard input. - Existing ClawHub credentials available to the CLI. - The source repository and release files. - Other environment variables inherited from the maintainer shell or CI worker. - The maintainer's filesystem per ...[truncated 1292 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
bin/publish-all.sh:27
Finding

Environment-controlled publishing endpoints can receive registry credentials

Content
View full analysis
/dev/null || true) ``` ```bash /usr/bin/curl -sL --max-time 60 -X POST \ -H "Authorization: Bearer $SKILLHUB_TOKEN" \ -F "payload=${payload}" \ -F "files=@${SKILL_MD}" \ "$SKILLHUB_API/api/v1/community/skills/publish" \ -o /tmp/skillhub_publish.json -w " HTTP %{http_code}\n" ``` The npm token is likewise used with a configurable registry: ```bash if [[ -n "${NPM_TOKEN:-}" ]]; then NPM_CONFIG_TOKEN="$NPM_TOKEN" npm publish --registry="$NPM_REGISTRY" else npm publish --registry="$NPM_REGISTRY" fi ``` ### Technical Analysis The script allows multiple API and registry destinations to be replaced through environment variables but performs no validation of the resulting scheme or host before conducting authenticated publishing operations. This creates a dangerous coupling between low-trust configuration and high-value credentials. A compromised CI variable, sourced shell configuration, wrapper script, or operator mistake can redirect publication to an attacker-controlled service. Plaintext HTTP is also not explicitly rejected. The SkillHub flow clearly places its Bearer token directly into requests to the configur ...[truncated 1384 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
bin/publish-all.sh:130
Finding

Predictable shared temporary file permits symlink overwrite and response substitution

Content
View full analysis
/dev/null; then ok "SkillHub 发布成功 $VERSION" else err "SkillHub 发布失败,响应:" cat /tmp/skillhub_publish.json >&2 return 1 fi ``` ### Technical Analysis The publishing script uses the fixed, globally predictable path `/tmp/skillhub_publish.json`. It does not securely create the file, verify its ownership or type, assign restrictive permissions, or remove it after use. On a multi-user system, another local user can pre-create this path as a symbolic link. When `curl` opens the output path, it may follow that link and truncate or overwrite a file writable by the publishing user. The predictable path also creates a time-of-check/time-of-use opportunity: another process may replace or modify the response between the `curl`, Python validation, and `cat` operations. ### Attack Path 1. A local attacker predicts the fixed temporary pathname. 2. Before the maintainer runs the publishing script, the attacker creates `/tmp/skillhub_publish.json` as a symbolic link to a file writable by the maintainer. 3. The maintainer runs `bin/publish-all.sh skillhub` or `bin/publish-all.sh all`. 4. `curl` follows the symbolic link and writes the server response to the linked target. 5. The target file is corrupted or overwritten. Alternatively: 1. The attacker continuously replaces or modifies the predictable response file. 2. The script reads attacker-controlled JSON during its success check. 3. The s ...[truncated 612 chars]
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • 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 (69)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 151)May include surrounding context.

md
npm uninstall -g heyihub-skill

# 2. 删除 Skill 目录
rm -rf ~/.cursor/skills/heyi-paid-api
rm -rf ~/.claude/skills/heyi-paid-api
rm -rf ~/.codex/skills/heyi-paid-api
rm -rf ~/.mavis/skills/heyi-paid-api

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 152)May include surrounding context.

md
npm uninstall -g heyihub-skill

# 2. 删除 Skill 目录
rm -rf ~/.cursor/skills/heyi-paid-api
rm -rf ~/.claude/skills/heyi-paid-api
rm -rf ~/.codex/skills/heyi-paid-api
rm -rf ~/.mavis/skills/heyi-paid-api

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 153)May include surrounding context.

md
npm uninstall -g heyihub-skill

# 2. 删除 Skill 目录
rm -rf ~/.cursor/skills/heyi-paid-api
rm -rf ~/.claude/skills/heyi-paid-api
rm -rf ~/.codex/skills/heyi-paid-api
rm -rf ~/.mavis/skills/heyi-paid-api

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 154)May include surrounding context.

md
npm uninstall -g heyihub-skill

# 2. 删除 Skill 目录
rm -rf ~/.cursor/skills/heyi-paid-api
rm -rf ~/.claude/skills/heyi-paid-api
rm -rf ~/.codex/skills/heyi-paid-api
rm -rf ~/.mavis/skills/heyi-paid-api

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 155)May include surrounding context.

md
npm uninstall -g heyihub-skill

# 2. 删除 Skill 目录
rm -rf ~/.cursor/skills/heyi-paid-api
rm -rf ~/.claude/skills/heyi-paid-api
rm -rf ~/.codex/skills/heyi-paid-api
rm -rf ~/.mavis/skills/heyi-paid-api

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 151)May include surrounding context.

md
npm uninstall -g heyihub-skill

# 2. 删除 Skill 目录
rm -rf ~/.cursor/skills/heyi-paid-api
rm -rf ~/.claude/skills/heyi-paid-api
rm -rf ~/.codex/skills/heyi-paid-api
rm -rf ~/.mavis/skills/heyi-paid-api

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 152)May include surrounding context.

md
# 2. 删除 Skill 目录
rm -rf ~/.cursor/skills/heyi-paid-api
rm -rf ~/.claude/skills/heyi-paid-api
rm -rf ~/.codex/skills/heyi-paid-api
rm -rf ~/.mavis/skills/heyi-paid-api
rm -rf ~/.openclaw/skills/heyi-paid-api

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 153)May include surrounding context.

2. 删除 Skill 目录

rm -rf ~/.cursor/skills/heyi-paid-api rm -rf ~/.claude/skills/heyi-paid-api rm -rf ~/.codex/skills/heyi-paid-api rm -rf ~/.mavis/skills/heyi-paid-api rm -rf ~/.openclaw/skills/heyi-paid-api

text

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 154)May include surrounding context.

rm -rf ~/.cursor/skills/heyi-paid-api rm -rf ~/.claude/skills/heyi-paid-api rm -rf ~/.codex/skills/heyi-paid-api rm -rf ~/.mavis/skills/heyi-paid-api rm -rf ~/.openclaw/skills/heyi-paid-api

text

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 155)May include surrounding context.

rm -rf ~/.claude/skills/heyi-paid-api rm -rf ~/.codex/skills/heyi-paid-api rm -rf ~/.mavis/skills/heyi-paid-api rm -rf ~/.openclaw/skills/heyi-paid-api

text

只删 Skill 目录也可正常工作,但 npm 缓存里的 `snapshots/catalog.json` 会残留;建议两步都做。

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

A skill marketed as an API caller but reportedly performing publishing/release actions with marketplace tokens creates a significant trust boundary mismatch. Operators may provide credentials or enable execution expecting limited API calls, while the package can interact with unrelated registries and distribution systems.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

A skill marketed as an API caller but reportedly performing publishing/release actions with marketplace tokens creates a significant trust boundary mismatch. Operators may provide credentials or enable execution expecting limited API calls, while the package can interact with unrelated registries and distribution systems.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
A:常见原因是 `HEYI_API_BASE_URL` 指向了旧域名(`api.heyi.cloud` 之类),或 Agent 工作台没重启仍加载旧 `SKILL.md`。先确认 Base URL,再重启 Agent。

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
:升级 Skill 之后、首次接入、长期未升级、排查 `4040` 之前。开发期可用 `npx heyihub-skill snapshot`(或 `node bin/install.js snapshot`)重新生成 `snapshots/catalog.json`,随 npm release 发布。

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · bin/publish-all.sh (reported line 16)May include surrounding context.

sh
#
# 凭据通过环境变量提供(避免写进文件/日志):
#   SKILLHUB_TOKEN          — SkillHub 的 skh_xxx
#   NPM_TOKEN               — npm 的 npm_xxx(或用 ~/.npmrc)
#   GITHUB_TOKEN            — 用于 ClawHub GitHub linking / SkillsMP 自动索引
#   LOBEHUB_TOKEN           — LobeHub API(如支持)

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.