mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 06:10:22 +00:00
fix(security): harden spoofed system marker handling
This commit is contained in:
@@ -27,6 +27,8 @@ const SUSPICIOUS_PATTERNS = [
|
||||
/delete\s+all\s+(emails?|files?|data)/i,
|
||||
/<\/?system>/i,
|
||||
/\]\s*\n\s*\[?(system|assistant|user)\]?:/i,
|
||||
/\[\s*(System\s*Message|System|Assistant|Internal)\s*\]/i,
|
||||
/^\s*System:\s+/im,
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user