T08 · Insecure Dependencies
- Location
SKILL.md:5- Finding
Unpinned Third-Party Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 5
Vulnerability Type: Unpinned third-party dependency
Risk Level: MediumVulnerable Code
yaml metadata: {"clawdbot":{"emoji":"📄","requires":{"bins":["nano-pdf"]},"install":[{"id":"uv","kind":"uv","package":"nano-pdf","bins":["nano-pdf"],"label":"Install nano-pdf (uv)"}]}}Technical Analysis
The installation configuration directs the framework to install the third-party
nano-pdfpackage throughuvwithout specifying an exact version, package hash, lockfile, or immutable artifact reference. Consequently, the code installed in the future may differ from the package version available when this Skill was reviewed.The project contains no source code for the dependency, so its installation hooks and runtime behavior cannot be audited from the supplied artifact. This creates a supply-chain trust boundary in which a compromised package maintainer account, malicious future release, or upstream distribution compromise could introduce attacker-controlled code. There is no evidence in the audited files that the current PyPI package is malicious; the finding concerns the unsafe dependency-resolution configuration.
Attack Path
- An attacker compromises the upstream package, its maintainer account, or the relevant package-distribution infrastructure.
- The attacker publishes a malicious release under the expected
nano-pdfpackage name. - The Skill installation process resolves the unpinned package specification to that attacker-controlled release.
- Package-controlled installation or build logic executes during installation, or malicious code executes when the Agent invokes the
nano-pdfCLI. - The malicious dependency operates with the privileges of the installation or runtime user and may access inputs, including PDFs and natural-language editing instructions available to the process.
Impact Assessment
Successful exploitation ...[truncated 640 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
nano-pdfto an exact version that has undergone security review rather than allowing unconstrained resolution. - Record and verify cryptographic hashes for the package and all transitive dependencies using a reproducible lockfile or equivalent integrity mechanism.
- Prefer an immutable, trusted artifact repository and retain the dependency source or software bill of materials for review.
- Audit package installation hooks, entry points, and transitive dependencies before deployment.
- Execute installation and PDF processing inside a restricted sandbox or container using a dedicated, unprivileged account.
- Deny unnecessary network access and prevent the process from accessing secrets, unrelated user files, and sensitive environment variables.
- Revalidate the pinned artifact and its hashes as part of dependency-update and release-review procedures.
- Pin
