Skip to content

Add a DiskShadow module to automate NTDS.dit dumping via DiskShadow over WinRM #1366

Description

@0xbaas

When we have Backup Operators privileges on a domain controller, NetExec’s backup_operator module can retrieve hashes from the local SAM. However, retrieving domain account hashes requires access to both NTDS.dit and the SYSTEM hive.

Because NTDS.dit is locked while the domain controller is running, obtaining these files through DiskShadow currently requires several manual steps (https://github.com/k4sth4/SeBackupPrivilege). I've built a WinRM module that automates this process remotely.

(Optional): Suggest A Solution

I have built an ntds_shadow module that confirms SeBackupPrivilege, creates a DiskShadow snapshot, downloads NTDS.dit and the SYSTEM hive, and removes the remote artifacts and shadow copy afterward.

Hash extraction is out of scope, but the module prints the exact secretsdump command needed to process the downloaded files which is better imo.

The implementation includes tests and has been manually validated across multiple labs. Claude assisted with parts of the development, but I reviewed and tested the code myself.

Image

--

Image

Activity

  1. NeffIsBack commented on Aug 16, 2026

    @NeffIsBack
    Member

    Hi and thanks for the feature suggestion!

    How would an extraction over WinRM look like? Do you need the DLL on the target system or can you simply execute commands to create the backup files?

  2. 0xbaas commented on Aug 16, 2026

    @0xbaas
    Author

    No they are not needed. The module only uses built-in Windows tools.

  3. NeffIsBack commented on Aug 16, 2026

    @NeffIsBack
    Member

    Sounds good, feel free to open up a PR so that we can take a look at it :)

  4. DevCop95 commented on Sep 20, 2026

    @DevCop95

    Hi @NeffIsBack @0xbaas, I've opened PR #1432 implementing the module with full automated cleanup, configurable options, and an accompanying unit test suite. Looking forward to your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions