
एक छोटा सा उपकरण जो इवेंट व्यूअर लॉग के आधार पर संदिग्ध विशेषाधिकार प्राप्त 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 से संपर्क कर सकते हैं।