Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Asset-All-Vuln-Proof #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions sql-query-export/Asset-All-Vuln-Proof
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- asset inventorty with hostnames and its associated vuln with proof
-- asset_name vulnerability_id vulnerability_title severity_level cvss_score cve_id proof_of_vulnerability date_published
-- Copy the SQL query below

SELECT
da.host_name AS asset_name,
dv.vulnerability_id AS vulnerability_id,
dv.title AS vulnerability_title,
dv.severity AS severity_level,
dv.cvss_score AS cvss_score,
nexpose_id AS CVE_ID,
proof AS proof_of_vulnerability,
dv.date_published AS date_published
FROM fact_asset_vulnerability_instance favi
JOIN dim_asset da
ON favi.asset_id = da.asset_id
JOIN dim_vulnerability dv
ON favi.vulnerability_id = dv.vulnerability_id
ORDER BY da.host_name, dv.severity DESC;