feat: add bloodyAD single attribute modification primitive#293
Merged
Conversation
…butes **Added:** - Introduced the `bloodyad_set_object_attr` tool definition in the tool registry to enable setting a single LDAP attribute on an AD object, supporting use cases like UPN spoofing, RBCD, and ESC10 - Implemented the `bloodyad_set_object_attr` function in `acl.rs` to run the corresponding bloodyAD command, handling required arguments and execution - Added tests to verify correct execution and required argument enforcement for `bloodyad_set_object_attr` - Registered `bloodyad_set_object_attr` in the tool dispatcher in `lib.rs` to make it accessible via dispatch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Key Changes:
bloodyad_set_object_attrin the tool registryAdded:
bloodyad_set_object_attrintool_registry/acl.rswith schema covering use cases like ESC9, ESC10 (case 2), and RBCD, allowing targeted LDAP attribute changes (e.g., spoofinguserPrincipalNameor modifyingmsDS-AllowedToActOnBehalfOfOtherIdentity)bloodyad_set_object_attrasync function inares-tools/src/acl.rsto invoke bloodyAD for setting a specific attribute on a target object, handling all required fields and credentialsbloodyad_set_object_attrexecutes as expected, plus a unit test to confirm all required fields are validated and enforcedChanged:
dispatchfunction inares-tools/src/lib.rsto include routing for the newbloodyad_set_object_attrprimitive, enabling its use through the standard dispatch interface