CoreVuln

class pytw.core_vuln.CoreVuln(vuln_json)[source]

Core Vulnerability object.

Parameters:vuln_json – Vulnerability JSON in canonical form
get_cvss_score()[source]

:Returns the CVSS score

get_cvss_vector()[source]

:Returns the CVSS vector

get_exploits()[source]

:Returns the list of exploits

get_id()[source]

:Returns a string containing the vulnerability ID

get_last_change()[source]

:Returns the list of last changed fields

get_last_modified_datetime()[source]

:Returns the last modified date as datetime

get_patches(publisher=None)[source]

:Returns the list of patches

get_products()[source]

:Returns the list of products

get_published_datetime()[source]

:Returns the published date as datetime

get_publisher()[source]

:Returns the publisher as a string

get_rating()[source]

:Returns the rating as VulnRating enum

get_rating_as_int()[source]

:Returns the rating as an integer

get_rating_as_str()[source]

:Returns the rating as a string for display purposes

get_references()[source]

:Returns references as an array of URL strings

get_remediations(publisher=None)[source]

:Returns the list of remediations

get_summary()[source]

:Returns a string containing the vulnerability summary

get_title()[source]

:Returns a string containing the vulnerability title

get_vuln_types()[source]

:Returns an array containing strings of vulnerability types

is_new()[source]
:Returns True if this vulnerability is newly discovered
False if it has been updated atleast once
to_json()[source]

:Returns JSON representation of the object