From 56ef6f94c441c40b1e62538afa6bbe764745fb83 Mon Sep 17 00:00:00 2001 From: Jake Hildreth Date: Sat, 20 Jan 2024 08:10:35 -0500 Subject: [PATCH] Fresh Build --- Invoke-Locksmith.ps1 | 34 ++-------------------------------- Locksmith.psd1 | 1 + 2 files changed, 3 insertions(+), 32 deletions(-) diff --git a/Invoke-Locksmith.ps1 b/Invoke-Locksmith.ps1 index 26cfad8..9b421d5 100644 --- a/Invoke-Locksmith.ps1 +++ b/Invoke-Locksmith.ps1 @@ -457,7 +457,7 @@ function Find-ESC8 { if ($_.CAEnrollmentEndpoint -like '^https*') { $Issue['Issue'] = 'HTTPS enrollment is enabled.' } - [PSCustomObject]$Issue + $Issue } } } @@ -1140,7 +1140,7 @@ function New-Dictionary { [VulnerableConfigurationItem]@{ Name = 'ESC8' Category = 'Escalation Path' - Subcategory = 'AD CS HTTP Endpoints vulnerable to NTLM Relay' + Subcategory = 'AD CS HTTP Endpoints Vulnerable to NTLM Relay' Summary = '' FindIt = { Find-ESC8 } FixIt = { Write-Output 'Add code to fix the vulnerable configuration.' } @@ -1317,36 +1317,6 @@ function Set-Severity { } } -function Show-RemediationInformation { - <# - .SYNOPSIS - Shows all important information about a remediation. - - .PARAMETER Thing - Unsure yet - - #> - - [CmdletBinding()] - param ( - $IssueObject - ) - - - Write-Host 'ISSUE:' -ForegroundColor White - Write-Host "Auditing is not fully enabled on Certification Authority `"$($_.Name)`".`n" - Write-Host 'TECHNIQUE:' -ForegroundColor White - Write-Host "$($_.Technique)`n" - Write-Host 'ACTION TO BE PERFORMED:' -ForegroundColor White - Write-Host "Locksmith will attempt to fully enable auditing on Certification Authority `"$($_.Name)`".`n" - Write-Host 'COMMAND(S) TO BE RUN:' - Write-Host 'PS> ' -NoNewline - Write-Host "$($_.Fix)`n" -ForegroundColor Cyan - Write-Host 'OPERATIONAL IMPACT:' -ForegroundColor White - Write-Host "This change should have little to no impact on the AD CS environment.`n" -ForegroundColor Green - Write-Host "If you continue, Locksmith will attempt to fix this issue.`n" -ForegroundColor Yellow -} - function Test-IsADAdmin { <# .SYNOPSIS diff --git a/Locksmith.psd1 b/Locksmith.psd1 index f56828f..21c69e8 100644 --- a/Locksmith.psd1 +++ b/Locksmith.psd1 @@ -12,6 +12,7 @@ PrivateData = @{ PSData = @{ ExternalModuleDependencies = @('ActiveDirectory', 'ServerManager', 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.LocalAccounts', 'Microsoft.PowerShell.Management', 'CimCmdlets', 'Dism') + IconUri = 'https://github.com/TrimarcJake/Locksmith/Images/locksmith.ico' ProjectUri = 'https://github.com/TrimarcJake/Locksmith' Tags = @('Windows', 'Locksmith', 'CA', 'PKI', 'ActiveDirectory', 'CertificateServices', 'ADCS') }