Back to skill

Security audit

Dongfang Caifu Research Reports

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent Eastmoney report lookup/download tool, but it asks users to install and run mutable remote code that was not included in the reviewed artifact.

Review the GitHub repository and dependencies before installing, prefer a pinned commit or trusted release, use a virtual environment, and avoid running the MCP server or bulk downloads with broad filesystem permissions until you are comfortable with the remote code and disk usage.

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

Mutable Remote Code and Unpinned Dependencies Are Installed and Executed

Content
View full analysis

Vulnerability Details

File Locations: SKILL.md:70-75, README.md:26-39
Vulnerability Type: Mutable remote payload retrieval and insecure dependency installation
Risk Level: High

Vulnerable Code

SKILL.md:70-75:

bash
git clone https://github.com/manymore13/eastmoney.git
cd eastmoney
pip install -r requirements.txt

README.md:26-39:

bash
# This command downloads the project source code from GitHub
git clone --depth 1 https://github.com/manymore13/eastmoney.git

# Enter the project directory
cd eastmoney
bash
# Install Python dependencies
pip install -r requirements.txt

Technical Analysis

The audited package contains only documentation and does not include the application source code or the referenced requirements.txt. Instead, users are instructed to clone a mutable GitHub repository and install the dependency set supplied by that repository.

The clone commands do not pin an immutable commit hash or otherwise verify the downloaded source. The pip install command also does not use locked versions, package hashes, or the --require-hashes option. As a result, the code and dependency graph executed by a user can differ from the content that was available when this Skill was reviewed.

This creates two related supply-chain risks:

  1. The remote repository can be modified or compromised after the Skill audit, causing users to retrieve and subsequently run unreviewed code.
  2. The remote requirements.txt or its transitive dependency graph can be changed to install compromised, substituted, or otherwise unsafe packages.

The use of --depth 1 in README.md is not itself a vulnerability, but it reduces the locally available history that a user could inspect when evaluating unexpected repository changes.

Attack Path

  1. An attacker compromises the referenced GitHub account or repository, or gains the ability to modify one of its dependencies.
  2. The attacker adds malicious application code, changes ` ...[truncated 1510 chars]
Remediation
View remediation

Remediation Suggestions

  1. Include the reviewed application implementation and dependency manifest directly in the Skill package so that the distributed code matches the audited code.
  2. If remote retrieval is unavoidable, check out a reviewed, immutable full commit hash rather than the repository's mutable default branch.
  3. Verify downloaded source using an authenticated release signature or a cryptographic checksum obtained through a trusted channel.
  4. Pin all direct and transitive Python dependencies to exact reviewed versions.
  5. Generate a hash-locked dependency file and install it with:
bash
python -m pip install --require-hashes -r requirements.lock
  1. Use a dedicated virtual environment and avoid administrator or root privileges during installation and execution.
  2. Publish software provenance, release checksums, and a documented dependency-update review process.
  3. Add the complete implementation, lock file, and installation scripts to future security reviews so their network, filesystem, command-execution, and input-validation behavior can be assessed.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (1)

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

This markdown file instructs users to download PDFs to local folders and export query results as CSV files, which affects the user's filesystem. While the examples show output paths, the documentation does not explicitly warn that these commands will create directories/files and that bulk mode may consume substantial local storage beyond a casual note that it downloads 'many' files.

Content

No source excerpt is available for this finding.