T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:413- Finding
Mutable Third-Party Repository Is Downloaded and Executed Without Integrity Verification
- Content
View full analysis
- Remediation
View remediation
``` 2. Publish the expected commit hash and verify a signed commit or signed release before installation. 3. Require the committed dependency lockfile and use the package manager's immutable installation mode, such as: ```bash yarn install --immutable ``` Use `--frozen-lockfile` instead if required by the applicable Yarn version. 4. Review direct and transitive dependencies and scan them for known vulnerabilities before execution. 5. Disable dependency lifecycle scripts during installation where feasible, then explicitly review any scripts that must run. 6. Run the external project in an isolated, least-privileged container or virtual machine with: - No unnecessary host filesystem mounts - No privileged mode - No sensitive environment variables - Restricted outbound network access - A non-root user - Read-only filesystems where practical 7. Separate installation from execution so users can inspect the retrieved source and package scripts before starting the service. 8. Document the exact reviewed release, its checksum, supported dependency versions, and a reproducible verification procedure. ]]>
