Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

alphagov/paas-cve-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CVE detection script

We don't want to miss any of these.

How it works

  1. It loads the https://pivotal.io/security web page, and parses it's content picking all table rows from it.
  2. It builds an object in itself, for each row detected.
  3. It checks, if the leak has been reported to Datadog before. - If it hasn't, it will send a new event. - If it has, it will continue to the next entry.
  4. It has ability to send a checks to the Datadog, reporting of it's health.

Installation

The script, should be running just fine on both python 2 and 3.

You should install the required dependencies:

pip install -r requirements.txt

Usage

Once all dependencies are installed and everything is configured, you can run:

scrapy runspider pivotal.py

The script, should take only few seconds. Therefore, it's save to add it to the cron job, running even every 5 minutes.

Documentation

Custom check reports

import utils

utils.Report.critical("Critical message")  # Report status CRITICAL.
utils.Report.ok("OK message")  # Report status OK.
utils.Report.warning("Warning message")  # Report status WARNING.

Scrapy

Refer to the official documentation.

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages