編輯

共用方式為


Security Assessment: Accounts with non-default Primary Group ID

This recommendation lists all computers and users accounts whose primaryGroupId (PGID) attribute is not the default for domain users and computers in Active Directory. 

Organization risk

The primaryGroupId attribute of a user or computer account grants implicit membership to a group. Membership through this attribute does not appear in the list of group members in some interfaces. This attribute may be used as an attempt to hide group membership. It might be a stealthy way for an attacker to escalate privileges without triggering normal auditing for group membership changes. 

Remediation steps

  1. Review the list of exposed entities to discover which of your accounts have a suspicious primaryGroupId.  

  2. Take appropriate action on those accounts by resetting their attribute to their default values or adding the member to the relevant group:  

  • User accounts: 513 (Domain Users) or 514 (Domain Guests);  

  • Computer accounts: 515 (Domain Computers);  

  • Domain controller accounts: 516 (Domain Controllers);  

  • Read-only domain controller (RODC) accounts: 521 (Read-only Domain Controllers).

Next steps