dependencies_checker

command module
v0.0.0-...-24bde57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2020 License: MIT Imports: 7 Imported by: 0

README

dependencies_checker

This tool is a local checker for dependencies with known vulnerabilities.

  • it fetches locally a vulnerabilities DB,
  • then parses packages file you provide,
  • finally, compares both to report which dependencies in a project embed vulnerable package(s),
  • and print a graph of dependencies to help identify which direct dependencie(s) need to be ugraded.

At the moment, the checker only implements PHP composer dependencies and Sensiolabs DB.
Application broken : the rss stream it was using no longer exists.

Note about Sensiolabs Security Advisories

Sensiolabs not only records PHP projects and libraries with a CVE identifier but also vulnerable ones with none or private identifiers. That's why this source is more complete and is prefered for PHP projects instead of CVE DB.

Note about composer.lock

Since the content of this file depends on the system where your PHP project is installed, providing its version from your production environment is important for relevant results.

Install

go get github.com/b4stet/dependencies_checker
cd $GOPATH/src/github.com/b4stet/dependencies_checker
go build dependencies_checker.go

In case the build command fails, the binary is also provided in the repo.

Usage

./dependencies_checker -h
./dependencies_checker -v -lock path/to/your/composer.lock -json path/to/your/composer.json
Result example

With the composer.lock provided in testfiles folder, you will get the following result: example_excerpt example_excerpt

If you want to test another composer.lock than the one provided in testfiles folder, you can edit composer.json then update composer.lock using Docker composer image:

docker run -it --rm -v $(pwd):/app -u $(id -u $USER):$(id -g $USER) -w /app composer update

Resources

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL