Sophos Firewall(SFOS)ログを収集する

以下でサポートされています。

このドキュメントでは、Bindplane を使用して Sophos Firewall のログを Google Security Operations に取り込む方法について説明します。Sophos Firewall(SFOS)は、ネットワーク セキュリティ、ウェブ フィルタリング、アプリケーション制御、IPS、VPN、高度な脅威保護を提供する次世代ファイアウォールです。SFOS は、Sophos XGS シリーズのハードウェア アプライアンス、仮想デプロイ、Cloud Deploy で動作し、ファイアウォール ルール、ウェブ フィルタリング、IPS イベント、認証、VPN 接続、システム アクティビティの詳細なログを生成します。

詳細については、Sophos Firewall ログを収集するをご覧ください。

始める前に

次の前提条件を満たしていることを確認してください。

  • Google SecOps インスタンス。
  • Windows 2016 以降、または systemd を使用する Linux ホスト。
  • プロキシの背後で実行している場合は、Bindplane エージェントの要件に従ってファイアウォール ポートが開いていることを確認します。
  • 管理者ロールを持つ Sophos Firewall ウェブ管理コンソールへの特権アクセス。
  • SFOS v18 以降を実行する Sophos Firewall。

Bindplane エージェントの Google SecOps 認証情報を取得する

Bindplane エージェントを Google SecOps に対して認証するには、次のいずれかの方法を選択します。

  • 新規デプロイ: Chronicle API を使用します(オプション 1)。
  • 以前のデプロイ: 2027 年 7 月 20 日に Ingestion API が廃止されるまで、取り込み認証ファイル(オプション 2)を引き続き使用します。
  1. Google Cloud コンソールにログインし、Google SecOps インスタンスにリンクされている Google Cloud プロジェクトを選択します。
  2. [IAM と管理] > [サービス アカウント] に移動します。
  3. [サービス アカウントを作成] をクリックします。
  4. 次の構成情報を指定します。
    • サービス アカウント名: アカウントの名前を入力します(例: bindplane-ingest)。
    • サービス アカウントの説明: 説明を入力します(例: Bindplane agent log ingestion)。
  5. [作成して続行] をクリックします。
  6. [このサービス アカウントにプロジェクトへのアクセスを許可する] セクションで、[ロールを選択] をクリックし、[Chronicle 編集者] を選択します。
  7. [続行] をクリックして [完了] をクリックします。
  8. 作成したサービス アカウントをクリックし、[キー] タブに移動します。
  9. [鍵を追加] > [新しい鍵を作成] の順にクリックします。
  10. [JSON] を選択し、[作成] をクリックします。鍵ファイルがパソコンにダウンロードされます。
  11. 鍵ファイルを ingestion-auth.json として Bindplane コレクタ ディレクトリ(Linux の場合は /opt/observiq-otel-collector/ingestion-auth.json、Windows の場合は C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json)に保存するか、config.yaml の creds_file_path を更新して、保存先のパスと一致させます。
  12. [IAM と管理] > [設定] に移動し、プロジェクト番号をコピーします。これはエクスポータの構成に必要です。

オプション 2: 取り込み認証ファイルをダウンロードする(レガシー)

  1. Google SecOps コンソールにログインします。
  2. [設定] > [データ管理] > [収集エージェント] に移動します。SIEM のみのプラットフォームを使用している場合は、[設定] > [収集エージェント] に移動します。
  3. 取り込み認証ファイルをダウンロードします。
  4. Bindplane エージェントがインストールされるシステムにファイルを安全に保存します。

Google SecOps のお客様 ID を取得する

  1. Google SecOps コンソールにログインします。
  2. [Settings] > [Administration] > [Profile] に移動します。SIEM のみのプラットフォームを使用している場合は、[設定] > [プロファイル] に移動します。
  3. [組織の詳細情報] セクションから [お客様 ID] をコピーして保存します。

Bindplane エージェントをインストールする

次の手順に沿って、Windows または Linux オペレーティング システムに Bindplane エージェントをインストールします。

Windows へのインストール

  1. 管理者として コマンド プロンプトまたは PowerShell を開きます。
  2. 次のコマンドを実行します。

    msiexec /i "[https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi](https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi)" /quiet
    

Linux へのインストール

  1. root 権限または sudo 権限でターミナルを開きます。
  2. 次のコマンドを実行します。

    sudo sh -c "$(curl -fsSlL [https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh](https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh))" install_unix.sh
    

その他のインストール リソース

その他のインストール オプションについては、こちらのインストール ガイドをご覧ください。

Syslog を取り込んで Google SecOps に送信するように Bindplane エージェントを構成する

  1. 構成ファイルにアクセスします。

    • config.yaml ファイルを見つけます。通常は、Linux の /opt/observiq-otel-collector/config.yaml ディレクトリまたは Windows のインストール ディレクトリにあります。
    • テキスト エディタ(nano、vi、メモ帳など)を使用してファイルを開きます。
  2. config.yaml ファイルを次のように編集します。

    receivers:
      udplog:
        listen_address: "0.0.0.0:514"
    
    exporters:
      chronicle/sophos_firewall:
        protocol: https
        # Region of your instance, for example us, europe, asia-southeast1
        location: <LOCATION>
        # Project number of the Google Cloud project linked to the instance
        project: '<PROJECT_NUMBER>'
        compression: gzip
        creds_file_path: '/path/to/ingestion-authentication-file.json'
        customer_id: '<CUSTOMER_ID>'
        endpoint: chronicle.googleapis.com
        log_type: SOPHOS_FIREWALL
        raw_log_field: body
        ingestion_labels:
    
    service:
      pipelines:
        logs/sophos_fw_to_chronicle:
          receivers:
            - udplog
          exporters:
            - chronicle/sophos_firewall
    
  • 自社のインフラストラクチャでの必要性に応じて、ポートと IP アドレスを置き換えます。
  • <LOCATION> は、Google SecOps インスタンスのリージョン(us、europe、asia-southeast1 など)に置き換えます。エクスポーターは、chronicle.googleapis.com の先頭にこの値を付加します。
  • <PROJECT_NUMBER> は、[IAM と管理] > [設定] のプロジェクト番号に置き換えます。
  • <CUSTOMER_ID> は、実際のお客様 ID に置き換えます。
  • /path/to/ingestion-authentication-file.json を、サービス アカウント キーファイル(オプション 1)が保存されたパスに更新します。

以前の Ingestion API エクスポータ

  • オプション 2 の取り込み認証ファイルを使用する場合は、exporters ブロックを次のように置き換えます。creds_file_path を取り込み認証ファイルのパスに設定します。インスタンスが米国以外にある場合は、malachiteingestion-pa.googleapis.com をリージョン エンドポイント(例: europe-malachiteingestion-pa.googleapis.com)に置き換えます。

    exporters:
      chronicle/sophos_firewall:
        compression: gzip
        creds_file_path: '/path/to/ingestion-authentication-file.json'
        customer_id: '<CUSTOMER_ID>'
        endpoint: malachiteingestion-pa.googleapis.com
        log_type: SOPHOS_FIREWALL
        raw_log_field: body
        ingestion_labels:
    

Bindplane エージェントを再起動して変更を適用する

  1. Linux で Bindplane エージェントを再起動するには、次のコマンドを実行します。

    sudo systemctl restart observiq-otel-collector
    
  2. Windows で Bindplane エージェントを再起動するには、Services コンソールを使用するか、次のコマンドを入力します。

    net stop observiq-otel-collector && net start observiq-otel-collector
    

Sophos Firewall で syslog 転送を構成する

Syslog サーバーを追加する

  1. Sophos Firewall ウェブ管理コンソールにログインします。
  2. [システム サービス] > [ログ設定] に移動します。
  3. [Syslog サーバー] セクションまで下にスクロールします。
  4. [Add] をクリックして、新しい syslog サーバーを追加します。

  5. 次の構成情報を提供してください。

    • [名前]: わかりやすい名前を入力します(例: Bindplane-SecOps)。
    • IP アドレス / ドメイン: Bindplane エージェント ホストの IP アドレスを入力します。
    • ポート: 514(または構成済みのポート)を入力します。
    • ファシリティ: [DAEMON] を選択します。
    • 重大度レベル: [情報] を選択します(包括的なロギングに推奨)。
    • 形式: [デバイスの標準形式] を選択します。
  6. [保存] をクリックします。

