Updates The Arose From a Demo #260
Merged
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.
Hooman:
I did a Locksmith demo internally for Semperis in June. While working through that demo, I made some small improvements here and there.
Clanker:
This pull request updates the Locksmith module with improvements to risk rating logic, messaging, and PowerShell code consistency. The most notable changes include refining how dangerous rights are defined, enhancing risk assessment for certain AD objects, improving user guidance messages, and standardizing PowerShell syntax across the codebase.
Risk rating logic improvements:
Set-RiskRatingto add a minor risk value (0.1) for certain principals, improving the granularity of risk assessment for ESC5 templates. [1] [2]Dangerous rights definition:
$DangerousRightsvariable inInvoke-Locksmithto'GenericAll|Write'instead of including additional rights, focusing checks on the most critical permissions. [1] [2]User guidance and messaging enhancements:
PowerShell code consistency and modernization:
Returnwithreturn, switching double quotes to single quotes for here-strings and arrays, and using lowercase function declarations for better style and compatibility. [1] [2] [3] [4] [5] [6] [7] [8] [9]Version updates:
2025.8.25to reflect these changes. [1] [2]