A security vulnerability has been detected in NousResearch hermes-agent up to 2026.4.23. Impacted is an unknown function of the file agent/skills_guard.py of the component Skills Guard Multi-Word Prompt Handler. The manipulation of the argument THREAT_PATTERNS leads to injection. Remote exploitation of the attack is possible. The exploit has been disclosed publicly and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
CVE-2026-9353 is a high-severity injection vulnerability in NousResearch hermes-agent affecting the Skills Guard Multi-Word Prompt Handler component. The vulnerability allows remote attackers to manipulate THREAT_PATTERNS arguments to inject malicious code, with public exploit disclosure and no vendor patch available. This poses significant risk to organizations deploying AI agent systems for security-critical operations.
IMMEDIATE ACTIONS:
1. Inventory all systems running NousResearch hermes-agent versions up to 2026.4.23
2. Isolate affected systems from production networks if possible
3. Implement network segmentation to restrict access to hermes-agent components
4. Enable enhanced logging and monitoring on Skills Guard Multi-Word Prompt Handler
COMPENSATING CONTROLS (until patch available):
5. Implement input validation and sanitization for THREAT_PATTERNS arguments using whitelist-based filtering
6. Deploy Web Application Firewall (WAF) rules to detect and block injection attempts targeting agent/skills_guard.py
7. Apply strict access controls limiting who can modify THREAT_PATTERNS configurations
8. Implement runtime application self-protection (RASP) to detect injection attacks
9. Use containerization with read-only filesystems to limit exploitation impact
DETECTION RULES:
10. Monitor for suspicious THREAT_PATTERNS modifications in audit logs
11. Alert on unexpected process execution spawned from hermes-agent processes
12. Track unusual outbound connections from agent components
13. Implement YARA rules to detect known injection payloads in THREAT_PATTERNS
PATCHING:
14. Contact NousResearch for security updates or consider alternative AI agent solutions
15. Evaluate migration to patched versions once available
16. Maintain offline backups of critical configurations
الإجراءات الفورية:
1. حصر جميع الأنظمة التي تشغل إصدارات NousResearch hermes-agent حتى 2026.4.23
2. عزل الأنظمة المتأثرة عن شبكات الإنتاج إن أمكن
3. تطبيق تقسيم الشبكة لتقييد الوصول إلى مكونات hermes-agent
4. تفعيل السجلات والمراقبة المحسنة على معالج الأنماط متعدد الكلمات
الضوابط التعويضية (حتى توفر التصحيح):
5. تطبيق التحقق من صحة المدخلات والتطهير لحجج THREAT_PATTERNS باستخدام التصفية القائمة على القائمة البيضاء
6. نشر قواعد جدار الحماية لتطبيقات الويب (WAF) للكشف عن محاولات الحقن وحجبها
7. تطبيق ضوابط وصول صارمة لتحديد من يمكنه تعديل تكوينات THREAT_PATTERNS
8. تطبيق حماية التطبيقات في وقت التشغيل (RASP) للكشف عن هجمات الحقن
9. استخدام الحاويات مع أنظمة الملفات للقراءة فقط لتحديد تأثير الاستغلال
قواعد الكشف:
10. مراقبة تعديلات THREAT_PATTERNS المريبة في سجلات التدقيق
11. التنبيه على تنفيذ العمليات غير المتوقعة من عمليات hermes-agent
12. تتبع الاتصالات الخارجية غير العادية من مكونات الوكيل
13. تطبيق قواعد YARA للكشف عن حمولات الحقن المعروفة في THREAT_PATTERNS
التصحيح:
14. الاتصال بـ NousResearch للحصول على تحديثات أمان أو النظر في حلول وكيل ذكي بديلة
15. تقييم الترحيل إلى إصدارات مصححة عند توفرها
16. الحفاظ على نسخ احتياطية غير متصلة من التكوينات الحرجة