OpenClaw before 2026.3.11 contains an approval integrity vulnerability where system.run approvals fail to bind mutable file operands for certain script runners like tsx and jiti. Attackers can obtain approval for benign script commands, rewrite referenced scripts on disk, and execute modified code under the approved run context.
OpenClaw before version 2026.3.11 contains a critical approval integrity vulnerability (CWE-863) affecting script execution in Node.js environments. Attackers can obtain approval for benign script commands, then rewrite the referenced scripts on disk to execute malicious code under the approved context. With a CVSS score of 8.0 and no patch currently available, this poses significant risk to organizations using OpenClaw for automated script execution and CI/CD pipelines.
Immediate Actions:
1. Inventory all OpenClaw installations across development, testing, and production environments
2. Disable or restrict access to OpenClaw's system.run approval functionality until patching is available
3. Implement file integrity monitoring (FIM) on all script files referenced by OpenClaw approvals
4. Review approval logs for any suspicious script modifications or execution patterns
Compensating Controls:
1. Implement strict file system permissions (read-only) on approved script directories where possible
2. Deploy application whitelisting to restrict script execution to known-good binaries
3. Enable comprehensive audit logging for all file modifications and script executions
4. Isolate OpenClaw execution environments using containerization or virtual machines
5. Implement code signing for all approved scripts and validate signatures before execution
Detection Rules:
1. Monitor for file modifications to scripts within 5 minutes of OpenClaw approval events
2. Alert on execution of tsx/jiti runners with different script content than approved versions
3. Track approval-to-execution time deltas; flag anomalous delays indicating potential tampering
4. Monitor for unauthorized write access to script directories from OpenClaw processes
Patching:
1. Subscribe to OpenClaw security advisories for version 2026.3.11 or later release
2. Establish testing procedures for OpenClaw updates in non-production environments first
3. Plan immediate deployment of patches upon availability
الإجراءات الفورية:
1. حصر جميع تثبيتات OpenClaw عبر بيئات التطوير والاختبار والإنتاج
2. تعطيل أو تقييد الوصول إلى وظيفة موافقة system.run في OpenClaw حتى يتوفر التصحيح
3. تنفيذ مراقبة سلامة الملفات (FIM) على جميع ملفات البرامج النصية المرجعية بواسطة موافقات OpenClaw
4. مراجعة سجلات الموافقة للكشف عن أي تعديلات أو أنماط تنفيذ مريبة للبرامج النصية
الضوابط البديلة:
1. تنفيذ أذونات نظام الملفات الصارمة (للقراءة فقط) على دلائل البرامج النصية المعتمدة حيثما أمكن
2. نشر قائمة بيضاء للتطبيقات لتقييد تنفيذ البرامج النصية على الملفات الثنائية المعروفة
3. تفعيل تسجيل التدقيق الشامل لجميع تعديلات الملفات وعمليات تنفيذ البرامج النصية
4. عزل بيئات تنفيذ OpenClaw باستخدام الحاويات أو الآلات الافتراضية
5. تنفيذ التوقيع الرقمي لجميع البرامج النصية المعتمدة والتحقق من التوقيعات قبل التنفيذ
قواعد الكشف:
1. مراقبة تعديلات الملفات على البرامج النصية خلال 5 دقائق من أحداث موافقة OpenClaw
2. تنبيهات على تنفيذ أجهزة تشغيل tsx/jiti بمحتوى برنامج نصي مختلف عن الإصدارات المعتمدة
3. تتبع فترات زمنية من الموافقة إلى التنفيذ؛ تنبيه التأخيرات الشاذة التي تشير إلى احتمال التلاعب
4. مراقبة الوصول غير المصرح به للكتابة إلى دلائل البرامج النصية من عمليات OpenClaw
التصحيح:
1. الاشتراك في تنبيهات أمان OpenClaw للإصدار 2026.3.11 أو إصدار لاحق
2. إنشاء إجراءات اختبار لتحديثات OpenClaw في بيئات غير الإنتاج أولاً
3. التخطيط للنشر الفوري للتصحيحات عند توفرها