T08 · Insecure Dependencies
Warning
- Location
- README.md:8
- Finding
- Unpinned Package Execution and Uninspectable Installation Scripts## Vulnerability Details **File Location**: `README.md:8-14`; `SKILL.md:27-34`; `SKILL.md:72-79` **Vulnerability Type**: Unpinned third-party package execution followed by execution of scripts absent from the reviewed artifact **Risk Level**: Medium ### Vulnerable Code `README.md:8-14`: ```bash # 使用 ClawHub 安装 npx clawhub install tts-autoplay # 进入技能目录 cd skills/tts-autoplay # 运行安装脚本 powershell -ExecutionPolicy Bypass -File install.ps1 ``` `SKILL.md:27-34`: ```powershell 2. Run installation: ```powershell powershell -ExecutionPolicy Bypass -File "skills/tts-autoplay/install.ps1" ``` 3. Start with wake word detection: ```powershell powershell -ExecutionPolicy Bypass -File "skills/tts-autoplay/tts-autoplay-wakeword.ps1" ``` ``` `SKILL.md:72-79`: ```bash # Install skill clawhub install tts-autoplay cd skills/tts-autoplay # Install powershell -ExecutionPolicy Bypass -File install.ps1 # Start with wake word detection powershell -ExecutionPolicy Bypass -File tts-autoplay-wakeword.ps1 ``` ### Technical Analysis The installation instructions invoke `npx clawhub` without pinning the package to a reviewed version or integrity hash. Depending on the local environment and package availability, `npx` can retrieve and execute package code from an external registry. Consequently, the package that runs at installation time can differ from the component originally reviewed. The instructions then execute `install.ps1`, `tts-autoplay.ps1`, and `tts-autoplay-wakeword.ps1` with PowerShell execution-policy checks bypassed. None of these scripts are included in the submitted artifact, despite being listed in its documented file structure. Their implementation therefore cannot be inspected or verified against the package's claims of local-only monitoring, no external API calls, and no data collection. `-ExecutionPolicy Bypass` is not, by itself, an operating-system privilege esc ...[truncated 1734 chars]
- Remediation
- ## Remediation Suggestions 1. Pin `clawhub` and the installed skill to exact, reviewed versions rather than resolving the latest available release. 2. Record and verify cryptographic integrity hashes or trusted signatures for downloaded packages and scripts before execution. 3. Include every referenced executable file—`install.ps1`, `uninstall.ps1`, `tts-autoplay.ps1`, `tts-autoplay-wakeword.ps1`, and `start.bat`—in the distributable artifact so they can be audited. 4. Remove `-ExecutionPolicy Bypass` from the standard installation instructions. Prefer properly signed scripts and a narrowly scoped execution policy. 5. Publish immutable release artifacts and verify that package-manager releases correspond exactly to the reviewed source revision. 6. Document all dependency sources, versions, checksums, network activity, filesystem changes, and permissions required by the installation scripts. 7. Run installation with ordinary user privileges and explicitly warn users not to use an elevated PowerShell session unless a documented operation strictly requires it. 8. Add automated release checks that reject packages when documented scripts are missing or their hashes differ from reviewed versions.
