Back to skill

Security audit

yanbaoke-research-report-download

Security checks for vulnerabilities and agentic risk

Overview

The skill’s report search/download behavior is mostly coherent, but its installation path executes mutable remote code without integrity checks and it pushes users toward persistent plaintext API-key storage and investment recommendations.

Review this skill before installing. Prefer the packaged artifact or a signed, checksum-pinned release instead of the remote curl install flow; avoid storing the API key in shell startup files; treat all searches as sent to Yanbaoke; and require user confirmation before downloads that may consume credits. Do not rely on the skill for personalized investment advice.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T03 · Remote Payload Retrieval and Execution

Error
Location
instruct.md:28
Finding

Mutable Remote Scripts Are Downloaded and Executed Without Integrity Verification

Content
View full analysis

Vulnerability Details

File Location: instruct.md:28-36, 51-55; installation workflow referenced by README.md:30-31
Vulnerability Type: Remote payload retrieval and execution
Risk Level: Critical

Vulnerable Code

bash
curl -fSL https://app.quzili.cn/skills/yanbaoke/SKILL.md -o ~/.openclaw/skills/yanbaoke/SKILL.md
bash
curl -fSL https://app.quzili.cn/skills/yanbaoke/scripts/search.mjs -o ~/.openclaw/skills/yanbaoke/scripts/search.mjs
curl -fSL https://app.quzili.cn/skills/yanbaoke/scripts/download.mjs -o ~/.openclaw/skills/yanbaoke/scripts/download.mjs
bash
test -f ~/.openclaw/skills/yanbaoke/SKILL.md && echo "SKILL.md OK" || echo "SKILL.md MISSING"
test -f ~/.openclaw/skills/yanbaoke/scripts/search.mjs && echo "search.mjs OK" || echo "search.mjs MISSING"
test -f ~/.openclaw/skills/yanbaoke/scripts/download.mjs && echo "download.mjs OK" || echo "download.mjs MISSING"
node ~/.openclaw/skills/yanbaoke/scripts/search.mjs "人工智能" -n 3

Technical Analysis

The installation workflow retrieves the skill instructions and executable JavaScript from mutable URLs on app.quzili.cn. The downloaded files are not tied to a specific release and are not authenticated using a cryptographic signature or verified against a pinned checksum.

The subsequent verification checks only whether each file exists. It does not establish that the downloaded content matches the code reviewed in this project. The workflow then directly executes the remotely supplied search.mjs file with Node.js.

Consequently, the effective payload can be changed after the packaged skill has passed review. Control or compromise of the distribution server, its deployment pipeline, DNS resolution, or another trusted delivery component could result in arbitrary JavaScript being delivered and executed. Replacing SKILL.md could additionally introduce persistent attacker-controlled agent instruction ...[truncated 2148 chars]

Remediation
View remediation

Remediation Suggestions

  1. Distribute the reviewed scripts and skill definition as part of the package rather than downloading mutable copies during installation.
  2. If remote distribution is required, publish immutable, version-specific release URLs instead of paths whose content can change.
  3. Publish a trusted SHA-256 digest or cryptographic signature for every downloaded file and verify it before moving the file into the skill directory.
  4. Store signing keys outside the artifact hosting infrastructure and document how users can validate the signing identity.
  5. Download files into a newly created temporary directory, validate every required file, and install them atomically only after all integrity checks succeed.
  6. Include and verify scripts/version.mjs, because the reviewed executable scripts depend on it.
  7. Do not execute a downloaded script as an installation verification step. Verify signatures, hashes, expected file structure, and syntax first; require explicit user approval before the first execution.
  8. Pin the expected release version and fail closed if the retrieved version or digest does not match.
  9. Prefer an authenticated package registry or signed release mechanism with reproducible artifacts and auditable release provenance.
  10. Run the scripts with least privilege and restrict filesystem, environment-variable, and network access where the hosting agent supports sandboxing.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (22)

YARA rule 'backdoor_persistence': Backdoor persistence with malicious payloads (shell commands, SSH key injection, hidden root users) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

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

�户使用

安装

前置要求

  • Node.js 18+
  • OpenClaw

安装步骤

将此提示复制发送给你的openclaw,来安装yanbaoke 技能

