Skip to main content

This is the 'light' version of CertfrTracker-CLI, it only handles the scrapping of CertFr and the comparison system. You will have to provide the inventory system.

Project description

CertfrTracker

This package is under GNU License project.

Links

inventory model (the data you'll provide to CertfrTracker) :

To use the CertfrTracker package you will need 3 differents array containing for each : "the name of your components", "their versions", "a starting date for the comparing system to begin with".

example :

  • technos = [ Drupal, Apache, PHP]

  • versions = [ 1.3.4, 2.4.49-Alpha, 8.1.8]

  • dates = [ "JJ-MM-AAAA", "JJ-MM-AAAA", "JJ-MM-AAAA" ]

All the Arrays must have the same length.

output model (the data that will be sent back to you by CertfrTracker) :

Here is how the data is organised when CertfrTracker send back it's outptut :

It's an array of "Plain Object" containing all this variables for each indexes :

alert_id        # id of the Alert                               | String | CVE-2022-1234, CERTFR-2022-ALE-004, CERTFR-2022-AVI-004
techno          # Name of the Techno                            | String | ex: Apache, Postgresql, Openjdk
version         # Version of the Techno                         | String | ex: 1.2.3, 1.2, 1.2.3-beta
status          # Nature of Alert                               | String | Open or Applicable
score           # CVSS or NVD Score                             | Float  | between 1 and 10
publish_date    # Publish Date                                  | String | ex: "2020-06-21
update_date     # Update Date                                   | String | ex: "2020-06-21
description     # Alert Description                             | String
source          # url of the alert                              | string
details         # external that could provide more informations | string

How to use CertfrTracker Package ?

first you'll need to install the package :

pip install CertfrTracker

then, to use this package :

# import
from CertfrTracker import Router

# initiate the class
certfr_tracker = Router.Router()
# you can also specify the path to the database by doing this :
certfr_tracker = Router.Router(db_file="my_file.db")

# update the database (AVIS and ALERTS)
certfr_tracker.update_database()
# only update ALERTS
certfr_tracker.update_database("NextAlert")
# only update AVIS
certfr_tracker.get_certfr_data("NextAvis")

# comparing alerts with complete inventory 
technos = [ "Drupal", "Apache", "PHP"]
versions = [ "1.3.4", "2.4.49-Alpha", "8.1.8"]
_dates = [ "01-01-2014", "01-01-2014", "01-01-2014" ]
reports = certfr_tracker.compare_inventory_with_alerts(technos=technos, versions=versions, dates=_dates)

# comparings alerts with one technology
reports = []
techno = "Drupal"
version = "1.3.4"
_date = "01-01-2014"
reports += certfr_tracker.compare_one_techno_with_alerts(techno=techno, version=version, _date=_date)

# destroy the class instanciation
del certfr_tracker

packaging

update the toml to the new version and then :

git add pyproject.toml README.md
git commit -m "pushing next release"
git push
git rm dist/*
python3 -m build
git add dist/*
git commit -m "pushing last build"
git push
python3 -m twine upload dist/*
pip3 install --upgrade CertfrTracker

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certfrtracker-1.6.3.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certfrtracker-1.6.3-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file certfrtracker-1.6.3.tar.gz.

File metadata

  • Download URL: certfrtracker-1.6.3.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for certfrtracker-1.6.3.tar.gz
Algorithm Hash digest
SHA256 8e579e17beac068b7e634e13ecd3effffbc61a4df458375f4086e57713ccc774
MD5 bd96f6a2d344c67c8be071fdc818d7ca
BLAKE2b-256 de06f34a90d0eb708dadcd060ec1bd59599d73a8f1a253a846db3c4244d68e3a

See more details on using hashes here.

File details

Details for the file certfrtracker-1.6.3-py3-none-any.whl.

File metadata

  • Download URL: certfrtracker-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 37.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for certfrtracker-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7dcf7112c3ece9e25e5b5d7cf0afe9d019784251dddc0619566f99fea0570ba7
MD5 4b96146a2fbfed0d70d96553d0b580e9
BLAKE2b-256 26a1947abe4021487c41ecbc293d49b30537151585ccbe20bfef20dec52266d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page