3.0.0 • Published 3 years ago

vulnerability-api v3.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

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

3.0.0

3 years ago

2.1.2

4 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago