T03 · Remote Payload Retrieval and Execution
- 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: HighVulnerable Code
SKILL.md:70-75:bash git clone https://github.com/manymore13/eastmoney.git cd eastmoney pip install -r requirements.txtREADME.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 eastmoneybash # Install Python dependencies pip install -r requirements.txtTechnical 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 installcommand also does not use locked versions, package hashes, or the--require-hashesoption. 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:
- The remote repository can be modified or compromised after the Skill audit, causing users to retrieve and subsequently run unreviewed code.
- The remote
requirements.txtor its transitive dependency graph can be changed to install compromised, substituted, or otherwise unsafe packages.
The use of
--depth 1inREADME.mdis not itself a vulnerability, but it reduces the locally available history that a user could inspect when evaluating unexpected repository changes.Attack Path
- An attacker compromises the referenced GitHub account or repository, or gains the ability to modify one of its dependencies.
- The attacker adds malicious application code, changes ` ...[truncated 1510 chars]
- Remediation
View remediation
Remediation Suggestions
- Include the reviewed application implementation and dependency manifest directly in the Skill package so that the distributed code matches the audited code.
- If remote retrieval is unavoidable, check out a reviewed, immutable full commit hash rather than the repository's mutable default branch.
- Verify downloaded source using an authenticated release signature or a cryptographic checksum obtained through a trusted channel.
- Pin all direct and transitive Python dependencies to exact reviewed versions.
- Generate a hash-locked dependency file and install it with:
bash python -m pip install --require-hashes -r requirements.lock- Use a dedicated virtual environment and avoid administrator or root privileges during installation and execution.
- Publish software provenance, release checksums, and a documented dependency-update review process.
- 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.
