T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:63- Finding
Mutable Remote Installer Is Downloaded and Executed Without Verification
- Content
View full analysis
Vulnerability Details
File Locations:
SKILL.md:63README.md:30README-CN.md:29
Vulnerability Type: Remote payload retrieval and immediate execution
Risk Level: HighComplete Vulnerable Code Snippet:
bash curl -fsSL https://raw.githubusercontent.com/laiye-ai/adp-cli/main/scripts/adp-init.sh | bashThe installation sections also present the same unsafe execution pattern for Windows:
powershell irm https://raw.githubusercontent.com/laiye-ai/adp-cli/main/scripts/adp-init.ps1 | iexTechnical Analysis
The documented command retrieves an installation script from the mutable
mainbranch of an external GitHub repository and sends the response directly to a command interpreter. There is no immutable commit or release pin, cryptographic signature, checksum, or manual review step.Consequently, the effective code executed by users is not contained in this Skill and may change at any time after the Skill has been reviewed. Although the repository name is consistent with the advertised vendor, the safety and future integrity of the external scripts cannot be established from this package.
The PowerShell alternative has the same security property:
irmdownloads mutable content andieximmediately evaluates it as code.This exceeds the minimum privileges necessary for the declared document-extraction functionality. Installing a CLI may be necessary, but executing an unverified, mutable remote script is not. A pinned and cryptographically verified release artifact would provide the required functionality with substantially lower supply-chain risk.
Attack Path
- An attacker compromises the external repository, a maintainer account, the release workflow, or another component capable of modifying the referenced
mainbranch. - The attacker replaces or modifies
scripts/adp-init.shorscripts/adp-init.ps1with a malicious payload. - A user or AI Agent follows the ...[truncated 1132 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove all direct
curl | bashandirm | iexinstallation instructions. - Pin downloads to an immutable release version or full Git commit rather than the mutable
mainbranch. - Download the installer as a separate file before execution.
- Publish a SHA-256 checksum or, preferably, a cryptographic signature through an independently protected release channel.
- Require users to verify the checksum or signature before running the installer.
- Encourage inspection of the downloaded script before execution.
- Run installation with an unprivileged account and avoid
sudoor administrator execution unless a specific operation demonstrably requires it. - Prefer a signed package from an established package repository or a verified, versioned GitHub Release artifact.
- Apply equivalent changes consistently to
SKILL.md,README.md, andREADME-CN.md.
A safer installation flow would download a fixed release artifact, verify its published digest, and only then execute or install it.
- Remove all direct
