-
Notifications
You must be signed in to change notification settings - Fork 12
/
Truvis-Threat Intelligence Windows Accounts [MAIN]
61 lines (61 loc) · 2.6 KB
/
Truvis-Threat Intelligence Windows Accounts [MAIN]
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
<form theme="dark">
<label>Truvis-Threat Intelligence Windows Accounts [MAIN]</label>
<fieldset submitButton="false">
<input type="time" token="field1">
<label></label>
<default>
<earliest>-24h@h</earliest>
<latest>now</latest>
</default>
</input>
</fieldset>
<row>
<panel>
<table>
<title>Accounts that were created and then deleted in under an hour</title>
<search>
<query>source="WinEventLog:Security" (EventCode=630 OR EventCode=4726 OR EventCode=624 OR EventCode=4720) | eval status=case(EventCode=630, "Account Deletion", EventCode=4726, "Account Deletion", EventCode=624, "Account Creation", EventCode=4720, "Account Creation") |transaction user startswith=status="Account Creation" endswith=status="Account Deletion" maxevents=2 | where duration < 3600 | table host, src_user, user, Account_Domain, _time</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
</row>
<row>
<panel>
<table>
<title>Accounts added/removed to Domain Admins and other sensitive groups.</title>
<search>
<query>source=WinEventLog:Security (EventCode=4728 OR EventCode=4729) (Group_Name="*Domain Admins*" OR Group_Name="*OtherGroup*")
| rename src_user AS "Actioned By", name as "Action Taken"
| table host "Actioned By" user "Action Taken" Group_Name Account_Domain _time
| sort - _time</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
</row>
<row>
<panel>
<table>
<title>Accounts that had their password's changed not by themselves</title>
<search>
<query>source="WinEventLog:Security" (EventCode IN ("628","627","4723","4724"))
| eval s_username = mvindex(Account_Name, 0), t_username = mvindex(Account_Name, 1), s_domain = mvindex(Account_Domain, 0), t_domain = mvindex(Account_Domain, 1)
| eval s_output = s_username."@".s_domain, t_output = t_username."@".t_domain
| where s_username!=t_username
| table host, s_output, t_output, _time</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
</row>
</form>