T08 · Insecure Dependencies
- Location
README.md:8- Finding
Unpinned Package Execution and Uninspectable Installation Scripts
- Content
View full analysis
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: MediumVulnerable Code
README.md:8-14:bash # 使用 ClawHub 安装 npx clawhub install tts-autoplay # 进入技能目录 cd skills/tts-autoplay # 运行安装脚本 powershell -ExecutionPolicy Bypass -File install.ps1SKILL.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.ps1Technical Analysis
The installation instructions invoke
npx clawhubwithout pinning the package to a reviewed version or integrity hash. Depending on the local environment and package availability,npxcan 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, andtts-autoplay-wakeword.ps1with 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 Bypassis not, by itself, an operating-system privilege esc ...[truncated 1734 chars]- Remediation
View remediation
Remediation Suggestions
- Pin
clawhuband the installed skill to exact, reviewed versions rather than resolving the latest available release. - Record and verify cryptographic integrity hashes or trusted signatures for downloaded packages and scripts before execution.
- Include every referenced executable file—
install.ps1,uninstall.ps1,tts-autoplay.ps1,tts-autoplay-wakeword.ps1, andstart.bat—in the distributable artifact so they can be audited. - Remove
-ExecutionPolicy Bypassfrom the standard installation instructions. Prefer properly signed scripts and a narrowly scoped execution policy. - Publish immutable release artifacts and verify that package-manager releases correspond exactly to the reviewed source revision.
- Document all dependency sources, versions, checksums, network activity, filesystem changes, and permissions required by the installation scripts.
- Run installation with ordinary user privileges and explicitly warn users not to use an elevated PowerShell session unless a documented operation strictly requires it.
- Add automated release checks that reject packages when documented scripts are missing or their hashes differ from reviewed versions.
- Pin
