T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:108
- Finding
- Unpinned Third-Party Package Installation## Vulnerability Details **File Location**: `SKILL.md`, lines 108–112 **Vulnerability Type**: Unpinned third-party dependency **Risk Level**: Medium ### Vulnerable Code ```bash pipx install agent-bom agent-bom scan --compliance --compliance-export nist-ai-rmf agent-bom scan -f cyclonedx -o sbom.json ``` ### Technical Analysis The installation command retrieves the current `agent-bom` release from PyPI without pinning its version or verifying an artifact hash or signature. Consequently, the code installed when this instruction is followed may differ from the version reviewed or described by the Skill. The project artifact contains only `SKILL.md`; it does not include the package source, a lock file, or integrity metadata with which to audit or verify the installed implementation. Although the metadata refers to version `0.104.0`, the documented command does not enforce that version. This creates a mutable software-supply-chain boundary. If the publisher account, package registry, release workflow, or a future release is compromised, following the installation instructions could cause attacker-controlled Python code to execute with the user's privileges. ### Attack Path 1. An attacker compromises the package publisher, publication workflow, registry distribution path, or a future package release. 2. The attacker publishes a malicious version of `agent-bom`. 3. A user follows the Skill's `pipx install agent-bom` instruction. 4. `pipx` resolves and installs the attacker-controlled current release because no version or integrity constraint is specified. 5. The malicious package executes during installation or subsequent `agent-bom` invocation. 6. It may access resources available to the user, including files, environment variables, and any locally configured cloud credentials present during optional CIS benchmark operations. ### Impact Assessment Successful exploitation permits code execution with the privileges of the account installing or invoking the ...[truncated 422 chars]
- Remediation
- ## Remediation Suggestions 1. Pin the dependency to the version declared in the Skill metadata: ```bash pipx install agent-bom==0.104.0 ``` 2. Verify downloaded artifacts using trusted cryptographic hashes or publisher signatures before installation. 3. Publish a reproducible requirements or lock artifact containing exact versions and integrity hashes. 4. Review the source and distribution artifact for each version before updating the pin. 5. Perform installation in an isolated environment without cloud credentials or unrelated secrets. 6. Use a separately authenticated, least-privilege environment only when explicitly running cloud CIS checks. 7. Consider referencing an immutable source commit or digest-pinned container image rather than a mutable package or image tag.