请根据 https://app.quzili.cn/skills/yanbaoke/instruct.md 安装 yanbaoke 技能。

配置 API Key(可选)

如需下载报告,请前往 https://pc.yanbaoke.cn/openclaw 获取 API Key:

bash
echo 'export YANBAOKE_API_KEY="sk-your-api-key"' >> ~/.bashrc
source ~/.bashrc

使用方法

搜索报告

bash
# 基础搜索
node ~/.openclaw/skills/yanbaoke/scripts/search.mjs "人工智能"

# 指定数量
node ~/.openclaw/skills/yanbaoke/scripts/search.mjs "新能源汽车" -n 20

# 全文搜索
node ~/.openclaw/skills/yanbaoke/scripts/search.mjs "深度分析" --type content

# 机构筛选
node ~/.openclaw/skills/yanbaoke/scripts/search.mjs "半导体" --org "中信证券,华泰证券"

# 日期范围筛选
node ~/.openclaw/skills/yanbaoke/scripts/search.mjs "光伏" --st

Natural-Language Policy Violations

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill directly instructs the agent to provide investment advice from report content, which is a high-risk financial guidance behavior. In context, this is more dangerous because the tool aggregates large volumes of third-party research and presents the model as capable of turning that into actionable recommendations, potentially influencing real financial decisions.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The example output and field instructions reinforce a behavioral pattern where the agent is expected to produce investment recommendations, normalizing high-risk financial advice as part of ordinary operation. This increases the chance that downstream agents will follow the unsafe behavior even when the user only requested document retrieval.

Content

No source excerpt is available for this finding.

YARA rule 'backdoor_persistence': Backdoor persistence with malicious payloads (shell commands, SSH key injection, hidden root users) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

Scanner excerpt · instruct.md (reported line 39)May include surrounding context.

://app.quzili.cn/skills/yanbaoke/scripts/download.mjs -o ~/.openclaw/skills/yanbaoke/scripts/download.mjs

text

### 4. Set YANBAOKE_API_KEY (Optional - for downloads only)

