-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESC13 Detections and Issue Description Improvements. #178
Conversation
@@ -37,30 +43,42 @@ | |||
!($_.'msPKI-Enrollment-Flag' -band 2) -and | |||
( ($_.'msPKI-RA-Signature' -eq 0) -or ($null -eq $_.'msPKI-RA-Signature') ) | |||
} | ForEach-Object { | |||
# Write-Host $_; continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this a potential use case for Write-Debug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. One thought, one fix, one heart.
|
||
# If these are all empty = no issues found, exit | ||
if ((!$AuditingIssues) -and (!$ESC1) -and (!$ESC2) -and (!$ESC3) -and (!$ESC4) -and (!$ESC5) -and (!$ESC6) -and (!$ESC8) -and (!$ESC11) ) { | ||
if ((!$AuditingIssues) -and (!$ESC1) -and (!$ESC2) -and (!$ESC3) -and (!$ESC4) -and (!$ESC5) -and (!$ESC6) -and (!$ESC8) -and ($ESC11) -and ($ESC13) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing the -not
/ !
operator for $ESC11 and $ESC13.
@@ -4,7 +4,7 @@ | |||
Finds the most common malconfigurations of Active Directory Certificate Services (AD CS). | |||
|
|||
.DESCRIPTION | |||
Locksmith uses the Active Directory (AD) Powershell (PS) module to identify 7 misconfigurations | |||
Locksmith uses the Active Directory (AD) Powershell (PS) module to identify 10 misconfigurations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💙
This PR adds ESC13 detections to Locksmith.
While I was in there, I decided to expand the descriptions of each issue so it's easier to tell why a misconfiguration is a problem.
Also added comments to the "Fix" and "Revert" code blocks for most issues so it's clear what actions are being performed.