Latest alertCVE-2018-11776 in Apache Struts Confirmed Exploited in the WildRead
Search all news in the platform

Detection rule

LSASS Process Memory Dump Files

HighTest-data validatedSigmaHQ (community)T1003.001

Overview

Detects creation of files with names used by different memory dumping tools to create a memory dump of the LSASS process memory, which contains user credentials.

Rule id
a5a2d357-1ab8-4675-a967-ef9990a59391
ATT&CK techniques
T1003.001 OS Credential Dumping: LSASS Memory
Severity
High
Confidence
Low
Origin
SigmaHQ (community)
SigmaHQ status
test
Used in defense packs
The Gentlemen, qilin, Akira, safepay, Play, nightspire

Validation

  1. ExperimentalSyntax checked only. Not yet tested on events.
  2. Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
  3. SIEM-validatedRun in a real SIEM, with a recorded result.

1 of 1 positive test events matched; 1 of 1 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.

Detection logic and queries

Queries are shown exactly as generated. Test them in your environment before you deploy them.

Sigma

Sigma (YAML) · a5a2d357-1ab8-4675-a967-ef9990a59391

Download
title: LSASS Process Memory Dump Files
id: a5a2d357-1ab8-4675-a967-ef9990a59391
related:
    - id: db2110f3-479d-42a6-94fb-d35bc1e46492
      type: obsolete
    - id: 5e3d3601-0662-4af0-b1d2-36a05e90c40a
      type: obsolete
status: test
description: Detects creation of files with names used by different memory dumping tools to create a memory dump of the LSASS process memory, which contains user credentials.
references:
    - https://www.google.com/search?q=procdump+lsass
    - https://medium.com/@markmotig/some-ways-to-dump-lsass-exe-c4a75fdc49bf
    - https://github.com/elastic/detection-rules/blob/c76a39796972ecde44cb1da6df47f1b6562c9770/rules/windows/credential_access_lsass_memdump_file_created.toml
    - https://web.archive.org/web/20240825073514/https://www.whiteoaksecurity.com/blog/attacks-defenses-dumping-lsass-no-mimikatz/
    - https://github.com/helpsystems/nanodump
    - https://github.com/CCob/MirrorDump
    - https://github.com/safedv/RustiveDump/blob/1a9b026b477587becfb62df9677cede619d42030/src/main.rs#L35
    - https://github.com/ricardojoserf/NativeDump/blob/01d8cd17f31f51f5955a38e85cd3c83a17596175/NativeDump/Program.cs#L258
author: Florian Roth (Nextron Systems)
date: 2021-11-15
modified: 2024-10-08
tags:
    - attack.credential-access
    - attack.t1003.001
logsource:
    product: windows
    category: file_event
detection:
    selection_1:
        TargetFilename|endswith:
            - '\Andrew.dmp'
            - '\Coredump.dmp'
            - '\lsass.dmp'
            - '\lsass.rar'
            - '\lsass.zip'
            - '\NotLSASS.zip'  # https://github.com/CCob/MirrorDump
            - '\PPLBlade.dmp'  # https://github.com/tastypepperoni/PPLBlade
            - '\rustive.dmp' # https://github.com/safedv/RustiveDump/blob/main/src/main.rs#L35
    selection_2:
        TargetFilename|contains:
            - '\lsass_2'  # default format of procdump v9.0 is lsass_YYMMDD_HHmmss.dmp
            - '\lsassdmp'
            - '\lsassdump'
    selection_3:
        TargetFilename|contains|all:
            - '\lsass'
            - '.dmp'
    selection_4:
        TargetFilename|contains: 'SQLDmpr'
        TargetFilename|endswith: '.mdmp'
    selection_5:
        TargetFilename|contains:
            - '\nanodump'
            - '\proc_' # NativeDump pattern https://github.com/ricardojoserf/NativeDump/blob/01d8cd17f31f51f5955a38e85cd3c83a17596175/NativeDump/Program.cs#L258
        TargetFilename|endswith: '.dmp'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

QRadar AQL

IBM QRadar AQL (hunting query)Hunting query

Hunting search for the Log Activity tab or the API. It is not a QRadar rule.

AQL search for the Log Activity tab or the API. It is NOT a deployable QRadar rule: real-time detection in QRadar is a CRE (Custom Rule Engine) rule, for which this build only writes a design specification (qradar_cre).

SELECT * FROM events WHERE devicetype=12 AND ((LOWER(Filename) LIKE '%\andrew.dmp' OR LOWER(Filename) LIKE '%\coredump.dmp' OR LOWER(Filename) LIKE '%\lsass.dmp' OR LOWER(Filename) LIKE '%\lsass.rar' OR LOWER(Filename) LIKE '%\lsass.zip' OR LOWER(Filename) LIKE '%\notlsass.zip' OR LOWER(Filename) LIKE '%\pplblade.dmp' OR LOWER(Filename) LIKE '%\rustive.dmp') OR (LOWER(Filename) LIKE '%\lsass_2%' OR LOWER(Filename) LIKE '%\lsassdmp%' OR LOWER(Filename) LIKE '%\lsassdump%') OR (LOWER(Filename) LIKE '%\lsass%' AND LOWER(Filename) LIKE '%.dmp%') OR (LOWER(Filename) LIKE '%sqldmpr%' AND LOWER(Filename) LIKE '%.mdmp') OR ((LOWER(Filename) LIKE '%\nanodump%' OR LOWER(Filename) LIKE '%\proc_%') AND LOWER(Filename) LIKE '%.dmp'))

QRadar CRE

Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.

Rule name
OffSet7: LSASS Process Memory Dump Files
Rule type
Event rule (Local)
Log source types
Microsoft Windows Security Event Log DSM: Sysmon EID 11 (FileCreate)

Building blocks

  • BB:OffSet7:LSASS Process Memory Dump Files:selection_1 (match)
    All test lines must match (AND).
    • Filename ends with: \Andrew.dmp, \Coredump.dmp, \lsass.dmp, \lsass.rar, \lsass.zip, \NotLSASS.zip, \PPLBlade.dmp, \rustive.dmp
  • BB:OffSet7:LSASS Process Memory Dump Files:selection_2 (match)
    All test lines must match (AND).
    • Filename contains: \lsass_2, \lsassdmp, \lsassdump
  • BB:OffSet7:LSASS Process Memory Dump Files:selection_3 (match)
    All test lines must match (AND).
    • Filename contains: \lsass, .dmp
  • BB:OffSet7:LSASS Process Memory Dump Files:selection_4 (match)
    All test lines must match (AND).
    • Filename contains: SQLDmpr
    • Filename ends with: .mdmp
  • BB:OffSet7:LSASS Process Memory Dump Files:selection_5 (match)
    All test lines must match (AND).
    • Filename contains: \nanodump, \proc_
    • Filename ends with: .dmp

Main rule, option A (building blocks)

  1. when the event(s) were detected by one or more of these log source types: Microsoft Windows Security Event Log DSM: Sysmon EID 11 (FileCreate)
  2. when an event matches the condition built from these building blocks: (ANY of [BB:OffSet7:LSASS Process Memory Dump Files:selection_1, BB:OffSet7:LSASS Process Memory Dump Files:selection_2, BB:OffSet7:LSASS Process Memory Dump Files:selection_3, BB:OffSet7:LSASS Process Memory Dump Files:selection_4, BB:OffSet7:LSASS Process Memory Dump Files:selection_5])

Main rule, option B (AQL filter test)

  1. when the event matches this AQL filter query: devicetype=12 AND ((LOWER(Filename) LIKE '%\andrew.dmp' OR LOWER(Filename) LIKE '%\coredump.dmp' OR LOWER(Filename) LIKE '%\lsass.dmp' OR LOWER(Filename) LIKE '%\lsass.rar' OR LOWER(Filename) LIKE '%\lsass.zip' OR LOWER(Filename) LIKE '%\notlsass.zip' OR LOWER(Filename) LIKE '%\pplblade.dmp' OR LOWER(Filename) LIKE '%\rustive.dmp') OR (LOWER(Filename) LIKE '%\lsass_2%' OR LOWER(Filename) LIKE '%\lsassdmp%' OR LOWER(Filename) LIKE '%\lsassdump%') OR (LOWER(Filename) LIKE '%\lsass%' AND LOWER(Filename) LIKE '%.dmp%') OR (LOWER(Filename) LIKE '%sqldmpr%' AND LOWER(Filename) LIKE '%.mdmp') OR ((LOWER(Filename) LIKE '%\nanodump%' OR LOWER(Filename) LIKE '%\proc_%') AND LOWER(Filename) LIKE '%.dmp'))

Rule response

  • Severity 7, credibility 6, relevance 7
  • Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
  • Respond no more than once per 30 minutes per Log Source (tune per environment)

Limitations

  • QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.

Splunk

Splunk SPLSearch

Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.

TargetFilename IN ("*\\Andrew.dmp", "*\\Coredump.dmp", "*\\lsass.dmp", "*\\lsass.rar", "*\\lsass.zip", "*\\NotLSASS.zip", "*\\PPLBlade.dmp", "*\\rustive.dmp") OR TargetFilename IN ("*\\lsass_2*", "*\\lsassdmp*", "*\\lsassdump*") OR (TargetFilename="*\\lsass*" TargetFilename="*.dmp*") OR (TargetFilename="*SQLDmpr*" TargetFilename="*.mdmp") OR ((TargetFilename IN ("*\\nanodump*", "*\\proc_*")) TargetFilename="*.dmp")

Splunk savedsearches.conf stanzaScheduled search template

Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.

[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now

[LSASS Process Memory Dump Files]
description = Detects creation of files with names used by different memory dumping tools to create a memory dump of the LSASS process memory, which contains user credentials.
search = TargetFilename IN ("*\\Andrew.dmp", "*\\Coredump.dmp", "*\\lsass.dmp", "*\\lsass.rar", "*\\lsass.zip", "*\\NotLSASS.zip", "*\\PPLBlade.dmp", "*\\rustive.dmp") OR TargetFilename IN ("*\\lsass_2*", "*\\lsassdmp*", "*\\lsassdump*") OR (TargetFilename="*\\lsass*" TargetFilename="*.dmp*") OR (TargetFilename="*SQLDmpr*" TargetFilename="*.mdmp") OR ((TargetFilename IN ("*\\nanodump*", "*\\proc_*")) TargetFilename="*.dmp")

Microsoft Sentinel

Microsoft Sentinel KQL (ASIM)Hunting query

Hunting query over ASIM-normalized tables. An analytics rule also needs a schedule, entity mapping and alert grouping.

imFileEvent
| where (TargetFileName endswith "\\Andrew.dmp" or TargetFileName endswith "\\Coredump.dmp" or TargetFileName endswith "\\lsass.dmp" or TargetFileName endswith "\\lsass.rar" or TargetFileName endswith "\\lsass.zip" or TargetFileName endswith "\\NotLSASS.zip" or TargetFileName endswith "\\PPLBlade.dmp" or TargetFileName endswith "\\rustive.dmp") or (TargetFileName contains "\\lsass_2" or TargetFileName contains "\\lsassdmp" or TargetFileName contains "\\lsassdump") or (TargetFileName contains "\\lsass" and TargetFileName contains ".dmp") or (TargetFileName contains "SQLDmpr" and TargetFileName endswith ".mdmp") or ((TargetFileName contains "\\nanodump" or TargetFileName contains "\\proc_") and TargetFileName endswith ".dmp")

Defender XDR

Microsoft Defender XDR KQLHunting query

Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.

DeviceFileEvents
| where (FolderPath endswith "\\Andrew.dmp" or FolderPath endswith "\\Coredump.dmp" or FolderPath endswith "\\lsass.dmp" or FolderPath endswith "\\lsass.rar" or FolderPath endswith "\\lsass.zip" or FolderPath endswith "\\NotLSASS.zip" or FolderPath endswith "\\PPLBlade.dmp" or FolderPath endswith "\\rustive.dmp") or (FolderPath contains "\\lsass_2" or FolderPath contains "\\lsassdmp" or FolderPath contains "\\lsassdump") or (FolderPath contains "\\lsass" and FolderPath contains ".dmp") or (FolderPath contains "SQLDmpr" and FolderPath endswith ".mdmp") or ((FolderPath contains "\\nanodump" or FolderPath contains "\\proc_") and FolderPath endswith ".dmp")

Elastic

Elastic Lucene (ECS)Hunting query

Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.

(file.path:(*\\Andrew.dmp OR *\\Coredump.dmp OR *\\lsass.dmp OR *\\lsass.rar OR *\\lsass.zip OR *\\NotLSASS.zip OR *\\PPLBlade.dmp OR *\\rustive.dmp)) OR (file.path:(*\\lsass_2* OR *\\lsassdmp* OR *\\lsassdump*)) OR (file.path:*\\lsass* AND file.path:*.dmp*) OR (file.path:*SQLDmpr* AND file.path:*.mdmp) OR ((file.path:(*\\nanodump* OR *\\proc_*)) AND file.path:*.dmp)

Elastic EQL (ECS)Hunting query

EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.

any where (file.path like~ ("*\\Andrew.dmp", "*\\Coredump.dmp", "*\\lsass.dmp", "*\\lsass.rar", "*\\lsass.zip", "*\\NotLSASS.zip", "*\\PPLBlade.dmp", "*\\rustive.dmp")) or (file.path like~ ("*\\lsass_2*", "*\\lsassdmp*", "*\\lsassdump*")) or (file.path:"*\\lsass*" and file.path:"*.dmp*") or (file.path:"*SQLDmpr*" and file.path:"*.mdmp") or ((file.path like~ ("*\\nanodump*", "*\\proc_*")) and file.path:"*.dmp")

Elastic ES|QL (ECS)Hunting query

ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.

from * metadata _id, _index, _version | where ends_with(file.path, "\\Andrew.dmp") or ends_with(file.path, "\\Coredump.dmp") or ends_with(file.path, "\\lsass.dmp") or ends_with(file.path, "\\lsass.rar") or ends_with(file.path, "\\lsass.zip") or ends_with(file.path, "\\NotLSASS.zip") or ends_with(file.path, "\\PPLBlade.dmp") or ends_with(file.path, "\\rustive.dmp") or file.path like "*\\\\lsass_2*" or file.path like "*\\\\lsassdmp*" or file.path like "*\\\\lsassdump*" or file.path like "*\\\\lsass*" and file.path like "*.dmp*" or file.path like "*SQLDmpr*" and ends_with(file.path, ".mdmp") or (file.path like "*\\\\nanodump*" or file.path like "*\\\\proc_*") and ends_with(file.path, ".dmp")

Required telemetry

Log source
product: windows · category: file_event
Fields used
TargetFilename

False positives

  • Unknown

Investigation and response

No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.

References

Author and attribution

Author
Florian Roth (Nextron Systems)
Source
SigmaHQ · rules/windows/file/file_event/file_event_win_lsass_default_dump_file_names.yml
Upstream commit
9688134317a2
Licence
Detection Rule License (DRL) 1.1

Version history

  1. Version 1Imported from SigmaHQ
  2. OffSet7 build · SigmaHQ 9688134317a2

Related rules