Skip to content

Commit 81d0850

Browse files
author
Jake Hildreth
committed
BUILD.
1 parent dfd495c commit 81d0850

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

Build/Build-Module.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,11 @@ Build-Module -ModuleName 'Locksmith' {
129129

130130
$PostScriptMerge = { Invoke-Locksmith -Mode $Mode -Scans $Scans }
131131

132-
New-ConfigurationArtefact -Type Packed -Enable -Path "$PSScriptRoot\..\Artefacts\Packed" -ArtefactName '<ModuleName>-v<ModuleVersion>.zip'
132+
New-ConfigurationArtefact -Type Packed -Enable -Path "$PSScriptRoot\..\Artefacts\Packed" -ArtefactName '<ModuleName>.zip'
133133
New-ConfigurationArtefact -Type Script -Enable -Path "$PSScriptRoot\..\Artefacts\Script" -PreScriptMerge $PreScriptMerge -PostScriptMerge $PostScriptMerge -ScriptName "Invoke-<ModuleName>.ps1"
134134
New-ConfigurationArtefact -Type ScriptPacked -Enable -Path "$PSScriptRoot\..\Artefacts\ScriptPacked" -ArtefactName "Invoke-<ModuleName>.zip" -PreScriptMerge $PreScriptMerge -PostScriptMerge $PostScriptMerge -ScriptName "Invoke-<ModuleName>.ps1"
135135
New-ConfigurationArtefact -Type Unpacked -Enable -Path "$PSScriptRoot\..\Artefacts\Unpacked"
136+
# New-ConfigurationPublish -Type PowerShellGallery -FilePath 'C:\Users\jake.BLUETUXEDO\Documents\API Keys\PSGallery.txt'
136137
}
137138

138139
Copy-Item "$PSScriptRoot\..\Artefacts\Script\Invoke-Locksmith.ps1" "$PSScriptRoot\..\"

Invoke-Locksmith.ps1

+8-5
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,7 @@ function Invoke-Scans {
21602160
}
21612161
ESC1 {
21622162
Write-Host 'Identifying AD CS templates with dangerous ESC1 configurations...'
2163-
[array]$ESC1 = Find-ESC1 -ADCSObjects $ADCSObjects -SafeUsers $SafeUsers
2163+
[array]$ESC1 = Find-ESC1 -ADCSObjects $ADCSObjects -SafeUsers $SafeUsers -ClientAuthEKUs $ClientAuthEkus
21642164
}
21652165
ESC2 {
21662166
Write-Host 'Identifying AD CS templates with dangerous ESC2 configurations...'
@@ -2187,9 +2187,13 @@ function Invoke-Scans {
21872187
Write-Host 'Identifying HTTP-based certificate enrollment interfaces (ESC8)...'
21882188
[array]$ESC8 = Find-ESC8 -ADCSObjects $ADCSObjects
21892189
}
2190-
ESC6 {
2190+
ESC11 {
21912191
Write-Host 'Identifying Issuing CAs with IF_ENFORCEENCRYPTICERTREQUEST disabled (ESC11)...'
2192-
[array]$ESC6 = Find-ESC6 -ADCSObjects $ADCSObjects
2192+
[array]$ESC11 = Find-ESC11 -ADCSObjects $ADCSObjects
2193+
}
2194+
ESC13 {
2195+
Write-Host 'Identifying AD CS templates with dangerous ESC13 configurations...'
2196+
[array]$ESC11 = Find-ESC13 -ADCSObjects $ADCSObjects -SafeUsers $SafeUsers -ClientAuthEKUs $ClientAuthEKUs
21932197
}
21942198
All {
21952199
Write-Host 'Identifying auditing issues...'
@@ -2264,7 +2268,7 @@ descriptions, code used to find, code used to fix, and reference URLs. This is i
22642268

22652269
function New-Dictionary {
22662270
class VulnerableConfigurationItem {
2267-
static [string] $Version = '2023.10.01.000'
2271+
static [string] $Version = '2024.11.03.000'
22682272
[string]$Name
22692273
[ValidateSet('Escalation Path', 'Server Configuration', 'GPO Setting')][string]$Category
22702274
[string]$Subcategory
@@ -3226,7 +3230,6 @@ function Invoke-Locksmith {
32263230
)
32273231

32283232
$Version = '2024.11.10'
3229-
32303233
$LogoPart1 = @"
32313234
_ _____ _______ _ _ _______ _______ _____ _______ _ _
32323235
| | | | |____/ |______ | | | | | |_____|

Private/Invoke-Scans.ps1

+5-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function Invoke-Scans {
7272
}
7373
ESC1 {
7474
Write-Host 'Identifying AD CS templates with dangerous ESC1 configurations...'
75-
[array]$ESC1 = Find-ESC1 -ADCSObjects $ADCSObjects -SafeUsers $SafeUsers
75+
[array]$ESC1 = Find-ESC1 -ADCSObjects $ADCSObjects -SafeUsers $SafeUsers -ClientAuthEKUs $ClientAuthEkus
7676
}
7777
ESC2 {
7878
Write-Host 'Identifying AD CS templates with dangerous ESC2 configurations...'
@@ -103,6 +103,10 @@ function Invoke-Scans {
103103
Write-Host 'Identifying Issuing CAs with IF_ENFORCEENCRYPTICERTREQUEST disabled (ESC11)...'
104104
[array]$ESC11 = Find-ESC11 -ADCSObjects $ADCSObjects
105105
}
106+
ESC13 {
107+
Write-Host 'Identifying AD CS templates with dangerous ESC13 configurations...'
108+
[array]$ESC11 = Find-ESC13 -ADCSObjects $ADCSObjects -SafeUsers $SafeUsers -ClientAuthEKUs $ClientAuthEKUs
109+
}
106110
All {
107111
Write-Host 'Identifying auditing issues...'
108112
[array]$AuditingIssues = Find-AuditingIssue -ADCSObjects $ADCSObjects

0 commit comments

Comments
 (0)