Skip to content

Commit d823cc8

Browse files
committed
refactor(rules): Remove write_minidump_file macro
The macro is only used in one rule so we can reduce the clutter.
1 parent 7a6d0c1 commit d823cc8

File tree

2 files changed

+3
-22
lines changed

2 files changed

+3
-22
lines changed

rules/credential_access_lsass_memory_dumping.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: LSASS memory dumping via legitimate or offensive tools
22
id: 335795af-246b-483e-8657-09a30c102e63
3-
version: 1.0.4
3+
version: 1.2.0
44
description: |
55
Detects an attempt to dump the LSAAS memory to the disk by employing legitimate
66
tools such as procdump, Task Manager, Process Explorer or built-in Windows tools
@@ -23,7 +23,7 @@ condition: >
2323
sequence
2424
maxspan 2m
2525
by ps.uuid
26-
|open_process and
26+
|open_process and
2727
ps.access.mask.names in ('ALL_ACCESS', 'CREATE_PROCESS', 'VM_READ', 'DUP_HANDLE') and
2828
evt.arg[exe] imatches '?:\\Windows\\System32\\lsass.exe' and
2929
ps.exe not imatches
@@ -32,7 +32,7 @@ condition: >
3232
'?:\\ProgramData\\Microsoft\\Windows Defender\\*\\MsMpEng.exe'
3333
)
3434
|
35-
|write_minidump_file|
35+
|create_file and (file.extension iin ('.dmp', '.mdmp', '.dump') or is_minidump(file.path))|
3636
3737
output: >
3838
Detected an attempt by `%1.ps.name` process to access and read

rules/macros/macros.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -204,25 +204,6 @@
204204
description: >
205205
Detects when either unsigned or untrusted DLL is loaded into process address space.
206206
207-
- macro: write_minidump_file
208-
expr: >
209-
create_file and
210-
(
211-
file.extension iin
212-
(
213-
'.dmp',
214-
'.mdmp',
215-
'.dump'
216-
) or
217-
is_minidump(file.path)
218-
)
219-
description: |
220-
Detects a process writing the minidump file. Minidump files are used for crash
221-
reporting as they contain a snapshot of the process' memory such as local variables
222-
or heap objects. Processes can create minidump files by calling into the MiniDumpWriteDump()
223-
function. This macro checks the well-known extensions of the minidump files as well as
224-
the minidump signature.
225-
226207
- macro: msoffice_binaries
227208
list: [EXCEL.EXE, WINWORD.EXE, MSACCESS.EXE, POWERPNT.EXE, visio.exe, mspub.exe, fltldr.exe, eqnedt32.exe]
228209

0 commit comments

Comments
 (0)