T08 · Insecure Dependencies
- Location
SKILL.md:180- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 180
Vulnerability Type: Unpinned runtime dependency
Risk Level: MediumComplete Code Snippet:
bash pip3 install python-docxTechnical Analysis
The documented installation command retrieves and installs the package version selected by the configured Python package index at installation time. The project does not provide an exact version constraint, verified package hashes, a lock file, or a trusted-index restriction.
This makes installations non-reproducible and leaves the Skill exposed to supply-chain compromise. If the package, one of its transitive dependencies, or the configured package index is compromised, attacker-controlled code could execute during installation, import, or document generation.
The audit did not find evidence that
python-docxis currently malicious. The vulnerability is the absence of dependency integrity and version controls.Attack Path
- A user or AI Agent follows the installation instructions in
SKILL.md. pip3resolvespython-docxand its dependencies through the environment's configured package index.- An attacker compromises a resolved release, a transitive dependency, or the package-index configuration.
- The malicious component is downloaded and installed without hash verification.
- Attacker-controlled code executes during package installation, import, or later document generation.
- During document generation, the compromised component may access the process's files, environment, network capabilities, and student data.
Impact Assessment
Successful exploitation would run code with the privileges of the user executing
pip3or the portfolio generator. The attainable scope depends on that account's permissions and may include:- Reading student and guardian information processed by the Skill, including names, birth dates, identity numbers, telephone numbers, email addresses, home addresses, academic records, a ...[truncated 476 chars]
- A user or AI Agent follows the installation instructions in
- Remediation
View remediation
Remediation Suggestions
- Add a dependency file containing an exact, reviewed
python-docxversion. - Record and verify cryptographic hashes for the package and all transitive dependencies.
- Install dependencies with hash enforcement:
bash python3 -m pip install --require-hashes -r requirements.txt- Use a requirements entry in the following form:
text python-docx==<reviewed-version> --hash=sha256:<verified-hash>- Pin and hash all transitive dependencies rather than only the direct dependency.
- Configure installation to use an explicitly trusted package index or an internally reviewed package mirror.
- Perform dependency updates through a controlled review process that includes provenance checks, vulnerability scanning, and regression testing.
- Prefer an isolated virtual environment with only the filesystem and network permissions required for local document generation.
- Add a dependency file containing an exact, reviewed
