ルールリファレンス · セキュリティ

破壊的な操作

  • destructive_operation
  • この例では情報
  • セキュリティ
  • 段階 · セキュリティとインジェクションの分析

検出される条件: 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 件

修正で解消されたもの

このページのスコア、トークン数(GPT-4.1 トークナイザー)、検出結果は、サイトのビルド時にエンジンが計算したものです。

スコアへの影響

検出結果ごとに 100 から固定のペナルティを引きます。重大 30、警告 10、情報 3。このルールはセキュリティの評価軸に計上されます。計算式の全体はスコアリングモデルを参照してください。

全 20 ルール →