T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:13- Finding
Automatic Retrieval and Execution of Mutable Remote Code
- Content
View full analysis
logs/service.out.log 2> logs/service.err.log & fi ``` ### Technical Analysis The skill instructs the agent to bootstrap the local service automatically when its health check fails. It clones code from an external GitHub repository or updates an existing checkout with `git pull`, then immediately executes npm installation, build, startup, and platform installation commands. Neither the repository revision nor a release artifact is pinned to an immutable identifier. There is also no signature, checksum, allowlisted commit, or mandatory source review before execution. Consequently, the code executed during a later invocation can differ from the code available when this skill was audited. Execution opportunities include: - npm lifecycle scripts triggered by `npm install`; - build scripts triggered by `npm run build`; - the downloaded `scripts/install-launchd.sh`; - application startup code triggered by `npm start`. The skill therefore delegates local code execution to mutable remote content. ### Attack Path 1. The local service at `127.0.0.1:4777` is unavailable or deliberately stopped. 2. The skill follows its automatic bootstrap instruction. 3. It clones the current repository state or pulls newly published commits. 4. An upstream maintainer compromise, repository compromise, or malicious update introduces executable code into an npm ...[truncated 877 chars]- Remediation
View remediation
