Microsoft SMBv3 Remote Code Execution Vulnerability — A remote code execution vulnerability exists in the way that the Microsoft Server Message Block 3.1.1 (SMBv3) protocol handles certain requests. An attacker who successfully exploited the vulnerability could gain the ability to execute code on the target server or client.
CVE-2020-0796, known as 'SMBGhost', is a critical remote code execution vulnerability in Microsoft's SMBv3 protocol (version 3.1.1) affecting Windows 10 and Windows Server 2019. An unauthenticated attacker can exploit a buffer overflow in the compression handling of SMBv3 to execute arbitrary code with SYSTEM-level privileges on both servers and clients. Public exploits are widely available, making this a high-priority threat for any organization running unpatched Windows systems. The vulnerability is wormable, meaning it can propagate across networks without user interaction, similar to EternalBlue (MS17-010).
IMMEDIATE ACTIONS (within 24 hours):
1. Apply Microsoft security update KB4551762 immediately for Windows 10 v1903/1909 and Windows Server 2019.
2. Identify all systems running SMBv3 using: Get-SmbServerConfiguration | Select EnableSMB2Protocol
3. Isolate any unpatched systems from the network immediately.
COMPENSATING CONTROLS (if patching is not immediately possible):
1. Disable SMBv3 compression on servers using PowerShell: Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters' DisableCompression -Type DWORD -Value 1 -Force
2. Block TCP port 445 at the perimeter firewall and between network segments.
3. Block SMB traffic from reaching internet-facing systems.
4. Implement network segmentation to limit lateral movement.
DETECTION RULES:
1. Monitor for anomalous SMB traffic patterns, especially large compressed packets.
2. Deploy Snort/Suricata rule: alert tcp any any -> any 445 (msg:'SMBGhost CVE-2020-0796'; content:'|FC 53 4D 42|'; depth:8;)
3. Enable Windows Event ID 4625 and 4648 monitoring for unusual authentication attempts.
4. Monitor for SYSTEM-level process creation from SMB-related processes (srv2.sys).
5. Use Microsoft Defender ATP or equivalent EDR to detect exploitation attempts.
POST-PATCH VALIDATION:
1. Verify patch installation: wmic qfe list | findstr KB4551762
2. Conduct vulnerability scanning using tools like Nessus or Qualys to confirm remediation.
الإجراءات الفورية (خلال 24 ساعة):
1. تطبيق تحديث مايكروسوفت الأمني KB4551762 فوراً لأنظمة Windows 10 الإصدار 1903/1909 وWindows Server 2019.
2. تحديد جميع الأنظمة التي تشغل SMBv3 باستخدام الأمر: Get-SmbServerConfiguration | Select EnableSMB2Protocol
3. عزل أي أنظمة غير مُرقَّعة عن الشبكة فوراً.
ضوابط التعويض (إذا تعذر التصحيح الفوري):
1. تعطيل ضغط SMBv3 على الخوادم باستخدام PowerShell.
2. حجب المنفذ TCP 445 على جدار الحماية الخارجي وبين قطاعات الشبكة.
3. منع حركة مرور SMB من الوصول إلى الأنظمة المواجهة للإنترنت.
4. تطبيق تجزئة الشبكة للحد من الحركة الجانبية.
قواعد الكشف:
1. مراقبة أنماط حركة مرور SMB غير الطبيعية، خاصة الحزم المضغوطة الكبيرة.
2. نشر قواعد Snort/Suricata للكشف عن محاولات الاستغلال.
3. تفعيل مراقبة معرفات أحداث Windows 4625 و4648.
4. مراقبة إنشاء العمليات بصلاحيات SYSTEM من العمليات المرتبطة بـ SMB.
5. استخدام Microsoft Defender ATP أو ما يعادله للكشف عن محاولات الاستغلال.
التحقق بعد التصحيح:
1. التحقق من تثبيت التحديث: wmic qfe list | findstr KB4551762
2. إجراء فحص للثغرات باستخدام أدوات مثل Nessus أو Qualys للتأكد من المعالجة.