-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CVE command for SDK and CLI (#834)
- Loading branch information
1 parent
3a7eb7d
commit 28fb3d0
Showing
8 changed files
with
169 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
advbumpversion==1.2.0 | ||
ipython==8.18.1;python_version>='3' | ||
pre-commit==3.7.1 | ||
tox==4.15.1 | ||
tox==4.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% import "macros.txt.j2" as macros with context %} | ||
{%- if results.details %} | ||
---------------------------- | ||
<header>CVE Details</header> | ||
---------------------------- | ||
<key>CVE</key>: <value>{{ results.id }}</value> | ||
<key>Vuln Name</key>: <value>{{ results.details.vulnerability_name }}</value> | ||
<key>Vuln Description</key>: <value>{{ results.details.vulnerability_description }}</value> | ||
<key>Vendor</key>: <value>{{ results.details.vendor }}</value> | ||
<key>Product</key>: <value>{{ results.details.product }}</value> | ||
<key>CVSS Score</key>: <value>{{ results.details.cve_cvss_score }}</value> | ||
<key>Published to NIST NVD</key>: <value>{{ results.details.published_to_nist_nvd }}</value> | ||
|
||
{% if results.timeline -%} | ||
<header>Timeline Information</header> | ||
-------------------- | ||
<key>Published Date</key>: <value>{{ results.timeline.cve_published_date.split("T")[0] }}</value> | ||
<key>Last Updated Date</key>: <value>{{ results.timeline.cve_last_updated_date.split("T")[0] }}</value> | ||
<key>First Known Date</key>: <value>{{ results.timeline.first_known_published_date.split("T")[0] }}</value> | ||
<key>Added to CISA Kev Date</key>: <value>{{ results.timeline.cisa_kev_date_added.split("T")[0] }}</value> | ||
{%- endif %} | ||
|
||
{% if results.exploitation_details -%} | ||
<header>Exploitation Details</header> | ||
-------------------- | ||
<key>Attack Vector</key>: <value>{{ results.exploitation_details.attack_vector }}</value> | ||
<key>Exploit Found</key>: <value>{{ results.exploitation_details.exploit_found }}</value> | ||
<key>Exploit in KEV</key>: <value>{{ results.exploitation_details.exploitation_registered_in_kev }}</value> | ||
<key>EPSS Score</key>: <value>{{ results.exploitation_details.epss_score }}</value> | ||
{%- endif %} | ||
|
||
{% if results.exploitation_stats -%} | ||
<header>Exploitation Stats</header> | ||
------------------ | ||
<key># of Exploits</key>: <value>{{ results.exploitation_stats.number_of_available_exploits }}</value> | ||
<key># of Threat Actors</key>: <value>{{ results.exploitation_stats.number_of_threat_actors_exploiting_vulnerability }}</value> | ||
<key># of Botnets </key>: <value>{{ results.exploitation_stats.number_of_botnets_exploiting_vulnerability }}</value> | ||
{%- endif %} | ||
|
||
{% if results.exploitation_activity -%} | ||
<header>Exploitation Activity</header> | ||
--------------------- | ||
<key>Activity Seen</key>: <value>{{ results.exploitation_activity.activity_seen }}</value> | ||
<key># Benign Scanners - 1 Day</key>: <value>{{ results.exploitation_activity.benign_ip_count_1d }}</value> | ||
<key># Benign Scanners - 10 Days</key>: <value>{{ results.exploitation_activity.benign_ip_count_10d }}</value> | ||
<key># Benign Scanners - 30 Days</key>: <value>{{ results.exploitation_activity.benign_ip_count_30d }}</value> | ||
<key># Suspicious Scanners - 1 Day</key>: <value>{{ results.exploitation_activity.threat_ip_count_1d }}</value> | ||
<key># Suspicious Scanners - 10 Day</key>: <value>{{ results.exploitation_activity.threat_ip_count_10d }}</value> | ||
<key># Suspicious Scanners - 30 Day</key>: <value>{{ results.exploitation_activity.threat_ip_count_30d }}</value> | ||
{%- endif %} | ||
{% else %} | ||
Provided CVE was not found or valid. | ||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters