T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:15- Finding
Mutable Remote Tampermonkey Payload Installed into the User's Browser
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 15–21
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code:
markdown ## Setup ```bash openclaw plugins install openclaw-tmwd --registry https://registry.npmjs.orgThen install the Tampermonkey userscript in Chrome. Green indicator at bottom-right = connected.
text ### Technical Analysis The Skill directs the user to install a Tampermonkey userscript from the mutable `main` branch of an external personal GitHub repository. The effective browser-executed code is not included in the audited project, pinned to an immutable commit, or protected by a documented cryptographic integrity check. Consequently, the behavior reviewed during one audit can differ from the code later downloaded and executed by users. Tampermonkey userscripts can operate inside matched browser pages, and this Skill is specifically designed to interact with authenticated browsing sessions. Compromise of the repository, maintainer account, distribution URL, or update process could therefore replace the browser-control component with attacker-controlled JavaScript. ### Attack Path 1. An attacker compromises the external GitHub repository, its maintainer account, or the userscript distribution process. 2. The attacker modifies `assets/ljq_web_driver.user.js` on the referenced `main` branch. 3. A user installs or updates the userscript through the documented raw GitHub URL. 4. Tampermonkey executes the modified payload in browser pages covered by its configured origin permissions. 5. The payload reads page contents or browser-accessible session data, manipulates authenticated workflows, or transmits captured information to an attacker-controlled endpoint. ### Impact Assessment Exploitation could expose authenticated page content, lo ...[truncated 397 chars]- Remediation
View remediation
Remediation Suggestions
- Vendor the reviewed userscript source into the Skill package so its effective behavior is included in security review.
- If external hosting is unavoidable, reference an immutable commit rather than a mutable branch.
- Publish and verify a cryptographic digest or signature before installation and update.
- Disable automatic updates unless every release is reviewed and integrity-verified.
- Minimize Tampermonkey metadata permissions, including
@match,@include,@connect, and privileged APIs. - Use an explicit allowlist of approved origins and exclude financial, identity, administrative, and other high-risk sites by default.
- Document the exact reviewed version and provide a reproducible build and release process.
