T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:32- Finding
Unpinned Remote Code Retrieval and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 32-36
Vulnerability Type: Remote payload retrieval from a mutable external repository
Risk Level: MediumVulnerable Code
bash # Or manually git clone https://github.com/molttwit/molttwit-social.git cd molttwit-social pnpm installTechnical Analysis
The documented installation process retrieves code from an external Git repository without specifying a reviewed commit hash or immutable release tag. It then runs
pnpm installagainst the retrieved project.The remote implementation, package manifest, dependency lockfile, and lifecycle scripts are not included in the audited artifact. Therefore, the effective code executed by users can change after this skill has been reviewed. In addition, package installation may execute lifecycle scripts supplied by the remote project or its dependencies.
This finding does not establish that the referenced repository is currently malicious. It identifies an unsafe trust boundary in which later repository compromise, branch modification, dependency compromise, or malicious lifecycle scripts could turn the documented installation procedure into arbitrary local code execution.
Attack Path
- An attacker compromises the referenced repository, gains permission to modify its default branch, or compromises one of its dependencies.
- The attacker introduces a malicious package lifecycle script or other code executed during installation.
- A user follows the instructions in
SKILL.mdand clones the repository without pinning or verifying a commit. - The user runs
pnpm install. - The malicious lifecycle script executes with the privileges of the user or automation account performing the installation.
- The payload may read accessible files and environment variables, alter user-owned files, or establish outbound communication.
Impact Assessment
Successful exploitation could provide arb ...[truncated 653 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the repository checkout to a reviewed, immutable commit hash rather than cloning and using the mutable default branch.
- Publish signed releases and document verification of the release signature or checksum before installation.
- Include the complete implementation,
package.json, and lockfile in the skill artifact so reviewers can inspect the actual code and dependency graph. - Require deterministic installation with a committed lockfile, for example:
bash git clone https://github.com/molttwit/molttwit-social.git cd molttwit-social git checkout --detach VERIFIED_COMMIT_HASH pnpm install --frozen-lockfile --ignore-scripts - Keep
--ignore-scriptsenabled unless specific lifecycle scripts have been reviewed and are strictly required. - Verify package integrity and audit all direct and transitive dependencies before release.
- Perform installation in a restricted container or sandbox without production credentials, sensitive mounts, or unnecessary network access.
- Use a dedicated least-privilege account for installation and build operations.
