security: rm -rf 匹配泛化——覆盖无空格连写变体(如 rm -rf删除)
This commit is contained in:
parent
f209b2a645
commit
79d7c139c9
@ -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拒绝执行。'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user