Microsoft Windows Error Reporting Service Privilege Escalation Vulnerability — Microsoft Windows Error Reporting Service contains an unspecified vulnerability that allows for privilege escalation.
CVE-2023-36874 is a critical privilege escalation vulnerability in the Microsoft Windows Error Reporting (WER) Service with a CVSS score of 9.0. An attacker who has already gained limited access to a Windows system can exploit this flaw to elevate privileges to SYSTEM level, effectively gaining full control of the affected machine. A public exploit is available and this vulnerability has been observed in active exploitation campaigns, including by threat actors associated with nation-state operations. Immediate patching is strongly recommended as the combination of exploit availability and high impact makes this a priority threat.
IMMEDIATE ACTIONS (0-24 hours):
1. Apply Microsoft's July 2023 Patch Tuesday security update (KB5028166 for Windows 10/11, KB5028168 for Windows Server 2019/2022) immediately.
2. Prioritize patching internet-facing systems, domain controllers, and critical servers first.
3. Enable Windows Defender Credential Guard to limit post-exploitation impact.
4. Audit local administrator group memberships across all endpoints.
PATCHING GUIDANCE:
1. Deploy patches via WSUS, SCCM, or Intune across all Windows endpoints and servers.
2. Verify patch deployment using: Get-HotFix -Id KB5028166 (PowerShell).
3. Reboot systems after patching to ensure the fix is applied.
COMPENSATING CONTROLS (if patching is delayed):
1. Restrict access to WER service using AppLocker or Windows Defender Application Control (WDAC).
2. Implement least-privilege principles — remove unnecessary local admin rights.
3. Enable enhanced logging for WER service events (Event ID 1000, 1001).
4. Deploy EDR solutions to detect privilege escalation attempts.
5. Monitor for suspicious wermgr.exe and WerFault.exe process activity.
DETECTION RULES:
1. SIEM Alert: Monitor for wermgr.exe spawning child processes with elevated privileges.
2. Sigma Rule: Detect unexpected SYSTEM-level processes spawned by WER service.
3. Monitor Windows Event Log for Event ID 4672 (Special privileges assigned) following WER service activity.
4. Hunt for LOLBins executed under WER service context.
الإجراءات الفورية (خلال 0-24 ساعة):
1. تطبيق تحديث الأمان الصادر في يوليو 2023 من Microsoft (KB5028166 لـ Windows 10/11، KB5028168 لـ Windows Server 2019/2022) فوراً.
2. إعطاء الأولوية لتصحيح الأنظمة المكشوفة على الإنترنت ووحدات التحكم بالنطاق والخوادم الحيوية.
3. تفعيل Windows Defender Credential Guard للحد من تأثير الاستغلال.
4. مراجعة عضويات مجموعة المسؤولين المحليين على جميع الأجهزة.
إرشادات التصحيح:
1. نشر التحديثات عبر WSUS أو SCCM أو Intune على جميع الأجهزة والخوادم.
2. التحقق من تطبيق التحديث باستخدام: Get-HotFix -Id KB5028166 (PowerShell).
3. إعادة تشغيل الأنظمة بعد التصحيح لضمان تطبيق الإصلاح.
ضوابط التعويض (في حال تأخر التصحيح):
1. تقييد الوصول إلى خدمة WER باستخدام AppLocker أو WDAC.
2. تطبيق مبدأ الصلاحيات الدنيا وإزالة حقوق المسؤول المحلي غير الضرورية.
3. تفعيل التسجيل المحسّن لأحداث خدمة WER (معرف الحدث 1000، 1001).
4. نشر حلول EDR للكشف عن محاولات رفع الصلاحيات.
5. مراقبة نشاط العمليات المشبوهة لـ wermgr.exe وWerFault.exe.
قواعد الكشف:
1. تنبيه SIEM: مراقبة wermgr.exe عند إنشاء عمليات فرعية بصلاحيات مرتفعة.
2. قاعدة Sigma: الكشف عن عمليات SYSTEM غير متوقعة تنشأ عن خدمة WER.
3. مراقبة سجل أحداث Windows للحدث 4672 (تعيين صلاحيات خاصة) عقب نشاط خدمة WER.
4. البحث عن LOLBins المنفذة في سياق خدمة WER.