T08 · Insecure Dependencies
- Location
SKILL.md:30- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:30-35
Vulnerability Type: Unpinned package installation and software supply-chain exposure
Risk Level: MediumVulnerable Code:
bash pip install pytdxTechnical Analysis
The installation instruction retrieves the currently resolved version of
pytdxand its transitive dependencies without a version constraint, cryptographic hash verification, or lockfile. Consequently, the code installed by this command can change after the Skill has been reviewed.If the package, one of its dependencies, or the configured package index is compromised, following this instruction could install attacker-controlled code. Python packages may execute code during installation and will execute imported module code when the Skill uses
pytdx.Attack Path
- An attacker compromises a future
pytdxrelease, a transitive dependency, or the package distribution channel. - A user follows the documented
pip install pytdxinstruction. - The package resolver downloads the compromised release because no reviewed version or hash is required.
- Attacker-controlled code executes during installation or when
factorlab_engine.pyimportspytdx.hq. - The malicious code operates with the privileges of the user running
pipor the analysis script.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the installing user's account. Depending on that account's permissions, an attacker could access user-readable files and credentials, modify files, establish network connections, or tamper with analysis output. The project itself does not contain evidence that
pytdxis currently malicious; the risk arises from unsafe dependency resolution.- An attacker compromises a future
- Remediation
View remediation
Remediation Suggestions
- Pin
pytdxto a specifically reviewed version in a dependency manifest. - Generate a lockfile that also fixes all transitive dependency versions.
- Require cryptographic hashes during installation, for example:
bash python -m pip install --require-hashes -r requirements.txt - Configure an explicit trusted package index or an internally controlled package mirror.
- Review and update pinned dependencies through a controlled process with vulnerability and provenance checks.
- Recommend installation inside a dedicated virtual environment using a non-privileged account.
- Pin
