diff --git a/wwwroot/api/cockpit_chat.dspy b/wwwroot/api/cockpit_chat.dspy index bdadb8d..b3ea498 100644 --- a/wwwroot/api/cockpit_chat.dspy +++ b/wwwroot/api/cockpit_chat.dspy @@ -508,7 +508,7 @@ async def _route_pending_questions(sor, model_info, ctx, settings): SECURITY_RULES = [ (('drop table', 'drop database', 'truncate table', 'truncate ', '删库', '清空数据库', '清空所有表'), '包含直接删表/清库的破坏性SQL,此类操作必须走变更审批流程,Agent拒绝执行。'), - (('rm -rf /', 'rm -rf ~', 'rm -rf /*', 'mkfs', 'dd if=', '格式化磁盘'), + (('rm -rf', 'mkfs', 'dd if=', '格式化磁盘'), '包含可能破坏文件系统的危险命令,Agent拒绝执行。'), (('忽略之前的', '忽略上面所有', '忽略一切指令', '无视之前的', 'ignore previous', 'ignore all instructions', 'ignore everything above', '进入开发者模式', 'dan模式'), '检测到提示注入企图(试图覆盖系统指令),Agent拒绝执行。'),