This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsplunk-dashboard.xml
282 lines (282 loc) · 14.9 KB
/
splunk-dashboard.xml
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<dashboard theme="dark">
<label>BlackCat Vulnerabilities</label>
<description>Github Dependency Vulnerabilities</description>
<row>
<panel>
<title>Total Finds Over Time</title>
<chart>
<search>
<query>index="blackcat" | search dismissed_reason=null | spath run_id| spath severity |spath "advisory.id"|rename "advisory.id" as advisory_id |spath manifest_file | eval _time=run_id |eval vid=manifest_file + ";" + advisory_id + ";" + repo_url|timechart dc(vid) as open_vulns span=1d| fields + vid open_vulns _time |timechart sum(open_vulns) as "Open Vulnerabilities" span=1d</query>
<earliest>0</earliest>
<latest></latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
<option name="charting.axisTitleX.text">Date</option>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.text">Open Vulns</option>
<option name="charting.axisTitleY.visibility">visible</option>
<option name="charting.axisTitleY2.visibility">visible</option>
<option name="charting.axisX.abbreviation">none</option>
<option name="charting.axisX.scale">linear</option>
<option name="charting.axisY.abbreviation">none</option>
<option name="charting.axisY.scale">linear</option>
<option name="charting.axisY2.abbreviation">none</option>
<option name="charting.axisY2.enabled">0</option>
<option name="charting.axisY2.scale">inherit</option>
<option name="charting.chart">line</option>
<option name="charting.chart.bubbleMaximumSize">50</option>
<option name="charting.chart.bubbleMinimumSize">10</option>
<option name="charting.chart.bubbleSizeBy">area</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.showDataLabels">none</option>
<option name="charting.chart.sliceCollapsingThreshold">0.01</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.chart.style">shiny</option>
<option name="charting.drilldown">none</option>
<option name="charting.layout.splitSeries">0</option>
<option name="charting.layout.splitSeries.allowIndependentYRanges">0</option>
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
<option name="charting.legend.mode">standard</option>
<option name="charting.legend.placement">right</option>
<option name="charting.lineWidth">2</option>
<option name="refresh.display">progressbar</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
</chart>
</panel>
</row>
<row>
<panel>
<chart>
<title>Vulnerabilities By Generic Severity</title>
<search>
<query>index="blackcat" | spath run_id | eventstats max(run_id) as MaxRunId | where run_id=MaxRunId | search dismissed_reason=null | spath severity | fields + severity| top limit=5 severity</query>
<earliest>0</earliest>
<latest></latest>
</search>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.visibility">visible</option>
<option name="charting.axisTitleY2.visibility">visible</option>
<option name="charting.chart">pie</option>
<option name="charting.chart.rangeValues">[0,30,70,100]</option>
<option name="charting.chart.style">minimal</option>
<option name="charting.drilldown">none</option>
<option name="charting.legend.labels">[MODERATE,HIGH,CRITICAL,LOW]</option>
<option name="charting.seriesColors">[0xfd8c00, 0xdc0000, 0x780000, 0xfdc500]</option>
<option name="charting.legend.placement">right</option>
<option name="height">385</option>
<option name="refresh.display">progressbar</option>
<option name="trellis.enabled">0</option>
</chart>
</panel>
<panel>
<chart>
<title>Open Dependency Vulnerabilities Count by Repo (Top Ten)</title>
<search>
<query>index="blackcat" | spath run_id | eventstats max(run_id) as MaxRunId | where run_id=MaxRunId | search dismissed_reason=null |spath severity | spath repo_url | fields + repo_url severity | eval repo=substr(repo_url, 20) |top repo limit=20 by severity |rename count as "Open Vulnerabilities"</query>
<earliest>0</earliest>
<latest></latest>
</search>
<option name="charting.axisTitleX.visibility">collapsed</option>
<option name="charting.axisTitleY.visibility">collapsed</option>
<option name="charting.axisTitleY2.visibility">collapsed</option>
<option name="charting.chart">column</option>
<option name="charting.chart.showDataLabels">all</option>
<option name="charting.chart.sliceCollapsingThreshold">0.015</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.drilldown">none</option>
<option name="charting.seriesColors">[0xFF0000]</option>
<option name="charting.layout.splitSeries">0</option>
<option name="charting.legend.placement">none</option>
<option name="height">386</option>
<option name="refresh.display">progressbar</option>
<option name="trellis.enabled">1</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
</chart>
</panel>
</row>
<row>
<panel>
<chart>
<title>Generic Severity Per Run</title>
<search>
<query>index="blackcat" | search dismissed_reason=null | spath run_id| spath severity |spath "advisory.id" |rename "advisory.id" as advisory_id |spath manifest_file |eval vid=manifest_file + ";" +advisory_id + ";" + repo_url| fields + vid severity run_id | eval _time=run_id |timechart dc(vid) as "Open Vulnerabilities" by "severity"</query>
<earliest>0</earliest>
<latest></latest>
</search>
<!-- critical, high, low, moderate -->
<!-- yellow, orange, red, dark red-->
<!-- 0x780000, 0xdc0000, 0xfdc500, 0xfd8c00 -->
<option name="charting.seriesColors">[0x780000, 0xdc0000, 0xfdc500, 0xfd8c00]</option>
<option name="charting.axisTitleX.text">Run Date</option>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.visibility">visible</option>
<option name="charting.axisTitleY2.visibility">visible</option>
<option name="charting.chart">line</option>
<option name="charting.drilldown">none</option>
<option name="charting.legend.placement">right</option>
<option name="height">381</option>
<option name="refresh.display">progressbar</option>
<option name="trellis.enabled">0</option>
</chart>
</panel>
<panel>
<table>
<title>Most Vulnerable Repos</title>
<search>
<query>index="blackcat" | spath run_id | eventstats max(run_id) as MaxRunId | where run_id=MaxRunId | search dismissed_reason=null | spath repo_url | fields + repo_url | eval repo=substr(repo_url, 20) |stats count(repo_url) as "Open Vulnerabilities" by repo |sort -"Open Vulnerabilities"</query>
<earliest>0</earliest>
<latest></latest>
</search>
<option name="count">10</option>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
</row>
<row>
<panel>
<chart>
<title>Vulnerabilities By Packages Per Run</title>
<search>
<query>index="blackcat"| search dismissed_reason=null | spath run_id| spath "package.name" |spath "advisory.id" |rename "advisory.id" as advisory_id |spath manifest_file | eval _time=run_id |eval vid=manifest_file + ";" + advisory_id + ";" + repo_url | fields + "package.name" vid _time |timechart dc(vid) as "Open Vulnerabilities" by "package.name"</query>
<earliest>0</earliest>
<latest></latest>
</search>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
<option name="charting.axisTitleX.text">Run Date</option>
<option name="charting.axisY.scale">linear</option>
<option name="charting.chart">line</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.showDataLabels">minmax</option>
<option name="charting.drilldown">none</option>
<option name="charting.layout.splitSeries">0</option>
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
<option name="height">268</option>
<option name="refresh.display">progressbar</option>
</chart>
</panel>
</row>
<row>
<panel>
<title>Top Repos With New Vulnerabilities (Last Seven Days)</title>
<chart>
<search>
<query>index="blackcat" earliest=-1d
| fieldformat run_id = strftime(run_id, "%Y-%m-%d UTC")
| stats count by run_id, repo_url
| rename count as "today_count"
| join type=outer repo_url [ search
index="blackcat" earliest=-8d latest=-7d
| fieldformat run_id = strftime(run_id, "%Y-%m-%d UTC")
| stats count by run_id, repo_url
| rename count as "seven_days_ago_count"
]
| fillnull seven_days_ago_count value=0
| eval seven_day_delta = today_count - seven_days_ago_count
| sort - seven_day_delta
| head 10
| eval repo=substr(repo_url, 20)
| fields - seven_days_ago_count, today_count, run_id, repo_url</query>
<earliest>-30m@m</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.visibility">visible</option>
<option name="charting.axisTitleY2.visibility">visible</option>
<option name="charting.axisX.abbreviation">none</option>
<option name="charting.axisX.scale">linear</option>
<option name="charting.axisY.abbreviation">none</option>
<option name="charting.axisY.scale">linear</option>
<option name="charting.axisY2.abbreviation">none</option>
<option name="charting.axisY2.enabled">0</option>
<option name="charting.axisY2.scale">inherit</option>
<option name="charting.chart">column</option>
<option name="charting.chart.bubbleMaximumSize">50</option>
<option name="charting.chart.bubbleMinimumSize">10</option>
<option name="charting.chart.bubbleSizeBy">area</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.showDataLabels">all</option>
<option name="charting.chart.sliceCollapsingThreshold">0.01</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.chart.style">shiny</option>
<option name="charting.drilldown">none</option>
<option name="charting.layout.splitSeries">0</option>
<option name="charting.layout.splitSeries.allowIndependentYRanges">0</option>
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
<option name="charting.legend.mode">standard</option>
<option name="charting.legend.placement">right</option>
<option name="charting.lineWidth">2</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
<option name="charting.seriesColors">[0xFF0000]</option>
</chart>
</panel>
<panel>
<title>Top Repos Resolving Vulnerabilities (Last Seven Days)</title>
<chart>
<search>
<query>index="blackcat" earliest=-8d latest=-7d
| fieldformat run_id = strftime(run_id, "%Y-%m-%d UTC")
| stats count by run_id, repo_url
| rename count as "seven_days_ago_count"
| join type=outer repo_url [ search
index="blackcat" earliest=-1d
| fieldformat run_id = strftime(run_id, "%Y-%m-%d UTC")
| stats count by run_id, repo_url
| rename count as "today_count"
]
| fillnull today_count value=0
| eval seven_day_delta = today_count - seven_days_ago_count
| sort seven_day_delta
| head 10
| eval repo=substr(repo_url, 20)
| fields - seven_days_ago_count, today_count, run_id, repo_url</query>
<earliest>-30m@m</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.visibility">visible</option>
<option name="charting.axisTitleY2.visibility">visible</option>
<option name="charting.axisX.abbreviation">none</option>
<option name="charting.axisX.scale">linear</option>
<option name="charting.axisY.abbreviation">none</option>
<option name="charting.axisY.scale">linear</option>
<option name="charting.axisY2.abbreviation">none</option>
<option name="charting.axisY2.enabled">0</option>
<option name="charting.axisY2.scale">inherit</option>
<option name="charting.chart">column</option>
<option name="charting.chart.bubbleMaximumSize">50</option>
<option name="charting.chart.bubbleMinimumSize">10</option>
<option name="charting.chart.bubbleSizeBy">area</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.showDataLabels">all</option>
<option name="charting.chart.sliceCollapsingThreshold">0.01</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.chart.style">shiny</option>
<option name="charting.drilldown">none</option>
<option name="charting.layout.splitSeries">0</option>
<option name="charting.layout.splitSeries.allowIndependentYRanges">0</option>
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
<option name="charting.legend.mode">standard</option>
<option name="charting.legend.placement">right</option>
<option name="charting.lineWidth">2</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
<option name="charting.seriesColors">[0x65A637]</option>
</chart>
</panel>
</row>
</dashboard>