
Active Directory Certificate Services에서 일반적인 잘못된 구성을 찾아 수정하도록 만들어진 작은 도구입니다.
_ _____ _______ _ _ _______ _______ _____ _______ _ _
| | | | |____/ |______ | | | | | |_____|
|_____ |_____| |_____ | \_ ______| | | | __|__ | | |
.--. .--. .--.
/.-. '----------. /.-. '----------. /.-. '----------.
\'-' .---'-''-'-' \'-' .--'--''-'-' \'-' .--'--'-''-'
'--' '--' '--'
Active Directory Certificate Services에서 흔한 잘못된 구성을 찾아 수정하기 위해 만들어진 작은 도구입니다.
PowerShell 프롬프트를 열고 PowerShell 갤러리에서 Locksmith를 설치합니다:
Install-Module -Name Locksmith -Scope CurrentUser
모듈을 다운로드하여 설치 없이 사용하기
Unblock-File .\Locksmith.zip # if necessary to unblock the download
Expand-Archive .\Locksmith.zip
Import-Module .\Locksmith\Locksmith.psd1
Invoke-Locksmith
모듈 없이 단일 스크립트 다운로드하기
Unblock-File .\Invoke-Locksmith.zip
Expand-Archive .\Invoke-Locksmith.zip -DestinationPath .\
.\Invoke-Locksmith.ps1
Invoke-Locksmith를 실행할 때 선택할 수 있는 여러 모드가 있습니다. 또한 Scans 매개 변수를 사용하여 실행할 검사를 선택할 수 있습니다.
Invoke-Locksmith.ps1을 매개 변수 없이 또는 -Mode 0과 함께 실행하면 현재 Active Directory 포리스트를 검사하고 발견된 모든 AD CS 문제를 Table 형식으로 콘솔에 출력합니다.
# Module Syntax
Invoke-Locksmith
# Script Syntax
.\Invoke-Locksmith.ps1
모드 0의 출력 예시: https://github.com/jakehildreth/Locksmith/blob/main//Docs/Examples/Mode0.md
이 모드는 현재 포리스트를 검사하고 발견된 모든 AD CS 문제와 가능한 해결 방법을 List 형식으로 콘솔에 출력합니다.
# Module Syntax
Invoke-Locksmith -Mode 1
# Script Syntax
.\Invoke-Locksmith.ps1 -Mode 1
모드 1의 출력 예시: https://github.com/jakehildreth/Locksmith/blob/main/Docs/Examples/Mode1.md
Locksmith 모드 2는 현재 포리스트를 검사하고 발견된 모든 AD CS 문제를 현재 작업 디렉터리의 ADCSIssues.CSV에 출력합니다.
# Module Syntax
Invoke-Locksmith -Mode 2
# Script Syntax
.\Invoke-Locksmith.ps1 -Mode 2
모드 2의 출력 예시: https://github.com/jakehildreth/Locksmith/blob/main/Docs/Examples/Mode2.md
모드 3에서 Locksmith는 현재 포리스트를 검사하고 발견된 모든 AD CS 문제와 예시 해결 방법을 현재 작업 디렉터리의 ADCSRemediation.CSV에 출력합니다.
# Module Syntax
Invoke-Locksmith -Mode 3
# Script Syntax
.\Invoke-Locksmith.ps1 -Mode 3
모드 3의 출력 예시: https://github.com/jakehildreth/Locksmith/blob/main/Docs/Examples/Mode3.md
모드 4는 "쉬운 버튼"입니다. 모드 4에서 Locksmith를 실행하면 모든 잘못된 구성을 식별하고 각 문제를 수정할지 묻습니다. 운영에 영향을 줄 수 있는 경우 Locksmith가 경고합니다.
# Module Syntax
Invoke-Locksmith -Mode 4
# Script Syntax
.\Invoke-Locksmith.ps1 -Mode 4
모드 4의 출력 예시: https://github.com/jakehildreth/Locksmith/blob/main/Docs/Examples/Mode4.md
-Scans 매개 변수를 사용하여 검사할 취약점을 선택합니다. 허용되는 값은 All, Auditing, ESC1, ESC2, ESC3, ESC4, ESC5, ESC6, ESC7, ESC8, ESC9, ESC11, ESC13, ESC15, EKEUwu, 또는 입니다. 옵션은 하나 이상의 검사를 선택할 수 있는 대화형 목록을 표시합니다.
# Run all scans
Invoke-Locksmith -Scan All
# Prompt the user for a list of scans to select
Invoke-Locksmith.ps1 -Scans PromptMe
# Scan for ESC1 vulnerable paths
Invoke-Locksmith.ps1 -Scans ESC1
# Scan for ESC1, ESC2, and ESC8 vulnerable paths
Invoke-Locksmith.ps1 -Scans ESC1,ESC2,ESC8
취약점 보고는 보안 정책을 참조하세요. 사용법 질문 및 지원 안내는 지원을 참조하세요.
Locksmith를 사용해 주셔서 감사합니다! 💜
ESC16PromptMePromptMe