Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Rule] NTDS Dump via Wbadmin #3758

Merged
merged 4 commits into from
Jun 20, 2024
Merged

[New Rule] NTDS Dump via Wbadmin #3758

merged 4 commits into from
Jun 20, 2024

Conversation

w0rk3r
Copy link
Contributor

@w0rk3r w0rk3r commented Jun 5, 2024

Issues

Part of #3005

Summary

Identifies the execution of wbadmin to access the NTDS.dit file in a domain controller. Attackers with privileges from groups like Backup Operators can abuse the utility to perform credential access and compromise the domain.

Comment on lines 42 to 43
process where host.os.type == "windows" and event.type == "start" and
process.name : "wbadmin.exe" and process.args : "recovery" and process.args : "*ntds.dit*"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
process where host.os.type == "windows" and event.type == "start" and
process.name : "wbadmin.exe" and process.args : "recovery" and process.args : "*ntds.dit*"
any where host.os.type == "windows" and event.category : ("process", "file") and
event.type in ("start", "creation") and
(
(process.name : "wbadmin.exe" and process.args : "recovery" and process.args : "*ntds.dit*") or
(process.name : "wbengine.exe" and file.name : "ntds.dit")
)

We can also do something like this

Copy link
Contributor

@terrancedejesus terrancedejesus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition!

@w0rk3r w0rk3r merged commit 2364442 into main Jun 20, 2024
9 checks passed
@w0rk3r w0rk3r deleted the ntds_wbadmin branch June 20, 2024 12:55
protectionsmachine pushed a commit that referenced this pull request Jun 20, 2024
* [New Rule] NTDS Dump via Wbadmin

* Update rules/windows/credential_access_wbadmin_ntds.toml

Co-authored-by: Samirbous <[email protected]>

---------

Co-authored-by: Samirbous <[email protected]>

(cherry picked from commit 2364442)
protectionsmachine pushed a commit that referenced this pull request Jun 20, 2024
* [New Rule] NTDS Dump via Wbadmin

* Update rules/windows/credential_access_wbadmin_ntds.toml

Co-authored-by: Samirbous <[email protected]>

---------

Co-authored-by: Samirbous <[email protected]>

(cherry picked from commit 2364442)
protectionsmachine pushed a commit that referenced this pull request Jun 20, 2024
* [New Rule] NTDS Dump via Wbadmin

* Update rules/windows/credential_access_wbadmin_ntds.toml

Co-authored-by: Samirbous <[email protected]>

---------

Co-authored-by: Samirbous <[email protected]>

(cherry picked from commit 2364442)
protectionsmachine pushed a commit that referenced this pull request Jun 20, 2024
* [New Rule] NTDS Dump via Wbadmin

* Update rules/windows/credential_access_wbadmin_ntds.toml

Co-authored-by: Samirbous <[email protected]>

---------

Co-authored-by: Samirbous <[email protected]>

(cherry picked from commit 2364442)
protectionsmachine pushed a commit that referenced this pull request Jun 20, 2024
* [New Rule] NTDS Dump via Wbadmin

* Update rules/windows/credential_access_wbadmin_ntds.toml

Co-authored-by: Samirbous <[email protected]>

---------

Co-authored-by: Samirbous <[email protected]>

(cherry picked from commit 2364442)
protectionsmachine pushed a commit that referenced this pull request Jun 20, 2024
* [New Rule] NTDS Dump via Wbadmin

* Update rules/windows/credential_access_wbadmin_ntds.toml

Co-authored-by: Samirbous <[email protected]>

---------

Co-authored-by: Samirbous <[email protected]>

(cherry picked from commit 2364442)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport: auto Domain: Endpoint OS: Windows windows related rules Rule: New Proposal for new rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants