/finding_windows_privileges

Windows privileges add to the complexity of Windows user permissions. Each additional user added to a group could lead to a domain compromise if not evaluated. Privileges can override permission causing a gap of perceived effective permission.

Primary LanguagePowerShellMIT LicenseMIT

finding_windows_privileges

Windows privileges add to the complexity of Windows user permissions. Each additional user added to a group could lead to a domain compromise if not evaluated. Privileges can override permission causing a gap of perceived effective permission.

Based on code from Tony Pombo https://gallery.technet.microsoft.com/scriptcenter/Grant-Revoke-Query-user-26e259b0

To search for users with Bad Privileges on the localhost

PS> Find-BadPrivilege

Accounts with Bad Privileges on localhost

Accounts with SeCreateTokenPrivilege

CN=TestCN,OU=TestOU,DC=DC,DC=lab

........................

To seach for users with Bad Privileges on all the computers in the domain

PS> Find-BadPrivilegeDomain

Accounts with Bad Privileges on DC1

Accounts with SeCreateTokenPrivilege

CN=TestCN,OU=TestOU,DC=DC,DC=lab

........................

Learn more about the script and how this script filled a gap in privileges at: http://www.sans.org/reading-room/whitepapers/sysadmin/effectiveness-tools-detecting-039-maleficent-seven-039-privileges-windows-environment-38220