T08 · Insecure Dependencies
- Location
SKILL.md:69- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:69andSKILL.md:159
Vulnerability Type: Unpinned and unverifiable third-party dependencies
Risk Level: MediumComplete Code Snippet:
markdown | 依赖未安装 | 运行`pip install numpy pandas scikit-learn tensorflow` |The same installation command is repeated later:
markdown - 依赖安装命令:`pip install numpy pandas scikit-learn tensorflow`Technical Analysis
The Skill instructs users or an executing agent to install four third-party Python packages without exact version constraints, cryptographic hashes, a lock file, or a trusted package-index configuration. The project also requests the
exectool, meaning these instructions may be carried out through a local code-execution channel.Package versions and transitive dependency resolutions can change after the Skill has been reviewed. Installation behavior consequently depends on the package index and resolver state at execution time rather than on immutable, audited artifacts. This exposes the environment to compromised releases, malicious dependency substitution through a misconfigured index, and incompatible future versions. TensorFlow additionally introduces a large transitive dependency and native-code surface despite the project containing only documentation and no implementation demonstrating that this dependency is necessary.
Attack Path
- A user or agent loads the Skill and follows its dependency troubleshooting or setup instructions.
- The command
pip install numpy pandas scikit-learn tensorflowis executed using the invoking environment and its configured Python package indexes. - Pip resolves mutable, unpinned package versions and their transitive dependencies.
- If an index, package release, resolver configuration, or transitive dependency has been compromised, attacker-controlled package installation or import-time code runs locally.
- That code executes with the privileg ...[truncated 773 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the inline pip command with a reviewed dependency manifest containing exact versions.
- Generate and commit a lock file that includes all transitive dependencies.
- Require cryptographic hashes, for example:
bash python -m pip install --require-hashes -r requirements.txt - Document and enforce an approved package index rather than inheriting an unknown environment configuration.
- Install dependencies in a dedicated, non-privileged virtual environment or isolated container.
- Remove TensorFlow and any other dependency that is not demonstrably required by an included implementation.
- Add dependency vulnerability and provenance checks to the release process.
- Remove the Skill's
execcapability if it remains a pure Markdown Skill with no legitimate executable workflow.
