T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:45- Finding
Mutable Remote Skill Replacement and Unpinned Global CLI Installation
- Content
View full analysis
--email ``` ```markdown 2. Save the most recent skill from https://monid.ai/SKILL.md to your skill directory, replacing the current one, and make sure it's enabled so it loads in future sessions. Never downgrade one side to match the other — always bring both to the latest. ``` ### Technical Analysis The Skill requires the agent to install the mutable `latest` release of a third-party CLI globally. It also requires downloading a new copy of the Skill from a remote URL, replacing the locally audited file, and enabling the replacement for future sessions. Neither operation pins an immutable version, integrity hash, signature, or reviewed artifact. The effective behavior can therefore change after this version of the Skill has passed review. Installing an npm package globally may also execute package lifecycle scripts with the permissions of the invoking user and alters a system-wide or user-wide command environment. Replacing and enabling the Skill is especially dangerous because it converts a remote web resource into persistent agent instructions. A later remote version could introduce commands, weaken safety constraints, request additional credentials, or redirect data without being covered by this audit. ### Attack Path 1. An agent loads the reviewed version of `SKILL.md`. 2. The version check causes it to run `npm install -g @monid-ai/cli@latest`. 3. The npm registry account, package release process, dependency chain, or distribution channel is compromised or publishes an unsafe update. 4. Installation retrieves and potentially executes the changed package and its lifecycle scripts. 5. The agent additiona ...[truncated 904 chars]- Remediation
View remediation
