Add hunting queries: Resilient LSASS credential dumping detection pack (3 queries)#14341
Merged
v-atulyadav merged 2 commits intoMay 26, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds three new Microsoft Sentinel hunting queries focused on resilient, behavior-based detection of LSASS credential dumping, emphasizing OS mechanics over brittle timing/tool-name heuristics.
Changes:
- Added two Microsoft 365 Defender (MDE) hunting queries using access-mask and high-volume memory-read signals with certificate-based allowlisting.
- Added one WindowsEvent (Sysmon EID 10) hunting query detecting LSASS access originating from unbacked memory via
CallTracepatterns. - Included entity mappings, custom details, and alert formatting overrides in the new YAML templates.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 11 comments.
| File | Description |
|---|---|
| Hunting Queries/WindowsEvent/LsassAccessFromUnbackedMemory.yaml | New Sysmon-based hunt for LSASS access from unbacked memory regions. |
| Hunting Queries/Microsoft 365 Defender/Credential Access/SuspiciousLsassAccessRequest.yaml | New MDE hunt for non-system accounts requesting privileged LSASS access masks with certificate allowlisting. |
| Hunting Queries/Microsoft 365 Defender/Credential Access/HighVolumeLsassMemoryRead.yaml | New MDE hunt for unusually large LSASS memory reads with certificate allowlisting. |
Contributor
Author
|
Copilot suggestions reviewed. All items are implemented in the current code:
|
v-maheshbh
approved these changes
May 26, 2026
v-atulyadav
approved these changes
May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three new hunting queries covering resilient, behavioral detection of LSASS credential dumping. Existing queries in the repository often rely on brittle timing heuristics (e.g., LSASS access followed by a
.dmpfile write within 1 minute) or static tool names, both of which are trivial for modern threat actors to evade.These queries shift the detection strategy from "Who" is doing the dumping to "How" the dumping physics and OS mechanics operate, providing high-certitude coverage against Mimikatz, NanoDump, Cobalt Strike, and BYOVD (Bring Your Own Vulnerable Driver) attacks.
Queries Added
1. Azure-Sentinel/Hunting Queries/Microsoft 365 Defender/Credential Access/HighVolumeLsassMemoryRead.yaml
Detects credential dumping by measuring the physical volume of memory extracted from the LSASS process. Malicious dumps require the full credential tables, triggering a massive
ReadProcessMemoryfootprint (>40MB). This entirely bypasses attackers usingDuplicateHandle(Handle Hijacking) orGet-Systemto evade standard alerting. Implements cryptographic whitelisting viaDeviceFileCertificateInfo.2. Azure-Sentinel/Hunting Queries/Microsoft 365 Defender/Credential Access/SuspiciousLsassAccessRequest.yaml
Identifies unauthorized interactive user accounts (non-SYSTEM) explicitly requesting highly privileged access masks (like
PROCESS_VM_READorPROCESS_ALL_ACCESS/0x1FFFFF) against the LSASS process. This flags credential dumping attempts even if the memory read ultimately fails or is deliberately delayed to evade time-based correlation. Implements cryptographic whitelisting viaDeviceFileCertificateInfo.3. Azure-Sentinel/Hunting Queries/WindowsEvent/LsassAccessFromUnbackedMemory.yaml
A high-certitude query utilizing Sysmon Event ID 10 (ProcessAccess). It evaluates the
CallTracefield for theUNKNOWNstring whenlsass.exeis targeted. Legitimate tools dump LSASS from file-backed DLLs on disk (e.g.,dbghelp.dll), whereas attackers utilizing process hollowing or in-memory shellcode execution will originate from unbacked memory regions. This requires virtually zero allowlisting.Performance & Triage Optimizations:
Compute Efficiency: Rigorously optimized for Kusto clusters. Includes early
isnotempty()filtering, String Operator Indexing (has), explicit type casting for Logic App safety, and strict left-side anti-joins utilizing deduplicated certificate arrays.Triage Ready: The output is heavily sanitized with explicit
project-reorderpipelines. Included dynamicalertDetailsOverrideto inject the suspect process and host directly into the SOC queue titles, reducing Tier 1 triage time.Change(s):
SuspiciousLsassAccessRequest.yamltoHunting Queries/Microsoft 365 Defender/Credential Access/HighVolumeLsassMemoryRead.yamltoHunting Queries/Microsoft 365 Defender/Credential Access/LsassAccessFromUnbackedMemory.yamltoHunting Queries/WindowsEvent/alertDetailsOverridefor scannable, dynamic SOC queue titles.Reason for Change(s):
mimikatz.exetotaskmgr.exe). These queries introduce strict cryptographic whitelisting viaDeviceFileCertificateInfoto prevent evasion by renaming.Version Updated:
Testing Completed:
DeviceEvents,DeviceFileCertificateInfo, andWindowsEvent(Sysmon) schemas. Validated against actual credential dumping logs to ensure zero false negatives, and tuned against enterprise EDR/Backup agent noise to ensure zero false positives.Checked that the validations are passing and have addressed any issues that are present:
.script/tests/DetectionTemplateSchemaValidationlocally. All schema requirements, strict type casting for entities, and YAML linting standards have been met.