T08 · Insecure Dependencies
- Location
scripts/generate_report.py:13- Finding
Unpinned Runtime Dependency Installation
- Content
View full analysis
/dev/null || true echo "✅ Dependencies checked" ``` ### Technical Analysis Both scripts install Python packages at runtime without version constraints, cryptographic hashes, an explicitly trusted package index, or an isolated virtual environment. Consequently, the effective code installed and executed can change after the Skill has been reviewed. Python package installation may execute package build logic under the privileges of the user running the Skill. The initializer also suppresses error output and ignores installation failures through `2>/dev/null || true`, making package substitution, resolver problems, and integrity failures more difficult to detect. This is an unsafe supply-chain pattern even though no specific malicious dependency is embedded in the repository. ### Attack Path 1. A user runs `scripts/init_project.sh`, or invokes `scripts/generate_report.py` on a system where `openpyxl` is unavailable. 2. The script invokes `pip` against the user's currently configured package indexes. 3. A compromised package release, index, mirror, DNS path, or local pip configuration supplies an attacker-controlled distribution. 4. Pip downloads and installs that mutable distribution. 5. Package installation or subsequent import executes attacker-controlled Python code with the invoking user ...[truncated 586 chars]- Remediation
View remediation
