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 bundled in the binary. Refresh that data with vulkro-sf update. The command never contacts your org or the network.

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).