Skip to main content

Rescore cvss3 and 3.1 results from any json file based on custom rules that you create.

Project description

Project generated with PyScaffold OpenSSF Badges

cvss_rescore

Rescore cvss3 and 3.1 results from any json file based on custom rules.

The Problem

Cvss scoring consists of three components: Base, Temporal, and Environmental.

When working with third-party dependency (SCA) vulnerabilities, nearly every tool reports it’s scores only using the base score. This is understandable, as the reporters of the vulnerabilities would only know about the vulnerabilities themselves. They would have no idea how the vulnerable package is actually used in your project. Do you have mitigating controls in place? Is it only a test project? Is it only in a protected CI/CD pipeline? All of these factors and more can impact the environmental score, which can lower the actual score of a vulnerability significantly.

How We Use This

Output-Agnostic

We use the cvss-rescore packate as a post-processor after our SCA scan has been run. Because the cvss-rescore package can take any json format output, it is tool-agnostic. We have tested it successfully using Dependabot and JFrog Xray, but there’s no reason any other tool can’t be used so long as the output is json.

Rules-Based

Because we leverage the Python rule-engine package as a dependency, users can create a rules_actions.json file in their root directory. Users can create as many rules as they need, modifying one or more cvss vector metrics per rule.

Requirements
  • Python 3.6 or higher

  • A working knowledge of CVSS calcuation. You can reference the calculator at

Installation

You can find the package at pypi.org https://pypi.org/project/cvss-rescore/

To install, simply run ‘pip install cvss-rescore’ from the command line

Documentation

You can get the current documentation at https://cvss-rescore.readthedocs.io/en/latest/

Dependencies
Note

This project has been set up using PyScaffold 4.3.1. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

cvss_rescore-0.0.4.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

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

cvss_rescore-0.0.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file cvss_rescore-0.0.4.tar.gz.

File metadata

  • Download URL: cvss_rescore-0.0.4.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for cvss_rescore-0.0.4.tar.gz
Algorithm Hash digest
SHA256 30f8d19a01b71e729160c224eb6c10b39c77ba74c170b94086759f638a2c03a0
MD5 b01dd73c30aba33b56b6d78736f3822e
BLAKE2b-256 57288599ffb2b4671d6b2dfe514395a427b1b86c494f1c6d023577d20a296c69

See more details on using hashes here.

File details

Details for the file cvss_rescore-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cvss_rescore-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for cvss_rescore-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d5077820faa32e6abf1f557aff5afd5ee8724fd08e583b25e456820c5ca39165
MD5 27a0ae364b55d8e2a58207f399457f6e
BLAKE2b-256 32d62deb3eb1197f392a42273965f71b55c3ddae7d300f15ca3dee93d6fd7632

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