セキュリティコパイロットとセンチネルMCPサーバー
Azure Identity Authentication を使用して Microsoft Security Copilot および Microsoft Sentinel との統合を提供する、FastMCP ライブラリを使用する Python ベースの MCP サーバー。
概要
このプロジェクトでは、次の機能を実現する MCP サーバーを実装します。
- Microsoft Sentinel に対して KQL クエリを実行する
- Microsoft Security Copilot スキルセット/プラグインのアップロード/更新
- Microsoft Security Copilot でプロンプトとスキルを実行する
このサーバーは開発環境とMicrosoft Security Copilotの間の橋渡しとして機能し、スキルとプラグインのテスト、展開、実行を可能にします。MCPサーバーのトランスポート層にはSSEを使用します。現在の統合には多くのユースケースがありますが、最も興味深いユースケースの一つは、Security Copilot KQLスキルの開発、テスト、展開をサポートすることです。
特徴
- Sentinel 統合: Sentinel ワークスペースに対して KQL クエリを実行します
- セキュリティコパイロット管理:
- 既存のスキルセット/プラグインを一覧表示する
- 新しいスキルセット/プラグインをアップロードするか、既存のスキルセット/プラグインを更新する
- Security Copilot 内でプロンプトまたはスキルを実行する
- 認証サポート: インタラクティブブラウザ、クライアントシークレット、マネージドIDを含む複数の認証方法
ロードマップ
次の機能が含まれます:
- プロンプトブックのテストとアップデート
- Defender XDRでAdvance Huntingクエリを実行する
前提条件
- Python 3.8以上
- Microsoft Sentinel ワークスペース
- Microsoft Security Copilot アクセス
- Sentinel と Security Copilot の適切な Azure 権限
インストール
- リポジトリをクローンします。
- 依存関係をインストールします:
- 次の構成で
.env
ファイルを作成します。
使用法
サーバーの起動
MCP サーバーを実行します。
サーバーを起動する前にテストを実行するには:
利用可能なツール
MCP サーバーは次のツールを提供します。
- run_sentinel_query : SentinelでKQLクエリを実行する
- get_skillsets : Security Copilot のスキルセットを一覧表示する
- upload_plugin : スキルセット/プラグインをアップロードまたは更新する
- run_prompt : Security Copilot でプロンプトまたはスキルを実行する
カーソルのMCPクライアント設定
このMCPサーバーは、お好みのクライアントからご利用いただけます。このリポジトリには、Cursorの説明書と設定ファイルが含まれています。
MCPツールを有効にするには、クライアントプロジェクト内に.cursorフォルダを追加してください。このフォルダには以下の2つのファイルが含まれています。
- カーソル プロジェクト ルール (securitycopilotdev.mdc): このファイルには、エージェントがプロセスを定義し、ユーザー プロンプトを理解するのに役立つカスタム カーソル ルールがいくつか含まれています。
- MCP クライアント構成 (mcp.json): Cursor を MCP サーバーに接続するファイル。
/tool_name パラメータ1="ツールパラメータの値" を使用してツールを直接呼び出すことができます。例: /run_prompt コンテンツ="最近のリスクのあるユーザーを一覧表示する"
詳細情報: https://docs.cursor.com/context/model-context-protocol#configuring-mcp-servers
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
- リポジトリをフォークする
- 機能ブランチを作成します(
git checkout -b feature/amazing-feature
) - 変更をコミットします (
git commit -m 'Add some amazing feature'
) - ブランチにプッシュする (
git push origin feature/amazing-feature
) - プルリクエストを開く
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Microsoft Security Copilot および Microsoft Sentinel との統合を可能にする Python ベースの MCP サーバー。ユーザーは KQL クエリを実行し、スキルセット/プラグインを管理し、Security Copilot でプロンプトを実行できます。
Related MCP Servers
- -securityFlicense-qualityThis is an MCP server that facilitates building tools for interacting with various APIs and workflows, supporting Python-based development with potential for customizable prompts and user configurations.Last updated -Python
- -securityFlicense-qualityA demonstration server showing MCP implementation in Python with resource handling, tool operations, and reusable prompts for a simple user/post system with local database.Last updated -Python
- -securityFlicense-qualityA Python implementation of an MCP server that enables secure, local Bitbucket integration for AI applications, providing tools for repository management, branch creation, file operations, issue tracking, and pull request creation.Last updated -1Python
- -securityFlicense-qualityA Python-based server that helps users easily install and configure other MCP servers across different platforms.Last updated -2Python