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

Detection rule

Password Dumper Activity on LSASS

HighTest-data validatedSigmaHQ (community)T1003.001

Overview

Detects process handle on LSASS process with certain access mask and object type SAM_DOMAIN

Rule id
aa1697b7-d611-4f9a-9cb2-5125b4ccfd5c
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) · aa1697b7-d611-4f9a-9cb2-5125b4ccfd5c

Download
title: Password Dumper Activity on LSASS
id: aa1697b7-d611-4f9a-9cb2-5125b4ccfd5c
status: test
description: Detects process handle on LSASS process with certain access mask and object type SAM_DOMAIN
references:
    - https://twitter.com/jackcr/status/807385668833968128
author: sigma
date: 2017-02-12
modified: 2022-10-09
tags:
    - attack.credential-access
    - attack.t1003.001
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4656
        ProcessName|endswith: '\lsass.exe'
        AccessMask: '0x705'
        ObjectType: 'SAM_DOMAIN'
    condition: 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 "Event ID"=4656 AND LOWER("Process Name") LIKE '%\lsass.exe' AND "Access Mask"='0x705' AND "Object Type"='SAM_DOMAIN'

QRadar CRE

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

Rule name
OffSet7: Password Dumper Activity on LSASS
Rule type
Event rule (Local)
Log source types
Microsoft Windows Security Event Log DSM (Security channel)

Building blocks

  • BB:OffSet7:Password Dumper Activity on LSASS:selection (match)
    All test lines must match (AND).
    • Event ID is equal to (case-insensitive): 4656
    • Process Name ends with: \lsass.exe
    • Access Mask is equal to (case-insensitive): 0x705
    • Object Type is equal to (case-insensitive): SAM_DOMAIN

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 (Security channel)
  2. when an event matches the condition built from these building blocks: BB:OffSet7:Password Dumper Activity on LSASS:selection

Main rule, option B (AQL filter test)

  1. when the event matches this AQL filter query: devicetype=12 AND "Event ID"=4656 AND LOWER("Process Name") LIKE '%\lsass.exe' AND "Access Mask"='0x705' AND "Object Type"='SAM_DOMAIN'

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.

source="WinEventLog:Security" EventCode=4656 ProcessName="*\\lsass.exe" AccessMask="0x705" ObjectType="SAM_DOMAIN"

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

[Password Dumper Activity on LSASS]
description = Detects process handle on LSASS process with certain access mask and object type SAM_DOMAIN
search = source="WinEventLog:Security" EventCode=4656 ProcessName="*\\lsass.exe" AccessMask="0x705" ObjectType="SAM_DOMAIN"

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.

SecurityEvent
| where EventID == 4656 and ProcessName endswith "\\lsass.exe" and AccessMask =~ "0x705" and ObjectType =~ "SAM_DOMAIN"

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.

winlog.channel:Security AND (event.code:4656 AND process.executable:*\\lsass.exe AND winlog.event_data.AccessMask:0x705 AND winlog.event_data.ObjectType:SAM_DOMAIN)

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 winlog.channel:"Security" and (event.code:"4656" and process.executable:"*\\lsass.exe" and winlog.event_data.AccessMask:"0x705" and winlog.event_data.ObjectType:"SAM_DOMAIN")

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 winlog.channel=="Security" and event.code=="4656" and ends_with(process.executable, "\\lsass.exe") and winlog.event_data.AccessMask=="0x705" and winlog.event_data.ObjectType=="SAM_DOMAIN"

No working conversion: Microsoft Defender XDR KQL (The field the rule needs has no equivalent column in the target table.)

Required telemetry

Log source
product: windows · service: security
Fields used
AccessMask EventID ObjectType ProcessName

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
sigma
Source
SigmaHQ · rules/windows/builtin/security/win_security_susp_lsass_dump.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