T08 · Insecure Dependencies
- Location
SKILL.md:16- Finding
Unpinned Executable npm Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 16–21
Vulnerability Type: Unpinned third-party executable dependency
Risk Level: Mediumyaml install: - kind: node package: "@aispace-sh/cli" bins: - aispaceTechnical Analysis
The skill installs and executes the
@aispace-sh/clinpm 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
- An attacker compromises the npm publisher account, package, or one of its resolved dependencies.
- The attacker publishes a malicious release that still provides the expected
aispacebinary. - The skill installer resolves the unpinned package to that affected release.
- The agent invokes
aispacefor a legitimate storage or transfer operation. - 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
View remediation
Remediation Suggestions
- Pin
@aispace-sh/clito 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.
- Pin
