Coder Social home page Coder Social logo

security-prince / mavendependencycheck Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 4.0 71 KB

An automation script to run OWASP Dependency-Check on multiple Maven Based projects.

Python 100.00%
appsec devsecops dependency-analysis owasp-dependencycheck owasp maven security security-tools security-automation

mavendependencycheck's Introduction

MavenDependencyCheck

An automation script to run OWASP Dependency-Check on multiple Maven Based projects.

This script basically clones the given repositories and builds them using maven. Once successful, it runs dependency-check on them and generates the reports

Requirements

  • Python modules: os & shutil
  • Maven: Installation instructions can be found here
  • repo.conf containing the git commands to be run for cloning the projects

Example commands for repo.conf

git clone https://github.com/elderstudios/uni-dvwa-spring.git

Usage

python depcheck.py

And let the script do the magic

Tested and working fine on CentOS Linux release 7.6.1810 (Core) with Python 2.7.5.
Dependency: Unix/Linux environment

Note: Dependency check might need internet access to update the NVD Database for which a proxy might needed if you are in a restricted environment. To configure this script to use proxy for this use this sample code to configure your proxy settings and uncomment line 57 and comment out line 56. Refer: Dependency check Command Line Arguments
For running the mvn command using a proxy refer this article

Supported report formats

  • XML
  • HTML
  • CSV
  • JSON
  • JUNIT
  • SARIF
    Note: By default the script generates reports in all the formats, individual report format can be set using the -f or --format arguments on line 56.

Authors

Credits

Pull Requests and comments are welcome ☺️
Also I know there is a maven plugin available for dependency check which can directly be injected to the project's pom.xml, but the use case for me was such that I did not have write access to the code repo and injecting the maven script for dependency check after cloning the projects and then building them was a bit time consuming.

mavendependencycheck's People

Contributors

security-prince avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.