T08 · Insecure Dependencies
- Location
scripts/setup-piper.sh:20- Finding
Unpinned Third-Party Package Installation
- Content
View full analysis
/dev/null; then echo "📦 Installing piper-tts..." pip3 install piper-tts echo "✅ piper-tts installed" else ``` ### Technical Analysis The setup script installs `piper-tts` from the package index without specifying an audited version, using a lock file, or verifying package hashes. Consequently, the code installed by the Skill can change independently of the reviewed project. Python package installation can execute package build hooks and installs transitive dependencies. If a future package version or one of its dependencies is compromised, the installation process could execute attacker-controlled code with the privileges of the user running the setup script. The package name does not appear to be an evident typo or dependency-confusion target, so this finding concerns unsafe dependency resolution rather than evidence that the current package is malicious. ### Attack Path 1. An attacker compromises a future `piper-tts` release, one of its transitive dependencies, or the relevant package distribution account. 2. The target invokes `scripts/setup-piper.sh` on a system where Piper is not already available. 3. `pip3 install piper-tts` resolves the current mutable package and dependency versions. 4. Malicious package installation hooks or imported runtime code execute locally. 5. The payload receives the privileges and filesystem/network access of the user who ran the script. ### Impact Assessment Successful exploitation could permit arbitrary code execution as the invoking user. This may expose that user's files, environment variables, credentials, and network access. If the setup script is run through an elevated environment, the impact could extend to system-wide files an ...[truncated 22 chars]- Remediation
View remediation