If you want to download reports, write the key to `~/.bashrc` (or `~/.zshrc` if the user's shell is zsh) so it persists across sessions. Replace `<YOUR_API_KEY>` with the actual key from https://pc.yanbaoke.cn/openclaw

```bash
echo 'export YANBAOKE_API_KEY="<YOUR_API_KEY>"' >> ~/.bashrc
source ~/.bashrc

Skip this step if you only need search functionality.

5. Verify

Run all checks below. Every line must pass.

bash
test -f ~/.openclaw/skills/yanbaoke/SKILL.md && echo "SKILL.md OK" || echo "SKILL.md MISSING"
test -f ~/.openclaw/skills/yanbaoke/scripts/search.mjs && echo "search.mjs OK" || echo "search.mjs MISSING"
test -f ~/.openclaw/skills/yanbaoke/scripts/download.mjs && echo "download.mjs OK" || echo "download.mjs MISSING"
node ~/.openclaw/skills/yanbaoke/scripts/search.mjs "人工智能" -n 3
``

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The README documents paid report downloads and a pricing table, but it does not clearly warn at the point of download usage that invoking the download feature may incur charges. This can lead users or automated agents to trigger billable actions without informed consent, which is a real safety/usability risk even though it is not a classic code-execution flaw.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill declares executable/network-relevant capabilities via required binaries and environment variables, but does not explicitly scope permissions or allowed tools. This weakens least-privilege controls and can let an agent invoke networked code or access secrets without a clear policy boundary, increasing the blast radius if the skill is misused or compromised.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill's stated function is report search/retrieval/download, but it instructs the agent to provide investment analysis advice. That expands the operational scope into regulated, high-risk decision support without safeguards, suitability checks, or compliance controls, creating risk of harmful financial recommendations.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The response-field instructions explicitly require the agent to act as an investment expert and give recommendations, which exceeds the declared retrieval/download purpose. This mismatch can cause agents to generate authoritative-seeming financial guidance based on third-party content without verification or appropriate constraints.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
82% confidence
Finding

The download API requires transmitting a bearer API key to an external service and returns time-limited file URLs, creating secret-handling and data-egress risk. In context, this is somewhat more sensitive than the search endpoint because it combines credential use with access to paid/downloadable documents, so improper scoping or logging could expose both the key and downloaded content.

Content

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

Download API / 下载 API

text
GET https://api.yanbaoke.cn/skills/report_download/{uuid}?format={format}
Authorization: Bearer YOUR_API_KEY
X-Skill-Version: 2.0.4
X-Skill-ID: yanbaoke-research-report-download

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · instruct.md (reported line 15)May include surrounding context.

Steps

1. Create directories

bash
mkdir -p ~/.openclaw/skills/yanbaoke/scripts

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · instruct.md (reported line 24)May include surrounding context.

2. Download skill definition

bash
curl -fSL https://app.quzili.cn/skills/yanbaoke/SKILL.md -o ~/.openclaw/skills/yanbaoke/SKILL.md

3. Download tool scripts

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · instruct.md (reported line 50)May include surrounding context.

2. Download skill definition

bash
curl -fSL https://app.quzili.cn/skills/yanbaoke/SKILL.md -o ~/.openclaw/skills/yanbaoke/SKILL.md

3. Download tool scripts

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The instructions tell the user to append an API key directly into ~/.bashrc, which stores the credential in plaintext in a long-lived shell profile. This increases the chance of accidental disclosure through local compromise, backups, shell dotfile syncing, or later debugging/sharing of the file.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

This script transmits user-supplied search terms and filters to an external third-party service, which creates a real data exposure risk because potentially sensitive research interests, company names, stock names, or date filters leave the local environment. The risk is increased by the skill context: its purpose is research-report discovery, so users may naturally submit commercially sensitive or confidential queries without realizing they are being sent to an external API.

Content

Scanner excerpt · scripts/search.mjs (reported line 119)May include surrounding context.

js
if (minPages !== null) params.append("minpagenum", String(minPages));
if (maxPages !== null) params.append("maxpagenum", String(maxPages));

const resp = await fetch(`https://api.yanbaoke.cn/skills/search_report?${params}`, {
  headers: {
    "X-Skill-Version": VERSION,
    "X-Skill-ID": SKILL_ID,

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The code sends requests only to a fixed endpoint at api.yanbaoke.cn, which implies the skill is tied to a specific locale/service context. There is no natural-language explanation, opt-in, or documented locale choice in this file to indicate that this regional constraint is intentional or user-selected.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

md
export const VERSION = "2.1.0";

// API 版本检查接口
export const VERSION_CHECK_URL = "https://api.yanbaoke.cn/skills/version";

// Skill 标识符
export const SKILL_ID = "yanbaoke-research-report-download";

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

md
export const VERSION = "2.1.0";

// API 版本检查接口
export const VERSION_CHECK_URL = "https://api.yanbaoke.cn/skills/version";

// Skill 标识符
export const SKILL_ID = "yanbaoke-research-report-download";

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

md
export const VERSION = "2.1.0";

// API 版本检查接口
export const VERSION_CHECK_URL = "https://api.yanbaoke.cn/skills/version";

// Skill 标识符
export const SKILL_ID = "yanbaoke-research-report-download";

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/download.mjs (reported line 93)May include surrounding context.

js
export const VERSION = "2.1.0";

// API 版本检查接口
export const VERSION_CHECK_URL = "https://api.yanbaoke.cn/skills/version";

// Skill 标识符
export const SKILL_ID = "yanbaoke-research-report-download";

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/version.mjs (reported line 11)May include surrounding context.

js
export const VERSION = "2.1.0";

// API 版本检查接口
export const VERSION_CHECK_URL = "https://api.yanbaoke.cn/skills/version";

// Skill 标识符
export const SKILL_ID = "yanbaoke-research-report-download";

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
79% confidence
Finding

The file claims bilingual support, but the visible documentation and installation/use instructions are entirely in Chinese, with no explicit opt-in or language-selection guidance. This can be a language/locale policy issue if users are implicitly forced into a specific language experience.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The file includes mixed Chinese/English user-facing documentation and later emits Chinese-only status/error guidance, but provides no language selection or documented locale constraint. That can violate a language/locale policy requiring user choice or explicit justification for locale-specific behavior.

Content

No source excerpt is available for this finding.