Skip to content
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

Merged
merged 6 commits into from
Nov 10, 2024

Conversation

jakehildreth
Copy link
Owner

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.

@jakehildreth jakehildreth merged commit dfc0db3 into testing Nov 10, 2024
2 checks passed
@jakehildreth jakehildreth deleted the esc13-detections branch November 10, 2024 12:40
@@ -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
Copy link
Collaborator

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?

Copy link
Collaborator

@SamErde SamErde left a 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) ) {
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants