Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 2119a24

Browse files
authored
Update Episode 4 - Lets Hunt.csl
1 parent f8d1cb1 commit 2119a24

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Webcasts/TrackingTheAdversary/Episode 4 - Lets Hunt.csl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ and ProcessCommandLine contains 'UpdatedPolicy_SOW_07182020.doc'
100100
and AccountObjectId == 'ab653b2a-d23e-49df-9493-c26590f8f319'
101101

102102

103-
// ...and we can see that Barbara launched it. Process ID 10460
103+
// ...and we can see that Barbara launched it. Process ID 13988
104104

105105

106106
// Looks like Barbara used Word to open it a couple times...
@@ -109,7 +109,7 @@ and AccountObjectId == 'ab653b2a-d23e-49df-9493-c26590f8f319'
109109
search in (DeviceProcessEvents, DeviceNetworkEvents, DeviceFileEvents, DeviceRegistryEvents, DeviceEvents )
110110
Timestamp > ago(19d)
111111
and DeviceId == '87da11a9257988b2fc090c9f05c72f6453bc53de'
112-
and InitiatingProcessId == 8060
112+
and InitiatingProcessId == 13988
113113
| where RegistryKey !contains @'\Software\Microsoft\Office\16.0\Common\Internet\Server Cache' // Filtering out cache registry key changes
114114
| order by Timestamp asc
115115
| project-reorder Timestamp, $table, ActionType, RemoteIP, RemoteUrl, FileName, SHA256, RegistryKey, RegistryValueData, ActionType, AdditionalFields
@@ -178,11 +178,11 @@ EricGAlerts
178178
| join AlertEvidence on AlertId // Join back on AlertEvidence to get other evidence
179179
| join kind = leftouter (
180180
DeviceInfo
181-
| summarize DeviceName = any(DeviceName) by DeviceId) on DeviceId // This creates a mapping table between DeviceId and DeviceName since we only have ID in AlertEvidence
182-
| extend DomainAndAccount = strcat(AccountDomain, '\\', AccountName)
183-
| summarize Timestamp = min(Timestamp)
184-
, Device = make_set_if(DeviceName, isnotempty(DeviceName)
185-
)
181+
| summarize DeviceName = any(DeviceName) by DeviceId
182+
) on DeviceId // This creates a mapping table between DeviceId and DeviceName since we only have ID in AlertEvidence
183+
| extend DomainAndAccount = strcat(AccountDomain, '\\', AccountName)
184+
| summarize Timestamp = min(Timestamp)
185+
, Device = make_set_if(DeviceName, isnotempty(DeviceName))
186186
, SHA1 = make_set_if(SHA1,isnotempty(SHA1))
187187
, SHA256 = make_set_if(SHA256, isnotempty(SHA256))
188188
, RemoteIP = make_set_if(RemoteIP, isnotempty(RemoteIP))

0 commit comments

Comments
 (0)