Detection rule
Potential LSASS Process Dump Via Procdump
Overview
Detects potential credential harvesting attempts through LSASS memory dumps using ProcDump. This rule identifies suspicious command-line patterns that combine memory dump flags (-ma, -mm, -mp) with LSASS-related process markers. LSASS (Local Security Authority Subsystem Service) contains sensitive authentication data including plaintext passwords, NTLM hashes, and Kerberos tickets in memory. Attackers commonly dump LSASS memory to extract credentials for lateral movement and privilege escalation.
- Rule id
5afee48e-67dd-4e03-a783-f74259dcf998- ATT&CK techniques
- T1003.001 OS Credential Dumping: LSASS Memory, T1036 Masquerading
- Severity
- High
- Confidence
- Medium
- Origin
- SigmaHQ (community)
- SigmaHQ status
stable- Used in defense packs
- The Gentlemen, qilin, Akira, safepay, rhysida, Play, nightspire
Validation
- ExperimentalSyntax checked only. Not yet tested on events.
- Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
- 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) · 5afee48e-67dd-4e03-a783-f74259dcf998
title: Potential LSASS Process Dump Via Procdump
id: 5afee48e-67dd-4e03-a783-f74259dcf998
status: stable
description: |
Detects potential credential harvesting attempts through LSASS memory dumps using ProcDump.
This rule identifies suspicious command-line patterns that combine memory dump flags (-ma, -mm, -mp) with LSASS-related process markers.
LSASS (Local Security Authority Subsystem Service) contains sensitive authentication data including plaintext passwords, NTLM hashes, and Kerberos tickets in memory.
Attackers commonly dump LSASS memory to extract credentials for lateral movement and privilege escalation.
references:
- https://learn.microsoft.com/en-us/sysinternals/downloads/procdump
- https://research.splunk.com/endpoint/3742ebfe-64c2-11eb-ae93-0242ac130002
- https://x.com/wietze/status/1958302556033065292?s=12
author: Florian Roth (Nextron Systems)
date: 2018-10-30
modified: 2025-10-19
tags:
- attack.stealth
- attack.t1036
- attack.credential-access
- attack.t1003.001
- car.2013-05-009
logsource:
category: process_creation
product: windows
detection:
selection_flags:
CommandLine|contains|windash:
- ' -ma '
- ' -mm ' # Mini dump
- ' -mp ' # Miniplus dump
selection_process:
CommandLine|contains:
- ' ls' # Short for lsass
- ' keyiso'
- ' samss'
condition: all of selection_*
falsepositives:
- Unlikely, because no one should dump an lsass process memory
- Another tool that uses command line flags similar to ProcDump
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_sysinternals_procdump_lsass/info.ymlQRadar 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(Command) LIKE '% -ma %' OR LOWER(Command) LIKE '% /ma %' OR LOWER(Command) LIKE '% –ma %' OR LOWER(Command) LIKE '% —ma %' OR LOWER(Command) LIKE '% ―ma %' OR LOWER(Command) LIKE '% -mm %' OR LOWER(Command) LIKE '% /mm %' OR LOWER(Command) LIKE '% –mm %' OR LOWER(Command) LIKE '% —mm %' OR LOWER(Command) LIKE '% ―mm %' OR LOWER(Command) LIKE '% -mp %' OR LOWER(Command) LIKE '% /mp %' OR LOWER(Command) LIKE '% –mp %' OR LOWER(Command) LIKE '% —mp %' OR LOWER(Command) LIKE '% ―mp %') AND (LOWER(Command) LIKE '% ls%' OR LOWER(Command) LIKE '% keyiso%' OR LOWER(Command) LIKE '% samss%')QRadar CRE
Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.
- Rule name
OffSet7: Potential LSASS Process Dump Via Procdump- Rule type
- Event rule (Local)
- Log source types
- Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1
Building blocks
BB:OffSet7:Potential LSASS Process Dump Via Procdump:selection_flags(match)All test lines must match (AND).Commandcontains:-ma,-mm,-mp
BB:OffSet7:Potential LSASS Process Dump Via Procdump:selection_process(match)All test lines must match (AND).Commandcontains:ls,keyiso,samss
Main rule, option A (building blocks)
- when the event(s) were detected by one or more of these log source types:
Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1 - when an event matches the condition built from these building blocks:
(ALL of [BB:OffSet7:Potential LSASS Process Dump Via Procdump:selection_flags, BB:OffSet7:Potential LSASS Process Dump Via Procdump:selection_process])
Main rule, option B (AQL filter test)
- when the event matches this AQL filter query:
devicetype=12 AND (LOWER(Command) LIKE '% -ma %' OR LOWER(Command) LIKE '% /ma %' OR LOWER(Command) LIKE '% –ma %' OR LOWER(Command) LIKE '% —ma %' OR LOWER(Command) LIKE '% ―ma %' OR LOWER(Command) LIKE '% -mm %' OR LOWER(Command) LIKE '% /mm %' OR LOWER(Command) LIKE '% –mm %' OR LOWER(Command) LIKE '% —mm %' OR LOWER(Command) LIKE '% ―mm %' OR LOWER(Command) LIKE '% -mp %' OR LOWER(Command) LIKE '% /mp %' OR LOWER(Command) LIKE '% –mp %' OR LOWER(Command) LIKE '% —mp %' OR LOWER(Command) LIKE '% ―mp %') AND (LOWER(Command) LIKE '% ls%' OR LOWER(Command) LIKE '% keyiso%' OR LOWER(Command) LIKE '% samss%')
Rule response
- Severity 7, credibility 8, 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.
(CommandLine="* -ma *" OR CommandLine="* /ma *" OR CommandLine="* –ma *" OR CommandLine="* —ma *" OR CommandLine="* ―ma *" OR CommandLine="* -mm *" OR CommandLine="* /mm *" OR CommandLine="* –mm *" OR CommandLine="* —mm *" OR CommandLine="* ―mm *" OR CommandLine="* -mp *" OR CommandLine="* /mp *" OR CommandLine="* –mp *" OR CommandLine="* —mp *" OR CommandLine="* ―mp *") (CommandLine IN ("* ls*", "* keyiso*", "* samss*"))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
[Potential LSASS Process Dump Via Procdump]
description = Detects potential credential harvesting attempts through LSASS memory dumps using ProcDump.This rule identifies suspicious command-line patterns that combine memory dump flags (-ma, -mm, -mp) with LSASS-related process markers.LSASS (Local Security Authority Subsystem Service) contains sensitive authentication data including plaintext passwords, NTLM hashes, and Kerberos tickets in memory.Attackers commonly dump LSASS memory to extract credentials for lateral movement and privilege escalation.
search = (CommandLine="* -ma *" OR CommandLine="* /ma *" OR CommandLine="* –ma *" OR CommandLine="* —ma *" OR CommandLine="* ―ma *" OR CommandLine="* -mm *" OR CommandLine="* /mm *" OR CommandLine="* –mm *" OR CommandLine="* —mm *" OR CommandLine="* ―mm *" OR CommandLine="* -mp *" OR CommandLine="* /mp *" OR CommandLine="* –mp *" OR CommandLine="* —mp *" OR CommandLine="* ―mp *") (CommandLine IN ("* ls*", "* keyiso*", "* samss*"))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.
imProcessCreate
| where (TargetProcessCommandLine contains " -ma " or TargetProcessCommandLine contains " /ma " or TargetProcessCommandLine contains " –ma " or TargetProcessCommandLine contains " —ma " or TargetProcessCommandLine contains " ―ma " or TargetProcessCommandLine contains " -mm " or TargetProcessCommandLine contains " /mm " or TargetProcessCommandLine contains " –mm " or TargetProcessCommandLine contains " —mm " or TargetProcessCommandLine contains " ―mm " or TargetProcessCommandLine contains " -mp " or TargetProcessCommandLine contains " /mp " or TargetProcessCommandLine contains " –mp " or TargetProcessCommandLine contains " —mp " or TargetProcessCommandLine contains " ―mp ") and (TargetProcessCommandLine contains " ls" or TargetProcessCommandLine contains " keyiso" or TargetProcessCommandLine contains " samss")Defender XDR
Microsoft Defender XDR KQLHunting query
Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.
DeviceProcessEvents
| where (ProcessCommandLine contains " -ma " or ProcessCommandLine contains " /ma " or ProcessCommandLine contains " –ma " or ProcessCommandLine contains " —ma " or ProcessCommandLine contains " ―ma " or ProcessCommandLine contains " -mm " or ProcessCommandLine contains " /mm " or ProcessCommandLine contains " –mm " or ProcessCommandLine contains " —mm " or ProcessCommandLine contains " ―mm " or ProcessCommandLine contains " -mp " or ProcessCommandLine contains " /mp " or ProcessCommandLine contains " –mp " or ProcessCommandLine contains " —mp " or ProcessCommandLine contains " ―mp ") and (ProcessCommandLine contains " ls" or ProcessCommandLine contains " keyiso" or ProcessCommandLine contains " samss")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.
(process.command_line:(*\ \-ma\ * OR *\ \/ma\ * OR *\ –ma\ * OR *\ —ma\ * OR *\ ―ma\ *) OR process.command_line:(*\ \-mm\ * OR *\ \/mm\ * OR *\ –mm\ * OR *\ —mm\ * OR *\ ―mm\ *) OR process.command_line:(*\ \-mp\ * OR *\ \/mp\ * OR *\ –mp\ * OR *\ —mp\ * OR *\ ―mp\ *)) AND (process.command_line:(*\ ls* OR *\ keyiso* OR *\ samss*))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 (process.command_line like~ ("* -ma *", "* /ma *", "* –ma *", "* —ma *", "* ―ma *") or process.command_line like~ ("* -mm *", "* /mm *", "* –mm *", "* —mm *", "* ―mm *") or process.command_line like~ ("* -mp *", "* /mp *", "* –mp *", "* —mp *", "* ―mp *")) and (process.command_line like~ ("* ls*", "* keyiso*", "* samss*"))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 (process.command_line like "* -ma *" or process.command_line like "* /ma *" or process.command_line like "* –ma *" or process.command_line like "* —ma *" or process.command_line like "* ―ma *" or process.command_line like "* -mm *" or process.command_line like "* /mm *" or process.command_line like "* –mm *" or process.command_line like "* —mm *" or process.command_line like "* ―mm *" or process.command_line like "* -mp *" or process.command_line like "* /mp *" or process.command_line like "* –mp *" or process.command_line like "* —mp *" or process.command_line like "* ―mp *") and (process.command_line like "* ls*" or process.command_line like "* keyiso*" or process.command_line like "* samss*")Required telemetry
- Log source
product: windows · category: process_creation- Fields used
CommandLine
False positives
- Unlikely, because no one should dump an lsass process memory
- Another tool that uses command line flags similar to ProcDump
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/process_creation/proc_creation_win_sysinternals_procdump_lsass.yml - Upstream commit
9688134317a2- Licence
- Detection Rule License (DRL) 1.1
Version history
- Version 1Imported from SigmaHQ
- OffSet7 build · SigmaHQ
9688134317a2