-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquery_list.csv
More file actions
We can make this file beautiful and searchable if this error is corrected: It looks like row 15 should actually have 2 columns, instead of 4 in line 14.
21 lines (21 loc) · 2.64 KB
/
query_list.csv
File metadata and controls
21 lines (21 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
vulnCount,"MATCH (n:vulnerability) RETURN count(n)"
highSevVulnCount,"MATCH (n:vulnerability) WHERE n.database_specific_severity = 'HIGH' RETURN count(n) AS nodeCount"
modSevVulnCount,"MATCH (n:vulnerability) WHERE n.database_specific_severity = 'MODERATE' RETURN count(n) AS nodeCount"
lowSevVulnCount,"MATCH (n:vulnerability) WHERE n.database_specific_severity = 'LOW' RETURN count(n) AS nodeCount"
totalComponentCount,"MATCH (n:package) RETURN count(n)"
SBOMcomponentCount,"MATCH (n:package) WHERE n.source = 'SBOM' RETURN count(n)"
SCAcomponentCount,"MATCH (n:package) WHERE n.source = 'SCA' RETURN count(n)"
totalOtherAffectedPackages,"MATCH (n:package_version) RETURN count(n)"
totalVulnerabilityRelationCount,"MATCH ()-[r:vulnerability]->() RETURN count(r) AS num_vuln_relationships;"
fromComponentVulnerabilityRelationPerEachVulnCount,"MATCH (n:package)-[r:vulnerability]->(n2:vulnerability) WITH n2, count(r) AS num_links RETURN num_links ORDER BY num_links DESC;"
fromOtherAffectedVulnerabilityRelationCountPerVuln,"MATCH (n:package_version)-[r:vulnerability]->(n2:vulnerability) WITH n2, count(r) AS num_links RETURN num_links ORDER BY num_links DESC;"
dependencyRelationCount,"MATCH ()-[r:DEPENDENCY]->() RETURN count(r) AS num_dependency_relationships;"
shortestPath2eachVuln,"MATCH (start:root), (end:vulnerability) MATCH path = shortestPath((start)-[*]->(end)) RETURN length(path);"
directComponentCount,"MATCH (:root)-[]->(neighbor) RETURN count(DISTINCT neighbor) AS num_direct_connections;"
distinctpathcount, MATCH (r:root) MATCH path = (r)-[:DEPENDENCY *]->(c:package)-[:vulnerability ]->(v:vulnerability) WHERE v.database_specific_severity IN ['HIGH'] WITH c,v,count (path) AS path_count RETURN path_count
vulnsWithAvailableFix, MATCH (c:package)-[:vulnerability] -> ( v:vulnerability) MATCH (p:package_version)-[e:event]->(v) WHERE e.predicate = 'event_fixed_version' WITH DISTINCT v.id as vulns RETURN COUNT(vulns)
shortestPathCritical,"MATCH (r:root), (v:vulnerability) WHERE v.database_specific_severity = 'CRITICAL' MATCH path = shortestPath((r)-[*]->(v)) RETURN length(path);"
shortestPathHigh,"MATCH (r:root), (v:vulnerability) WHERE v.database_specific_severity = 'HIGH' MATCH path = shortestPath((r)-[*]->(v)) RETURN length(path);"
shortestPathMod,"MATCH (r:root), (v:vulnerability) WHERE v.database_specific_severity = 'MODERATE' MATCH path = shortestPath((r)-[*]->(v)) RETURN length(path);"
shortestPathLow,"MATCH (r:root), (v:vulnerability) WHERE v.database_specific_severity = 'LOW' MATCH path = shortestPath((r)-[*]->(v)) RETURN length(path);"
shortestPath2eachComp,"MATCH (start:root), (end:package) MATCH path = shortestPath((start)-[*]->(end)) RETURN length(path);"