転送するログタイプを選択する

  1. [Syslog サーバー] セクションで、Syslog サーバーのエントリ Bindplane-SecOps をクリックします。
  2. [ログタイプ] セクションで、転送するログカテゴリを有効にします。

    • ファイアウォール: ファイアウォール ルールのヒット、ドロップされたトラフィック、許可された接続。
    • IPS: 侵入防止システムのアラートとイベント。
    • ウイルス対策: マルウェア検出イベント。
    • スパム対策: スパム検出とフィルタリングのイベント。
    • コンテンツ フィルタリング: ウェブ フィルタリングと URL 分類イベント。
    • イベント: システム イベント、認証、管理アクティビティ。
    • ウェブサーバー保護: WAF イベント。
    • Advanced Threat Protection: Sandstorm と ATP の検出イベント。
    • ワイヤレス: ワイヤレス アクセス ポイントのイベント(該当する場合)。
    • ハートビート: Sophos Security Heartbeat のステータスの変更(Synchronized Security が有効になっている場合)。
    • システム ヘルス: ハードウェアとソフトウェアのヘルスイベント。
    • 認証: ユーザーと管理者の認証イベント。
    • Admin: 管理コンソールのアクティビティ。
  3. [適用] をクリックします。

syslog 転送を確認する

  1. Sophos Firewall ウェブ管理コンソールの [Log viewer] に移動します。
  2. ログエントリが生成されていることを確認します。
  3. Bindplane エージェント ログを調べて、syslog メッセージが受信されていることを確認します。

    sudo journalctl -u observiq-otel-collector -f
    

詳細については、Sophos Firewall syslog のドキュメントをご覧ください。

UDM マッピング テーブル

