-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcameraobscura.xml
309 lines (309 loc) · 13.9 KB
/
cameraobscura.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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<form>
<label>Camera Obscura Dash</label>
<fieldset submitButton="false">
<input type="time" token="sharedtime" searchWhenChanged="true">
<label>Timerange</label>
<default>
<earliest>-24h@h</earliest>
<latest>now</latest>
</default>
</input>
</fieldset>
<row>
<panel>
<viz type="missile_map.missile_map">
<search>
<query>source="/home/skringle/CameraObscura/obscura.json" | spath eventId | search eventId="obscura.http.request"
| dedup src_ip
| iplocation src_ip
| rename lat as "start_lat", lon as "start_lon"
| eval end_lat=case(host=="v2201912109582104170", "49.0047")
| eval end_lon=case(host=="v2201912109582104170", "8.3858")
| eval color=case(host=="v2201912109582104170", "#24bc9f")
| table start_lat,start_lon,end_lat,end_lon,color</query>
<earliest>$sharedtime.earliest$</earliest>
<latest>$sharedtime.latest$</latest>
</search>
<option name="drilldown">none</option>
<option name="height">510</option>
<option name="missile_map.missile_map.lineThickness">1</option>
<option name="missile_map.missile_map.mapLatitude">22</option>
<option name="missile_map.missile_map.mapLongitude">10</option>
<option name="missile_map.missile_map.mapZoom">2.0</option>
<option name="missile_map.missile_map.staticColor">#FF0000</option>
<option name="refresh.display">progressbar</option>
</viz>
</panel>
<panel>
<chart>
<title>Request distribution</title>
<search>
<query>index=honeypots source="/home/skringle/CameraObscura/obscura.json"
| stats count by message
| sort - count</query>
<earliest>$sharedtime.earliest$</earliest>
<latest>$sharedtime.latest$</latest>
</search>
<option name="charting.chart">pie</option>
<option name="charting.drilldown">none</option>
<option name="height">485</option>
<option name="refresh.display">progressbar</option>
</chart>
</panel>
</row>
<row>
<panel>
<chart>
<title>User Agent stats</title>
<search>
<query>index=honeypots source="/home/skringle/CameraObscura/obscura.json"
| stats count by useragent
| sort - count</query>
<earliest>$sharedtime.earliest$</earliest>
<latest>$sharedtime.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.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">pie</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="height">452</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>
<panel>
<chart>
<title>URL resource path stats</title>
<search>
<query>index=honeypots source="/home/skringle/CameraObscura/obscura.json"
| stats count by get
| sort - count</query>
<earliest>$sharedtime.earliest$</earliest>
<latest>$sharedtime.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.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">pie</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="height">460</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>
<table>
<title>Latest connections</title>
<search>
<query>index=honeypots source="/home/skringle/CameraObscura/obscura.json"| spath eventId | search eventId="obscura.http.request"
| dedup src_ip
| iplocation src_ip | lookup local=t asn ip AS src_ip
| rename src_ip as "Source IP" autonomous_system as "AS Name" asn as "AS"
| eval Time=strftime(_time,"%d.%m.%y %H:%M:%S")
| table Time, "Source IP", Country, AS, "AS Name"
| head 10</query>
<earliest>$sharedtime.earliest$</earliest>
<latest>$sharedtime.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">10</option>
<option name="drilldown">cell</option>
<option name="refresh.display">progressbar</option>
<drilldown>
<condition field="Count"></condition>
<condition field="Source IP">
<link target="_blank">https://www.shodan.io/host/$click.value2$</link>
</condition>
<condition field="Country"></condition>
<condition field="AS">
<link target="_blank">https://viz.greynoise.io/query/?gnql=metadata.asn%3AAS$click.value2$</link>
</condition>
<condition field="AS Name"></condition>
</drilldown>
</table>
</panel>
<panel>
<chart>
<title>HTTP actions</title>
<search>
<query>index=honeypots source="/home/skringle/CameraObscura/obscura.json" | stats count by eventId</query>
<earliest>$sharedtime.earliest$</earliest>
<latest>$sharedtime.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.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">pie</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="height">350</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>
<table>
<title>Latest file uploads</title>
<search>
<query>index=honeypots source="/home/skringle/CameraObscura/obscura.json" eventId="obscura.http.upload"
| table src_ip, session, url, shasum, host, _time, message
| join shasum
[search index=honeypots source="/home/skringle/CameraObscura/obscura.json" eventId="obscura.http.upload"
| table shasum
| stats count by shasum ]
| dedup shasum sortby - _time
| table _time, count, shasum, src_ip,
| rename count AS "# times seen" shasum AS "SHA256 Hash" _time AS "Timestamp" src_ip AS "Source IP" | eval Time=strftime(Timestamp,"%d.%m.%y %H:%M:%S") | fields - Timestamp
| table Time, "# times seen", "SHA256 Hash", "Source IP"
| sort - Time</query>
<earliest>$sharedtime.earliest$</earliest>
<latest>$sharedtime.latest$</latest>
</search>
<option name="count">10</option>
<option name="drilldown">cell</option>
<drilldown>
<condition field="URL"></condition>
<condition field="SHA256 Hash">
<link target="_blank">https://www.virustotal.com/gui/file/$click.value2$/detection</link>
</condition>
<condition field="Source IP">
<link target="_blank">https://www.shodan.io/host/$click.value2$</link>
</condition>
<condition field="Sensor"></condition>
<condition field="Session"></condition>
<condition field="Time"></condition>
</drilldown>
</table>
</panel>
<panel>
<table>
<title>Login Pairs</title>
<search>
<query>index=honeypots source="/home/skringle/CameraObscura/obscura.json"| spath eventId | search eventId="obscura.http.login"
| stats count by username, password</query>
<earliest>$sharedtime.earliest$</earliest>
<latest>$sharedtime.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">20</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
<row>
<panel>
<event>
<search>
<query>source="/home/skringle/CameraObscura/obscura.json"</query>
<earliest>$sharedtime.earliest$</earliest>
<latest>$sharedtime.latest$</latest>
</search>
<option name="list.drilldown">none</option>
</event>
</panel>
<panel>
<table>
<title>Message GET paths</title>
<search>
<query>source="/home/skringle/CameraObscura/obscura.json"
| dedup src_ip, message
| eval Time=strftime(_time,"%d.%m.%y %H:%M:%S")
| table Time, src_ip, message
| sort - Time</query>
<earliest>$sharedtime.earliest$</earliest>
<latest>$sharedtime.latest$</latest>
</search>
<option name="count">30</option>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
</row>
</form>