forked from splunk-soar-connectors/recordedfuture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalert_lookup_results.html
307 lines (280 loc) · 9.24 KB
/
alert_lookup_results.html
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
{% extends 'widgets/widget_template.html' %}
{% load custom_template %}
{% block custom_title_prop %}{% if title_logo %}style="background-size: auto 60%; background-position: 50%; background-repeat: no-repeat; background-image: url('/app_resource/{{ title_logo }}');"{% endif %}{% endblock %}
{% block title1 %}{{ title1 }}{% endblock %}
{% block title2 %}{{ title2 }}{% endblock %}
{% block custom_tools %}
{% endblock %}
{% block widget_content %} <!-- Main Start Block -->
<!-- File: alert_search_results.html
Copyright (c) Recorded Future, Inc, 2019-2024
This unpublished material is proprietary to Recorded Future. All
rights reserved. The methods and techniques described herein are
considered trade secrets and/or confidential. Reproduction or
distribution, in whole or in part, is forbidden except by express
written permission of Recorded Future.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language governing permissions
and limitations under the License.
-->
<!--
Style elements are defined in a separate file, named below,
and will be merged during compilation:
recordedfuture_style.css -->
<style>
/* || RECORDED FUTURE COLOR */
:root{
--RecordedFutureBlue: #2673B3;
--CriticalityHigh: #cf0a2c;
--CriticalityModerate: #FFCE00;
--CriticalityLow: #e1e6eb;
}
a:hover {
text-decoration: underline;
}
.rf-widget {
overflow: auto;
width: 100%;
height: 100%;
padding-left:10px;
padding-right:10px;
}
.rf-box {
width: 750px;
padding: 5px;
margin: 0 5px;
font-size: 12px;
}
.highlighted {
font-weight: 700;
}
.non-highlighted {
font-size: x-small;
}
.rf-box th {
text-align: left;
}
.rf-table {
width: 98%;
border-collapse: collapse;
margin: 5px 5px 5px 0;
padding: 10px;
font-size: 12px;
}
td.rf-criticality-level-3, td.rf-criticality-level-4,
td.rf-criticality-level-5 {
background: var(--CriticalityHigh);
width: 0 !important;
padding: 0 2px 0 3px !important;
}
td.rf-criticality-level-2 {
background: var(--CriticalityModerate);
width: 0 !important;
padding: 0 2px 0 3px !important;
}
td.rf-criticality-level-1 {
background: var(--CriticalityLow);
width: 0 !important;
padding: 0 2px 0 3px !important;
}
.rf-table td {
vertical-align: text-top;
padding: 10px;
}
td.rf-timestamp {
min-width: 13ex !important;
}
.rf-hover-info {
font-weight: normal;
}
.rf-hover-info:hover {
font-weight: bold;
}
.rf-full-width-box {
width: 100%;
border-bottom: 1px solid #3c444d;
padding: 5px;
margin: 0 5px;
font-size: 12px;
}
.rf-circle {
height: 10px;
width: 10px;
border-radius: 50%;
}
.rf-alert-panel {
width: 96%;
margin-left: 2%;
border: 1px solid #3c444d;
padding: 10px;
}
.rf-chip-box {
border-radius: 10px;
background-color: darkred;
padding: 3px;
text-align: center;
}
.rf-priority-level-High {
background: var(--CriticalityHigh);
}
.rf-priority-level-Moderate {
background: var(--CriticalityModerate);
}
.rf-priority-level-Informational {
background: var(--CriticalityLow);
}
.rf-criticality-level-High {
background: var(--CriticalityHigh);
}
.rf-criticality-level-Medium {
background: var(--CriticalityModerate);
}
.rf-criticality-level-Low {
background: var(--CriticalityLow);
}
.rf-playbook-alert-screenshot {
margin-bottom: 20px;
width: 100%;
height: 720px;
}
.rf-playbook-alert-data-row {
display: flex;
align-items: center;
margin: 0;
gap: 20px;
margin-bottom: 5px;
}
.rf-playbook-alert-dns-data-row {
display: flex;
align-items: center;
margin: 0;
gap: 5px;
}
.rf-playbook-alert-panel-title {
margin-left: 2%;
}
.rf-playbook-alert-whois-data-row {
display: flex;
align-items: center;
gap: 20px;
}
.rf-playbook-alert-data-row-title {
width: 10%;
}
.rf-playbook-alert-evidence-data-row-title {
width: 20%;
}
</style>
<div class="rf-widget"> <!-- Main Div -->
<!------------------- For each Result ---------------------->
{% for result in results %}
{% if not result.data %}
<h4>No data found</h4>
{% else %}
{% for alert in result.data %}
<div class="rf-box">
<table class="rf-table">
<tr>
<td colspan="3">
<span class="non-highlighted">Alert (Alert ID)</span><br/>
{{ alert.title }}
(<a href="javascript:;" onclick="context_menu(this, [{'contains': ['recordedfuture alert id'], 'value': '{{ alert.id }}' }], 0, {{ container.id }}, null, false);">
<span class="highlighted">{{ alert.id }})</span> <span class="fa fa-caret-down" style="font-size: smaller;"></span>
</a>
</td>
<td>
<span class="non-highlighted">Links to Recorded Future</span><br/>
<a href="{{ alert.url }}" target="new" >Alert</a> /
<a href="{{ alert.rule.url }}" target="new">Alert Rule</a>
</td>
</tr>
<tr>
<td>
<span class="non-highlighted">Triggered</span><br/>
{{ alert.triggered|slice:"0:10" }}
</td>
<td>
<span class="non-highlighted">Status</span><br/>
{{ alert.review.status }}
</td>
<td>
<span class="non-highlighted">Assignee</span><br/>
{{ alert.review.assignee }}
</td>
<td>
<span class="non-highlighted">Alerting Rule (Rule ID)</span><br/>
{{ alert.rule.name }}
(<a href="javascript:;" onclick="context_menu(this, [{'contains': ['recordedfuture alert rule id'], 'value': '{{ alert.rule.id }}' }], 0, {{ container.id }}, null, false);">
<span class="highlighted">{{ alert.rule.id }})</span> <span class="fa fa-caret-down" style="font-size: smaller;"></span>
</td>
</tr>
<tr>
<td colspan="3">
<span class="non-highlighted">Note</span><br/>
{{ alert.review.note }}
</td>
</tr>
<tr>
<td colspan="3">
<span class="non-highlighted">Recorded Future AI Insights</span><br/>
{{ alert.ai_insights }}
</td>
</tr>
</table>
</div>
<!-- Risk Rules Triggered -->
{% if result.data.evidence %}
<div class="rf-box">
<table class="rf-table">
<tr><td colspan="4">Risk Rules Triggered</td></tr>
{% for rule in result.data.evidence|dictsortreversed:"level" %}
<tr>
<td class="rf-criticality-level-{{ rule.level }}"></td>
<td><span class="non-highlighted">Risk Rule</span> <br/>
{{ rule.rule }}
</td>
<td><span class="non-highlighted">Evidence</span> <br/>
{{ rule.description }}
</td>
<td>
<span class="non-highlighted">Timestamp</span> <br/>
<span title="{{ rule.timestamp }}">{{ rule.timestamp|slice:"0:10" }}</span>
</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
{% if alert.entities %}
{% for entity_type, entities in alert.entities.items %}
<div class="rf-box">
<table class="rf-table">
<tr><td colspan="5">{{ entity_type|upper }} Entities</td></tr>
{% for entity in entities %}
<tr>
<td>
<span class="non-highlighted">Entity</span>:
<a href="javascript:;" onclick="context_menu(this, [{'contains': ['{{ entity_type }}'], 'value': '{{ entity.entity }}' }], 0, {{ container.id }}, null, false);">
<span class="highlighted">{{ entity.entity }}</span> <span class="fa fa-caret-down" style="font-size: smaller;"></span></a><br/>
<span class="non-highlighted">Source</span>: {{ entity.source }}<br/>
<span class="non-highlighted">Authors</span>: {{ entity.authors }}<br/>
<span class="non-highlighted">Title</span>: {{ entity.title }}<br/>
<span class="non-highlighted">SourceURL</span>: {{ entity.sourceUrl }}<br/>
<span class="non-highlighted">Fragment</span>: {{ entity.fragment }}<br/>
</td>
</tr>
{% endfor %}
</table>
</div>
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</div> <!-- Main Div -->
{% endblock %} <!-- Main Start Block -->