ルールリファレンス · セキュリティ
破壊的な操作
検出される条件: rm -rf /、DROP TABLE、すべて削除、curl | sh。
チャットでは、破壊的なコマンドはただのテキストです。シェルやデータベースにアクセスできるエージェントでは、誤読された指示が実際に実行されます。
操作の範囲を狭く限定し、変更される内容を列挙するドライランを求め、実行前に明示的な確認を求めましょう。
例のプロンプトと、エンジンによるメッセージ・解説・修正案は、エンジンが返すとおり英語で表示されます。
検出される例
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 トークン · 検出結果 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 トークン · 検出結果 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 /".
このページのスコア、トークン数(GPT-4.1 トークナイザー)、検出結果は、サイトのビルド時にエンジンが計算したものです。
スコアへの影響
検出結果ごとに 100 から固定のペナルティを引きます。重大 30、警告 10、情報 3。このルールはセキュリティの評価軸に計上されます。計算式の全体はスコアリングモデルを参照してください。
セキュリティのその他のルール
- プロンプトインジェクションのシグネチャ: 重み付きのインジェクション/ジェイルブレイクのシグネチャ(リスク 60 以上で重大)。
- プロンプト内の機密データ: 認証情報(重大)または個人データ(警告)。
- 区切りのないテンプレート変数: タグ、コードフェンス、三重引用符の外にある {{var}} または ${var}。