T08 · Insecure Dependencies
- Location
SKILL.md:11- Finding
Unpinned Installation of MarkItDown and Its Optional Dependency Tree
- Content
View full analysis
- Remediation
View remediation
' ``` 2. Generate and maintain a dependency lockfile containing pinned transitive dependency versions and cryptographic hashes. Install it with hash enforcement: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 3. Avoid the `[all]` extra unless every optional converter is required. Install only the extras necessary for the supported workflows to reduce the supply-chain attack surface. 4. Use an isolated virtual environment rather than modifying the system Python environment: ```bash python3 -m venv .venv . .venv/bin/activate python3 -m pip install --require-hashes -r requirements.txt ``` 5. Configure an explicitly trusted package index or an internally controlled package mirror. Prevent fallback to untrusted or unintended indexes. 6. Review and update pinned dependencies through a controlled process that includes vulnerability scanning, provenance verification, and testing before deployment. 7. Ensure automated agents do not install packages with administrator or root privileges. Run document conversion in a sandbox with restricted filesystem and network access. ]]>
