iam where host.os.type == "windows" and event.action == "added-member-to-group" and
(
group.id : "S-1-5-21*" and
(
group.name : (
"Admin*",
"Domain Admins",
"Enterprise Admins",
"Backup Admins",
"Schema Admins",
"DnsAdmins",
"Exchange Organization Administrators",
"Print Operators",
"Server Operators",
"Account Operators"
)
) or
(
group.id : (
"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"
)
)
)
Install detection rules in Elastic Security
Detect User Added to Privileged Group in Active Directory in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).