Skip to content

Commit

Permalink
[Rule Tuning] User Added to Privileged Group (#3763)
Browse files Browse the repository at this point in the history
* [New Rule] User Added to Privileged Group

* add more groups

* Update rules/windows/persistence_user_account_added_to_privileged_group_ad.toml

Co-authored-by: Terrance DeJesus <[email protected]>

* Update persistence_user_account_added_to_privileged_group_ad.toml

---------

Co-authored-by: Terrance DeJesus <[email protected]>

(cherry picked from commit 087e8a6)
  • Loading branch information
w0rk3r authored and github-actions[bot] committed Jun 7, 2024
1 parent fe7bca4 commit faaf6e4
Showing 1 changed file with 34 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
creation_date = "2021/01/09"
integration = ["system", "windows"]
maturity = "production"
updated_date = "2024/05/21"
updated_date = "2024/06/07"

[rule]
author = ["Elastic", "Skoetting"]
Expand Down Expand Up @@ -72,15 +72,39 @@ timestamp_override = "event.ingested"
type = "eql"

query = '''
iam where winlog.api:"wineventlog" and event.action == "added-member-to-group" and
group.name : ("Admin*",
"Local Administrators",
"Domain Admins",
"Enterprise Admins",
"Backup Admins",
"Schema Admins",
"DnsAdmins",
"Exchange Organization Administrators")
iam where winlog.api == "wineventlog" and event.action == "added-member-to-group" and
(
(
group.name : (
"Admin*",
"Local Administrators",
"Domain Admins",
"Enterprise Admins",
"Backup Admins",
"Schema Admins",
"DnsAdmins",
"Exchange Organization Administrators",
"Print Operators",
"Server Operators",
"Account Operators"
)
) or
(
group.id : (
"S-1-5-32-544",
"S-1-5-21-*-544",
"S-1-5-21-*-512",
"S-1-5-21-*-519",
"S-1-5-21-*-551",
"S-1-5-21-*-518",
"S-1-5-21-*-1101",
"S-1-5-21-*-1102",
"S-1-5-21-*-550",
"S-1-5-21-*-549",
"S-1-5-21-*-548"
)
)
)
'''


Expand Down

0 comments on commit faaf6e4

Please sign in to comment.