|
2 | 2 | creation_date = "2020/11/04" |
3 | 3 | integration = ["endpoint"] |
4 | 4 | maturity = "production" |
5 | | -updated_date = "2024/05/21" |
| 5 | +updated_date = "2024/11/04" |
6 | 6 |
|
7 | 7 | [transform] |
8 | 8 | [[transform.osquery]] |
@@ -39,7 +39,7 @@ of these files can occur during an intrusion, or as part of a post-intrusion pro |
39 | 39 | footprint. |
40 | 40 | """ |
41 | 41 | from = "now-9m" |
42 | | -index = ["logs-endpoint.events.process-*", "logs-endpoint.events.file-*", "endgame-*"] |
| 42 | +index = ["logs-endpoint.events.process-*", "logs-endpoint.events.file-*"] |
43 | 43 | language = "eql" |
44 | 44 | license = "Elastic License v2" |
45 | 45 | name = "Process Termination followed by Deletion" |
@@ -109,22 +109,38 @@ query = ''' |
109 | 109 | sequence by host.id with maxspan=5s |
110 | 110 | [process where host.os.type == "windows" and event.type == "end" and |
111 | 111 | process.code_signature.trusted != true and |
112 | | - not process.executable : ("C:\\Windows\\SoftwareDistribution\\*.exe", "C:\\Windows\\WinSxS\\*.exe") |
| 112 | + not process.executable like |
| 113 | + ("C:\\Windows\\SoftwareDistribution\\*.exe", |
| 114 | + "C:\\Windows\\WinSxS\\*.exe", |
| 115 | + "?:\\Windows\\Postillion\\Office\\*.exe") and |
| 116 | + not ( |
| 117 | + process.name : "infinst.exe" and process.parent.name: "dxsetup.exe" and |
| 118 | + process.parent.code_signature.subject_name == "NVIDIA Corporation" and |
| 119 | + process.parent.code_signature.status == "trusted" |
| 120 | + ) |
113 | 121 | ] by process.executable |
114 | | - [file where host.os.type == "windows" and event.type == "deletion" and file.extension : ("exe", "scr", "com") and |
115 | | - not process.executable : |
| 122 | + [file where host.os.type == "windows" and event.type == "deletion" and file.extension in~ ("exe", "scr", "com") and |
| 123 | + not process.executable like |
116 | 124 | ("?:\\Program Files\\*.exe", |
117 | 125 | "?:\\Program Files (x86)\\*.exe", |
118 | 126 | "?:\\Windows\\System32\\svchost.exe", |
119 | | - "?:\\Windows\\System32\\drvinst.exe") and |
120 | | - not file.path : ( |
| 127 | + "?:\\Windows\\System32\\drvinst.exe", |
| 128 | + "?:\\Windows\\Postillion\\Office\\*.exe") and |
| 129 | + not file.path like ( |
121 | 130 | "?:\\Program Files\\*.exe", |
122 | 131 | "?:\\Program Files (x86)\\*.exe", |
123 | 132 | "?:\\Windows\\Temp\\*\\DismHost.exe", |
124 | 133 | "?:\\$WINDOWS.~BT\\Work\\*\\DismHost.exe", |
125 | 134 | "?:\\$WinREAgent\\Scratch\\*\\DismHost.exe", |
126 | 135 | "?:\\Windows\\tenable_mw_scan_*.exe", |
127 | | - "?:\\Users\\*\\AppData\\Local\\Temp\\LogiUI\\Pak\\uninstall.exe" |
| 136 | + "?:\\Users\\*\\AppData\\Local\\Temp\\LogiUI\\Pak\\uninstall.exe", |
| 137 | + "?:\\ProgramData\\chocolatey\\*.exe" |
| 138 | + ) and |
| 139 | + not (process.name : "OktaVerifySetup-*.exe" and process.code_signature.subject_name == "Okta, Inc.") and |
| 140 | + not ( |
| 141 | + process.executable : "?:\\Windows\\SysWOW64\\config\\systemprofile\\Citrix\\UpdaterBinaries\\CitrixReceiver\\*" and |
| 142 | + process.code_signature.subject_name == "Citrix Systems, Inc." and |
| 143 | + file.path : "?:\\Windows\\SysWOW64\\config\\systemprofile\\Citrix\\UpdaterBinaries\\CitrixReceiver\\*\\bootstrapperhelper.exe" |
128 | 144 | ) |
129 | 145 | ] by file.path |
130 | 146 | ''' |
|
0 commit comments