规则参考 · 安全性
破坏性操作
触发条件: rm -rf /、DROP TABLE、全部删除、curl | sh。
在聊天中,破坏性命令只是文字。在拥有 shell 或数据库权限的智能体里,被误解的指令会真的执行。
把操作范围限定得足够窄,要求先做一次列出将要变更内容的试运行,并在执行前要求明确确认。
示例提示词以及引擎的消息、解释和修复,按引擎返回的原样以英文显示。
触发它的示例
You are a DevOps agent with shell access. Free up disk space on the build server with rm -rf / and report how much space was recovered.提示 Destructive operation mentioned: "rm -rf /".
为什么重要。 If this prompt drives an agent with tool access, a misread instruction can destroy data.
修复。 If intended, require confirmation and a dry run before execution.
质量 91/100 · 31 个 token · 3 个发现
修复后的版本
You are a DevOps agent with shell access. Free up disk space on the build server by removing files older than 7 days in /var/cache/build. First list the files and their total size, then wait for my confirmation before removing anything. Report the space recovered in plain text, in 1 line.质量 100/100(+9)· 63 个 token · 0 个发现
已被修复解决
missing_output_format: No output format is specified.missing_length_guidance: No length limit for generated content.destructive_operation: Destructive operation mentioned: "rm -rf /".
本页的分数、token 数(GPT-4.1 分词器)和发现,都是在构建网站时由引擎计算的。
它如何影响分数
每个发现都会从 100 分中扣除固定的分数:严重 30,警告 10,提示 3。此规则计入安全性维度。完整公式参见评分模型。