Include Membership property set in AddSelf and AddMember edges #266
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Includes the Membership property set as an additional object ACE guid for AddSelf and AddMember edges.
Motivation and Context
This change adds additional coverage for ACL abuse related to changing the membership of group nodes by introducing the Membership property set ACEGuid to the edges.
Testing performed while researching AllValidatedWrites ACEs confirmed a gap in coverage for this property set:

This diagram shows how the Membership property set fits into the possible ACE options that allow for modifying the member property of a group:

Fixes BED-7069
How Has This Been Tested?
Created a matrix test in CORP1 domain of my lab using this New-MembershipTest.ps1 script. This creates a group object for each possible ACE type that can modify group membership. Prior to this change 9 of the 12 ACEs were created by SharpHound. After implementing this change, all 12 ACEs were covered.
This change is limited to only 2 files and 3 lines of code in SharpHoundCommon. The functionality works as expected with no additional changes to SharpHound, SharpHoundEnterprise, BloodHound, or BloodHoundEnterprise.
Screenshots (if appropriate):
BloodHound edges prior to change:

BloodHound edges after SHC change:

Types of changes
Checklist:
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.