registry / @salesforce/b2c-cli / 2.7.0
@salesforce/b2c-cli@2.7.0
A Salesforce B2C Commerce CLI
AI Security Review
scanned 21d ago · by lpm-firewall-aiThe inspected manifest and runtime paths show no npm install hook or concrete attack behavior. Network access is part of the user-invoked Account Manager login flow, and the secret-like values are test inputs for logger redaction.
Static reason
One or more suspicious static signals were detected.
Trigger
A user invokes the CLI or an authentication command; the optional plugin installer runs when Oclif reports a missing plugin command.
Impact
No malicious effect was established from the inspected source.
Mechanism
The auth command sends OAuth credentials to the configured Account Manager endpoint. The plugin hook is scoped to the missing-plugin event, and the init hook returns for commands outside the sfnext namespace.
AI rationale
The inspected manifest and runtime paths show no npm install hook or concrete attack behavior. Network access is part of the user-invoked Account Manager login flow, and the secret-like values are test inputs for logger redaction.
Decision evidence
public snapshotAI called this Clean at 96.0% confidence as Benign with low false-positive risk.
Evidence for AI clean decision
- The manifest defines build, test, and development scripts; no npm installation lifecycle hook was found.
- The package entrypoints expose or start the Oclif CLI.
- The manifest registers an Oclif missing-plugin hook, and that hook runs the plugin installer.
- The init hook exits for commands outside the `sfnext` namespace.
- The auth client sends its OAuth request to the configured Account Manager host and saves the returned access token for CLI sessions.
- The secret-looking strings in the hidden test command are inputs to a logger-redaction test.
Evidence against
Behavioral surface
CryptoEnvironmentVarsFilesystemNetwork
HighEntropyStringsUrlStrings
Source & flagged code
5 flaggeddist/commands/_test/index.jsView file
30patternName = generic_password
severity = medium
line = 30
Medium
Secret Pattern
Package contains a possible secret pattern.
dist/commands/_test/index.jsView on unpkg · L30bin/dev.cmdView file
•path = bin/dev.cmd
kind = build_helper
sizeBytes = 193
magicHex = [redacted]
Medium
package.jsonView file
387"scripts": {
"build": "pnpm run generate:guidance && shx rm -rf dist && tsc -p tsconfig.build.json && shx mkdir -p dist/script-types/node_modules/@salesforce/b2c-script-types && shx cp -r ../b2c-script-types/types dist/script-types/node_modules/@salesforce/b2c-script-types/types && shx cp -r ../b2c-script-types/plu
Findings
5 Medium7 Low
MediumSecret Patterndist/commands/_test/index.js
MediumNetwork
MediumEnvironment Vars
MediumShips Build Helperbin/dev.cmd
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings
LowSuspicious Lifecycle Evidencepackage.json
LowAi Review Evidencebin/run.js
LowAi Review Evidencedist/index.js
Affected versions and remediation
This report applies to @salesforce/b2c-cli@2.7.0.
See all versions of @salesforce/b2c-cli for other recorded verdicts.
- Review the evidence and your use of @salesforce/b2c-cli@2.7.0 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.