ログフィールド UDM マッピング 論理
device_id intermediary.asset.asset_id 直接マッピングされます。
device_serial_id intermediary.asset.asset_id 直接マッピングされます。
device_model intermediary.hostname 直接マッピングされます。
device_name intermediary.hostname 直接マッピングされます。
log_msg metadata.description 直接マッピングされます。
date_time metadata.event_timestamp yyyy-MM-dd HH:mm:ss Z として解析
timestamp metadata.event_timestamp yyyy-MM-ddTHH:mm:ssZ として解析
log_component metadata.product_event_type 直接マッピングされます。
log_id metadata.product_log_id 直接マッピングされます。
client_physical_address network.dhcp.chaddr 直接マッピングされます。
ipaddress network.dhcp.ciaddr 直接マッピングされます。
client_host_name network.dhcp.client_hostname 直接マッピングされます。
user_agent network.http.parsed_user_agent 名前変更 / マッピング
referer network.http.referral_url 直接マッピングされます。
http_status network.http.response_code 名前変更 / マッピング
status_code network.http.response_code 名前変更 / マッピング
user_agent network.http.user_agent 直接マッピングされます。
ip_protocol_out network.ip_protocol 直接マッピングされます。
bytes_received network.received_bytes 名前変更 / マッピング
recv_bytes network.received_bytes 名前変更 / マッピング
packets_received network.received_packets 名前変更 / マッピング
recv_pkts network.received_packets 名前変更 / マッピング
bytes_sent network.sent_bytes 名前変更 / マッピング
sent_bytes network.sent_bytes 名前変更 / マッピング
packets_sent network.sent_packets 名前変更 / マッピング
sent_pkts network.sent_packets 名前変更 / マッピング
duration network.session_duration.seconds 名前変更 / マッピング
domain principal.administrative_domain 名前変更 / マッピング
app_name principal.application 直接マッピングされます。
application principal.application 直接マッピングされます。
ipaddress principal.ip 統合済み
src_ip principal.ip 統合済み
src_country principal.location.country_or_region 直接マッピングされます。
src_country_code principal.location.country_or_region 直接マッピングされます。
src_mac principal.mac 統合済み
src_trans_ip principal.nat_ip 統合済み
tran_src_ip principal.nat_ip 統合済み
src_trans_port principal.nat_port 名前変更 / マッピング
tran_src_port principal.nat_port 名前変更 / マッピング
src_port principal.port 名前変更 / マッピング
user_name principal.user.email_addresses マッピング済み: .*?@.* → user_name
user_name principal.user.userid 直接マッピングされます。
action security_result.action 統合済み
status security_result.action_details 直接マッピングされます。
_about0 security_result.detection_fields 統合済み
_about2 security_result.detection_fields 統合済み
activityname_label security_result.detection_fields 統合済み
appCategory_label security_result.detection_fields 統合済み
appTech_label security_result.detection_fields 統合済み
app_filter_policy_id_label security_result.detection_fields 統合済み
app_is_cloud_label security_result.detection_fields 統合済み
app_resolved_by_label security_result.detection_fields 統合済み
category_type_label security_result.detection_fields 統合済み
con_event_label security_result.detection_fields 統合済み
con_id_label security_result.detection_fields 統合済み
connevent_label security_result.detection_fields 統合済み
connid_label security_result.detection_fields 統合済み
dst_zone_type_label security_result.detection_fields 統合済み
dstzonetype_label security_result.detection_fields 統合済み
ether_type_label security_result.detection_fields 統合済み
exceptions_label security_result.detection_fields 統合済み
gw_id_request_label security_result.detection_fields 統合済み
gw_name_request_label security_result.detection_fields 統合済み
hb_health_label security_result.detection_fields 統合済み
hb_status_label security_result.detection_fields 統合済み
http_category_label security_result.detection_fields 統合済み
http_category_type_label security_result.detection_fields 統合済み
in_display_interface_label security_result.detection_fields 統合済み
in_interface_label security_result.detection_fields 統合済み
log_component_label security_result.detection_fields 統合済み
log_occurrence_label security_result.detection_fields 統合済み
log_subtype_label security_result.detection_fields 統合済み
log_type_label security_result.detection_fields 統合済み
log_version_label security_result.detection_fields 統合済み
nat_rule_id_label security_result.detection_fields 統合済み
nat_rule_name_label security_result.detection_fields 統合済み
out_display_interface_label security_result.detection_fields 統合済み
out_interface_label security_result.detection_fields 統合済み
qualifier_label security_result.detection_fields 統合済み
reason_label security_result.detection_fields 統合済み
risk_label security_result.detection_fields 統合済み
src_zone_type_label security_result.detection_fields 統合済み
srczonetype_label security_result.detection_fields 統合済み
used_quota_label security_result.detection_fields 統合済み
web_policy_id_label security_result.detection_fields 統合済み
fw_rule_id security_result.rule_id 直接マッピングされます。
fw_rule_name security_result.rule_name 直接マッピングされます。
fw_rule_section security_result.rule_set 直接マッピングされます。
fw_rule_type security_result.rule_type 直接マッピングされます。
priority security_result.severity マッピング済み: "INFORMATION", "NOTIFICATION", "NOTICE" → INFORMATIONAL、"ERROR","WARNING" → `...
reason security_result.summary 直接マッピングされます。
domain target.hostname 直接マッピングされます。
dst_ip target.ip 統合済み
dst_country target.location.country_or_region 直接マッピングされます。
dst_country_code target.location.country_or_region 直接マッピングされます。
dst_mac target.mac 統合済み
dst_trans_ip target.nat_ip 統合済み
tran_dst_ip target.nat_ip 統合済み
dst_trans_port target.nat_port 名前変更 / マッピング
tran_dst_port target.nat_port 名前変更 / マッピング
dst_port target.port 名前変更 / マッピング
url target.url 直接マッピングされます。
なし extensions.auth.type 定数: VPN
なし metadata.event_type 定数: NETWORK_HTTP
なし metadata.product_name 定数: SOPHOS Firewall
なし metadata.vendor_name 定数: SOPHOS
なし network.application_protocol 定数: DHCP
なし security_result.severity 定数: INFORMATIONAL
date_time event.idm.read_only_udm.metadata.event_timestamp 変更履歴からマッピング
referer network.http.referer_url 変更履歴からマッピング
device_serial_id principal.asset.asset_id 変更履歴からマッピング
application_category, application_risk and application_technology security_result.detection_fields 変更履歴からマッピング
user_name event.idm.read_only_udm.principal.user.userid 変更履歴からマッピング
device_id event.idm.read_only_udm.principal.asset.asset_id 変更履歴からマッピング

変更ログ

このパーサーの変更ログを表示する

さらにサポートが必要な場合 コミュニティ メンバーや Google SecOps のプロフェッショナルから回答を得ることができます。