Added retire.js for Module Vulnerability Scanning #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Static Analysis Tool: retire.js
retire.js helps detect known vulnerabilities in JavaScript libraries to limit the use of vulnerable components in web or node apps. This tool can be used to run static scans on an app to search for JavaScript libraries and Node.js modules that contain known vulnerabilities. The tool's results provide details on the vulnerabilities found.
Usage
Get scan results in a readable JSON format:
npm run security-scanOutput
See
retirejs-output.txtfor a sample output from a scan on the app.For each file found to have known vulnerabilities, the vulnerabilities are given with:
Evidence of Installation
Full sample output saved in
retirejs-output.txt.retireas adevDependenciesinpackages.json.scriptinpackages.jsonto run retire.js with the output formatted in easily readable JSON.Customization & Integration
Customization can be applied for:
node_modulesfolder was excluded from the scan in.retireignorenpm auditto check vulnerabilities in these server-side dependencies.Integration into the development process is possible via Github Actions.
Possible Errors: