T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:20- Finding
Execution of Unpinned Remote Source Code and Dependencies
- Content
View full analysis
- Remediation
View remediation
``` 2. Prefer a signed release tag and verify its signature before executing repository content: ```bash git verify-tag ``` 3. Publish the expected commit hash and release-artifact checksums through a trusted channel, then verify them locally before building. 4. Require a committed lockfile and immutable dependency resolution: ```bash pnpm install --frozen-lockfile ``` 5. Disable dependency lifecycle scripts during initial installation where the project supports it: ```bash pnpm install --frozen-lockfile --ignore-scripts ``` Any lifecycle scripts that are genuinely required should be identified, reviewed, and executed explicitly. 6. Review `package.json`, the lockfile, workspace build definitions, and `scripts/package-mac-app.sh` at the pinned revision before running them. 7. Run the build under a non-administrative account or isolated build environment with minimal filesystem, credential, and network access. 8. Do not combine general build execution with elevated privileges. Perform the fixed Xcode license operation separately, and never run `pnpm` or repository-provided scripts with `sudo`. 9. Prefer verified, Developer ID-signed, and notarized release artifacts from a trusted publisher when source compilation is not required. 10. Verify the identity, signature, entitlements, and packaged contents of the resulting application before copying it into `/Applications` or granting sensitive macOS permissions. ]]>
