-
Notifications
You must be signed in to change notification settings - Fork 517
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
[Rule Tuning] User Added to Privileged Group #3763
Conversation
group.id : ( | ||
"S-1-5-32-544", | ||
"S-1-5-32-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" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better use endswith for performance when using multi wildcards checks, also not sure if 1101 and 1102 are std group ids ?
group.id : ( | |
"S-1-5-32-544", | |
"S-1-5-32-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" | |
) | |
endswith(group.id, "S-1-5-32-544", "-512", "-519", "-551", "-518") | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1101 and 1102
Not sure either, but these are commonly related to the DNS Admins group, but it seems that there is no "official" RID for it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better use endswith for performance when using multi wildcards checks
Isn't that the same as using the wildcard? I think this was the conclusion
rules/windows/persistence_user_account_added_to_privileged_group_ad.toml
Outdated
Show resolved
Hide resolved
rules/windows/persistence_user_account_added_to_privileged_group_ad.toml
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple ideas and suggestions. Up to you, thanks for tuning!
* [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)
* [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)
* [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)
* [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)
* [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)
* [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)
Issues
Related to #3005
Summary
Expands the rule to detect modifications to these groups on non-English AD envs.