T08 · Insecure Dependencies
- Location
SKILL.md:538- Finding
Unverified Global Installation of an Unpinned npm Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 538
Vulnerability Type: Supply-chain risk from an unverified and unpinned dependency
Risk Level: MediumVulnerable Code:
bash npm install -g obsidian-cliTechnical Analysis
The Skill instructs users or an AI Agent to install
obsidian-cliglobally from the npm registry without specifying an exact version, package integrity value, verified publisher, or official source repository. npm package contents are mutable across releases, so a future invocation of this command may install code different from the code available when the Skill was audited.Global npm installation also permits package installation and lifecycle scripts to execute under the invoking user's account. The instruction is especially questionable because earlier sections describe the required CLI as an interface enabled and registered from within the Obsidian desktop application. The document does not establish that the npm package is the same official component.
This does not prove that the current package is malicious. The vulnerability is the unsafe dependency acquisition process, which creates exposure to package compromise, ownership transfer, dependency confusion, or installation of an unintended similarly named implementation.
Attack Path
- A user asks an AI Agent to configure or use this Skill.
- The Agent follows the installation instructions in
SKILL.md. - The Agent executes
npm install -g obsidian-cli. - npm resolves the package's current mutable release from the configured registry without validating a version or expected integrity digest.
- npm downloads the package and may execute its installation lifecycle scripts.
- If the package, one of its dependencies, its publisher account, or the configured registry is compromised, attacker-controlled code executes with the permissions of the invoking user.
Impact Assessment
Successful exploita ...[truncated 578 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the global npm installation instruction if the intended CLI is the interface supplied by the Obsidian desktop application.
- Direct users to enable and register the official CLI through Obsidian's documented settings, consistently with the earlier prerequisites.
- If the npm package is genuinely required:
- Document its verified publisher and official source repository.
- Pin an exact reviewed version rather than resolving the latest release.
- Use a trusted registry and verify package integrity or provenance.
- Review direct and transitive dependencies before approval.
- Disable lifecycle scripts where operationally feasible.
- Prefer a project-local, least-privilege installation over a global installation.
- Re-audit the dependency before changing the pinned version.
- Require explicit user confirmation before an Agent installs executable third-party packages.
- Run installation and subsequent commands in a restricted environment without access to sensitive vaults, credentials, or unrelated user files.
