T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:16
- Finding
- Unpinned Executable npm Dependency## Vulnerability Details **File Location**: `SKILL.md`, lines 16–21 **Vulnerability Type**: Unpinned third-party executable dependency **Risk Level**: Medium ```yaml install: - kind: node package: "@aispace-sh/cli" bins: - aispace ``` ### Technical Analysis The skill installs and executes the `@aispace-sh/cli` npm package without specifying an exact version or integrity digest. Consequently, installation can resolve mutable registry content that was not part of this audit. If the package, publisher account, or dependency chain is compromised, a malicious future release could execute with the permissions of the agent process. This finding establishes supply-chain exposure, not evidence that the current package is malicious. ### Attack Path 1. An attacker compromises the npm publisher account, package, or one of its resolved dependencies. 2. The attacker publishes a malicious release that still provides the expected `aispace` binary. 3. The skill installer resolves the unpinned package to that affected release. 4. The agent invokes `aispace` for a legitimate storage or transfer operation. 5. Malicious package code executes under the agent's operating-system account and accesses resources available to that process. ### Impact Assessment Successful exploitation could expose artifacts selected for upload, environment credentials such as `AISPACE_KEY`, CLI configuration, identity or transfer records readable by the agent account, and network resources available to the process. The precise scope would be limited by the operating-system privileges, filesystem access, environment, and network permissions granted to the agent.
- Remediation
- ## Remediation Suggestions - Pin `@aispace-sh/cli` to an audited, exact version rather than allowing mutable version resolution. - Enforce registry integrity verification with a trusted lockfile and package integrity hash where the skill installation framework supports them. - Verify package provenance and publisher identity before approving updates. - Review each dependency update before deployment and use automated supply-chain scanning for the package and its transitive dependencies. - Run the CLI with least privilege, exposing only the files, credentials, and network destinations required for the requested operation. - Prefer an installation mechanism that fails closed when the pinned version or expected integrity metadata does not match.
