Detection Engineeringのロゴ

Detection Engineering

組織
zero-lab-ai
detection-engineering

検知ルールをリリース前に検証します。既知の悪性の対象には反応し、既知の正常な対象には反応しないことを確認し、誤検知でSOCの判断が妨げられないようにします。Sigma/Suricata/YARAルールの作成、導入前の検知ルールのレビュー、アラート疲れのトリアージ、本番環境で使えるルールかどうかの判断に使用します。

Add to TypingMind

概要

公開者zero-lab-ai
リポジトリskills
スキル名detection-engineering
スター
152
フォーク
9
同梱ファイル
4
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    zero-lab-aiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Detection Engineering」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/zero-lab-ai/skills/tree/main/plugins/detection-validation/skills/detection-engineering
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zero-lab-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/detection-validation/skills/detection-engineering .claude/skills/detection-engineering
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDetection Engineeringを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDetection Engineeringを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Detection Engineeringは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Detection engineering

A detection rule is a claim: this pattern means an attack. The claim is worth nothing until it has been tested both ways.

Every rule must pass two tests, and neither substitutes for the other:

  • Fires on known-bad — it actually triggered on a true-positive sample.
  • Silent on known-good — it did not trigger on a benign sample.

A rule tested only against the attack is unproven against false positives. A rule never tested against the attack is unproven, period. If you cannot show both for a rule in production, you have a rule collection, not a detection programme.

When to Use

  • Writing a Sigma/Suricata/YARA rule, reviewing a detection before deployment, triaging alert fatigue, or deciding whether a rule has earned production.
  • Use only within explicit authorization and the stated rules of engagement.

When NOT to Use

  • Do not treat this skill as permission to access, test, or change a target.
  • Do not convert missing evidence into a clean result or a stronger claim.

Prove it before it ships

sh
uv run {baseDir}/scripts/check_detection.py record.json

Takes a test record per rule and fails any rule missing either proof, firing on known-good, over the false-positive ceiling, or unmapped to an ATT&CK technique. Exit 0 only when every rule is proven both ways; 1 on any unproven rule; 2 on empty input. See references/test-record.md.

Production decision

Known-bad resultKnown-good resultDisposition
FiresSilentEligible for controlled rollout
FiresFiresRewrite or narrowly tune; false-positive proof failed
SilentSilentDo not ship; the rule did not detect the behavior
MissingAny resultUnproven; collect the missing test evidence
FiresSilent, but provenance or mapping missingHold until the rule can support a defensible coverage claim

Record the decision per rule. A passing rule does not prove that the production pipeline will deliver or alert on it; live validation belongs to detection-validate.

False positives are the silent killer

Analysts go alert-blind within weeks when most of what fires is garbage — then the real alert gets the same shrug. Manage it in this order:

  1. Baseline first. Run a new rule in detection-only mode for ~2 weeks. Count the fires, investigate a sample, learn what normal looks like.
  2. Exception lists, not rule disablement. If a rule is noisy on one service account, exclude that account — do not switch the rule off for everyone.
  3. Track the rate. Above ~90% false positives the logic is wrong, not the exceptions. Rewrite it; do not tune it.

Every rule carries its provenance

For each rule you should be able to answer: where did the idea come from, what threat it addresses, what log source powers it, when it was last tested, and its false-positive rate. A rule whose last test date is unknown is an unproven rule regardless of how long it has been deployed — time in production is not evidence.

Keep detections in version control

Rules in Git, tests beside them, CI that validates syntax and runs each rule against sample known-bad and known-good log data before it compiles to your SIEM format. A detection pipeline without a test step ships unproven rules by construction.

Rationalizations to reject

RationalizationWhy it fails
“The attack sample fired, so the rule can ship.”It remains unproven against false positives; the SOC goes blind
“It has been in production for a year, so it works.”Time deployed is not a test. If the last-tested date is unknown, the rule is unproven
“The rule is noisy, so disable it.”Disabling it loses the true positives with the false ones; use a bounded exception instead
“We can tune around a 95% false-positive rate.”The logic is wrong, not the thresholds — rewrite it
“ATT&CK mapping is optional documentation.”Without the mapping, the rule cannot support a defensible coverage claim

References

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Detection Engineering」では何ができますか?

検知ルールをリリース前に検証します。既知の悪性の対象には反応し、既知の正常な対象には反応しないことを確認し、誤検知でSOCの判断が妨げられないようにします。Sigma/Suricata/YARAルールの作成、導入前の検知ルールのレビュー、アラート疲れのトリアージ、本番環境で使えるルールかどうかの判断に使用します。

TypingMindでDetection Engineeringを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Detection Engineeringはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDetection Engineeringをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/zero-lab-ai/skills/tree/main/plugins/detection-validation/skills/detection-engineeringを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Detection Engineeringを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Detection Engineeringで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDetection Engineeringを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Detection Engineering」は無料ですか?

はい。zero-lab-aiがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