NCP Secure Entry Client 9.2 contains an unquoted service path vulnerability in multiple Windows services that allows local users to potentially execute arbitrary code. Attackers can exploit the unquoted paths in services like ncprwsnt, rwsrsu, ncpclcfg, and NcpSec to inject malicious code that would execute with LocalSystem privileges during service startup.
CVE-2019-25281 is a local privilege escalation vulnerability in NCP Secure Entry Client 9.2 affecting multiple Windows services with unquoted paths. Attackers with local access can inject malicious executables to achieve arbitrary code execution with LocalSystem privileges. This vulnerability poses significant risk to organizations using NCP for secure remote access, particularly in Saudi banking and government sectors relying on this solution for VPN connectivity.
Immediate Actions:
1. Identify all systems running NCP Secure Entry Client 9.2 across your organization
2. Restrict local access to systems running vulnerable NCP services through Group Policy and access controls
3. Implement application whitelisting to prevent unauthorized executable injection
4. Enable Windows Service hardening and restrict service startup permissions
Patching Guidance:
1. Upgrade NCP Secure Entry Client to version 9.3 or later immediately
2. Apply vendor security patches as released by NCP
3. Verify service paths are properly quoted after patching
4. Test patches in non-production environments before enterprise deployment
Compensating Controls (if patching delayed):
1. Implement file integrity monitoring on service executable directories
2. Deploy endpoint detection and response (EDR) solutions to detect suspicious service modifications
3. Use Windows AppLocker to restrict execution in service directories
4. Monitor Windows Event Viewer for service startup anomalies (Event ID 7045)
5. Implement principle of least privilege for user accounts
Detection Rules:
1. Monitor for file creation in service directories (C:\Program Files\NCP*) by non-system accounts
2. Alert on service startup failures followed by successful execution of unexpected binaries
3. Track modifications to service registry keys (HKLM\SYSTEM\CurrentControlSet\Services\)
4. Monitor process execution with LocalSystem privileges from unusual paths
الإجراءات الفورية:
1. تحديد جميع الأنظمة التي تقوم بتشغيل عميل NCP Secure Entry الإصدار 9.2 عبر مؤسستك
2. تقييد الوصول المحلي للأنظمة التي تقوم بتشغيل خدمات NCP الضعيفة من خلال Group Policy وعناصر التحكم في الوصول
3. تنفيذ قائمة بيضاء للتطبيقات لمنع حقن الملفات التنفيذية غير المصرح بها
4. تفعيل تقسية خدمات Windows وتقييد أذونات بدء الخدمة
إرشادات التصحيح:
1. ترقية عميل NCP Secure Entry إلى الإصدار 9.3 أو أحدث على الفور
2. تطبيق تصحيحات الأمان من البائع حسب الإصدار
3. التحقق من أن مسارات الخدمة محاطة بعلامات اقتباس بشكل صحيح بعد التصحيح
4. اختبار التصحيحات في بيئات غير الإنتاج قبل نشرها على مستوى المؤسسة
عناصر التحكم البديلة (إذا تأخر التصحيح):
1. تنفيذ مراقبة سلامة الملفات على أدلة الخدمات التنفيذية
2. نشر حلول الكشف والاستجابة على نقاط النهاية (EDR)
3. استخدام Windows AppLocker لتقييد التنفيذ في أدلة الخدمات
4. مراقبة Windows Event Viewer للكشف عن شذوذ بدء الخدمة
5. تنفيذ مبدأ أقل امتياز للحسابات
قواعد الكشف:
1. مراقبة إنشاء الملفات في أدلة الخدمات من قبل حسابات غير النظام
2. التنبيه على فشل بدء الخدمة متبوعاً بتنفيذ ملفات ثنائية غير متوقعة
3. تتبع التعديلات على مفاتيح سجل الخدمة
4. مراقبة تنفيذ العمليات بامتيازات LocalSystem من مسارات غير عادية