この製品のマニュアルセットは、偏向のない言語を使用するように配慮されています。このマニュアルセットでの偏向のない言語とは、年齢、障害、性別、人種的アイデンティティ、民族的アイデンティティ、性的指向、社会経済的地位、およびインターセクショナリティに基づく差別を意味しない言語として定義されています。製品ソフトウェアのユーザーインターフェイスにハードコードされている言語、RFP のドキュメントに基づいて使用されている言語、または参照されているサードパーティ製品で使用されている言語によりドキュメントに例外が存在する場合があります。シスコのインクルーシブランゲージに対する取り組みの詳細は、こちらをご覧ください。
このドキュメントは、米国シスコ発行ドキュメントの参考和訳です。リンク情報につきましては、日本語版掲載時点で、英語版にアップデートがあり、リンク先のページが移動/変更されている場合がありますことをご了承ください。あくまでも参考和訳となりますので、正式な内容については米国サイトのドキュメントを参照ください。
この章では、Detector モジュールのラーニング プロセスを使用してゾーン トラフィックの特性を分析し、Detector モジュールがゾーン異常検出に使用するポリシーを作成および微調整する方法について説明します。
• ゾーンのラーニング プロセスの結果と Cisco Anomaly Guard Module の同期
• ポリシーの構築
• ゾーンのポリシーのしきい値調整とゾーン異常検出のイネーブル化の同時実行
ラーニング プロセスは、ネットワーク上で現在攻撃が発生していないときに、通常のトラフィック パターンのベースラインを作成します。Detector モジュールは、このベースラインを、ゾーン トラフィック内における異常の存在を検出するための参照ポイントとして使用します。これらの参照ポイントを ポリシー といいます。
ポリシーを構築する最初のラーニング プロセスが終了したら、ラーニング プロセスとゾーン異常検出を同時にアクティブにできます。Detector モジュールは、ポリシーのしきい値を調整するとともに、トラフィックに異常がないかどうかについて、ポリシーのしきい値を監視します。このプロセスでは、Detector モジュールがゾーンのトラフィック特性に応じてポリシーのしきい値を常にアップデートしながら、 ゾーン トラフィックの異常を検出でき、Detector モジュールで悪意のあるトラフィックのしきい値がラーニングされません。
ラーニング プロセスを実行するには、ゾーンに送信されるトラフィックをキャプチャし、そのコピーを Detector モジュールに渡すようにスイッチを設定する必要があります。詳細については、「トラフィックをキャプチャするためのトラフィックの送信元の設定」を参照してください。
複数のゾーンに対して同時に ラーニング 関連のコマンドを入力できます。これには、グローバル モードで、ワイルドカードにアスタリスク(*)を使用してコマンドを発行します。たとえば、すべてのゾーンについてポリシー構築フェーズを開始する場合は、グローバル モードで learning policy-construction * コマンドを入力します。scan で始まる名前を持つ Detector モジュールのすべてのゾーン(scannet や scanserver など)のポリシー構築フェーズの結果を受け入れるには、グローバル モードで no learning scan * accept コマンドを入力します。
ラーニング プロセスは、次の 2 つのフェーズで構成されています。
• ポリシー構築:Detector モジュールはポリシー テンプレートを使用してゾーン ポリシーを作成します。トラフィックは Detector モジュールを通過し、ゾーンによって使用される主なサービスを検出できます。既存のポリシーが新しいポリシーで上書きされます。
ポリシー テンプレートは、Detector モジュールのポリシー構築用ツールです。このテンプレートは、Detector モジュールが作成するゾーン ポリシーのタイプを定義します。また、ポリシー テンプレートは、Detector モジュールが厳密に監視するサービスの最大数と、Detector モジュールによる新しいポリシーの作成をトリガーする最小しきい値も定義します。ゾーン ポリシーを構築するための規則を変更するには、ポリシー テンプレート パラメータを変更してから、ポリシー構築フェーズを開始する必要があります。詳細については、「ポリシー テンプレートとポリシーの設定」 を参照してください。
GUARD_LINK ゾーン テンプレートまたは DETECTOR_LINK ゾーン テンプレートを使用して作成されたゾーンに対してポリシー構築フェーズを実行することはできません。
• しきい値調整:Detector モジュールは、ゾーン サービスのトラフィック レートに合せて、ポリシー構築フェーズ中に構築されたポリシーを調整します。トラフィックは Detector モジュールを通過し、ゾーン ポリシーの構築中に検出されたサービスのしきい値を調整できます。既存のしきい値が新しいしきい値で上書きされます。
しきい値調整フェーズとゾーン異常検出を同時にアクティブにすると(検出およびラーニング機能)、Detector モジュールで悪意のあるトラフィックのしきい値をラーニングすることを防止できます。Detector モジュールが常にゾーン ポリシーを調整するように設定し、Detector モジュールがポリシーのしきい値を更新するときの間隔を定義することができます。
Detector モジュールは、ゾーンのトラフィックの特性をラーニングして、ゾーンのトラフィックを比較するベースラインを作成し、悪意の攻撃となる可能性のある異常をすべてトレースします。Detector モジュールは、ラーニング プロセスの間は、現在のゾーン ポリシーを変更しません。ラーニング フェーズの結果の 1 つを受け入れると決めたときに限り、ポリシーを更新します。ポリシーが作成された後は、ポリシーを追加または削除できます。また、しきい値、サービス、タイムアウト、アクションなどのポリシー パラメータを変更することもできます。
Detector モジュールは、ポリシー構築フェーズ中ではなく、しきい値調整フェーズ中にワーム ポリシーの新しいサービスをラーニングします。したがって、しきい値調整フェーズ中に、ワーム ポリシーに追加された新しいサービス(ポート)が表示される場合があります。
ラーニング プロセス中のどの段階でも、任意のラーニング フェーズの現在の結果を保存して、後で snapshot コマンドを使用して確認できます。ラーニング プロセスのスナップショットを保存することで、スナップショットのポイントまでに Detector モジュールが作成したポリシー情報を表示し、ラーニング プロセスの結果を受け入れるかどうかを判断できます。ラーニング フェーズの結果をスナップショットに保存しても、ゾーン設定には影響はありません。スナップショット内のポリシー情報を使用してゾーン設定をアップデートできます。
ポリシーを構築する最初のラーニング プロセスが終了したら、ラーニング プロセスをアクティブにし、検出およびラーニング機能を使用して、同時にゾーン異常検出をイネーブルにできます。Detector モジュールは、ポリシーのしきい値を調整するとともに、トラフィックに異常がないかどうかについて、ポリシーのしきい値を監視します。検出およびラーニング機能により、ポリシーのしきい値をゾーンのトラフィック特性に基づいて常にアップデートしながら、Detector モジュールでゾーン トラフィックの異常検出を実行できるようになるため、Detector モジュールが悪意のあるトラフィックのしきい値をラーニングすることがなくなります。
保護およびラーニング機能をアクティブにする前に、ラーニング パラメータを設定することで、Detector モジュールがラーニング プロセスの結果をいつ、どのように受け入れるかを設定できます。
詳細については、「ゾーンのポリシーのしきい値調整とゾーン異常検出のイネーブル化の同時実行」を参照してください。
Detector モジュールがゾーン上で攻撃を検出すると、ラーニング プロセスを停止し、Cisco Anomaly Guard Module(Guard モジュール)をアクティブ化してゾーンを保護します。その後、攻撃が終了すると、ゾーン トラフィックのラーニングを再開します。このプロセスにより、トラフィックに対するゾーンのポリシーのしきい値を継続的に調整できる一方で、ゾーンのトラフィックが常に Guard モジュールに宛先変更されることがなくなります。Detector モジュールがゾーンのトラフィックを常にラーニングして、ゾーンのポリシーで Guard モジュールをアップデートするように設定できます。
ラーニング プロセスの結果を Guard モジュールと同期させるには、次の作業を実施する必要があります。
1. Guard モジュールを Detector モジュール上のリモート Guard リストに追加して、通信方法を Secure Socket Layer(SSL)として定義します。「リモート Guard リストを使用したリモート Guard のアクティブ化」を参照してください。
2. Guard モジュールとの SSL 通信チャネルを確立します。「SSL 通信チャネルの設定」を参照してください。
3. Detector モジュール上で Guard ゾーン テンプレートを使用してゾーンを作成します。「ゾーン テンプレートからの新しいゾーンの作成」を参照してください。
4. ゾーンの検出およびラーニング機能をアクティブにします。「ゾーンのポリシーのしきい値調整とゾーン異常検出のイネーブル化の同時実行」を参照してください。
ゾーン設定を Guard モジュールと同期させることも、ゾーン設定を自動的に Guard モジュールと同期させるように Detector モジュールを設定することもできます。詳細については、「Detector モジュールの Cisco Anomaly Guard Module とのゾーン設定の同期」を参照してください。
ポリシー構築フェーズは、新しいゾーンを作成した後や、ゾーン設定が新しいサービス ポリシーを使用してアップデートを行う必要があるときに使用します。ポリシー構築フェーズを実行した後、しきい値調整フェーズを実行して各ポリシーのしきい値を微調整します。
ポリシー構築フェーズでは、Detector モジュールはポリシー テンプレートを使用してゾーン ポリシーを作成します。トラフィックが Detector モジュールを通過し、ゾーンによって使用される主なサービス(ポートとプロトコル)を検出できます。ポリシー構築の規則を設定することもできます。たとえば、Detector モジュールで特定のタイプのポリシーが作成されないようにするには、関連するポリシー テンプレートをディセーブルにします。ゾーン ポリシーを構築するための規則を変更するには、ポリシー テンプレート パラメータを変更してから、ポリシー構築フェーズを開始する必要があります。詳細については、「ポリシー テンプレートについて」を参照してください。
Detector モジュールは、ポリシー パラメータ(タイムアウト、アクション、およびしきい値)のデフォルト値を設定します。動作パラメータのデフォルト値の設定方法については、「ポリシー テンプレートとポリシーの設定」を参照してください。
このフェーズで Detector モジュールが作成する新しいポリシーは、既存のポリシーに置き換えられます。
(注) 帯域幅限定リンク ゾーン テンプレート(DETECTOR_LINK_128K、DETECTOR_LINK_1M、DETECTOR_LINK_4M および GUARD_LINK_512K、GUARD_LINK_128K、GUARD_LINK_1M、GUARD_LINK_4M、GUARD_LINK_512K)に基づくゾーンに対しては、ポリシー構築を実行できません。
ポリシー構築フェーズをアクティブ化する前に、ゾーン上に攻撃がないことを確認してください。これにより、Detector が、DDoS 攻撃(分散型サービス拒絶攻撃)のトラフィック特性に基づいてポリシーを構築することを回避できます。Detector が、DDoS 攻撃のトラフィック特性をラーニングし、攻撃の結果をベースラインとして保存してしまうと、攻撃を通常のトラフィックの状態とみなすため、Detector はその後に発生する攻撃を検出できなくなります。
ステップ 1 ゾーン設定モードで次のコマンドを入力することで、ポリシー構築フェーズを実行できます。
ステップ 2 Detector モジュールがゾーンのトラフィックのコピーを受信していることを確認してください。
ポリシー構築またはしきい値調整を開始してから少なくとも 10 秒待ってから、 show rates コマンドを入力します。Received traffic レートの値がゼロより大きいことを確認します。値がゼロの場合は、Detector モジュールがゾーンのトラフィックのコピーを受信していないことを示します。トラフィックの送信元が、トラフィックのキャプチャについて設定されていることを確認します。詳細については、「トラフィックをキャプチャするためのトラフィックの送信元の設定」を参照してください。
ステップ 3 (オプション)Detector モジュールが構築中のポリシーを表示します。
ポリシー構築フェーズの任意の段階で snapshot コマンドを使用して、ラーニング パラメータ(サービス、しきい値、およびポリシー関連のその他のデータ)のスナップショットを保存しておいて、後で確認することができます。単一のスナップショットを保存するか、定期的なスナップショットを(指定した間隔で)保存することができます。
詳細については、「ポリシー設定のバックアップ」を参照してください。
ステップ 4 (オプション)ポリシー構築フェーズを長期間実行する場合、 ポリシー構築フェーズを停止しなくても、 Detector モジュール によって提案されたポリシーを受け入れることができます。ポリシーを 1 回受け入れるか、提案されたポリシーを Detector モジュールが指定された間隔で自動的に受け入れるように定義できます。これでゾーンが最新のポリシーを持つだけでなく、継続してゾーンのトラフィックをラーニングすることを保証できます。
Detector モジュール によって提案されたポリシーを受け入れ、ポリシー構築フェーズを継続するには、次のコマンドを使用します。
Detector モジュール によって提案されたポリシーを指定した間隔で自動的に受け入れるには 、次のコマンドを入力します。
詳細については、「ラーニング パラメータの設定」を参照してください。
定期的なアクションを終了するには、 no learning-params periodic-action コマンドを使用します。
ステップ 5 十分に時間をおいてからポリシー構築フェーズを終了し、新しく構築されたポリシーの取り扱いを決定します。
ゾーンが使用する主なサービス(ポートおよびプロトコル)を Detector モジュールが検出するための十分な時間を確保するために、ポリシー構築フェーズを少なくとも 2 時間継続することをお勧めします。
• 提案されたポリシーの受け入れ:Detector モジュール によって提案 されたポリシーを受け入れるには、ゾーン設定モードで次のコマンドを入力します。
Detector モジュールは、以前にラーニングしたポリシーとしきい値を消去します。
新しく構築されたポリシーを受け入れた後は、手動でポリシーを追加または削除できます。詳細については、「ポリシー テンプレートとポリシーの設定」 を参照してください。
• 提案されたポリシーの拒否:Detector モジュール によって提案された ポリシーを拒否するには、ゾーン設定モードで次のコマンドを入力します。
Detector モジュールはプロセスを停止し、ラーニングした新しいポリシーを保存しません。ゾーンのポリシーは、Detector モジュールがラーニング プロセスを開始する前か、ポリシー構築フェーズの結果を最後に受け入れる前のポリシーになります。
次の例は、ポリシー構築フェーズを開始し、提案されたポリシーを 12 時間間隔で受け入れる方法を示しています。さらに、ポリシー構築フェーズを停止し、提案されたポリシーを受け入れる方法も示しています。
user@DETECTOR-conf-zone-scannet#
learning policy-construction
user@DETECTOR-conf-zone-scannet#
learning-params periodic-action auto-accept
0 12 0
user@DETECTOR-conf-zone-scannet#
no learning accept
しきい値調整フェーズでは、Detector モジュールがゾーンのトラフィックを分析し、ポリシー構築フェーズで構築されたポリシーのしきい値を定義します。
Detector モジュールが、最後に受け入れられたポリシーしきい値を監視してトラフィックの異常を探しながら、ゾーンのトラフィックをラーニングするように設定できます。Detector モジュールは、ゾーンに対する攻撃を検出した後、しきい値調整フェーズを停止しますが、ゾーン異常検出を継続することで、Detector モジュールが悪意のあるトラフィックのしきい値をラーニングすることがなくなります。
攻撃が終了すると、Detector モジュールはラーニング プロセスを再開します。
ステップ 1 ゾーン設定モードで次のコマンドを入力することで、しきい値調整フェーズを実行できます。
検出およびラーニング機能を開始すること、つまり、しきい値調整フェーズをアクティブにすると同時に Detector モジュールがゾーンを異常検出するように設定することをお勧めします。
すでにゾーン異常検出またはラーニング プロセスのしきい値調整フェーズをアクティブにしている場合、 learning threshold-tuning コマンドと detect コマンド(順序は問いません)の両方を入力して、検出およびラーニング機能をアクティブにします。
Detector モジュールは、ゾーンに対する攻撃を検出した場合はしきい値調整フェーズを停止しますが、ゾーン検出は継続します。
(注) ゾーン宛てのトラフィックが通常の量のときに、検出およびラーニング モードをアクティブにした場合、Detector モジュールは、ピーク時のトラフィックを攻撃と見なす可能性があります。このような場合は、次のいずれかを行うことができます。
• ゾーン設定モードで learning-params threshold-tuned コマンドを入力することで、ゾーン ポリシーしきい値の状態を未調整に設定できます。詳細については、「ポリシーに対する調整済みのマーク付け」を参照してください。
• ゾーン設定モードで no detect コマンドを入力して、ゾーン異常検出を無効にし、ゾーン ポリシーしきい値を継続してラーニングします。
ゾーン異常検出としきい値調整フェーズを同時に非アクティブにするには、ゾーン設定モードで deactivate コマンドを使用します。
しきい値調整フェーズだけをアクティブにするには、 learning threshold-tuning コマンドを使用します。
ステップ 2 Detector モジュールがゾーンのトラフィックのコピーを受信していることを確認してください。
ポリシー構築またはしきい値調整を開始してから少なくとも 10 秒待ってから、 show rates コマンドを発行します。Received traffic レートの値がゼロより大きいことを確認します。値がゼロの場合は、Detector モジュールがゾーンのトラフィックのコピーを受信していないことを示します。トラフィックの送信元が、トラフィックのキャプチャについて設定されていることを確認します。詳細については、「トラフィックをキャプチャするためのトラフィックの送信元の設定」を参照してください。
ステップ 3 (オプション)Detector モジュールが調整中のゾーン ポリシーを表示します。
しきい値調整フェーズの任意の段階で、 snapshot コマンドを使用して、ラーニング パラメータ(サービス、しきい値、およびポリシー関連のその他のデータ)のスナップショットを保存できます。後でスナップショットを確認することや、ラーニング パラメータを別のスナップショットと比較することができます。単一のスナップショットを保存するか、定期的なスナップショットを(指定した間隔で)保存することができます。
詳細については、「ポリシー設定のバックアップ」を参照してください。
Detector モジュール が提案したゾーン ポリシーを受け入れ、 しきい値の調整 フェーズを継続するか、または Detector モジュールが自動的に提案したポリシーを指定した間隔で受け入れることを定義することで、ゾーンが最新のポリシーを持ち、ゾーンのトラフィックのラーニングを継続することが保証されます。
Detector モジュール によって提案されたポリシーを受け入れ、 しきい値調整 フェーズを継続するには、次のコマンドを使用します。
[
threshold-selection {new-thresholds | max-thresholds | weighted weight}]
threshold-selection の引数とキーワードについては、 表8-2 を参照してください。
Detector モジュール によって提案されたポリシーを指定した間隔で自動的に受け入れるには 、次のコマンドを入力します。
詳細については、「ラーニング パラメータの設定」を参照してください。
定期的なアクションを終了するには、 no learning-params periodic-action コマンドを使用します。
ステップ 5 十分な時間が経過してから、しきい値調整フェーズを終了し、新しく調整されたポリシーの処理方法を決定します。
(注) しきい値調整フェーズをトラフィックのピーク時(1 日で最も忙しい部分)に、少なくとも 24 時間実行して、Detector モジュールがポリシーしきい値を正しく調整するために十分な時間を確保することをお勧めします。
検出機能とラーニング機能をイネーブルにし、しきい値調整フェーズを継続することをお勧めします。
• 提案されたポリシーの受け入れ:Detector モジュール によって提案されたポリシーのしきい値を受け入れるには、 ゾーン設定モードで次のコマンドを入力します。
[
threshold-selection {new-thresholds | max-thresholds | weighted weight}]
threshold-selection の引数とキーワードについては、 表8-2 を参照してください。
Detector モジュールは、以前にラーニングしたしきい値を消去します。
新しく調整されたポリシーを受け入れた後は、手動でポリシーのパラメータを変更することができます。詳細については、「ポリシー テンプレートとポリシーの設定」 を参照してください。
• 提案されたポリシーの拒否:Detector モジュール によって提案された ポリシーのしきい値を拒否するには、ゾーン設定モードで次のコマンドを入力します。
Detector モジュールはしきい値の調整を停止して、前のしきい値の状態に戻します。そのプロセスの結果、新しく構築されたゾーン ポリシーには、以前のトラフィック特性に基づいて取得したしきい値が使用される場合があります。後でしきい値調整フェーズを有効にするか、またはそのしきい値を手動で設定することをお勧めします。
次の例は、しきい値調整フェーズを開始し、提案されたポリシーを 1 時間間隔で受け入れる方法を示しています。Detector モジュールは、次に、しきい値調整フェーズを停止し、しきい値が現在の値よりも大きい場合に、提案されたポリシーを受け入れます(max-thresholds 方式)。
user@DETECTOR-conf-zone-scannet#
learning threshold-tuning
user@DETECTOR-conf-zone-scannet#
learning-params periodic-action auto-accept
0 1 0
user@DETECTOR-conf-zone-scannet#
no learning accept threshold-selection max-thresholds
ラーニングの結果を表示するには、 show policies statistics コマンドを使用します。詳細については、「ポリシーの表示」を参照してください。
ラーニングしたしきい値を確認した後は、結果の一部を変更できます。この変更がその後のしきい値調整フェーズで上書きされないようにするには、次のタスクのいずれかを実行します。
• ポリシーのしきい値を固定値として設定する:Detector モジュールは新しいしきい値を無視し、現在のしきい値を保持します。詳細については、「固定値としてのしきい値の設定」を参照してください。
• ポリシーの固定乗数を設定する:Detector モジュールが新しいポリシーのしきい値を計算する場合は、ラーニングしたしきい値に指定の乗数を掛け、その結果にしきい値選択方式を適用します。詳細については、「しきい値の乗数の設定」を参照してください。
ラーニング パラメータを使用すると、Detector モジュールで実行できるラーニング関連のアクションと、指定したポリシーを Detector モジュールで処理する方法を設定できます。次のパラメータを定義できます。
• periodic-action:自動的にゾーン ポリシーを受け入れ、指定した間隔でゾーン ポリシーのスナップショットを保存するように Detector モジュールを設定します。
詳細については、「定期的なアクションの設定」を参照してください。
• threshold-tuned:ゾーンのポリシーに調整済みのマークを付けます。ゾーンのポリシーが調整済みとしてマークされていない場合、Detector モジュールはゾーンに対する攻撃を検出しません。
詳細については、「ポリシーに対する調整済みのマーク付け」を参照してください。
• threshold-selection:Detector モジュールがしきい値調整フェーズの結果を受け入れて新しいポリシーのしきい値を生成するときに使用される、デフォルトの方式を設定します。
詳細については、「しきい値選択方式の設定」を参照してください。
• fixed-threshold:ポリシーのしきい値を固定として設定するため、Detector モジュールは後続のしきい値調整フェーズで、ポリシーしきい値の値を変更しません。
詳細については、「固定値としてのしきい値の設定」を参照してください。
• threshold-multiplier:ポリシーのしきい値の固定乗数を設定するので、Detector モジュールは後続のしきい値調製フェーズで新しいポリシーしきい値を計算します。
詳細については、「しきい値の乗数の設定」を参照してください。
ラーニング パラメータの設定を表示するには、ゾーン設定モードで show learning-params コマンドを使用します。
指定した間隔で次のいずれかのアクションを実行するように Detector モジュールを設定します。
• ゾーン ポリシーを自動的に受け入れ、ポリシーのスナップショットを保存する
スナップショットの詳細については、「ポリシーの監視」を参照してください。
Detector モジュールが実行する定期的なアクションを設定するには、ゾーン設定モードで次のコマンドを入力します。
learning-params periodic-action {auto-accept | snapshot-only} learn_params_days learn_params_hours learn_params_minutes
表8-1 に、 learning-params コマンドの引数とキーワードを示します。
|
|
---|---|
Detector モジュール によって提案された ポリシーを、指定された間隔で受け入れます。Detector モジュールは新しく提案されたゾーン ポリシーを受け入れた後で、ゾーン ポリシーのスナップショットを保存します。 |
|
指定された間隔でポリシーのスナップショットを保存します。Detector モジュールは新しいポリシーを受け入れず、ポリシーのしきい値を変更しません。 |
|
間隔の値は、 learn_params_days 値 、learn_params_hours 値、および learn_params_minutes 値の合計となります。
次の例は、Detector モジュールがポリシーを 1 時間間隔で受け入れるように設定する方法を示しています。
user@DETECTOR-conf-zone-scannet#
learning-params periodic-action auto-accept
0 1 0
しきい値調整フェーズ中に、Detector モジュールが新しいしきい値の生成に使用するデフォルトの方式を設定できます。しきい値調整フェーズの結果を手動で受け入れることも、しきい値調整フェーズの結果を特定の間隔で Detector モジュールが自動的に受け入れるように設定することもできます。
しきい値選択方式を設定するには、ゾーン設定モードで次のコマンドを使用します。
learning-params threshold-selection {new-thresholds | max-thresholds | weighted weight }
表8-2 に、 learning-params threshold-selection コマンドの引数とキーワードを示します。
|
|
---|---|
次の例は、ラーニングされたしきい値が現在のポリシーのしきい値よりも大きい場合に、提案されたポリシーを Detector モジュールが受け入れるように設定する方法を示しています。
user@DETECTOR-conf-zone-scannet#
learning-params threshold-selection max-thresholds
Detector モジュールは、ポリシーしきい値が調整されているかどうかを定義するポリシーしきい値の状態にマークを付け、保護およびラーニング機能をイネーブルにするときにこのステータスに関連付けます。ポリシーのしきい値のステータスは、ポリシーのしきい値を超過したときに、Detector モジュールでゾーンに対する攻撃と見なすかどうかを示します。
新しいゾーンが作成されるとき、またはゾーンに関するポリシー構築フェーズの結果を受け入れた後に、Detector モジュールはゾーンのポリシーのしきい値を未調整としてマークします。ゾーン テンプレートのデフォルトのしきい値は、ゾーンのトラフィックに異常を発見した場合に Detector モジュールがスプーフィング防止機能をすぐにアクティブにするように調整されています。保護およびラーニング機能をイネーブルにしている場合、現在のゾーン トラフィックが現在のポリシーしきい値よりも高いと、ラーニング プロセスは停止します。このような状況を防ぐために、ゾーン ポリシーが調整されていなければ、検出およびラーニング機能をイネーブルにした場合、ゾーン ポリシーしきい値が受け入れられるまで Detector モジュールはゾーン トラフィックにおける攻撃を検出しません。
ゾーンのポリシーが未調整である場合、Detector モジュールは、新しいポリシーを受け入れるときに、しきい値選択方式 accept-new をアクティブにして、以前のしきい値を無視します。Detector モジュールがそのゾーンに関するラーニング プロセスのしきい値調整フェーズの結果を受け入れるときに、accept-new 以外のしきい値選択方式を使用すると、ポリシーのしきい値の集合が不適切になる場合があります。しきい値の選択方式の詳細については、「しきい値選択方式の設定」を参照してください。
Detector モジュールは、次の場合にゾーンのポリシーを未調整としてマークします。
• ゾーン ポリシーに対してサービスの削除または新しいサービスの追加を行った場合
Detector モジュールは、しきい値調整フェーズの結果を受け入れた後に、ゾーンのポリシーを調整済みとしてマークします。
ユーザは、ゾーン ポリシーの設定を変更できます。ゾーン ポリシーに調整済みのマークを付けるには、ゾーン設定モードで次のコマンドを使用します。
learning-params threshold-tuned
ゾーン ポリシーに未調整のマークを付けるには、このコマンドの no 形式を使用します。
次のどちらかの場合は、ゾーン ポリシーのステータスを調整済みに変更することもできます。
• 新しいゾーンが既存のゾーンまたはスナップショットから複製されており、両方のゾーンのトラフィック特性が似ている場合
次のどちらかの場合は、ゾーン ポリシーのステータスを未調整に変更することもできます。
• トラフィックのピーク時の間、検出およびラーニング機能を開始していない場合。ゾーン ポリシーのステータスを未調整に変更し、Detector モジュールがピーク時のトラフィックを攻撃として識別しないようにします。
ゾーン ポリシーが未調整としてマークされている場合、Detector モジュールは現在のポリシーしきい値を監視しません。また、ポリシーしきい値が超過してもゾーンへの攻撃を検出しません。
次の例は、ゾーン ポリシーのステータスに調整済みのマークを付ける方法を示しています。
検出およびラーニング機能を使用することで、ラーニング プロセスのアクティブ化とゾーン異常検出のイネーブル化を同時に実行できます。Detector モジュールは、ポリシーのしきい値を調整し、同時にトラフィックの異常についてポリシーのしきい値を監視します。検出およびラーニング機能により、ポリシーのしきい値をゾーンのトラフィック特性に基づいて常にアップデートしながら、Detector モジュールでゾーン トラフィックの異常を検出できるようになります。検出およびラーニング機能を使用すると、Detector モジュールが悪意のあるトラフィックのしきい値をラーニングすることを回避できます。
(注) 保護およびラーニング機能をアクティブ化する前に、ラーニング プロセスのポリシー構築フェースをアクティブにして、ゾーン ポリシーを構築する必要があります。
新しいゾーンを作成する場合、ゾーン ポリシーからサービスを追加または削除するか、ポリシー構築フェーズの結果を受け入れることで、Detector モジュールはゾーン ポリシーを未調整としてマークします。Detector モジュールは、ラーニング プロセスのしきい値調整フェーズの結果を受け入れた後にだけ、ゾーンのポリシーを調整済みとしてマークします。しきい値調整フェーズの結果を手動で受け入れることも、 learning-params コマンドを使用して、Detector モジュールが自動的に受け入れるように設定することもできます。
ラーニング プロセスとゾーン検出が同時にイネーブルになっており、ゾーン ポリシーのステータスが未調整の場合、ゾーン ポリシーのしきい値が受け入れられるまで、Detector モジュールは次のように機能します。
• Detector モジュールはゾーン トラフィックの攻撃を検出しない
• Detector モジュールは、しきい値選択方式 accept-new だけをアクティブにする(「しきい値選択方式の設定」を参照)。
Detector モジュールは、ゾーンに対する攻撃を識別すると、ラーニング プロセスを停止します。Detector モジュールは、Cisco Anomaly Guard Module(Guard モジュール)をアクティブにしてゾーンを保護した場合、Guard モジュールを定期的にポーリングします。Detector モジュールは、Guard モジュールがゾーンの保護を非アクティブにしたことを識別すると、他のトラフィック異常が存在しないことを確認してから、検出およびラーニング機能を再度アクティブにします。このオプションを使用できるのは、SSL 通信チャネルを設定した場合のみです。
保護およびラーニング機能をアクティブにする前に、Detector モジュールがラーニング プロセスの結果をいつ、どのように受け入れるかを設定できます。詳細については、「ラーニング パラメータの設定」を参照してください。
ラーニング プロセスとゾーン異常検出を同時にアクティブにするには、 detect learning コマンドを使用するか、 learning threshold-tuning コマンドと detect コマンドを順番に入力します(順序は問いません)。
詳細については、「ポリシーしきい値の調整」および「ゾーンのトラフィックの異常の検出」 を参照してください。
ラーニング プロセス中の任意の段階でラーニング パラメータ(サービス、しきい値、その他のポリシー関連データ)のスナップショットを保存して、後で確認できます。2 つのゾーンのラーニング パラメータまたはスナップショットを比較して、ラーニング プロセスの結果を確認し、ポリシー、サービス、およびしきい値の違いをトレースできます。
ラーニング プロセス中、数時間ごとにスナップショットを保存することをお勧めします。ラーニング プロセス中に攻撃が発生した場合は、スナップショット ポリシーをゾーンに使用できます。スナップショットは、手動で撮ることも、指定した間隔で Detector モジュールが自動的に撮るように設定することもできます。Detector モジュール は、スナップショットをゾーンごとに 100 個まで保存します。以前のスナップショットは新しいスナップショットに置き換えられます。
スナップショットからゾーン ポリシーをコピーすることで、必要に応じて、以前のラーニングの結果に基づいてゾーンを設定できます。
ゾーンのラーニング パラメータの単一スナップショットを保存することができます。または、指定した間隔で Detector モジュールが自動的にスナップショットを撮るように設定できます。Detector モジュールは、スナップショットが撮られている間も、ラーニング プロセスを続行します。
Detector モジュールが指定した間隔で自動的にスナップショットを撮るように設定する方法の詳細については、「定期的なアクションの設定」を参照してください。
ゾーンのラーニング パラメータのスナップショットを 1 つ保存するには、ゾーン設定モードで次のコマンドを使用します。
snapshot [threshold-selection {new-thresholds | max-thresholds | cur-thresholds | weighted calc-weight }]
表8-3 に、 snapshot コマンドの引数とキーワードを示します。
snapshot コマンドを使用すると、ゾーンのラーニング プロセスの結果が保存されます。この結果には、ゾーンのポリシー、サービス、およびしきい値が含まれます。スナップショットのパラメータを確認するか、2 つのスナップショットを比較するか、またはスナップショットのパラメータを新しいゾーンにコピーし終わったら、スナップショットを削除できます。
snapshot threshold-selection cur-thresholds コマンドを使用すると、現在のゾーン ポリシーをバックアップできます。
次の例は、ポリシーの現在のしきい値とラーニング プロセスの新しいしきい値のうちで最も大きい値をしきい値として持つスナップショットを作成する方法を示しています。
user@DETECTOR-conf-zone-scannet#
snapshot threshold-selection max-thresholds
グローバル モードでスナップショットを 1 つ保存するには、 snapshot zone-name [ threshold-selection { new-thresholds | max-thresholds | cur-thresholds | weighted weight }] コマンドを使用します。
2 つのスナップショットまたはゾーンのラーニングの結果を比較して、ポリシー、サービス、およびしきい値の違いをトレースできます。
• ゾーンの比較
2 つのスナップショットを比較するには、ゾーン設定モードで次のコマンドを使用します。
diff snapshots snapshot-id snapshot-id [ percent ]
表8-4 に、 diff コマンドの引数を示します。
次の例は、ゾーンのスナップショットの表示方法と、最新の 2 つのスナップショットを比較する方法を示しています。
グローバル モードでスナップショットを比較するには、diff zone-name snapshots snapshot-id snapshot-id [ percent ] コマンドを使用します。
2 つのゾーンのラーニング パラメータを比較するには、グローバル モードまたは設定モードで次のコマンドを使用します。
diff zone-name zone-name [ percent ]
表8-5 に、 diff コマンドの引数を示します。
|
|
---|---|
|
|
|
(オプション)違いの割合。Detector モジュールは、2 つのゾーンを比較して、指定した値よりも大きいポリシーしきい値の違いだけを表示します。デフォルトのパーセンテージは 100% で、Detector モジュールは 2 つのゾーンにおける相違をすべて表示します。 |
次の例は、2 つのゾーンのラーニング パラメータの比較方法を示しています。
次のコマンドを入力すると、ゾーンのスナップショットまたはスナップショット パラメータのリストが表示され、ゾーンのラーニングの結果を包括的に把握できます。
show snapshots [ snapshot-id [ policies policy-path ]]
表8-6 に、 show snapshots コマンドのキーワードと引数を示します。
|
|
---|---|
ゾーンのスナップショットを表示します。スナップショットの ID を指定しない場合、Detector モジュールは、ゾーンのスナップショットすべてのリストを表示します。 |
|
|
表示するスナップショットの ID。ポリシーを指定しない場合、デフォルトでは、ゾーンのスナップショットすべてのリストが表示されます。スナップショット ID を表示するには、このコマンドを引数なしで使用します。 |
|
表示対象のポリシーのグループです。詳細については、「ポリシー パスの使用」を参照してください。 |
グローバル モードでスナップショットを比較するには、show zone zone-name snapshots [ snapshot-id [ policies policy-path ]] コマンドを使用します。
次の例は、ゾーンのスナップショットのリストを表示する方法と、スナップショット 2 の dns_tcp に関連するポリシーを表示する方法を示しています。
show zone zone-name snapshots snapshot-id policies policy-path コマンドの出力のフィールドは、 show policies コマンドの出力のフィールドと同じです。詳細については、「ポリシーの表示」を参照してください。
表8-7 に、 show snapshots コマンド出力のフィールドを示します。
|
|
---|---|
|
|
|
古いスナップショットを削除して、空きディスク スペースを得ることができます。
スナップショットを削除するには、ゾーン設定モードで次のコマンドを使用します。
snapshot-id 引数には、既存のスナップショットの ID を指定します。すべてのゾーンのスナップショットを削除するには、アスタリスク(*)を入力します。スナップショットの詳細を表示するには、show snapshots コマンドを使用します。
次の例では、すべてのゾーンのスナップショットを削除する方法を示しています。
ポリシーの全体の設定または部分的な設定を現在のゾーンにコピーできます。
• サービスのコピー:ソース ゾーンからゾーンにサービスをコピーできます。これにより、これらのサービスの検出にポリシー構築フェーズを適用することなく、ゾーン ポリシーを設定できます。サービスをゾーンにコピーするには、まず、そのゾーンが同様のトラフィック パターンを持つことを確認します。
• ポリシー パラメータの コピー:ゾーン ポリシー パラメータをゾーンのスナップショットのポリシー パラメータに置き換えることができます。これにより、以前のラーニングの結果に戻すことができます。Detector モジュールは、既存ポリシーのパラメータだけをコピーします。
ゾーンのポリシーをコピーするには、ゾーン設定モードで次のコマンドを使用します。
c opy-policies { snapshot-id | src-zone-name [service-path]}
表8-8 に、copy-policies コマンドの引数とキーワードを示します。
次の例は、ポリシー テンプレート tcp_connections に関連するすべてのサービスを、ゾーン webnet から現在のゾーン scannet にコピーする方法を示しています。
次の例は、ゾーンのスナップショットのリストを表示し、次に ID が 2 のスナップショットからポリシーをコピーする方法を示しています。
現在のゾーン ポリシーは、 snapshot threshold-selection cur-thresholds コマンドを使用していつでもバックアップできます。
次の例は、現在のゾーン ポリシーのバックアップ方法を示しています。