Detection Engineering · Threat Hunting · · 4 min read

wbadmin NTDS.dit dump detection for Domain Controllers

When wbadmin.exe is used to back up NTDS.dit + registry hives, treat it as credential access, not routine IT backup. This post is for Elastic + Sigma + Windows logs and focuses on wbadmin NTDS.dit dump detection you can validate end-to-end in a lab.

You will: spot the command, confirm artifacts on disk, and alert in MDE/Elastic with Sigma-derived logic. 🔎

Why this matters

wbadmin.exe can create VSS backups of files that are normally locked, including:

The signal is in what is included and where the backup is written.

Step 1: The wbadmin pattern to watch

Attackers commonly run a one-time backup and write output to a convenient local path via a loopback UNC.

Executed command

wbadmin.exe start backup -backuptarget:\\127.0.0.1\C$\ProgramData\ -include":C:\windows\NTDS\ntds.dit,C:\windows\system32\config\SYSTEM,C:\windows\system32\config\SECURITY" -quiet

What to notice:

Example output

wbadmin Admin Output
wbadmin Admin Output

Step 2: Confirm the backup artifacts on disk

Use filesystem artifacts to confirm the alert is real and to find what needs containment. This dir structure may be already removed by the attacker.

Get the next detection in your inbox

One lab-proven detection per issue: the attacker command, the telemetry it leaves, and the KQL / ES|QL that catches it.

You confirm on Substack in one tap.

No spam. Unsubscribe anytime.

Dir structure

After dump this is how it looks like

Dir Structure After Dumping
Dir Structure After Dumping

Look for:

Step 3: Validate the copied files (mount the container)

After mounting vhdx files
vhdx file will contain the files included in the backup

Vhdx Dir Structure
Vhdx Dir Structure

If NTDS/hives are missing after mounting, the job likely failed or you mounted the wrong container. Use backup logs below to confirm.

Step 4: Correlate with Windows Backup logs

Backup logs tell you whether the job completed and can help you scope impact fast.

Event Viewer Logs

Event Viewer Backup Logs
Event Viewer Backup Logs

Get the logs about backup operation from Microsoft-Windows-Backup

Get-WinEvent -FilterHashtable @{
  LogName   = 'Microsoft-Windows-Backup'
  Id        = 1,4,5,14   # 1=Started, 4=Success, 5=Failure, 14=Completed
  StartTime = (Get-Date).AddHours(-1.5)
} | Sort-Object TimeCreated |
Format-Table TimeCreated, Id, LevelDisplayName, Message -Wrap
Get Winevent Output
Get Winevent Output

What you want:

Step 5: Detections (Sigma, MDE, Elastic)

Upstream Sigma already covers this pattern (wbadmin NTDS.dit dump detection). Use it as a baseline, then tune around maintenance windows and known backup accounts.

Sigma Alert in Kibana

Sigma Alert For Wbadmin Process
Sigma Alert For Wbadmin Process

Elastic Process Tree

Sigma Rule Process Tree
Sigma Rule Process Tree

Practical tuning
Prioritize alerts where ProcessCommandLine also contains admin shares (for example \\127.0.0.1\C$\) or unusual backup targets. Suppress only after baselining normal backup tooling on DCs.

SIEM Detections

These queries were generated by converting the Sigma rule with pySigma backends.

Sensitive File Dump Via Wbadmin.EXE

Detects the dump of highly sensitive files such as “NTDS.DIT” and “SECURITY” hive. Attackers can leverage the “wbadmin” utility in order to dump sensitive files that might contain credential or sensitive information.

Microsoft Defender (KQL)
DeviceProcessEvents
| where (FolderPath endswith "\\wbadmin.exe" or ProcessVersionInfoOriginalFileName =~ "WBADMIN.EXE") and (ProcessCommandLine contains "start" or ProcessCommandLine contains "backup") and (ProcessCommandLine contains "\\config\\SAM" or ProcessCommandLine contains "\\config\\SECURITY" or ProcessCommandLine contains "\\config\\SYSTEM" or ProcessCommandLine contains "\\Windows\\NTDS\\NTDS.dit")
Elastic
(process.executable:*\\wbadmin.exe OR process.pe.original_file_name:WBADMIN.EXE) AND (process.command_line:(*start* OR *backup*)) AND (process.command_line:(*\\config\\SAM* OR *\\config\\SECURITY* OR *\\config\\SYSTEM* OR *\\Windows\\NTDS\\NTDS.dit*))
Sigma

View rule on GitHub

Thanks to @frack113 and @nas_bench for publishing the awesome Sigma rules and helping the community.

Triage checklist

  1. Who ran it (user, logon type, remote session)?
  2. Did backup logs show success (a real copy likely exists)?
  3. What is the backup target path and what files were written there?
  4. Any follow-on activity touching the backup path (archive tools, outbound transfers, remote tooling)?

✅ If the job completed and this activity is not expected, escalate as probable domain compromise.

Further reading (same stack)

Known in-the-wild incidents

Source Title Source (with link) Publish Date
Technical Advisory: SonicWall Targeted by Ransomware Group Bitdefender 7 Aug, 2025
From Bing Search to Ransomware: Bumblebee and AdaptixC2 Deliver Akira The DFIR Report 5 Aug, 2025
Undisclosed SonicWall Zero Day Leading to Akira Ransomware eSentire 5 Aug, 2025
The Exploitation of SonicWall SSL VPNs Huntress 4 Aug, 2025

References

#elasticsearch#ntds#sigma-rules#t1003-003#wbadmin

NewsletterFrom the newsletter: Load Real Defender Telemetry into a Free ADX Cluster in One Paste

Get the next detection in your inbox

One lab-proven detection per issue: the attacker command, the telemetry it leaves, and the KQL / ES|QL that catches it.

You confirm on Substack in one tap.

No spam. Unsubscribe anytime.