T08 · Insecure Dependencies
- Location
SKILL.md:18- Finding
Unpinned Third-Party Package Installation Guidance
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:18-23; duplicated inscripts/dtconv.py:33-38
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: LowVulnerable Code
SKILL.md:18-23:markdown Standard library only. Python 3.9+ gets everything; on 3.7/3.8 the single casualty is IANA zone names (`Asia/Shanghai`), because `zoneinfo` does not exist there — the script says so and points at `UTC` / `local` / `+08:00`, and every other feature keeps working. Same story if `zoneinfo` exists but the tz database is missing (minimal containers, Windows): the error names the fix (`pip install tzdata`).scripts/dtconv.py:33-38:python NO_ZONEINFO_HINT = ("this Python has no zoneinfo module (needs 3.9+, or " "'pip install backports.zoneinfo tzdata'). Everything else still " "works — use UTC, local, or a fixed offset such as +08:00") NO_TZDATA_HINT = ("the IANA timezone database is not installed — 'pip install tzdata', " "or use a fixed offset such as +08:00")Technical Analysis
The skill recommends installing
backports.zoneinfoandtzdatawithout version pins, hash verification, an isolated environment, or an explicitly trusted package index. The script does not install these packages automatically, so exploitation requires a user or agent to follow the displayed recommendation.An unqualified
pip installresolves the latest matching packages from the configured Python package index. Consequently, installation security depends on that index, local pip configuration, network integrity, and the continued integrity of future package releases. A compromised upstream release, malicious configured mirror, or poisoned private index could cause attacker-controlled package installation. Python packages may execute build-system code during installation and package code when imported.Attack Path
...[truncated 1601 chars]
- Remediation
View remediation
Remediation Suggestions
- Avoid directing users to an unconstrained global installation. Prefer the fixed-offset fallback already supported by the script when timezone database installation is unnecessary.
- If installation is required, document use of a dedicated virtual environment and a trusted, explicitly configured package index.
- Publish reviewed dependency constraints with exact versions, for example in a constraints or lock file.
- Supply hashes generated from verified artifacts and recommend installation with
pip install --require-hashes -r requirements.txt. - Review and update pinned versions through a controlled dependency-update process with provenance and vulnerability checks.
- Warn users not to run pip with administrative privileges and to inspect existing pip index configuration before installation.
- Keep the guidance in
SKILL.mdand the runtime error constants synchronized so hardened installation instructions appear in both locations.
