T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:97- Finding
Unpinned npm Package Is Downloaded and Executed Automatically
- Content
View full analysis
`. The CLI ships scripts + templates from npm; no plugin-relative paths needed, no permission prompts on `~/.claude/...`. ``` The same unpinned invocation pattern is repeated throughout the operational sub-skills, including initialization: ```bash npx -y @clawpage.ai/cli init ``` ### Technical Analysis The Skill directs the agent to run `npx -y @clawpage.ai/cli` without an exact version or integrity constraint. `npx` may retrieve the package selected by the npm registry at execution time and immediately execute it. The `-y` option suppresses the interactive package-install confirmation. The executable CLI is not included in this repository, so its implementation and transitive dependencies cannot be verified by auditing the Skill package. The effective executable payload can change after this Skill has been reviewed. This behavior is necessary only insofar as the Skill delegates its runtime functionality to the external CLI. Automatic execution of a mutable package version is not the minimum privilege or minimum-trust method required to provide that functionality. ### Attack Path 1. An attacker compromises the npm publisher account, release workflow, package contents, or a relevant dependency. 2. The attacker publishes a modified version under `@clawpage.ai/cli`. 3. A user invokes any operational sub-skill. 4. The agent runs `npx -y @clawpage.ai/cli ...`. 5. `npx` downloads and executes the modified package without an install-confirmation prompt. 6. The malicious package executes with the local privileges of the agent process a ...[truncated 636 chars]- Remediation
View remediation
