Coder Social home page Coder Social logo

saketjajoo / dependency-analyzer Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.64 MB

Correlate dependency tree and dependency check reports to gain insights into the source of all vulnerable dependencies and the CVEs associated with them.

Python 100.00%
security-automation dependency-tree dependency-analysis

dependency-analyzer's Introduction

Dependency-Analyzer

Dependency-Analyzer is built to compare and correlate dependency tree and dependency check reports and thus gain insights into the source of all vulnerable dependencies and the CVEs associated with them. The output is generated such that it gives information about all vulnerable dependencies and pinpoints where exactly it came from in the software/project.

Requirements

  • python3
  • dependency check report in csv or csv.gz format.
  • dependency tree in .txt format.

Usage

python3 main.py <dependency_tree_file_path> <dependency_check_report_path>

Dependency Tree

  • For maven based projects, the dependency tree can be generated using mvn dependency:tree [-DoutputFile=output_file.txt]
  • For npm based projects, the dependency tree can be generated using npm list >> output_file.txt
    • By default, npm list generates output with unicode characters. Make sure that the unicode character scheme is set to false so that the text is parsable by python. To do so, use npm config set unicode false
  • For sbt based projects, the sbt-dependency-graph plugin can be used to generate dependency tree. Eg: sbt "dependencyTree::toFile output_file.txt"

OWASP Dependency Check

Output

The output lists all vulnerable dependencies in a project upon correlating the dependency tree with the dependency check report. For each dependency, the output shows the source of the dependency (snippet of dependency tree), the CVE(s) associated with it, the CVSSv2 and CVSSv3 scores. Also, if a dependency tree is the output of building a large project/software with various sub-projects, the "projects" key in the output shows all those the sub-project(s) that pulls in the particular dependency.

Apache Spark and Apache Druid projects are scanned/built and their corresponding dependency trees and dependency check reports are stored in the examples/ folder.

  • A sample output of running Dependency-Analyzer on Druid, is stored at examples/output.json.

dependency-analyzer's People

Contributors

saketjajoo avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.