Skip to main content

vulkro-sf sca

Checks the project's managed packages and the JavaScript inside static resources for known vulnerabilities, end-of-life versions and unpinned dependencies.

vulkro-sf sca .
vulkro-sf sca . --format json > sca.json

It reads the package dependencies from sfdx-project.json (packageDirectories[].dependencies) and *.installedPackage-meta.xml, then matches them against an offline managed-package advisory feed and an end-of-life table. The command never contacts your org or the network.

From vulkro-sf 0.28.0 no managed-package advisory or end-of-life data ships with the scanner (earlier releases shipped example entries that read as real advisories). SF-SCA-001 and SF-SCA-002 are therefore not checked by default, and sca prints a "Not checked" line instead of a clean result (on stderr with --format json). To check against your own vetted advisory list, set VULKRO_SF_INTEL_BUNDLE_OVERRIDE=/path/to/bundle.json.gz. SF-SCA-003 and SF-SCA-004 do not need that data and always run.

FindingMeaning
SF-SCA-001Managed package version matches a CVE advisory.
SF-SCA-002End-of-life or unsupported managed package.
SF-SCA-003Vulnerable JavaScript in a static resource.
SF-SCA-004Managed-package dependency with no pinned version.
FlagWhat it does
[PATH]SFDX project or retrieved metadata. Default ..
--format <table|json>Output format. Default table.

Exit codes​

CodeMeaning
0No SCA findings.
1At least one SCA finding.
2Error (unscannable path, IO failure, bad arguments).

Command reference​

Generated from vulkro-sf sca --help (vulkro-sf 0.33.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

Check the project's package dependencies for known vulnerabilities.

vulkro-sf sca [OPTIONS] [PATH]

Arguments​

ArgumentDescription
[PATH]Path to the SFDX project or retrieved metadata (defaults to the current directory) Default: ..

Options​

FlagDescription
-f, --format <FORMAT>Output format: table or json. Default: table.
-v, --verbose...Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins)
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help (see a summary with '-h')
Full vulkro-sf sca --help
Check the project's package dependencies for known vulnerabilities.

Salesforce-aware Software Composition Analysis (SCA / dependency-CVE).

Builds the managed-package dependency view from the project metadata (`sfdx-project.json` `packageDirectories[].dependencies` and `*.installedPackage-meta.xml`), checks JavaScript libraries bundled in static resources against known CVEs, and flags managed-package dependencies with no pinned version.

Findings: SF-SCA-001 vulnerable managed package (an installed / declared package matches an advisory covering its version). SF-SCA-002 end-of-life / unsupported managed package. SF-SCA-003 vulnerable JavaScript dependency in a static resource. SF-SCA-004 managed-package dependency with no pinned version.

No managed-package advisory or end-of-life data ships with this release, so SF-SCA-001 and SF-SCA-002 are not checked and the output says so. To check against your own vetted advisory list, set VULKRO_SF_INTEL_BUNDLE_OVERRIDE=/path/to/bundle.json.gz. This command never contacts your org or any network endpoint.

Exit codes: 0 = scan completed, no SCA findings. 1 = scan completed, at least one SCA finding was reported. 2 = error (unscannable path, IO failure, bad args).

Usage: vulkro-sf sca [OPTIONS] [PATH]

Arguments:
[PATH]
Path to the SFDX project or retrieved metadata (defaults to the current directory)

[default: .]

Options:
-f, --format <FORMAT>
Output format: table or json

[default: table]

-v, --verbose...
Bump stderr log verbosity. `-v` enables debug-level tracing for the `vulkro` + `vulkro_sf` targets; `-vv` enables trace. Honoured only when `RUST_LOG` is unset (an explicit `RUST_LOG` always wins)

-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

-h, --help
Print help (see a summary with '-h')