
أداة صيد تهديدات تعتمد على PowerShell تقوم بتحليل سجلات أحداث Windows للكشف عن النشاطات الضارة بما في ذلك هجمات بيانات الاعتماد، الأوامر المشوشة، التلاعب بالخدمات، واستخدام Mimikatz.
DeepBlueCLI - وحدة باورشيل لصيد التهديدات عبر سجلات أحداث ويندوز
إريك كونراد، شركة باكشور للاتصالات، LLC
deepblue at backshore dot net
تويتر: @eric_conrad
ملفات EVTX النموذجية موجودة في المجلد .\evtx
ملاحظة إذا أثار مضاد الفيروسات لديك قلقًا بعد تنزيل DeepBlueCLI: من المحتمل أنه يتفاعل مع ملفات EVTX المضمنة في مجلد .\evtx (والتي تحتوي على سجلات سطر أوامر لهجمات ضارة، من بين قطع أثرية أخرى). ملفات EVTX ليست ضارة. قد تحتاج إلى تكوين مضاد الفيروسات الخاص بك لتجاهل دليل DeepBlueCLI.
.\DeepBlue.ps1 <event log name> <evtx filename>
انظر قراءة Set-ExecutionPolicy إذا تلقيت خطأ 'تشغيل البرامج النصية معطل على هذا النظام'.
.\DeepBlue.ps1
أو:
.\DeepBlue.ps1 -log security
.\DeepBlue.ps1 -log system
.\DeepBlue.ps1 .\evtx\new-user-security.evtx
انظر قسم إعداد التسجيل أدناه لمعرفة كيفية تكوين هذه السجلات
lsadump::sam...والمزيد
يخرج DeepBlueCLI على شكل كائنات باورشيل، مما يسمح بمجموعة متنوعة من طرق وأنواع المخرجات، بما في ذلك JSON وHTML وCSV وغيرها.
على سبيل المثال:
تفعيل تدقيق سطر أوامر ويندوز: https://support.microsoft.com/en-us/kb/3004375
يتطلب تدقيق فشل تسجيل الدخول: https://technet.microsoft.com/en-us/library/cc976395.aspx
يستخدم DeepBlueCLI تسجيل الوحدة (حدث باورشيل 4103) وتسجيل كتلة النص البرمجي (4104). لا يستخدم النسخ الكتابي.
انظر: https://www.fireeye.com/blog/threat-research/2016/02/greater_visibilityt.html
للحصول على سطر أوامر باورشيل (وليس فقط كتلة النص البرمجي) على ويندوز 7 حتى ويندوز 8.1، أضف ما يلي إلى \Windows\System32\WindowsPowerShell\v1.0\profile.ps1
$LogCommandHealthEvent = $true
$LogCommandLifecycleEvent = $true
انظر ما يلي لمزيد من المعلومات:
شكرًا: @heinzarelli و@HackerHurricane
تثبيت Sysmon من Sysinternals: https://docs.microsoft.com/en-us/sysinternals/downloads/sysmon
يستخدم DeepBlue وDeepBlueHash حاليًا أحداث Sysmon: 1 و6 و7.
سجل تجزئات SHA256. غيرها مقبول؛ سيستخدم DeepBlueHash SHA256.
| الحدث | الأمر |
|---|
| التلاعب بسجل الأحداث | .\DeepBlue.ps1 .\evtx\disablestop-eventlog.evtx |
| الهدف الأصلي لـ Metasploit (الأمان) | .\DeepBlue.ps1 .\evtx\metasploit-psexec-native-target-security.evtx |
| الهدف الأصلي لـ Metasploit (النظام) | .\DeepBlue.ps1 .\evtx\metasploit-psexec-native-target-system.evtx |
| هدف PowerShell لـ Metasploit (الأمان) | .\DeepBlue.ps1 .\evtx\metasploit-psexec-powershell-target-security.evtx |
| هدف PowerShell لـ Metasploit (النظام) | .\DeepBlue.ps1 .\evtx\metasploit-psexec-powershell-target-system.evtx |
Mimikatz lsadump::sam | .\DeepBlue.ps1 .\evtx\mimikatz-privesc-hashdump.evtx |
| إنشاء مستخدم جديد | .\DeepBlue.ps1 .\evtx\new-user-security.evtx |
| الإبهام (ترميز) | .\DeepBlue.ps1 .\evtx\Powershell-Invoke-Obfuscation-encoding-menu.evtx |
| الإبهام (سلسلة) | .\DeepBlue.ps1 .\evtx\Powershell-Invoke-Obfuscation-string-menu.evtx |
| تخمين كلمة المرور | .\DeepBlue.ps1 .\evtx\smb-password-guessing-security.evtx |
| رش كلمة المرور | .\DeepBlue.ps1 .\evtx\password-spray.evtx |
| PowerSploit (الأمان) | .\DeepBlue.ps1 .\evtx\powersploit-security.evtx |
| PowerSploit (النظام) | .\DeepBlue.ps1 .\evtx\powersploit-system.evtx |
| PSAttack | .\DeepBlue.ps1 .\evtx\psattack-security.evtx |
| مستخدم مضاف إلى مجموعة المسؤولين | .\DeepBlue.ps1 .\evtx\new-user-security.evtx |
| نوع المخرجات | الصيغة |
|---|
| CSV | .\DeepBlue.ps1 .\evtx\psattack-security.evtx | ConvertTo-Csv |
| قائمة التنسيق (افتراضي) | .\DeepBlue.ps1 .\evtx\psattack-security.evtx | Format-List |
| جدول التنسيق | .\DeepBlue.ps1 .\evtx\psattack-security.evtx | Format-Table |
| GridView | .\DeepBlue.ps1 .\evtx\psattack-security.evtx | Out-GridView |
| HTML | .\DeepBlue.ps1 .\evtx\psattack-security.evtx | ConvertTo-Html |
| JSON | .\DeepBlue.ps1 .\evtx\psattack-security.evtx | ConvertTo-Json |
| XML | .\DeepBlue.ps1 .\evtx\psattack-security.evtx | ConvertTo-Xml |