File size: 4,389 Bytes
85c3f44 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | {
"name": "query_findings",
"description": "Use this function to answer questions about security findings from tools, such as severities, CWE types, affected components, or file locations. Use it when asking about issues found in scans, their severity, tool origin, or impacted products.",
"tableName": "Findings",
"examples": {
"1:": {
"question": "What are the high-severity findings across all tools?",
"function": "query_findings",
"querystr": {
"columns": [
"title",
"severity_string",
"main_tool",
"logical_app"
],
"filters": [
{
"col": "severity_string",
"op": "in",
"val": [
"HIGH",
"CRITICAL"
]
}
],
"metrics": [],
"groupby": [],
"orderby": [
[
"severity_string",
true
]
],
"row_limit": 30
}
},
"2": {
"question": "How many findings exist for each product?",
"function": "query_findings",
"querystr": {
"columns": [
"logical_app"
],
"filters": [],
"metrics": [
{
"label": "finding_count",
"expressionType": "SQL",
"sqlExpression": "COUNT(*)"
}
],
"groupby": [
"logical_app"
],
"orderby": [
[
"finding_count",
true
]
],
"row_limit": 30
}
},
"3": {
"question": "Show me findings with a CVSS score above 7.",
"function": "query_findings",
"querystr": {
"columns": [
"title",
"cvssv3",
"logical_app",
"component_name"
],
"filters": [
{
"col": "cvssv3",
"op": ">",
"val": "7"
}
],
"metrics": [],
"groupby": [],
"orderby": [],
"row_limit": 30
}
},
"4": {
"question": "Which tools produce the most findings?",
"function": "query_findings",
"querystr": {
"columns": [
"main_tool"
],
"filters": [],
"metrics": [
{
"label": "total_findings",
"expressionType": "SQL",
"sqlExpression": "COUNT(*)"
}
],
"groupby": [
"main_tool"
],
"orderby": [
[
"total_findings",
true
]
],
"row_limit": 30
}
},
"5": {
"question": "What types of CWEs are most commonly reported?",
"function": "query_findings",
"querystr": {
"columns": [
"cwe_id"
],
"filters": [],
"metrics": [
{
"label": "cwe_count",
"expressionType": "SQL",
"sqlExpression": "COUNT(*)"
}
],
"groupby": [
"cwe_id"
],
"orderby": [
[
"cwe_count",
true
]
],
"row_limit": 30
}
}
}
} |