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.
Welp, why not send in a list of hashes, if people want to do that!
This allows someone to scan for situations where someone may have copied a downloaded file of jquery, etc... into their project, and bypassed using npm or yarn to manage it as a dependency (it happens!)
This pull request makes the following changes:
Hasher
,Lister
andMerger
classes, that hash files, list that they exist, and merges these files with an SBOM that is based on your declared dependencies-g <path>
or--deep <path>
command line optionA test for this would be to create a
garbage
or etc... folder and pop a known vulnerable version ofjquery
or library of your choice into it. I used this file: https://code.jquery.com/jquery-1.12.4.min.jsScan like so
npm run start iq -- --application <your-application> --deep garbage
If all goes swimmingly, you should see this version of jQuery in your IQ report
I'd like to soft release this (not update docs), so people can play with it before we full bore announce it (I'd love to see how it helps overall)
This was based on #142, which was based off alpha, so I patched it over to new trunk.
It relates to the following issue #s:
cc @bhamail / @DarthHater / @allenhsieh / @ken-duck / @ButterB0wl