
이벤트 뷰어 로그를 기반으로 의심스러운 권한 있는 NTLM 연결, 특히 Pass-The-Hash 공격을 탐지하는 작은 도구입니다.
이벤트 뷰어 로그를 기반으로 의심스러운 권한 있는 NTLM 연결, 특히 Pass-The-Hash 공격을 탐지하는 작은 도구입니다.
이 도구는 "Pass-The-Hash 탐지" 연구의 일환으로 발표되었습니다. "Pass-The-Hash 탐지"에 대한 자세한 내용은 블로그 게시물을 참조하세요:
https://www.cyberark.com/threat-research-blog/detecting-pass-the-hash-with-windows-event-viewer
전체 연구는 백서에서 확인할 수 있습니다:
https://www.cyberark.com/resource/pass-hash-detection-using-windows-events/
(직접 링크: http://lp.cyberark.com/rs/cyberarksoftware/images/wp-Labs-Pass-the-hash-research-01312018.pdf)
다음 권한이 있는 계정:
Ketshash는 다음 정보를 기반으로 의심스러운 권한 있는 NTLM 연결을 탐지하는 도구입니다:
두 가지 옵션이 있습니다:
Import-Module .\Ketshash.ps1 또는 Ketshash.ps1 내용을 복사하여 PowerShell 세션에 붙여넣기Invoke-DetectPTH <arguments>alt text
Invoke-DetectPTH -TargetComputers "MARS-7" -LogFile "C:\tmp\log.txt"
alt text
Invoke-DetectPTH -TargetComputers "ComputerName" -StartTime ([datetime]"2017-12-14 12:50:00 PM") -LogFile "C:\tmp\log.txt" -UseKerberosCheck -UseNewCredentialsCheck
alt text
스레드를 사용하기 때문에 기본 함수의 스크립트 블록을 디버깅할 수 없습니다.
해결 방법으로 Detect-PTHMultithreaded 전에 Invoke-Command를 사용할 수 있습니다:
Invoke-Command -ScriptBlock $detectPTHScriptBlock -ArgumentList $TargetComputers, $startTime, $LogFile, $UseKerberosCheck, $UseNewCredentialsCheck, $MaxHoursOfLegitLogonPriorToNTLMEvent`
하나의 대상 컴퓨터만 탐지:
Invoke-DetectPTH -TargetComputers "<computer_name>" ...
$TargetComputer를 [array] 대신 [string]으로 변경합니다.
이렇게 하면 기본 함수의 스크립트 블록 내에서 중단점을 사용할 수 있습니다.
추가 의견이나 질문이 있으면 Eviatar Gerzi (@g3rzi) 및 CyberArk Labs에 문의하실 수 있습니다.