forked from KelvinTegelaar/CIPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBECview.html
357 lines (336 loc) · 16.2 KB
/
BECview.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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<main>
<header class="page-header page-header-compact page-header-light border-bottom bg-white mb-4">
<div class="container-xl px-4">
<div class="page-header-content">
<div class="row align-items-center justify-content-between pt-3">
<div class="col-auto mb-3">
<h1 class="page-header-title">
<div class="page-header-icon"><i data-feather="user-plus"></i></div>
Business Email Compromise
</h1>
</div>
<div class="col-12 col-xl-auto mb-3">
<a class="btn btn-sm btn-light text-primary" href="index.html?page=users">
<i class="me-1" data-feather="arrow-left"></i>
Back to Users
</a>
</div>
</div>
</div>
</div>
</header>
<!-- Main page content-->
<div class="container-fluiid px-4">
<div class="row">
<div class="col-4">
<div class="card">
<div class="card-body">
<!-- Buttons -->
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="h2">Actions</div>
</div>
<div class="ms-2"><i class="fas fa-cogs fa-2x text-gray-200"></i>
</div>
</div>
<div class="d-flex align-items-center">
<div class="flex-grow-1" id="ActionDetails">
<strong>Loading Data: </strong>
<nothing id="loader">
<div class="spinner-border text-primary" role="status">
<span class="sr-only"></span>
</div>
</nothing>
<br /><br />
Use this information as a guide to check if a tenant or e-mail address might have been
compromised. All this data is
retrieved from the last 7 days of logs.<br<><br>
<br<><br>If you need more extensive information, run
the
<a href="https://cloudforensicator.com/" target="_blank">HAWK</a> tool to
investigate further.
<br><br>
If you believe this user to be compromised. Hit the button below to execute
the
following tasks:
<li>Block user signin</li>
<li>Reset user password</li>
<li>Disconnect all current sessions</li>
<li>Disable all inbox rules for the user</li>
<form name=Remediate id="Remediate">
<input type="hidden" name="UserID" value="" id="UserID">
<input type="hidden" name="TenantFilter" value="" id="TenantFilter">
</form>
<button class="btn btn-primary"
onclick='PostForm("Remediate","api/ExecBECRemediate")'
type="button">Remediate
User</button>
</div>
</div>
</div>
</div>
<!-- Last Login Times -->
<br />
<!-- Conditional Access -->
<div class="card">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="h2">Recently Added Rules (Tenant)</div>
</div>
<div class="ms-2"><i class="fas fa-pencil-ruler fa-2x text-gray-200"></i>
</div>
</div>
<div class="d-flex align-items-center">
<div class="flex-grow-1" id="ConditionalAccessDetails">
<table class="table table-responsive" id="Rules">
<thead>
<tr>
<th>Creator IP</th>
<th>Rule Name</th>
<th>Created on</th>
<th>Created for</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="col-4">
<!-- Conditional Access -->
<div class="card">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="h2">Devices (User)</div>
</div>
<div class="ms-2"><i class="fas fa-tablet-alt fa-2x text-gray-200"></i>
</div>
</div>
<div class="d-flex align-items-center">
<div class="flex-grow-1" id="ConditionalAccessDetails">
<table class="table table-responsive" id="Devices">
<thead>
<tr>
<th>Device Model</th>
<th>First Sync Time</th>
<th>Device User Agent</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
<br />
<br />
<div class="card">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="h2">Last Logon Details (User)</div>
</div>
<div class="ms-2"><i class="fas fa-clock fa-2x text-gray-200"></i>
</div>
</div>
<div class="d-flex align-items-center">
<div class="flex-grow-1" id="LastLoginDetails">
<table class="table table-responsive" id="LastUserLogons">
<thead>
<tr>
<th>App</th>
<th>Date Time</th>
<th>Error code</th>
<th>Details</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
<br />
</div>
</div>
<br />
<br />
<div class="row">
<div class="col-8">
<!-- User Devices -->
<div class="card border-start-lg border-start-info h-100">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="h2">Newly created users (Tenant)</div>
</div>
<div class="ms-2"><i class="fas fa-users fa-2x text-gray-200"></i>
</div>
</div>
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<table class="table table-responsive" id="NewUsers">
<thead>
<tr>
<th>Username</th>
<th>Date</th>
<th>By</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="row">
<div class="col-8">
<!-- User Devices -->
<div class="card border-start-lg border-start-info h-100">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="h2">Password Changes (Tenant)</div>
</div>
<div class="ms-2"><i class="fas fa-key fa-2x text-gray-200"></i>
</div>
</div>
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<table class="table table-responsive" id="Passwords">
<thead>
<tr>
<th>Username</th>
<th>Date</th>
<th>Change Type</th>
<th>By</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="row">
<div class="col-8">
<!-- User Groups -->
<div class="card border-start-lg border-start-info h-100">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="h2">Mailbox Permissions changes (Tenant)</div>
</div>
<div class="ms-2"><i class="fas fa-mail-bulk fa-2x text-gray-200"></i>
</div>
</div>
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<table class="table table-responsive" id="Permissions">
<thead>
<tr>
<th>Operation</th>
<th>Executed By</th>
<th>Executed On</th>
<th>Permissions</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="row">
<div class="col-8">
<!-- User Sign In -->
<div class="card border-start-lg border-start-info h-100">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="h2">Application Changes (Tenant)</div>
</div>
<div class="ms-2"><i class="fas fa-calendar-check fa-2x text-gray-200"></i>
</div>
</div>
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<table class="table table-responsive" id="OauthChanges">
<thead>
<tr>
<th>Type</th>
<th>User</th>
<th>Application</th>
<th>Result</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div><br />
<div class="row">
<div class="col-8">
<!-- User Sign In -->
<div class="card border-start-lg border-start-info h-100">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="h2">Mailbox Logons (Tenant)</div>
</div>
<div class="ms-2"><i class="fas fa-sign-in-alt fa-2x text-gray-200"></i>
</div>
</div>
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<table class="table table-responsive" id="Logons">
<thead>
<tr>
<th>Client IP</th>
<th>User ID</th>
<th>Client User Agent</th>
<th>Result Status</th>
<th>Date</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
</div>
<button class="btn btn-primary" id="PopModal" type="button" data-bs-toggle="modal" data-bs-target="#exampleModal"
style="display:none;"></button>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Results</h5>
</div>
<div class="modal-body">
<section id="APIContent">
<div class="spinner-border text-primary" role="status">
<span class="sr-only"></span>
</div></span>
</section>
</div>
<div class="modal-footer"><button class="btn btn-secondary" type="button"
data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</main>
<script src="js/BECList.js"></script>