T08 · Insecure Dependencies
- Location
SKILL.md:12- Finding
Unpinned Global Salesforce CLI Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:12
Vulnerability Type: Unpinned third-party dependency installed globally
Risk Level: MediumVulnerable Code
markdown If the `sf` binary is not available, install it via npm (`npm install -g @salesforce/cli`) or download it from https://developer.salesforce.com/tools/salesforcecli. After installing, authenticate immediately with `sf org login web` to connect to a Salesforce org.Technical Analysis
The installation command retrieves the current release of
@salesforce/cliwithout pinning an exact version or verifying package integrity. Because it uses npm's global installation mode, package installation code executes with the permissions of the invoking user and modifies a shared executable location.The package name and download domain are consistent with the declared Salesforce tooling, and the audited files contain no evidence that the named package is currently malicious. The risk is that the effective installed code can change after this skill has been reviewed. A compromised package release, registry account, distribution channel, or unexpectedly incompatible future version could therefore introduce code not covered by the audit.
Attack Path
- An attacker compromises the package publication account, registry distribution path, or a future release.
- The Salesforce CLI is absent when the skill is invoked.
- The agent follows the instruction to run
npm install -g @salesforce/cli. - npm downloads and executes the mutable package release and any applicable installation lifecycle logic.
- The compromised dependency executes with the invoking user's permissions and may access the local environment or subsequently handled Salesforce credentials.
Impact Assessment
Successful exploitation could execute code with the privileges of the user running npm, modify globally available tooling, access files readable by that user, and pote ...[truncated 180 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
@salesforce/clito an organization-approved exact version rather than installing the mutable latest release. - Verify the package through an approved lockfile, registry policy, checksum, signature, or software-bill-of-materials workflow.
- Prefer a project-local or isolated installation over a global installation where operationally possible.
- Require explicit user approval before installing or upgrading executable dependencies.
- Separate installation from authentication and validate the installed binary's provenance and version before entering Salesforce credentials.
- Periodically review and intentionally update the pinned version after security testing.
- Pin
