T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:29- Finding
Unpinned Remote Code and Dependency Retrieval
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 29-31
Vulnerability Type: Remote payload retrieval and insecure dependency installation
Risk Level: Highbash git clone https://github.com/joshchoi4881/dropspace-agents && cd dropspace-agents && npm installTechnical Analysis
The installation procedure retrieves executable content from an external Git repository without pinning it to a reviewed commit hash or release artifact. Consequently, the code installed by a user can differ from the code present when the Skill was reviewed.
The subsequent
npm installoperation installs third-party packages and may execute npm lifecycle scripts, includingpreinstall,install, andpostinstall. The audited artifact does not include the cloned repository, its package manifest, its lockfile, or its scripts. Their behavior and integrity therefore cannot be verified from this project.This combines two supply-chain risks:
- The effective application payload can change after review because the repository revision is not pinned.
- npm dependencies or lifecycle scripts can execute code during installation without an explicit integrity-verification step.
Attack Path
- An attacker compromises the upstream repository, its default branch, a maintainer account, or one of its npm dependencies.
- The attacker adds malicious application code or a malicious npm lifecycle script.
- A user follows the documented command and clones the current default branch.
npm installinstalls the compromised dependency tree or executes the malicious lifecycle script.- The payload runs with the operating-system privileges of the user performing the installation.
- The payload may inspect local files and environment variables, including the API keys that the Skill instructs the user to configure, and may transmit accessible data over the network.
Impact Assessment
Successful exploitat ...[truncated 622 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the upstream repository to a specific, reviewed commit hash rather than cloning and executing the mutable default branch.
- Publish and verify a cryptographic checksum or signed release artifact.
- Include a reviewed npm lockfile and use
npm ciinstead ofnpm installto enforce the locked dependency graph. - Review all npm lifecycle scripts and use
npm ci --ignore-scriptswhen lifecycle execution is unnecessary. - Enable dependency integrity, provenance, and signature verification where supported.
- Run installation and application scripts in a restricted container or dedicated low-privilege account with minimal filesystem and network access.
- Provide API credentials only after installation has completed and the installed source has been verified.
- Use narrowly scoped, revocable API keys and prevent installation processes from inheriting unrelated credentials.
