Giter Site home page Giter Site logo

vulnerable-docker-repositories / vulnerability-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from filirom1/vulnerability-api

0.0 1.0 0.0 144 KB

Vulnerability API

Home Page: https://vulnerability-api.herokuapp.com/

License: MIT License

JavaScript 66.70% CSS 30.52% Dockerfile 2.78%

vulnerability-api's Introduction

Vulnerability API

Build Status Greenkeeper badge

Vulnerability API that provides a list of threats for your server.

It detects Common Vulnerabilities and Exposures (CVE) based on Redhat Security Announce (RHSA). More information

You just need to send the output of rpm -qa --qf '%{NAME} %{VERSION}-%{RELEASE}\n' to the API to get instantly the list of threats for your server.

Currently only RHEL/Centos is supported

Online demo

Online version available at: https://vulnerability-api.herokuapp.com/

Exemple for CentOS 7

$ rpm -qa --qf '%{NAME} %{VERSION}-%{RELEASE}\n' | curl --data-binary @- https://vulnerability-api.herokuapp.com/rhel/7

In development

$ curl -XPOST localhost:3000/rhel/7 -d wget-1.14-10.el7_0.1.x86_64

Result

[
  {
    "id":"rhsa-20162587",
    "name":"wget",
    "version":"1.14-10.el7_0.1",
    "rpm":"wget-1.14-10.el7_0.1.x86_64",
    "severity":"Moderate",
    "title":"RHSA-2016:2587: wget security and bug fix update (Moderate)",
    "references":[
      "RHSA-2016:2587-02",
      "CVE-2016-4971"
    ]
  }
]

Using Docker

$ docker run -d -p 3000:3000 vulnerability-api
$ rpm -qa --qf '%{NAME} %{VERSION}-%{RELEASE}\n' | curl --data-binary @- 127.0.0.1:3000/rhel/7

Install

$ npm i -g vulnerability-api

Configure

$ export IP=0.0.0.0
$ export PORT=3000
$ export VULNERABILITY_API_CRON=24 # CRON delay in days

Start the API Server

$ vulnerability-api
Parse RHSA definitions: com.redhat.rhsa-all.xml
Listening at http://0.0.0.0:3000

License

MIT

Contribution welcomed :-)

https://github.com/Filirom1/vulnerability-api

vulnerability-api's People

Contributors

filirom1 avatar greenkeeper[bot] avatar openshift-io avatar wdhif avatar

Watchers

 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.