JP2018160078A - Abnormality detection device and abnormality detection method - Google Patents

Abnormality detection device and abnormality detection method Download PDF

Info

Publication number
JP2018160078A
JP2018160078A JP2017056691A JP2017056691A JP2018160078A JP 2018160078 A JP2018160078 A JP 2018160078A JP 2017056691 A JP2017056691 A JP 2017056691A JP 2017056691 A JP2017056691 A JP 2017056691A JP 2018160078 A JP2018160078 A JP 2018160078A
Authority
JP
Japan
Prior art keywords
normal model
unit
abnormality
communication
operation mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017056691A
Other languages
Japanese (ja)
Inventor
横田 薫
Kaoru Yokota
薫 横田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Intellectual Property Management Co Ltd filed Critical Panasonic Intellectual Property Management Co Ltd
Priority to JP2017056691A priority Critical patent/JP2018160078A/en
Publication of JP2018160078A publication Critical patent/JP2018160078A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an abnormality detection device capable of detecting an abnormality with a reduced calculation load than before, without deteriorating accuracy.SOLUTION: An abnormality detection device comprises: a normal model storage unit 28 that stores a plurality of normal models; an operation mode determination unit 23 that determines an operation mode of an object from a communication log; a normal model selection unit 25 that selects a normal model corresponding to the operation mode determined by the operation mode determination unit 23 from the plurality of normal models stored in the normal model storage unit 28; a feature quantity extracting unit 24 for extracting a feature quantity from the communication log according to the selected normal model; and an abnormality degree calculating unit 27 for calculating and outputting a degree of abnormality in communication in the communication network 14 from the normal model selected by the normal model selecting unit 25 and the feature quantity extracted by the feature quantity extracting unit 24.SELECTED DRAWING: Figure 1

Description

本発明は、通信ネットワークを備えて動作する対象物における異常を検知する異常検知装置及び異常検知方法に関する。   The present invention relates to an abnormality detection device and an abnormality detection method for detecting an abnormality in an object that operates with a communication network.

自動車の中では、ECU(Electronic Control Unit)と呼ばれる複数の電子制御装置が、通常、CAN(Controller Area Network)バスのような、サイバー攻撃に対して安全とは言えない車載ネットワークで相互に接続されている。そこで、従来、自動車のサイバーセキュリティを確保するために、高い精度で、車載ネットワークへの不正メッセージの注入等の異常を検知する様々な技術が提案されている(例えば、特許文献1参照)。   In an automobile, a plurality of electronic control units called ECUs (Electronic Control Units) are usually connected to each other via an in-vehicle network that is not safe against cyber attacks, such as a CAN (Controller Area Network) bus. ing. Thus, various techniques for detecting abnormalities such as injecting illegal messages into the in-vehicle network with high accuracy have been proposed in order to ensure cyber security of automobiles (see, for example, Patent Document 1).

特許文献1では、車載ネットワークにおけるセンサ及び制御モジュールの通信ログを解析することで異常を検知している。   In patent document 1, abnormality is detected by analyzing the communication log of the sensor and control module in a vehicle-mounted network.

特表2016−502697号公報JP-T-2006-502697

しかしながら、近年、自動運転技術に代表される自動車関連技術の進展に伴い、自動車に搭載されるセンサの個数が膨大に増えており、電子制御装置による制御も大幅に複雑化している。そのために、車載ネットワークで伝送されるコマンド及びデータの種類及び数も膨大に増えており、特許文献1の技術では、これらのコマンド及びデータに対してひとつひとつの振る舞いを監視することになり、膨大な計算リソースが必要になるという問題がある。   However, in recent years, with the development of automobile-related technology represented by automatic driving technology, the number of sensors mounted on the automobile has increased enormously, and the control by the electronic control device has become greatly complicated. For this reason, the types and number of commands and data transmitted in the in-vehicle network have increased enormously. With the technology of Patent Document 1, the behavior of each of these commands and data is monitored one by one. There is a problem of requiring computational resources.

そこで、本発明は、上記問題に鑑みてなされたものであり、精度を劣化させることなく、従来よりも削減された計算負荷で異常を検知することができる異常検知装置及び異常検知方法を提供することを目的とする。   Therefore, the present invention has been made in view of the above problems, and provides an abnormality detection device and an abnormality detection method that can detect an abnormality with a reduced calculation load than before without degrading accuracy. For the purpose.

上記目的を達成するために、本発明の一形態に係る異常検知装置は、通信ネットワークを備えて動作する対象物における異常を検知する異常検知装置であって、前記対象物が取り得る複数の動作モードのそれぞれに対応し、前記通信ネットワークでの正常時の通信における特徴量の特性を示すデータである複数の正常モデルを保管する正常モデル保管部と、前記通信ネットワークの通信ログから前記対象物の動作モードを判定する動作モード判定部と、前記正常モデル保管部に保管された前記複数の正常モデルから、前記動作モード判定部で判定された動作モードに対応する正常モデルを選択する正常モデル選択部と、前記正常モデル選択部で選択された前記正常モデルに従って、前記通信ログから前記通信ネットワークでの通信における特徴量を抽出する特徴量抽出部と、前記正常モデル選択部で選択された前記正常モデル、及び、前記特徴量抽出部で抽出された前記特徴量に基づいて、前記通信ネットワークでの通信における異常を検知する異常検知部と、を備える。   In order to achieve the above object, an abnormality detection device according to an aspect of the present invention is an abnormality detection device that detects an abnormality in an object that operates with a communication network, and the object can take a plurality of operations. Corresponding to each of the modes, a normal model storage unit that stores a plurality of normal models that are data indicating characteristics of characteristic quantities in normal communication in the communication network, and a communication log of the communication network An operation mode determination unit that determines an operation mode, and a normal model selection unit that selects a normal model corresponding to the operation mode determined by the operation mode determination unit from the plurality of normal models stored in the normal model storage unit And according to the normal model selected by the normal model selection unit, from the communication log, in the communication in the communication network An abnormality in communication in the communication network based on the feature amount extraction unit that extracts the amount, the normal model selected by the normal model selection unit, and the feature amount extracted by the feature amount extraction unit; An anomaly detection unit to detect.

また、上記目的を達成するために、本発明の一形態に係る異常検知方法は、通信ネットワークを備えて動作する対象物における異常を検知する装置による異常検知方法であって、前記通信ネットワークの通信ログから前記対象物の動作モードを判定する動作モード判定ステップと、前記対象物が取り得る複数の動作モードのそれぞれに対応し、前記通信ネットワークでの正常時の通信における特徴量の特性を示すデータである複数の正常モデルから、前記動作モード判定ステップで判定された動作モードに対応する正常モデルを選択する正常モデル選択ステップと、前記正常モデル選択ステップで選択された前記正常モデルに従って、前記通信ログから前記通信ネットワークでの通信における特徴量を抽出する特徴量抽出ステップと、前記正常モデル選択ステップで選択された前記正常モデル、及び、前記特徴量抽出ステップで抽出された前記特徴量に基づいて、前記通信ネットワークでの通信における異常を検知する異常検知ステップと、を含む。   In order to achieve the above object, an abnormality detection method according to an aspect of the present invention is an abnormality detection method by an apparatus for detecting an abnormality in an object that operates with a communication network, and includes communication in the communication network. Corresponding to each of an operation mode determination step for determining an operation mode of the object from a log and a plurality of operation modes that can be taken by the object, data indicating characteristics of characteristics in normal communication in the communication network A normal model selection step for selecting a normal model corresponding to the operation mode determined in the operation mode determination step from a plurality of normal models, and the communication log according to the normal model selected in the normal model selection step A feature amount extracting step of extracting feature amounts in communication in the communication network from The normal model selected by the model selection step, and, based on the feature quantity extracted by the feature amount extracting step comprises, an abnormality detecting step of detecting an abnormality in the communication with the communication network.

本発明により、精度を劣化させることなく、従来よりも削減された計算負荷で異常を検知することができる異常検知装置及び異常検知方法が提供される。   According to the present invention, an abnormality detection device and an abnormality detection method are provided that can detect an abnormality with a reduced calculation load than before without degrading accuracy.

実施の形態に係る通信システムの構成を示すブロック図The block diagram which shows the structure of the communication system which concerns on embodiment 実施の形態に係る異常検知装置が備える通信ログ蓄積部に蓄積された通信ログの一例を示すデータ構造図The data structure figure which shows an example of the communication log accumulate | stored in the communication log storage part with which the abnormality detection apparatus which concerns on embodiment is equipped 実施の形態に係る異常検知装置が備える正常モデル保管部に保管された正常モデルの一例を示すデータ構造図The data structure figure which shows an example of the normal model stored in the normal model storage part with which the abnormality detection apparatus which concerns on embodiment is equipped 実施の形態に係る異常検知装置の動作を示すフローチャートThe flowchart which shows operation | movement of the abnormality detection apparatus which concerns on embodiment 図4のステップS11の詳細な処理手順を示すフローチャートThe flowchart which shows the detailed process sequence of step S11 of FIG. 図4のステップS11の詳細な処理手順の続きを示すフローチャートThe flowchart which shows the continuation of the detailed process sequence of step S11 of FIG. 図4のステップS11の詳細な処理手順の続きを示すフローチャートThe flowchart which shows the continuation of the detailed process sequence of step S11 of FIG. 図4のステップS13の詳細な処理手順を示すフローチャートThe flowchart which shows the detailed process sequence of step S13 of FIG. 通信ネットワークが受けるサイバー攻撃の一例を示す図Diagram showing an example of a cyber attack that a communication network receives 実施の形態に係る異常検知装置による異常検知のアルゴリズムの概念を示す図The figure which shows the concept of the algorithm of the abnormality detection by the abnormality detection apparatus which concerns on embodiment 実施の形態に係る異常検知装置が備える正常モデル作成部の動作を示すフローチャートThe flowchart which shows operation | movement of the normal model preparation part with which the abnormality detection apparatus which concerns on embodiment is provided 実施の形態に係る異常検知装置が備える特徴量パラメータ更新部の動作を示すフローチャートThe flowchart which shows operation | movement of the feature-value parameter update part with which the abnormality detection apparatus which concerns on embodiment is provided

以下、本発明の実施の形態について、図面を用いて詳細に説明する。なお、以下で説明する実施の形態は、いずれも本発明の一具体例を示すものである。以下の実施の形態で示される対象物の種類、通信ネットワークの種類、装置の構成要素、構成要素の配置位置及び接続形態、ステップ、ステップの順序等は、一例であり、本発明を限定する主旨ではない。また、以下の実施の形態における構成要素のうち、本発明の最上位概念を示す独立請求項に記載されていない構成要素については、任意の構成要素として説明される。また、各図は、必ずしも厳密に図示したものではない。各図において、実質的に同一の構成については同一の符号を付し、重複する説明は省略又は簡略化する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Note that each of the embodiments described below shows a specific example of the present invention. The types of objects, the types of communication networks, the components of the apparatus, the arrangement positions and connection forms of the components, the steps, the order of steps, etc. shown in the following embodiments are merely examples, and are intended to limit the present invention. is not. In addition, among the constituent elements in the following embodiments, constituent elements that are not described in the independent claims indicating the highest concept of the present invention are described as optional constituent elements. Also, the drawings are not necessarily shown strictly. In each figure, substantially the same configuration is denoted by the same reference numeral, and redundant description is omitted or simplified.

図1は、実施の形態に係る通信システム10の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of a communication system 10 according to the embodiment.

通信システム10は、通信ネットワーク14を備えて動作する対象物の一例である自動車に備えられる通信システムであり、EUC12a〜12d、通信ネットワーク14、及び、異常検知装置20を備える。   The communication system 10 is a communication system provided in an automobile that is an example of an object that operates with the communication network 14, and includes the EUCs 12 a to 12 d, the communication network 14, and the abnormality detection device 20.

EUC12a〜12dは、駐車を支援するECU12a、緊急ブレーキを制御するECU12b、その他、各種機能を発揮するECU12c及び12dを含み、通信ネットワーク14に接続されている。   The EUCs 12a to 12d include an ECU 12a that supports parking, an ECU 12b that controls emergency braking, and other ECUs 12c and 12d that perform various functions, and are connected to the communication network 14.

通信ネットワーク14は、ECU(ECU12a〜12d及び異常検知装置20)を相互に接続するバスで構成され、例えば、CANである。   The communication network 14 includes a bus that interconnects ECUs (ECUs 12a to 12d and the abnormality detection device 20), and is, for example, a CAN.

異常検知装置20は、通信ネットワーク14への不正メッセージの注入等の異常を検知する装置であり、通信ネットワーク14に接続されたECUの一つである。ここで、「異常」とは、通信ネットワーク14へのサイバー攻撃の可能性がある事象であり、本実施の形態では、後述する正常モデルで規定される通信ネットワーク14における正常な通信状態から所定の範囲を超える通信状態をいう。   The abnormality detection device 20 is a device that detects an abnormality such as injection of an unauthorized message into the communication network 14 and is one of the ECUs connected to the communication network 14. Here, “abnormal” is an event that may cause a cyber attack on the communication network 14, and in the present embodiment, a predetermined communication state is determined from a normal communication state in the communication network 14 defined by a normal model to be described later. A communication state that exceeds the range.

なお、ECU(ECU12a〜12d及び異常検知装置20)は、ハードウェア構成として、プログラム及びデータを格納するフラッシュメモリ及びROM等の不揮発性メモリ、DRAM等の揮発性メモリ、プログラムを実行するCPU等のプロセッサ、各種センサ、警報器及びディスプレイデバイス等の入出力デバイス、各種センサや入出力デバイス等とプロセッサとを接続する入出力回路、通信ネットワーク14と接続される通信インタフェース回路等を備える。   The ECUs (ECUs 12a to 12d and the abnormality detection device 20) have a hardware configuration such as a flash memory for storing programs and data, a nonvolatile memory such as a ROM, a volatile memory such as a DRAM, a CPU for executing a program, and the like. It includes an input / output device such as a processor, various sensors, an alarm device and a display device, an input / output circuit for connecting the various sensors and input / output devices to the processor, a communication interface circuit connected to the communication network 14, and the like.

異常検知装置20は、機能的には、通信ログ取得部21、通信ログ蓄積部22、動作モード判定部23、特徴量抽出部24、正常モデル選択部25、正常モデル作成部26、異常度算出部27、正常モデル保管部28、特徴量パラメータ更新部29、通信部30、異常発生通知部31、及び、異常検知部32を備える。   Functionally, the abnormality detection device 20 includes a communication log acquisition unit 21, a communication log storage unit 22, an operation mode determination unit 23, a feature amount extraction unit 24, a normal model selection unit 25, a normal model creation unit 26, and an abnormality degree calculation. Unit 27, normal model storage unit 28, feature parameter update unit 29, communication unit 30, abnormality occurrence notification unit 31, and abnormality detection unit 32.

通信ログ取得部21は、通信ネットワーク14における通信を記録することで通信ログを取得する処理部であり、例えば、CANバスに接続される通信インタフェース回路等を有する。   The communication log acquisition unit 21 is a processing unit that acquires a communication log by recording communication in the communication network 14, and includes, for example, a communication interface circuit connected to a CAN bus.

通信ログ蓄積部22は、通信ログ取得部21によって取得された通信ログを蓄積する記憶部であり、例えば、フラッシュメモリ等の書き込み可能な不揮発性メモリである。図2は、通信ログ蓄積部22に蓄積された通信ログ22aの一例を示すデータ構造図である。本図に示されるように、通信ログ22aは、エントリ(つまり、行)ごとにCANメッセージが格納されている。エントリは、通信ログ22aに蓄積される最小単位のログである。各エントリは、行番号を示す行221、自動車のイグニッションONからの経過時間を示すタイムスタンプ222、CANメッセージに含まれるCAN_ID223、CANメッセージに含まれるペイロード224で構成される。なお、タイムスタンプ222は、実際の時刻でもよい。   The communication log storage unit 22 is a storage unit that stores the communication log acquired by the communication log acquisition unit 21, and is a writable nonvolatile memory such as a flash memory, for example. FIG. 2 is a data structure diagram showing an example of the communication log 22 a stored in the communication log storage unit 22. As shown in the figure, the communication log 22a stores a CAN message for each entry (that is, line). The entry is a minimum unit log accumulated in the communication log 22a. Each entry includes a row 221 indicating a row number, a time stamp 222 indicating an elapsed time from the ignition ON of the automobile, a CAN_ID 223 included in the CAN message, and a payload 224 included in the CAN message. The time stamp 222 may be an actual time.

動作モード判定部23は、通信ログ22aから対象物(本実施の形態では自動車)の動作モードを判定する処理部であり、ここでは、通信ログ蓄積部22に蓄積された通信ログ22aを解析することで動作モードを判定し、判定した動作モードを正常モデル選択部25に通知する。また、動作モード判定部23は、判定した動作モードに対応する通信ログ22aの区間におけるデータである通信ログデータを抽出し、特徴量抽出部24に出力する。   The operation mode determination unit 23 is a processing unit that determines the operation mode of an object (a car in the present embodiment) from the communication log 22a. Here, the operation mode determination unit 23 analyzes the communication log 22a stored in the communication log storage unit 22. Thus, the operation mode is determined, and the determined operation mode is notified to the normal model selection unit 25. In addition, the operation mode determination unit 23 extracts communication log data that is data in the section of the communication log 22 a corresponding to the determined operation mode, and outputs the communication log data to the feature amount extraction unit 24.

正常モデル保管部28は、対象物(ここでは、自動車)が取り得る複数の動作モードのそれぞれに対応し、通信ネットワーク14での正常時の通信における特徴量の特性を示すデータである複数の正常モデル28a〜28bを予め保管している記憶部であり、例えば、フラッシュメモリ等の書き込み可能な不揮発性メモリである。なお、正常モデル28a〜28bは、自動車(あるいは、異常検知装置20)の出荷前のテスト走行時における通信ログを用いて作成されており、同じモデルの自動車の全てに共通である。正常モデル28a〜28bの作成方法は、後述する正常モデル作成部26による方法と同じである。ただし、自動車(あるいは、異常検知装置20)が出荷された後は、正常モデル作成部26によって、正常モデル保管部28に保管される正常モデル28a〜28bは、各自動車(あるいは、異常検知装置20)に固有の運転状況に依存して更新されていく。   The normal model storage unit 28 corresponds to each of a plurality of operation modes that can be taken by the object (in this case, an automobile), and is a plurality of normal data that is data indicating characteristics of features in normal communication on the communication network 14. The storage unit stores the models 28a to 28b in advance, for example, a writable nonvolatile memory such as a flash memory. The normal models 28a to 28b are created by using a communication log at the time of a test run before shipment of the automobile (or the abnormality detection device 20), and are common to all automobiles of the same model. The creation method of the normal models 28a to 28b is the same as the method by the normal model creation unit 26 described later. However, after the automobile (or the abnormality detection device 20) is shipped, the normal models 28a to 28b stored in the normal model storage unit 28 by the normal model creation unit 26 are the respective automobiles (or the abnormality detection device 20). ) Will be updated depending on the specific driving situation.

図3は、正常モデル保管部28に保管された正常モデル28a〜28bの一例を示すデータ構造図である。本図に示されるように、正常モデル28a〜28bのそれぞれは、動作モード識別子281、特徴量パラメータ282、基準値283で構成される。   FIG. 3 is a data structure diagram showing an example of normal models 28 a to 28 b stored in the normal model storage unit 28. As shown in the figure, each of the normal models 28a to 28b includes an operation mode identifier 281, a feature parameter 282, and a reference value 283.

動作モード識別子281は、当該正常モデルに対応する動作モードを示す識別子である。図3に示される例では、正常モデル28aは、「駐車支援」という動作モードに対応し、正常モデル28bは、「緊急ブレーキ」という動作モードに対応することが示されている。   The operation mode identifier 281 is an identifier indicating an operation mode corresponding to the normal model. In the example shown in FIG. 3, the normal model 28 a corresponds to the operation mode “parking assistance”, and the normal model 28 b corresponds to the operation mode “emergency brake”.

特徴量パラメータ282は、通信ネットワーク14での通信における異常の判定に用いることができる特徴量の種類を示すパラメータである。この特徴量パラメータ282には、異常度の算出に用いるアルゴリズムを示す異常度尺度282aが含まれる。図3に示される例では、正常モデル28aでは、異常度尺度282aが「LOF(Local Outlier Factor)」に設定されており、正常モデル28bでは、異常度尺度282aが「マハラノビス距離」に設定されている。なお、異常度尺度282aとして登録されるアルゴリズムは、これらの例に限られず、その他、非特許文献1(井手剛著「入門 機械学習による異常検知」コロナ社)等で紹介されているような公知な方法(例えば、k−近傍法等)であってもよい。   The feature amount parameter 282 is a parameter indicating the type of feature amount that can be used for determining an abnormality in communication in the communication network 14. The feature amount parameter 282 includes an abnormality degree scale 282a indicating an algorithm used for calculating the abnormality degree. In the example shown in FIG. 3, in the normal model 28a, the abnormal degree scale 282a is set to “LOF (Local Operator Factor)”, and in the normal model 28b, the abnormal degree scale 282a is set to “Mahalanobis distance”. Yes. The algorithm registered as the degree of abnormality scale 282a is not limited to these examples, but is also publicly known as introduced in Non-Patent Document 1 (Take Ide, “Introduction to anomaly detection by machine learning” Corona). (For example, k-neighbor method etc.) may be used.

また、特徴量パラメータ282として、正常モデル28aでは、2次元の特徴量ベクタであって各要素が時間幅300msecの区間での出現頻度であること(「次元=2、区間幅=300msec」)、2次元特徴量ベクタの一つ目の要素が、CAN_IDが0x123であるCANメッセージの出現頻度であること(「1:“ID”、0x123」)、2次元特徴量ベクタの二つ目の要素が、CAN_IDが0x456であるCANメッセージのペイロードの7〜0ビット目のフィールドの値(複数ある場合には、その平均値)であること(「2:“ペイロード”、(0x456、[7:0]」)、基準値283の表記として「即値」が用いられること、つまり、特徴量ベクタがそのまま格納されること(「モデル表記=“即値”」)が示されている。ここで、特徴量パラメータ282として指定されるCAN_IDやペイロード中のフィールドは、対応している動作モードに対して発生する異常の特性を考慮して設定される。例えば、「駐車支援」の動作モードに対しては、駐車支援動作中は、ステアリング操作に関するCANメッセージ(ステアリング操作CANメッセージ)によってステアリング操作が可能な状態であるから、操作量が異常なステアリング操作CANメッセージを注入して不正なステアリング操作を行う攻撃に晒される恐れがある。従って、「駐車支援」動作モードに対しては、ステアリング操作に関係するCANメッセージのCAN_ID及びペイロード中のフィールドが特徴量パラメータ282に設定される。また、「緊急ブレーキ」の動作モードに対しては、緊急ブレーキ動作中はブレーキ操作に関するCANメッセージ(ブレーキ操作CANメッセージ)によってブレーキ操作が可能な状態であるから、ブレーキ操作に関係するCANメッセージのCAN_ID及びペイロード中のフィールドが特徴量パラメータ282に設定される。このようにして、動作モードごとに不正に利用される可能性のあるCAN_IDやペイロードのフィールドだけに特徴量パラメータを絞り込むことで、異常度の算出にかかる処理量が削減可能である。   As the feature parameter 282, the normal model 28a is a two-dimensional feature vector, and each element has an appearance frequency in a section having a time width of 300 msec (“dimension = 2, section width = 300 msec”). The first element of the two-dimensional feature vector is the frequency of appearance of a CAN message whose CAN_ID is 0x123 (“1:“ ID ”, 0x123”). The second element of the two-dimensional feature vector is , The value of the 7th to 0th bit fields of the payload of the CAN message whose CAN_ID is 0x456 (the average value when there are a plurality of them) ("2:" payload ", (0x456, [7: 0] )), “Immediate value” is used as the notation of the reference value 283, that is, the feature quantity vector is stored as it is (“model notation =“ immediate value ””). Here, the CAN_ID specified as the feature parameter 282 and the field in the payload are set in consideration of the characteristics of the abnormality that occurs with respect to the corresponding operation mode. ”During the parking assist operation, the steering operation can be performed by a CAN message (steering operation CAN message) related to the steering operation. Therefore, a steering operation CAN message with an abnormal operation amount is injected. Therefore, for the “parking assist” operation mode, the CAN_ID of the CAN message related to the steering operation and the field in the payload are set in the feature parameter 282. In addition, "emergency brake" operation mode On the other hand, since the brake operation can be performed by the CAN message (brake operation CAN message) regarding the brake operation during the emergency brake operation, the CAN_ID of the CAN message related to the brake operation and the field in the payload are the feature parameter 282. In this way, the processing amount for calculating the degree of abnormality can be reduced by narrowing the feature parameter only to CAN_ID and payload fields that may be illegally used for each operation mode. is there.

基準値283は、特徴量パラメータ282が示す特徴量の種類に対応する特徴量の基準値である。図3に示される例では、基準値が108個あること(「サンプル数=108」)、その一つ目の具体的な基準値として2次元特徴量ベクタ(4、12.4)が格納されている(「1:(4、12.4)」)。二つ目以降の具体的な基準値についても、図3に示されるように、一つ目と同様に、2次元特徴量ベクタが格納されている。   The reference value 283 is a feature value reference value corresponding to the type of feature value indicated by the feature parameter 282. In the example shown in FIG. 3, there are 108 reference values (“number of samples = 108”), and a two-dimensional feature vector (4, 12.4) is stored as the first specific reference value. ("1: (4, 12.4)"). As for the second and subsequent specific reference values, as shown in FIG. 3, a two-dimensional feature vector is stored as in the first.

なお、正常モデル28bは、正常モデル28aと同じデータ構造をもつが、正常モデル28aとモデル表記が異なっている。図3の例では、正常モデル28bの特徴量パラメータ282には、「モデル表記=“統計量”」が含まれるので、正常モデル28bの基準値283には特徴量ベクタの分布を統計量で表記した値が格納されることが示されている。具体的には、図3に示される例では、正常モデル28bの基準値283には、「平均ベクタ」及び「共分散行列」が格納されている。   The normal model 28b has the same data structure as the normal model 28a, but the model notation is different from that of the normal model 28a. In the example of FIG. 3, since the feature parameter 282 of the normal model 28b includes “model notation =“ statistic ””, the distribution of the feature vector is expressed as a statistic in the reference value 283 of the normal model 28b. It is shown that stored values are stored. Specifically, in the example shown in FIG. 3, “average vector” and “covariance matrix” are stored in the reference value 283 of the normal model 28 b.

図1に戻り、正常モデル選択部25は、正常モデル保管部28に保管された複数の正常モデル28a〜28bから、動作モード判定部23で判定された動作モードに対応する正常モデルを選択する処理部である。   Returning to FIG. 1, the normal model selection unit 25 selects a normal model corresponding to the operation mode determined by the operation mode determination unit 23 from the plurality of normal models 28 a to 28 b stored in the normal model storage unit 28. Part.

特徴量抽出部24は、正常モデル選択部25で選択された正常モデル28cに従って、通信ログ蓄積部22に蓄積された通信ログ22a(ここでは、通信ログ蓄積部22に蓄積された通信ログ22aから動作モード判定部23によって抽出された通信ログデータ)から通信ネットワーク14での通信における特徴量を抽出する処理部である。より具体的には、特徴量抽出部24は、動作モード判定部23で判定された動作モードについて、動作モード判定部23で抽出された通信ログデータから、正常モデル選択部25で選択された正常モデル28cに含まれる特徴量パラメータ282が示す種類の特徴量を抽出する。   The feature quantity extraction unit 24 is configured to store the communication log 22a stored in the communication log storage unit 22 according to the normal model 28c selected by the normal model selection unit 25 (here, from the communication log 22a stored in the communication log storage unit 22). It is a processing unit that extracts feature quantities in communication on the communication network 14 from the communication log data extracted by the operation mode determination unit 23. More specifically, the feature amount extraction unit 24 selects the normal selected by the normal model selection unit 25 from the communication log data extracted by the operation mode determination unit 23 for the operation mode determined by the operation mode determination unit 23. The type of feature quantity indicated by the feature quantity parameter 282 included in the model 28c is extracted.

異常度算出部27は、通信ネットワーク14での通信における異常度を算出する処理部である。より具体的には、異常度算出部27は、正常モデル選択部25で選択された正常モデルに含まれる基準値283と特徴量抽出部24で抽出された特徴量との間の統計的な外れ度合から、異常度を算出する。このとき、異常度算出部27は、正常モデル選択部25で選択された正常モデル28cに含まれる異常度尺度282aが示すアルゴリズムに従って、異常度を算出する。   The abnormality degree calculation unit 27 is a processing unit that calculates an abnormality degree in communication on the communication network 14. More specifically, the degree-of-abnormality calculation unit 27 statistically deviates between the reference value 283 included in the normal model selected by the normal model selection unit 25 and the feature amount extracted by the feature amount extraction unit 24. The degree of abnormality is calculated from the degree. At this time, the degree of abnormality calculation unit 27 calculates the degree of abnormality according to an algorithm indicated by the degree of abnormality scale 282a included in the normal model 28c selected by the normal model selection unit 25.

異常検知部32は、正常モデル選択部25で選択された正常モデル28c、及び、特徴量抽出部24で抽出された特徴量に基づいて、通信ネットワーク14での通信における異常を検知する処理部である。より具体的には、異常検知部32は、異常度算出部27によって算出された異常度と閾値とを比較することで、異常の有無を検知して出力する。閾値は、予め設定された値、あるいは、ユーザによって設定される値である。   The abnormality detection unit 32 is a processing unit that detects an abnormality in communication in the communication network 14 based on the normal model 28c selected by the normal model selection unit 25 and the feature amount extracted by the feature amount extraction unit 24. is there. More specifically, the abnormality detection unit 32 detects the presence / absence of an abnormality by comparing the abnormality degree calculated by the abnormality degree calculation unit 27 with a threshold value, and outputs the detected abnormality. The threshold value is a preset value or a value set by the user.

異常発生通知部31は、異常検知部32によって検知された異常の有無を通知する出力デバイスであり、例えば、警報器、ディスプレイデバイス、通信インタフェース等である。   The abnormality occurrence notification unit 31 is an output device that notifies the presence or absence of an abnormality detected by the abnormality detection unit 32, and is, for example, an alarm device, a display device, a communication interface, or the like.

通信部30は、異常検知装置20の外部の通信装置と通信する通信インタフェースであり、例えば、電話網用又は無線LAN用の通信モジュールである。通信部30は、外部の通信装置として、例えば、特徴量パラメータを配布するWebサーバである更新サーバと通信をする。   The communication unit 30 is a communication interface that communicates with a communication device external to the abnormality detection device 20, and is, for example, a communication module for a telephone network or a wireless LAN. As an external communication device, the communication unit 30 communicates with, for example, an update server that is a Web server that distributes feature amount parameters.

特徴量パラメータ更新部29は、異常検知装置20の外部から新たな特徴量パラメータを取得して内部のメモリに保持する処理部であり、例えば、通信部30を介して更新サーバから配布される特徴量パラメータを取得して保持する。   The feature parameter update unit 29 is a processing unit that acquires a new feature parameter from the outside of the abnormality detection device 20 and stores it in an internal memory. For example, the feature parameter update unit 29 is distributed from the update server via the communication unit 30. Get and hold the quantity parameter.

正常モデル作成部26は、通信ログ蓄積部22に蓄積された通信ログ22aから正常モデルを作成し、作成した正常モデルを用いて、正常モデル保管部28に保管されている正常モデル28a〜28bのうちで当該正常モデルに対応する正常モデルを更新する処理部である。具体的には、正常モデル作成部26は、特徴量パラメータ更新部29に保持されている特徴量パラメータを用いて、正常モデル保管部28に保管されている正常モデルを更新する。正常モデル作成部26は、実行頻度として、例えば、一定期間ごと、所定の運転回数(つまり、自動車のイグニッションONからOFFまでを一回の運転回数とした回数)ごと、あるいは、異常検知装置20が通信する外部のサーバからの指示を受信するごとに、正常モデルを更新する。   The normal model creation unit 26 creates a normal model from the communication log 22a accumulated in the communication log accumulation unit 22, and uses the created normal model to store the normal models 28a to 28b stored in the normal model storage unit 28. The processing unit updates the normal model corresponding to the normal model. Specifically, the normal model creation unit 26 updates the normal model stored in the normal model storage unit 28 using the feature parameter stored in the feature parameter update unit 29. The normal model creation unit 26 performs, for example, as a frequency of execution, for example, every predetermined period, every predetermined number of times of driving (that is, the number of times of driving from the vehicle ignition ON to OFF), or the abnormality detection device 20 The normal model is updated every time an instruction from an external server to communicate with is received.

なお、異常検知装置20を構成する処理部(通信ログ取得部21、動作モード判定部23、特徴量抽出部24、正常モデル選択部25、正常モデル作成部26、異常度算出部27、特徴量パラメータ更新部29、通信部30、及び、異常検知部32)の全部又は一部は、プロセッサがプログラムを実行することによってソフトウェア的に実現されてもよいし、FPGAやASIC等の専用の論理回路によってハードウェア的に実現されてもよい。   Note that the processing units (communication log acquisition unit 21, operation mode determination unit 23, feature amount extraction unit 24, normal model selection unit 25, normal model creation unit 26, abnormality degree calculation unit 27, feature amount constituting the abnormality detection device 20. All or part of the parameter update unit 29, the communication unit 30, and the abnormality detection unit 32) may be realized by software by a processor executing a program, or a dedicated logic circuit such as an FPGA or an ASIC. May be implemented in hardware.

次に、以上のように構成された本実施の形態に係る異常検知装置20の動作について説明する。   Next, the operation of the abnormality detection device 20 according to the present embodiment configured as described above will be described.

図4は、本実施の形態に係る異常検知装置20の動作(つまり、異常検知方法)を示すフローチャートである。   FIG. 4 is a flowchart showing an operation (that is, an abnormality detection method) of the abnormality detection device 20 according to the present embodiment.

まず、通信ログ取得部21は、通信ネットワーク14における通信を記録することで通信ログを取得して通信ログ蓄積部22に蓄積する(S10)。例えば、通信ログ取得部21は、自動車のイグニッションONからOFFまで、通信ネットワーク14を伝送される全てのCANメッセージを取得し続け、タイムスタンプとともに、通信ログ蓄積部22に蓄積する。その結果、図2に示されるような通信ログ22aが通信ログ蓄積部22に蓄積される。なお、通信ログ蓄積部22に蓄積された通信ログ22aは、動作モード判定部23によって読み出されるが、通信ログ22aのうち、異常検知部32によって異常が検知されなかった通信ログデータについては、順次、削除されていってもよい。   First, the communication log acquisition unit 21 acquires a communication log by recording communication in the communication network 14 and stores it in the communication log storage unit 22 (S10). For example, the communication log acquisition unit 21 continues to acquire all CAN messages transmitted through the communication network 14 from ignition ON to OFF of the automobile, and stores the CAN messages in the communication log storage unit 22 together with time stamps. As a result, the communication log 22a as shown in FIG. The communication log 22a accumulated in the communication log accumulation unit 22 is read by the operation mode determination unit 23. Of the communication log 22a, the communication log data in which no abnormality is detected by the abnormality detection unit 32 is sequentially added. , May be deleted.

続いて、動作モード判定部23は、通信ログ蓄積部22に蓄積された通信ログ22aを解析することで動作モードを判定する(動作モード判定ステップ、S11)。なお、このステップS11の詳細は、図5のフローチャートを用いて後述する。   Subsequently, the operation mode determination unit 23 determines the operation mode by analyzing the communication log 22a stored in the communication log storage unit 22 (operation mode determination step, S11). Details of step S11 will be described later with reference to the flowchart of FIG.

次に、正常モデル選択部25は、正常モデル保管部28に保管された複数の正常モデル28a〜28bから、動作モード判定部23で判定された動作モードに対応する正常モデル28cを選択する(正常モデル選択ステップ、S12)。例えば、正常モデル選択部25は、動作モード判定部23が動作モードとして「緊急ブレーキ」と判定した場合には、正常モデル保管部28に保管された複数の正常モデル28a〜28bから、「緊急ブレーキ」の動作モードに対応する正常モデル28bを選択する(この場合には、正常モデル28bが選択された正常モデル28cとなる)。   Next, the normal model selection unit 25 selects the normal model 28c corresponding to the operation mode determined by the operation mode determination unit 23 from the plurality of normal models 28a to 28b stored in the normal model storage unit 28 (normal Model selection step, S12). For example, when the operation mode determination unit 23 determines “emergency brake” as the operation mode, the normal model selection unit 25 selects “emergency brake” from the plurality of normal models 28 a to 28 b stored in the normal model storage unit 28. The normal model 28b corresponding to the operation mode is selected (in this case, the normal model 28b becomes the selected normal model 28c).

続いて、特徴量抽出部24は、正常モデル選択部25で選択された正常モデル28cに含まれる特徴量パラメータ282が示す種類の特徴量を、通信ログ蓄積部22に蓄積された通信ログ22aから抽出する(特徴量抽出ステップ、S13)。例えば、特徴量抽出部24は、正常モデル選択部25で正常モデル28bが選択された場合には、通信ログ蓄積部22に蓄積された通信ログ22aから、正常モデル28bに含まれる特徴量パラメータ282が示す種類の特徴量、つまり、3次元の特徴量ベクタを算出する。なお、このステップS13の詳細は、図6のフローチャートを用いて後述する。   Subsequently, the feature quantity extraction unit 24 uses the communication log 22 a accumulated in the communication log accumulation unit 22 to display the type of feature quantity indicated by the feature quantity parameter 282 included in the normal model 28 c selected by the normal model selection unit 25. Extract (feature amount extraction step, S13). For example, when the normal model 28b is selected by the normal model selection unit 25, the feature amount extraction unit 24 uses the feature parameter 282 included in the normal model 28b from the communication log 22a stored in the communication log storage unit 22. Is calculated, that is, a three-dimensional feature vector. Details of step S13 will be described later with reference to the flowchart of FIG.

次に、異常度算出部27は、正常モデル選択部25で選択された正常モデルに含まれる基準値283と特徴量抽出部24で抽出された特徴量との間の統計的な外れ度合から、異常度を算出する(異常度算出ステップ、S14)。このとき、異常度算出部27は、正常モデル選択部25で選択された正常モデル28cに含まれる異常度尺度282aが示すアルゴリズムに従って、異常度を算出する。例えば、異常度算出部27は、正常モデル選択部25で正常モデル28bが選択された場合には、正常モデル28bに含まれる基準値283である平均ベクタ及び共分散行列を用いた基準値と特徴量抽出部24で抽出された3次元の特徴量ベクタとの「マハラノビス距離」を、異常度として、算出する。   Next, the degree-of-abnormality calculation unit 27 calculates a statistical deviation between the reference value 283 included in the normal model selected by the normal model selection unit 25 and the feature amount extracted by the feature amount extraction unit 24, An abnormal degree is calculated (abnormal degree calculating step, S14). At this time, the degree of abnormality calculation unit 27 calculates the degree of abnormality according to an algorithm indicated by the degree of abnormality scale 282a included in the normal model 28c selected by the normal model selection unit 25. For example, when the normal model 28b is selected by the normal model selection unit 25, the degree-of-abnormality calculation unit 27 uses the average value and the covariance matrix that are the reference values 283 included in the normal model 28b and features. The “Mahalanobis distance” with the three-dimensional feature vector extracted by the quantity extraction unit 24 is calculated as the degree of abnormality.

続いて、異常検知部32は、異常度算出部27によって算出された異常度と閾値とを比較することで、異常の有無を検知して出力する(S15)。例えば、異常検知部32は、異常度算出部27によって算出された「マハラノビス距離」が、予め定められた閾値よりも大きい場合に「異常有り」と判定し、一方、閾値と等しいか小さい場合に「異常無し」と判定し、その判定結果を検知結果として出力する。   Subsequently, the abnormality detection unit 32 detects the presence or absence of abnormality by comparing the abnormality degree calculated by the abnormality degree calculation unit 27 with a threshold value (S15). For example, the abnormality detection unit 32 determines that “abnormality is present” when the “Mahalanobis distance” calculated by the abnormality degree calculation unit 27 is larger than a predetermined threshold value, and on the other hand, when it is equal to or smaller than the threshold value. It is determined that there is no abnormality and the determination result is output as a detection result.

最後に、異常発生通知部31は、異常検知部32によって検知された異常の有無を通知する(S16)。例えば、異常発生通知部31は、異常検知部32から「異常有り」との検知結果が出力されてきた場合には、警報器によって異常が有ることを示す音声又はブザーを自動車の運転者に発したり、異常が有ることを示す情報を、通信インタフェースを介して管理センタに通知したりする。なお、管理センタへの通知時には、異常通知とともに異常を検知した通信ログデータやそのときの動作モードを示す情報を併せて送信してもよい。   Finally, the abnormality occurrence notification unit 31 notifies the presence / absence of the abnormality detected by the abnormality detection unit 32 (S16). For example, when an abnormality detection unit 32 outputs a detection result “abnormal”, the abnormality occurrence notifying unit 31 emits a sound or a buzzer indicating that there is an abnormality to the driver of the car by an alarm device. Or information indicating that there is an abnormality is notified to the management center via the communication interface. At the time of notification to the management center, communication log data in which an abnormality is detected and information indicating the operation mode at that time may be transmitted together with the abnormality notification.

なお、上記ステップS12〜S16は、ステップS11で判定された動作モードが複数ある場合には、それらの複数の動作モードのそれぞれごとに、実行される。   Note that when there are a plurality of operation modes determined in step S11, the above steps S12 to S16 are executed for each of the plurality of operation modes.

図5A〜図5Cは、図4のステップS11(動作モードの判定)の詳細な処理手順を示すフローチャートである。   5A to 5C are flowcharts showing the detailed processing procedure of step S11 (determination of operation mode) in FIG.

まず、動作モード判定部23は、通信ログ蓄積部22に蓄積された通信ログ22aの解析に際して、通信ログ22aの行番号用の変数Nを初期化(つまり、最初の行を示す「1」にセット)する(S20)。   First, when analyzing the communication log 22a stored in the communication log storage unit 22, the operation mode determination unit 23 initializes a variable N for the line number of the communication log 22a (that is, to “1” indicating the first line). Set) (S20).

そして、動作モード判定部23は、通信ログ22aの第N行目をチェックする(S21)。つまり、動作モード判定部23は、通信ログ蓄積部22から通信ログ22aの第N行目エントリを読み出し、読み出した第N行目エントリが、予め保持している複数の動作モードのいずれかの開始パターンに一致するか否かを判断する。具体的には、動作モード判定部23は、予め保持している複数の動作モードのそれぞれについて、動作モードの開始を示すCAN_ID、又は、CAN_IDとペイロードとの組み合わせを対応づけたテーブルを記憶しており、そのテーブルと、第N行目エントリに含まれるCAN_ID、又は、CAN_IDとペイロードとの組み合わせとが一致するか否かを判断する。例えば、ペイロードとして、ADAS(Advanced Driver Assistance System)の種類と有効/無効あるいは操作指示の有無を識別するフィールド(ADAS有効フラグ、ADAS操作指示ビット等)の情報が登録されている。なお、このテーブルに保持されている複数の動作モードは、正常モデル保管部28に保管されている複数の正常モデル28a〜28bに格納された動作モード識別子281が示す全ての動作モードに対応する。   Then, the operation mode determination unit 23 checks the Nth row of the communication log 22a (S21). That is, the operation mode determination unit 23 reads the Nth row entry of the communication log 22a from the communication log accumulation unit 22, and the read Nth row entry starts one of a plurality of operation modes held in advance. It is determined whether or not the pattern matches. Specifically, the operation mode determination unit 23 stores, for each of a plurality of operation modes held in advance, a table that associates CAN_ID indicating the start of the operation mode or a combination of CAN_ID and a payload. Therefore, it is determined whether or not the table and the CAN_ID included in the Nth row entry or the combination of the CAN_ID and the payload match. For example, information of a field (ADAS valid flag, ADAS operation instruction bit, etc.) for identifying the type of ADAS (Advanced Driver Assistance System) and valid / invalid or presence / absence of an operation instruction is registered as a payload. The plurality of operation modes held in this table correspond to all the operation modes indicated by the operation mode identifiers 281 stored in the plurality of normal models 28a to 28b stored in the normal model storage unit 28.

その結果、動作モード判定部23は、第N行目エントリが、予め保持している動作モードのいずれか(ここでは、「駐車支援」又は「緊急ブレーキ」)の開始パターンに一致すると判断した場合には(S22でY、又は、S23でY)、その動作モードの動作区間に対応する通信ログデータを抽出し(図5Bのフローチャート、又は、図5Cのフローチャート)、ステップS24に戻る。   As a result, when the operation mode determination unit 23 determines that the entry in the Nth row matches the start pattern of one of the operation modes held in advance (here, “parking support” or “emergency brake”). (Y in S22 or Y in S23), the communication log data corresponding to the operation section of the operation mode is extracted (the flowchart in FIG. 5B or the flowchart in FIG. 5C), and the process returns to step S24.

そして、動作モード判定部23は、変数Nを1だけインクリメントした後に(S24)、変数Nが通信ログ22aの最終行に一致するか否かを判断することで通信ログ22aの全てのエントリについての判断を終えたか否か判断する(S25)。動作モード判定部23は、通信ログ22aの全てのエントリについての判断を終えるまで、ステップS21〜S24を繰り返し、その後に終了する(S26)。   The operation mode determination unit 23 increments the variable N by 1 (S24), and then determines whether or not the variable N matches the last line of the communication log 22a. It is determined whether the determination has been completed (S25). The operation mode determination unit 23 repeats steps S21 to S24 until it finishes determining all entries in the communication log 22a, and then ends (S26).

図5Bは、図5AのステップS22において第N行目エントリが動作モード「駐車支援」の開始パターンに一致すると判断された場合の処理手順を示すフローチャートである。   FIG. 5B is a flowchart showing a processing procedure when it is determined in step S22 of FIG. 5A that the Nth row entry matches the start pattern of the operation mode “parking support”.

動作モード判定部23は、まず、現在の変数Nを、動作モード「駐車支援」の開始行を示す変数Sにセットした後に(S30)、変数Nを1だけインクリメントする(S31)。   The operation mode determination unit 23 first sets the current variable N to the variable S indicating the start line of the operation mode “parking support” (S30), and then increments the variable N by 1 (S31).

そして、動作モード判定部23は、通信ログ22aの第N行目をチェックする(S32)。つまり、動作モード判定部23は、通信ログ蓄積部22から通信ログ22aの第N行目エントリを読み出し、読み出した第N行目エントリが、動作モード「駐車支援」の終了パターンに一致するか否かを判断する。具体的には、動作モード判定部23は、動作モード「駐車支援」の終了を示すCAN_ID、又は、CAN_IDとペイロードとの組み合わせを対応づけたテーブルを記憶しており、そのテーブルと、第N行目エントリに含まれるCAN_ID、又は、CAN_IDとペイロードとの組み合わせとが一致するか否かを判断する。   Then, the operation mode determination unit 23 checks the Nth row of the communication log 22a (S32). That is, the operation mode determination unit 23 reads the Nth row entry of the communication log 22a from the communication log storage unit 22, and whether or not the read Nth row entry matches the end pattern of the operation mode “parking support”. Determine whether. Specifically, the operation mode determination unit 23 stores a table in which CAN_ID indicating the end of the operation mode “parking support” or a combination of CAN_ID and a payload is associated, and the table and the Nth row It is determined whether CAN_ID included in the eye entry or a combination of CAN_ID and the payload matches.

ここで、動作モード判定部23は、変数Nが通信ログ22aの最終行に一致すると判断した場合には(S33でY)、処理を終了するが(S26)、そうでない場合には(S33でN)、ステップS32でのチェックの結果、第N行目エントリが動作モード「駐車支援」の終了パターンに一致するか否かを判断する(S34)。そして、動作モード判定部23は、第N行目エントリが動作モード「駐車支援」の終了パターンに一致すると判断するまで(S34でY)、ステップS31〜S34を繰り返す。   Here, when the operation mode determination unit 23 determines that the variable N matches the last line of the communication log 22a (Y in S33), the process ends (S26), but otherwise (in S33). N) As a result of the check in step S32, it is determined whether or not the Nth row entry matches the end pattern of the operation mode “parking support” (S34). Then, the operation mode determination unit 23 repeats steps S31 to S34 until it is determined that the Nth row entry matches the end pattern of the operation mode “parking support” (Y in S34).

第N行目エントリが動作モード「駐車支援」の終了パターンに一致すると判断した場合には(S34でY)、動作モード判定部23は、現在の変数Nを、動作モード「駐車支援」の最終行を示す変数Eにセットした後に(S35)、通信ログ22aのうち第S行〜第E行目のエントリを動作モード「駐車支援」の通信ログデータとして抽出し(S36)、図5AのステップS24に戻る。   If it is determined that the entry in the Nth row matches the end pattern of the operation mode “parking support” (Y in S34), the operation mode determination unit 23 sets the current variable N to the final value of the operation mode “parking support”. After setting the variable E indicating the line (S35), the entries of the Sth to Eth lines in the communication log 22a are extracted as communication log data of the operation mode “parking support” (S36), and the step of FIG. 5A Return to S24.

図5Cは、図5AのステップS23において第N行目エントリが動作モード「緊急ブレーキ」の開始パターンに一致すると判断された場合の処理手順を示すフローチャートである。図5Cの処理(S40〜S46)は、基本的には、図5Bに示される動作モード「駐車支援」のケースでの処理(S30〜S36)と同じである。ただし、図5Bでは、動作モードが「駐車支援」であったが、図5Cでは、動作モードが「緊急ブレーキ」である点で異なる。図5Cの処理(S40〜S46)の説明は省略する。   FIG. 5C is a flowchart showing a processing procedure when it is determined in step S23 of FIG. 5A that the entry in the Nth row matches the start pattern of the operation mode “emergency brake”. The processes (S40 to S46) in FIG. 5C are basically the same as the processes (S30 to S36) in the case of the operation mode “parking support” shown in FIG. 5B. However, although the operation mode is “parking support” in FIG. 5B, the operation mode is “emergency brake” in FIG. 5C. The description of the process (S40 to S46) in FIG. 5C is omitted.

図6は、図4のステップS13(特徴量の抽出)の詳細な処理手順を示すフローチャートである。   FIG. 6 is a flowchart showing a detailed processing procedure of step S13 (feature amount extraction) in FIG.

まず、特徴量抽出部24は、動作モード判定部23で判定された動作モードについて、動作モード判定部23から、動作モード判定部23で抽出された通信ログデータを取得し、正常モデル選択部25から、正常モデル選択部25で選択された正常モデル28cを取得する(S50)。   First, the feature quantity extraction unit 24 acquires the communication log data extracted by the operation mode determination unit 23 from the operation mode determination unit 23 for the operation mode determined by the operation mode determination unit 23, and the normal model selection unit 25. Then, the normal model 28c selected by the normal model selection unit 25 is acquired (S50).

そして、特徴量抽出部24は、初期化処理として、変数Nに、動作モード判定部23から取得した通信ログデータの先頭行の番号をセットし(S51)、時間区間開始用の変数Tに、第N行目のエントリのタイムスタンプの値をセットし(S52)、時間区間幅用の変数dに、正常モデル選択部25で選択された正常モデル28cの特徴量パラメータ282に含まれる「区間幅」パラメータの値(例えば、動作モードが“駐車支援”と判定された場合、300msec)をセットする(S53)。   Then, as an initialization process, the feature quantity extraction unit 24 sets the number of the first line of the communication log data acquired from the operation mode determination unit 23 to the variable N (S51), and sets the time interval start variable T to the variable T. The time stamp value of the entry in the Nth row is set (S52), and the variable “d” for the time interval width includes the “interval width” included in the feature parameter 282 of the normal model 28c selected by the normal model selection unit 25. The parameter value (for example, 300 msec when the operation mode is determined to be “parking support”) is set (S53).

次に、特徴量抽出部24は、動作モード判定部23から取得した通信ログデータが、時間区間T〜(T+d)の間で終了していないかを判断する(S54)。具体的には、通信ログデータの最終エントリのタイムスタンプをTeとしたとき、T+dがTe以下であるか否かを判断する。   Next, the feature amount extraction unit 24 determines whether or not the communication log data acquired from the operation mode determination unit 23 has ended between time intervals T to (T + d) (S54). Specifically, it is determined whether or not T + d is equal to or less than Te when the time stamp of the last entry of the communication log data is Te.

その結果、通信ログデータが終了していないと判断した場合には(S54でY)、特徴量抽出部24は、動作モード判定部23から取得した通信ログデータから、時間区間T〜(T+d)内にタイムスタンプ222をもつ全てのエントリを抽出し(S55)、抽出した全てのエントリを用いて、正常モデル選択部25から取得した正常モデル28cの特徴量パラメータ282に従って特徴量ベクタを作成し(S56)、作成した特徴量ベクタを異常度算出部27に出力する(S57)。そして、特徴量抽出部24は、変数Tに変数dを加算することで変数Tをインクリメントし(S58)、再び、ステップS54〜S58を繰り返す。   As a result, when it is determined that the communication log data has not ended (Y in S54), the feature amount extraction unit 24 uses the time interval T to (T + d) from the communication log data acquired from the operation mode determination unit 23. All entries having a time stamp 222 are extracted (S55), and a feature vector is created using all the extracted entries according to the feature parameter 282 of the normal model 28c acquired from the normal model selection unit 25 ( (S56), the created feature vector is output to the degree-of-abnormality calculation unit 27 (S57). Then, the feature amount extraction unit 24 increments the variable T by adding the variable d to the variable T (S58), and repeats steps S54 to S58 again.

一方、ステップS54において、動作モード判定部23から取得した通信ログデータが時間区間T〜(T+d)の間で終了していると判断した場合には(S54でN)、特徴量抽出部24は、処理を終了する。   On the other hand, if it is determined in step S54 that the communication log data acquired from the operation mode determination unit 23 has ended between time intervals T to (T + d) (N in S54), the feature amount extraction unit 24 The process is terminated.

なお、特徴量ベクタの作成(S56)では、より詳しくは、特徴量抽出部24は、次の第1ステップ〜第3ステップのように処理をする。   It should be noted that in the feature vector generation (S56), more specifically, the feature amount extraction unit 24 performs processing as in the following first to third steps.

まず、第1ステップにおいて、特徴量抽出部24は、まず、正常モデル選択部25から取得した正常モデル28cの特徴量パラメータ282を参照することで、特徴量ベクタの次元数、及び、特徴量ベクタの各要素の抽出特徴量情報(着目する情報がID(CAN_ID)であるかペイロードであるかの区別)を取得する。例えば、特徴量抽出部24は、正常モデル選択部25から取得した正常モデル28cが図3に示される正常モデル28aである場合には、正常モデル28aの特徴量パラメータ282を参照することで、特徴量ベクタの次元数として「2」を取得し、特徴量ベクタの各要素の抽出特徴量情報として「ID」及び「ペイロード」を取得する。   First, in the first step, the feature quantity extraction unit 24 first refers to the feature quantity parameter 282 of the normal model 28c acquired from the normal model selection section 25, and thereby the number of dimensions of the feature quantity vector and the feature quantity vector. Extracted feature amount information (discriminating whether the information of interest is ID (CAN_ID) or payload) is acquired. For example, when the normal model 28c acquired from the normal model selection unit 25 is the normal model 28a shown in FIG. 3, the feature amount extraction unit 24 refers to the feature amount parameter 282 of the normal model 28a, thereby “2” is acquired as the number of dimensions of the quantity vector, and “ID” and “payload” are acquired as extracted feature quantity information of each element of the feature quantity vector.

次に、第2ステップにおいて、特徴量抽出部24は、取得した抽出特徴量情報が「ID」である場合には、動作モード判定部23から取得した通信ログデータを対象として、対象の時間区間T〜(T+d)において、指定されたCAN_IDをもつCANメッセージが送信された回数(エントリの個数)を、特徴量ベクタの第1要素として算出する。また、特徴量抽出部24は、取得した抽出特徴量情報が「ペイロード」である場合には、動作モード判定部23から取得した通信ログデータを対象として、対象の時間区間T〜(T+d)において、特徴量パラメータ282で指定されたCAN_IDをもつCANメッセージ(エントリ)を抽出し、抽出したCANメッセージのペイロードのうち特徴量パラメータ282で指定されたフィールドの値(2個以上のCANメッセージが抽出された場合には、それらのフィールドの値の平均値)を特徴量ベクタの第2要素として算出する。なお、対象の時間区間T〜(T+d)において特徴量パラメータ282で指定されたCAN_IDをもつCANメッセージ(エントリ)がひとつも抽出されなかった場合には、特徴量抽出部24は、直前の時間区間で算出された値を特徴量ベクタの要素とする。   Next, in the second step, when the extracted feature value information is “ID”, the feature value extraction unit 24 targets the communication log data acquired from the operation mode determination unit 23 as a target time interval. From T to (T + d), the number of times that the CAN message having the specified CAN_ID has been transmitted (number of entries) is calculated as the first element of the feature vector. In addition, when the acquired extracted feature value information is “payload”, the feature value extraction unit 24 targets the communication log data acquired from the operation mode determination unit 23 in the target time interval T to (T + d). The CAN message (entry) having the CAN_ID specified by the feature parameter 282 is extracted, and the value of the field specified by the feature parameter 282 (two or more CAN messages are extracted from the payload of the extracted CAN message). The average value of these field values) is calculated as the second element of the feature vector. If no CAN message (entry) having the CAN_ID specified by the feature parameter 282 is extracted in the target time interval T to (T + d), the feature extractor 24 extracts the previous time interval. The value calculated in is used as a feature vector element.

最後に、第3ステップにおいて、特徴量抽出部24は、上記第2ステップで算出した次元数分の要素をもつ特徴量ベクタを作成する。   Finally, in the third step, the feature quantity extraction unit 24 creates a feature quantity vector having elements for the number of dimensions calculated in the second step.

以上のような異常検知装置20による処理により、通信ネットワーク14において、例えば、図7に示されるようなサイバー攻撃を受けた場合に、図8に示されるアルゴリズムによって、異常として検知され得る。   Through the processing by the abnormality detection device 20 as described above, when a cyber attack as shown in FIG. 7 is received in the communication network 14, for example, an abnormality can be detected by the algorithm shown in FIG.

図7は、通信ネットワーク14が受けるサイバー攻撃の一例を示す図である。ここでは、通信ネットワーク14で伝送されるCANメッセージの出現タイミングを示すタイムチャートが示されている。タイムチャート上の四角は、正常なCANメッセージ(つまり、正常CANメッセージ16a〜16e)であり、一定の送信間隔Tで出現している。一般に、正常状態では、CANメッセージ(つまり、正常CANメッセージ)は、CAN_IDごとに、決まった周期で定期的に送信される。   FIG. 7 is a diagram illustrating an example of a cyber attack that the communication network 14 receives. Here, the time chart which shows the appearance timing of the CAN message transmitted with the communication network 14 is shown. The squares on the time chart are normal CAN messages (that is, normal CAN messages 16a to 16e) and appear at a constant transmission interval T. Generally, in a normal state, a CAN message (that is, a normal CAN message) is periodically transmitted at a predetermined cycle for each CAN_ID.

これに対して、タイムチャート上の三角は、通信ネットワーク14へ不正に注入されたCANメッセージ(つまり、不正CANメッセージ17a〜17g)であり、周期性をもたないタイミングで出現している。このような不正CANメッセージ17a〜17gが発生する状態が異常状態である。不正CANメッセージ17a〜17gは、例えば、CAN_IDが正常CANメッセージと同じであるが、ペイロードが偽造されており正常CANメッセージのものと異なっており、CANバスの診断ポート等から注入される。不正CANメッセージ17a〜17gのペイロードには、不正な操作量(例えば、ステアリング/ブレーキ操作量が正常時よりも大きい/小さい値等)、不正なトリガ指示(例えば、緊急ブレーキ/エアバッグを発動させるビット、駐車支援の開始トリガとなるビット)、不正な表示量(例えば、速度/エンジン回転数/車輪速の表示量)等が設定される。このような不正CANメッセージ17a〜17gが通信ネットワーク14に注入されるサイバー攻撃によって、ステアリング等の不正操作が可能になる。   On the other hand, the triangles on the time chart are CAN messages that are illegally injected into the communication network 14 (that is, illegal CAN messages 17a to 17g), and appear at a timing without periodicity. The state in which such illegal CAN messages 17a to 17g are generated is an abnormal state. For example, the CAN messages 17a to 17g have the same CAN_ID as that of the normal CAN message, but the payload is forged and is different from that of the normal CAN message, and is injected from the diagnostic port of the CAN bus. In the payload of the unauthorized CAN messages 17a to 17g, an unauthorized operation amount (for example, a steering / brake operation amount is larger / smaller than normal), an unauthorized trigger instruction (for example, an emergency brake / airbag is activated) Bit, a bit serving as a parking assistance start trigger), an incorrect display amount (for example, display amount of speed / engine speed / wheel speed) and the like are set. An illegal operation such as steering can be performed by a cyber attack in which such illegal CAN messages 17a to 17g are injected into the communication network 14.

図8は、本実施の形態に係る異常検知装置20による異常検知のアルゴリズムの概念を示す図である。ここでは、横軸をCAN_IDが「IDa」であるCANメッセージの送信頻度Na(回/sec)とし、縦軸をCAN_IDが「IDb」であるCANメッセージの送信頻度Nb(回/sec)とした場合における2次元の特徴量ベクタ(Na、Nb)の例がプロットされている。   FIG. 8 is a diagram showing the concept of an abnormality detection algorithm by the abnormality detection device 20 according to the present embodiment. Here, the horizontal axis is CAN message transmission frequency Na (times / sec) with CAN_ID “IDa”, and the vertical axis is CAN message transmission frequency Nb (times / sec) with CAN_ID “IDb”. An example of a two-dimensional feature vector (Na, Nb) at is plotted.

図8に示される例では、「正常モデル」は、2次元の特徴量ベクタ(1/Ta、1/Tb)を中心として一定範囲内にある特徴量ベクタの集まりである。つまり、この「正常モデル」は、CAN_IDが「IDa」であるCANメッセージが略送信周期Taで繰り返し送信され、かつ、CAN_IDが「IDb」であるCANメッセージが略送信周期Tbで繰り返し送信される状態に対応している。   In the example shown in FIG. 8, the “normal model” is a collection of feature vectors within a certain range with a two-dimensional feature vector (1 / Ta, 1 / Tb) as a center. That is, in the “normal model”, a CAN message whose CAN_ID is “IDa” is repeatedly transmitted in a substantially transmission cycle Ta, and a CAN message whose CAN_ID is “IDb” is repeatedly transmitted in a substantially transmission cycle Tb. It corresponds to.

本実施の形態に係る異常検知装置20によれば、通信ログ22aの解析によって、図8に示される「正常モデル」から大きく距離が外れた特徴量ベクタ18aが観察された場合に、「異常度が高い」と判断され、一方、「正常モデル」から大きく距離が外れていない特徴量ベクタ18bが観察された場合に、「異常度が低い」と判断される。このように、異常検知装置20により、正常モデルとの間の統計的な外れ度合(例えば、異常度尺度で定まる距離)が異常度として算出される。   According to the abnormality detection apparatus 20 according to the present embodiment, when the feature vector 18a greatly deviated from the “normal model” shown in FIG. On the other hand, when the feature vector 18b that is not greatly deviated from the “normal model” is observed, it is determined that “the degree of abnormality is low”. In this manner, the abnormality detection device 20 calculates a statistical degree of deviation from the normal model (for example, a distance determined by the abnormality degree scale) as the abnormality degree.

なお、図8では、説明の便宜上、特徴量ベクタが2次元である場合を例に説明したが、特徴量ベクタが3以上の次元であっても、基本的な異常検知のアルゴリズムは同じである。図8に示される2次元空間を3以上の多次元空間に拡張したうえで、同様のアルゴリズムで異常が検知される。   In FIG. 8, the case where the feature vector is two-dimensional is described as an example for convenience of explanation, but the basic abnormality detection algorithm is the same even if the feature vector is three or more dimensions. . After the two-dimensional space shown in FIG. 8 is expanded to three or more multidimensional spaces, an abnormality is detected with the same algorithm.

以上のように、本実施の形態に係る異常検知装置20は、通信ネットワーク14を備えて動作する対象物における異常を検知する装置であって、対象物が取り得る複数の動作モードのそれぞれに対応し、通信ネットワーク14での正常時の通信における特徴量の特性を示すデータである複数の正常モデル28a〜28bを保管する正常モデル保管部28と、通信ネットワーク14の通信ログから対象物の動作モードを判定する動作モード判定部23と、正常モデル保管部28に保管された複数の正常モデルから、動作モード判定部23で判定された動作モードに対応する正常モデルを選択する正常モデル選択部25と、正常モデル選択部25で選択された正常モデルに従って通信ログから通信ネットワーク14での通信における特徴量を抽出する特徴量抽出部24と、正常モデル選択部25で選択された正常モデル、及び、特徴量抽出部24で抽出された特徴量に基づいて、通信ネットワーク14での通信における異常を検知する異常検知部32とを備える。   As described above, the abnormality detection device 20 according to the present embodiment is a device that detects an abnormality in an object that operates with the communication network 14, and corresponds to each of a plurality of operation modes that the object can take. Then, a normal model storage unit 28 that stores a plurality of normal models 28a to 28b, which are data indicating characteristics of features in normal communication in the communication network 14, and an operation mode of the object from the communication log of the communication network 14 An operation mode determination unit 23 for determining the normal mode, and a normal model selection unit 25 for selecting a normal model corresponding to the operation mode determined by the operation mode determination unit 23 from a plurality of normal models stored in the normal model storage unit 28 The feature amount in communication on the communication network 14 is extracted from the communication log according to the normal model selected by the normal model selection unit 25 Abnormality detection for detecting an abnormality in communication on the communication network 14 based on the normal model selected by the feature quantity extraction unit 24, the normal model selection unit 25, and the feature quantity extracted by the feature quantity extraction unit 24 Part 32.

これにより、通信ログにおけるコマンドのひとつひとつを解析するのではなく、複数の正常モデルの中から対象物の動作モードに対応した正常モデルに絞り込み、絞り込んだ正常モデルに従って通信ログから特徴量を抽出したうえで異常が検知されるので、従来よりも削減された計算負荷で異常度が算出される。しかも、通信ログを用いて異常が検知されるので、異常の検知について、精度が劣化されることはない。よって、精度を劣化させることなく、従来よりも削減された計算負荷で異常を検知することができる異常検知装置が実現される。   As a result, instead of analyzing each individual command in the communication log, the normal model corresponding to the operation mode of the target object is narrowed down from multiple normal models, and the feature value is extracted from the communication log according to the narrowed normal model. Since an abnormality is detected at, the degree of abnormality is calculated with a calculation load reduced as compared with the prior art. In addition, since the abnormality is detected using the communication log, the accuracy of the abnormality detection is not deteriorated. Therefore, an abnormality detection device is realized that can detect an abnormality with a reduced calculation load than before without degrading accuracy.

また、正常モデル28a〜28bには、通信ネットワーク14での通信における異常の検知に用いるための特徴量の種類を示す特徴量パラメータ282が含まれ、特徴量抽出部24は、正常モデル選択部25で選択された正常モデルに含まれる特徴量パラメータ282が示す種類の特徴量を、通信ログ22aから抽出する。   In addition, the normal models 28a to 28b include a feature parameter 282 indicating the type of feature used for detecting an abnormality in communication in the communication network 14, and the feature extractor 24 includes the normal model selector 25. The feature quantity of the type indicated by the feature quantity parameter 282 included in the normal model selected in (2) is extracted from the communication log 22a.

これにより、正常モデルに含まれる特徴量パラメータ282を参照することで特徴量が抽出されるので、正常モデルに対応する動作モードに特有の特徴量の種類を示す特徴量パラメータを正常モデルに含めることで、より精度の高い異常検知が可能になる。   Thereby, since the feature quantity is extracted by referring to the feature quantity parameter 282 included in the normal model, the feature quantity parameter indicating the type of feature quantity specific to the operation mode corresponding to the normal model is included in the normal model. This makes it possible to detect anomalies with higher accuracy.

また、通信ネットワーク14での通信における異常度を算出する異常度算出部27をさらに備え、正常モデル28a〜28bには、さらに、特徴量パラメータ282が示す特徴量の種類に対応する特徴量の基準値283が含まれ、異常度算出部27は、正常モデル選択部25で選択された正常モデル28cに含まれる特徴量の基準値283と特徴量抽出部24で抽出された特徴量との間の外れ度合から、異常度を算出し、異常検知部32は、異常度算出部27によって算出された異常度と閾値とを比較することで、異常の有無を検知する。   In addition, an abnormality degree calculation unit 27 that calculates an abnormality degree in communication in the communication network 14 is further provided, and the normal models 28a to 28b further include a feature amount reference corresponding to the feature amount type indicated by the feature amount parameter 282. Value 283 is included, and the degree of abnormality calculation unit 27 calculates the difference between the reference value 283 of the feature amount included in the normal model 28c selected by the normal model selection unit 25 and the feature amount extracted by the feature amount extraction unit 24. The degree of abnormality is calculated from the degree of deviation, and the abnormality detection unit 32 detects the presence or absence of abnormality by comparing the degree of abnormality calculated by the degree of abnormality calculation unit 27 with a threshold value.

これにより、正常モデル28a〜28bには特徴量パラメータ282が示す特徴量の種類に対応する特徴量の基準値283が含まれ、その基準値283を用いて異常度が算出されるので、動作モードに対応した正常モデルごとに異常度の算出基準を規定することができ、より精度の高い異常検知が実現される。   Thereby, the normal models 28a to 28b include the feature value reference value 283 corresponding to the feature value type indicated by the feature value parameter 282, and the abnormality level is calculated using the reference value 283. The calculation standard of the degree of abnormality can be defined for each normal model corresponding to, and more accurate abnormality detection is realized.

また、正常モデル28a〜28bには、さらに、異常度の算出に用いるアルゴリズムを示す異常度尺度282aが含まれ、異常度算出部27は、正常モデル選択部25で選択された正常モデル28cに含まれる異常度尺度282aが示すアルゴリズムに従って、異常度を算出する。   Further, the normal models 28a to 28b further include an abnormality degree scale 282a indicating an algorithm used for calculating the degree of abnormality, and the degree of abnormality calculation unit 27 is included in the normal model 28c selected by the normal model selection unit 25. The degree of abnormality is calculated according to an algorithm indicated by the abnormality degree scale 282a.

これにより、正常モデル28a〜28bには異常度の算出に用いるアルゴリズムを示す異常度尺度282aが含まれ、そのアルゴリズムに従って異常度が算出されるので、動作モードに対応した正常モデルごとに適切な異常度の算出アルゴリズムを規定することができ、より精度の高い異常検知が実現される。   Thus, the normal models 28a to 28b include an abnormality degree scale 282a indicating an algorithm used for calculating the degree of abnormality, and the degree of abnormality is calculated according to the algorithm, so that an appropriate abnormality is determined for each normal model corresponding to the operation mode. The degree calculation algorithm can be defined, and more accurate abnormality detection is realized.

また、異常検知装置20は、さらに、異常検知部32によって検知された異常の有無を通知する異常発生通知部31を備える。   In addition, the abnormality detection device 20 further includes an abnormality occurrence notification unit 31 that notifies the presence or absence of an abnormality detected by the abnormality detection unit 32.

これにより、異常の有無が通知されるので、異常の発生を即座に知ることができる。   Thereby, since the presence or absence of abnormality is notified, generation | occurrence | production of abnormality can be known immediately.

また、異常検知装置20は、さらに、通信ネットワーク14における通信を記録することで通信ログを取得する通信ログ取得部21と、通信ログ取得部21によって取得された通信ログを蓄積する通信ログ蓄積部22とを備え、動作モード判定部23は、通信ログ蓄積部22に蓄積された通信ログ22aから動作モードを判定する。   The abnormality detection device 20 further includes a communication log acquisition unit 21 that acquires a communication log by recording communication in the communication network 14 and a communication log storage unit that stores the communication log acquired by the communication log acquisition unit 21. The operation mode determination unit 23 determines the operation mode from the communication log 22 a stored in the communication log storage unit 22.

これにより、異常検知装置20に通信ログ取得部21と通信ログ蓄積部22とが備えられるので、通信ネットワーク14上に別途、通信ログを蓄積するECUを設けること、及び、そのECUから異常検知装置20に通信ログを転送する制御をすることが不要となる。   Thereby, since the abnormality detection device 20 includes the communication log acquisition unit 21 and the communication log storage unit 22, an ECU for storing the communication log is separately provided on the communication network 14, and the abnormality detection device is provided from the ECU. It is not necessary to control the transfer of the communication log to 20.

図9は、本実施の形態に係る異常検知装置20が備える正常モデル作成部26の動作を示すフローチャートである。   FIG. 9 is a flowchart showing the operation of the normal model creation unit 26 provided in the abnormality detection device 20 according to the present embodiment.

まず、正常モデル作成部26は、動作モード判定部23で判定された動作モードについて、動作モード判定部23から、動作モード判定部23で抽出された通信ログデータ、及び、判定された動作モードを示す識別子を取得する(S60)。   First, for the operation mode determined by the operation mode determination unit 23, the normal model creation unit 26 obtains the communication log data extracted by the operation mode determination unit 23 from the operation mode determination unit 23 and the determined operation mode. The identifier shown is acquired (S60).

次に、正常モデル作成部26は、特徴量パラメータ更新部29に対して上記識別子を提示したうえで更新用の特徴量パラメータが保持されているか否かを問い合わせることで、特徴量パラメータ更新部29に上記識別子が示す動作モードに対応する特徴量パラメータが保持されているか否かを判断する(S61)。   Next, the normal model creation unit 26 presents the identifier to the feature parameter update unit 29 and inquires whether or not the feature parameter for update is held, whereby the feature parameter update unit 29 It is determined whether or not the feature parameter corresponding to the operation mode indicated by the identifier is held (S61).

その結果、特徴量パラメータ更新部29に特徴量パラメータが保持されている場合には(S61でY)、正常モデル作成部26は、特徴量パラメータ更新部29から、そこに保持されている特徴量パラメータを取得し(S62)、一方、特徴量パラメータ更新部29に特徴量パラメータが保持されていない場合には(S61でN)、正常モデル保管部28から、上記識別子が示す動作モードに対応する正常モデルデータに含まれる特徴量パラメータを取得する(S63)。   As a result, when the feature amount parameter is held in the feature amount parameter update unit 29 (Y in S61), the normal model creation unit 26 receives the feature amount held therein from the feature amount parameter update unit 29. If the parameter is acquired (S62), but the feature parameter is not held in the feature parameter update unit 29 (N in S61), it corresponds to the operation mode indicated by the identifier from the normal model storage unit 28. A feature parameter included in normal model data is acquired (S63).

続いて、正常モデル作成部26は、行番号用の変数Nをゼロに、時間区間開始用の変数Tに動作モード判定部23で抽出された通信ログデータの先頭エントリのタイムスタンプをセットし(S64)、かつ、時間区間幅用の変数dに、上記ステップS62又はS63で取得した特徴量パラメータに含まれる区間幅をセットする(S65)。   Subsequently, the normal model creation unit 26 sets the line number variable N to zero, and sets the time stamp of the first entry of the communication log data extracted by the operation mode determination unit 23 to the time interval start variable T ( S64), and the section width included in the feature parameter acquired in step S62 or S63 is set in the variable d for the time section width (S65).

次に、正常モデル作成部26は、動作モード判定部23から取得した通信ログデータに、時間区間T〜(T+d)の間で終了していないかを判断する(S66)。具体的には、通信ログデータの最終エントリのタイムスタンプをTeとしたとき、T+dがTe以下であるか否かを判断する。   Next, the normal model creation unit 26 determines whether or not the communication log data acquired from the operation mode determination unit 23 has ended during the time interval T to (T + d) (S66). Specifically, it is determined whether or not T + d is equal to or less than Te when the time stamp of the last entry of the communication log data is Te.

その結果、通信ログデータが終了していないと判断した場合には(S66でY)、正常モデル作成部26は、動作モード判定部23から取得した通信ログデータから、時間区間T〜(T+d)内にタイムスタンプ222をもつ全てのエントリを抽出し(S67)、抽出した全てのエントリを用いて、上記ステップS62又はS63で取得した特徴量パラメータに従って特徴量ベクタを作成する(S68)。なお、この正常モデル作成部26による特徴量ベクタの作成(S68)は、特徴量抽出部24による特徴量ベクタの作成(S56;上記第1ステップ〜第3ステップ)と同じである。   As a result, when it is determined that the communication log data has not ended (Y in S66), the normal model creation unit 26 determines the time interval T to (T + d) from the communication log data acquired from the operation mode determination unit 23. All entries having a time stamp 222 are extracted (S67), and a feature vector is created using all the extracted entries according to the feature parameter acquired in step S62 or S63 (S68). The creation of the feature vector by the normal model creation unit 26 (S68) is the same as the creation of the feature vector by the feature extraction unit 24 (S56; first to third steps).

そして、正常モデル作成部26は、変数Nを1だけインクリメントし、かつ、変数Tに変数dを加算することで変数Tをインクリメントし(S69)、いま作成した特徴量ベクタを変数Nに対応づけて保持した後に(S70)、再び、ステップS66〜S70を繰り返す。   Then, the normal model creation unit 26 increments the variable N by 1, and increments the variable T by adding the variable d to the variable T (S69), and associates the feature quantity vector just created with the variable N. (S70), steps S66 to S70 are repeated again.

一方、ステップS66において、動作モード判定部23から取得した通信ログデータが時間区間T〜(T+d)の間で終了していると判断した場合には(S66でN)、正常モデル作成部26は、上記ステップS62又はS63で取得した特徴量パラメータに含まれる「モデル表記」を参照することで、「モデル表記」が「即値」及び「統計量」のいずれを示すかを判断する(S80)。   On the other hand, when it is determined in step S66 that the communication log data acquired from the operation mode determination unit 23 has ended between time intervals T to (T + d) (N in S66), the normal model creation unit 26 Then, by referring to the “model notation” included in the feature parameter acquired in step S62 or S63, it is determined whether the “model notation” indicates “immediate value” or “statistic” (S80).

その結果、「モデル表記」が「即値」を示す場合には(S80で「即値」)、正常モデル作成部26は、上記ステップS70で保持した変数N及び特徴量ベクタをそのまま正常モデルを構成する特徴量パラメータの基準値として設定し(S81)、一方、「モデル表記」が「統計量」を示す場合には(S80で「統計量」)、上記ステップS70で保持した変数N及び特徴量ベクタから平均ベクタ及び共分散行列を計算し(S82)、計算した平均ベクタ及び共分散行列を、正常モデルを構成する特徴量パラメータの基準値として設定する(S83)。   As a result, when the “model notation” indicates “immediate value” (“immediate value” in S80), the normal model creation unit 26 configures the normal model as it is with the variable N and the feature vector held in step S70. When the “model notation” indicates “statistic” (“statistic” in S80), the variable N and the feature vector held in step S70 are set as the reference value of the feature parameter (S81). Then, the average vector and the covariance matrix are calculated from (S82), and the calculated average vector and covariance matrix are set as the reference values of the feature parameter constituting the normal model (S83).

そして、正常モデル作成部26は、上記ステップS62又はS63で取得した特徴量パラメータと、上記ステップS81又はS82〜S83で設定した特徴量パラメータの基準値とを有する正常モデルで、正常モデル保管部28に保管された上記識別子に対応する正常モデルを更新する(S84)。   The normal model creation unit 26 is a normal model having the feature parameter acquired in step S62 or S63 and the reference value of the feature parameter set in steps S81 or S82 to S83. The normal model storage unit 28 The normal model corresponding to the identifier stored in (1) is updated (S84).

図10は、本実施の形態に係る異常検知装置20が備える特徴量パラメータ更新部29の動作を示すフローチャートである。   FIG. 10 is a flowchart illustrating the operation of the feature parameter update unit 29 included in the abnormality detection device 20 according to the present embodiment.

まず、特徴量パラメータ更新部29は、更新サーバへの問い合わせタイミングが到来したか否かを判断する(S90)。例えば、特徴量パラメータ更新部29は、予め定められた周期又は時刻と内部のカレンダタイマが示す値とを比較することで、この判断をする。   First, the feature parameter update unit 29 determines whether or not an inquiry timing to the update server has arrived (S90). For example, the feature quantity parameter update unit 29 makes this determination by comparing a predetermined period or time with a value indicated by an internal calendar timer.

その結果、更新サーバへの問い合わせタイミングが到来したと判断した場合には(S90でY)、特徴量パラメータ更新部29は、更新サーバに対して更新データ(つまり、特徴量パラメータ)があるか否かを問い合わせ(S96)、更新データ(つまり、特徴量パラメータ)があるときにだけ(S97でY)、更新サーバから更新データ(つまり、特徴量パラメータ)を取得して保持する(S98)。   As a result, when it is determined that the inquiry timing to the update server has arrived (Y in S90), the feature parameter update unit 29 determines whether there is update data (that is, a feature parameter) for the update server. The update data (that is, the feature parameter) is acquired from the update server and held only when there is update data (that is, the feature parameter) (Y in S97) (S98).

一方、更新サーバへの問い合わせタイミングが到来したと判断しなかった場合には(S90でN)、特徴量パラメータ更新部29は、正常モデル作成部26から更新用の特徴量パラメータが保持されているか否かの問い合わせがあるか否かを判断し(S91)、問い合わせがあると判断したときに(S91でY)、正常モデル作成部26から問い合わせに係る動作モードの識別子を取得する(S92)。   On the other hand, if it is not determined that the inquiry timing to the update server has arrived (N in S90), the feature parameter update unit 29 holds the feature parameter for update from the normal model creation unit 26. It is determined whether there is an inquiry about whether or not (S91). When it is determined that there is an inquiry (Y in S91), an identifier of the operation mode related to the inquiry is acquired from the normal model creation unit 26 (S92).

そして、特徴量パラメータ更新部29は、正常モデル作成部26から取得した識別子が示す正常モデルについての更新用の特徴量パラメータを保持しているか否かを判断し(S93)、保持していると判断した場合には(S93でY)、その特徴量パラメータを正常モデル作成部26に送信し(S94)、送信した元の特徴量パラメータを内部のメモリから削除する(S95)。   Then, the feature quantity parameter update unit 29 determines whether or not the feature quantity parameter for update for the normal model indicated by the identifier acquired from the normal model creation unit 26 is held (S93). If it is determined (Y in S93), the feature parameter is transmitted to the normal model creation unit 26 (S94), and the transmitted original feature parameter is deleted from the internal memory (S95).

以上のように、本実施の形態に係る異常検知装置20は、さらに、通信ログから正常モデルを作成し、作成した正常モデルを用いて、当該正常モデルに対応する動作モードに対応する、正常モデル保管部28に保管されている正常モデルを更新する正常モデル作成部26を備える。   As described above, the abnormality detection device 20 according to the present embodiment further creates a normal model from the communication log, and uses the created normal model to correspond to the operation mode corresponding to the normal model. A normal model creation unit 26 that updates a normal model stored in the storage unit 28 is provided.

これにより、通信ログから正常モデルが作成されるので、対象物を実際に正常動作させた状態で通信ログを自動生成させることが可能となり、正常モデルの作成負荷が軽減されるとともに、対象物の動作に応じて正常モデルを更新させる自動適応が可能となる。   As a result, a normal model is created from the communication log, so it is possible to automatically generate a communication log with the object actually operating normally, reducing the load of creating the normal model, and Automatic adaptation to update the normal model according to the operation becomes possible.

また、本実施の形態に係る異常検知装置20は、さらに、異常検知装置20の外部から新たな特徴量パラメータを取得する特徴量パラメータ更新部29を備え、正常モデル作成部26は、特徴量パラメータ更新部29によって取得された特徴量パラメータを用いて、正常モデル保管部28に保管されている正常モデルを更新する。   Further, the abnormality detection device 20 according to the present embodiment further includes a feature amount parameter update unit 29 that acquires a new feature amount parameter from the outside of the abnormality detection device 20, and the normal model creation unit 26 includes the feature amount parameter. The normal model stored in the normal model storage unit 28 is updated using the feature parameter acquired by the update unit 29.

これにより、外部から異常検知装置20に特徴量パラメータを与えることで、異常検知装置が備える正常モデル内の特徴量パラメータが更新されるので、正常モデルの精度を高める等の動的な正常モデルの構造変更が可能になり、正常モデルのメンテナンスも容易になる。   Thereby, since the feature parameter in the normal model provided in the abnormality detection device is updated by giving the feature parameter to the abnormality detection device 20 from the outside, the dynamic normal model such as improving the accuracy of the normal model is updated. The structure can be changed, and maintenance of the normal model becomes easy.

以上、本発明に係る異常検知装置及び異常検知方法について、実施の形態に基づいて説明したが、本発明は、この実施の形態に限定されるものではない。本発明の主旨を逸脱しない限り、当業者が思いつく各種変形を本実施の形態に施したものや、実施の形態における一部の構成要素を組み合わせて構築される別の形態も、本発明の範囲内に含まれる。   As described above, the abnormality detection device and the abnormality detection method according to the present invention have been described based on the embodiment. However, the present invention is not limited to this embodiment. Without departing from the gist of the present invention, various modifications conceived by those skilled in the art have been made in the present embodiment, and other forms constructed by combining some components in the embodiment are also within the scope of the present invention. Contained within.

例えば、上記実施の形態では、通信ネットワークを備えて動作する対象物として、自動車が例示されたが、対象物は、自動車に限られず、CAN等の通信ネットワークを備える輸送用機器、工場、工作機械等であってもよい。   For example, in the above-described embodiment, an automobile is exemplified as an object that operates with a communication network. However, the object is not limited to an automobile, and transportation equipment, a factory, and a machine tool that include a communication network such as CAN. Etc.

また、上記実施の形態では、通信ネットワークとして、CANが例示されたが、LIN、FlexRay(登録商標)、MOST(登録商標)等の他の車載ネットワークであってもよいし、車載とは異なる工作機械等の他の機器に搭載される通信ネットワークであってもよい。   In the above embodiment, CAN is exemplified as the communication network, but other in-vehicle networks such as LIN, FlexRay (registered trademark), MOST (registered trademark) may be used. It may be a communication network mounted on another device such as a machine.

また、上記実施の形態では、通信ログから動作モードが判定されたが、自動車に搭載されているADAS(Advanced Driver Assistance System)から得られる各種情報から動作モードを判定してもよい。   Moreover, in the said embodiment, although the operation mode was determined from the communication log, you may determine an operation mode from the various information obtained from ADAS (Advanced Driver Assistance System) mounted in the motor vehicle.

また、上記実施の形態で説明した異常検知方法は、異常検知装置20によって実行されるプログラムとして実現してもよいし、そのようなプログラムが記録されたDVD等のコンピュータ読み取り可能な記録媒体として実現してもよい。   Further, the abnormality detection method described in the above embodiment may be realized as a program executed by the abnormality detection device 20, or realized as a computer-readable recording medium such as a DVD on which such a program is recorded. May be.

本発明は、通信ネットワークを備えて動作する対象物における異常を検知する異常検知装置として、より詳しくは、精度を劣化させることなく、従来よりも削減された計算負荷で異常を検知することができる異常検知装置として、例えば、CANバスに接続されるECUとして、利用できる。   The present invention, as an abnormality detection device that detects an abnormality in an object that operates with a communication network, more specifically, can detect an abnormality with a reduced calculation load than before without degrading accuracy. For example, the abnormality detection device can be used as an ECU connected to a CAN bus.

10 通信システム
12a〜12d ECU
14 通信ネットワーク
16a〜16e 正常CANメッセージ
17a〜17g 不正CANメッセージ
18a、18b 特徴量ベクタ
20 異常検知装置
21 通信ログ取得部
22 通信ログ蓄積部
221 行
222 タイムスタンプ
223 CAN_ID
224 ペイロード
22a 通信ログ
23 動作モード判定部
24 特徴量抽出部
25 正常モデル選択部
26 正常モデル作成部
27 異常度算出部
28 正常モデル保管部
28a〜28b、28c 正常モデル
281 動作モード識別子
282 特徴量パラメータ
282a 異常度尺度
283 基準値
29 特徴量パラメータ更新部
30 通信部
31 異常発生通知部
32 異常検知部
10 Communication System 12a-12d ECU
14 communication network 16a to 16e normal CAN message 17a to 17g illegal CAN message 18a and 18b feature vector 20 abnormality detection device 21 communication log acquisition unit 22 communication log storage unit 221 line 222 time stamp 223 CAN_ID
224 Payload 22a Communication log 23 Operation mode determination unit 24 Feature amount extraction unit 25 Normal model selection unit 26 Normal model creation unit 27 Abnormality calculation unit 28 Normal model storage unit 28a to 28b, 28c Normal model 281 Operation mode identifier 282 Feature parameter 282a Abnormality scale 283 Reference value 29 Feature parameter update unit 30 Communication unit 31 Abnormality notification unit 32 Abnormality detection unit

Claims (10)

通信ネットワークを備えて動作する対象物における異常を検知する異常検知装置であって、
前記対象物が取り得る複数の動作モードのそれぞれに対応し、前記通信ネットワークでの正常時の通信における特徴量の特性を示すデータである複数の正常モデルを保管する正常モデル保管部と、
前記通信ネットワークの通信ログから前記対象物の動作モードを判定する動作モード判定部と、
前記正常モデル保管部に保管された前記複数の正常モデルから、前記動作モード判定部で判定された動作モードに対応する正常モデルを選択する正常モデル選択部と、
前記正常モデル選択部で選択された前記正常モデルに従って、前記通信ログから前記通信ネットワークでの通信における特徴量を抽出する特徴量抽出部と、
前記正常モデル選択部で選択された前記正常モデル、及び、前記特徴量抽出部で抽出された前記特徴量に基づいて、前記通信ネットワークでの通信における異常を検知する異常検知部と、
を備える異常検知装置。
An anomaly detection device for detecting an anomaly in an object operating with a communication network,
Corresponding to each of a plurality of operation modes that can be taken by the object, a normal model storage unit that stores a plurality of normal models that are data indicating characteristics of characteristic quantities in normal communication in the communication network;
An operation mode determination unit that determines an operation mode of the object from a communication log of the communication network;
A normal model selection unit that selects a normal model corresponding to the operation mode determined by the operation mode determination unit from the plurality of normal models stored in the normal model storage unit;
According to the normal model selected by the normal model selection unit, a feature amount extraction unit that extracts a feature amount in communication in the communication network from the communication log;
Based on the normal model selected by the normal model selection unit and the feature amount extracted by the feature amount extraction unit, an abnormality detection unit that detects an abnormality in communication in the communication network;
An abnormality detection device comprising:
前記正常モデルには、前記通信ネットワークでの通信における異常の検知に用いるための特徴量の種類を示す特徴量パラメータが含まれ、
前記特徴量抽出部は、前記正常モデル選択部で選択された前記正常モデルに含まれる特徴量パラメータが示す種類の特徴量を、前記通信ログから抽出する、
請求項1記載の異常検知装置。
The normal model includes a feature parameter indicating a type of feature used for detecting an abnormality in communication on the communication network,
The feature quantity extraction unit extracts a feature quantity of a type indicated by a feature quantity parameter included in the normal model selected by the normal model selection unit from the communication log;
The abnormality detection device according to claim 1.
前記通信ネットワークでの通信における異常度を算出する異常度算出部、をさらに備え、
前記正常モデルには、さらに、前記特徴量パラメータが示す特徴量の種類に対応する特徴量の基準値が含まれ、
前記異常度算出部は、前記正常モデル選択部で選択された前記正常モデルに含まれる特徴量の基準値と前記特徴量抽出部で抽出された前記特徴量との間の外れ度合から、前記異常度を算出し、
前記異常検知部は、前記異常度算出部によって算出された前記異常度と閾値とを比較することで、異常の有無を検知する、
請求項2記載の異常検知装置。
An abnormality degree calculating unit for calculating an abnormality degree in communication in the communication network,
The normal model further includes a feature value reference value corresponding to the type of feature value indicated by the feature parameter.
The abnormality degree calculation unit is configured to calculate the abnormality from a degree of deviation between a reference value of a feature amount included in the normal model selected by the normal model selection unit and the feature amount extracted by the feature amount extraction unit. Calculate the degree,
The abnormality detection unit detects the presence or absence of an abnormality by comparing the abnormality degree calculated by the abnormality degree calculation unit and a threshold value.
The abnormality detection device according to claim 2.
前記正常モデルには、さらに、前記異常度の算出に用いるアルゴリズムを示す異常度尺度が含まれ、
前記異常度算出部は、前記正常モデル選択部で選択された前記正常モデルに含まれる異常度尺度が示すアルゴリズムに従って、前記異常度を算出する、
請求項1〜3のいずれか1項に記載の異常検知装置。
The normal model further includes an abnormality degree scale indicating an algorithm used for calculating the abnormality degree,
The abnormality degree calculation unit calculates the abnormality degree according to an algorithm indicated by an abnormality degree scale included in the normal model selected by the normal model selection unit.
The abnormality detection device according to claim 1.
前記異常検知部によって検知された異常の有無を通知する異常発生通知部をさらに備える、
請求項4記載の異常検知装置。
An abnormality occurrence notification unit for notifying the presence or absence of an abnormality detected by the abnormality detection unit;
The abnormality detection device according to claim 4.
前記通信ネットワークにおける通信を記録することで前記通信ログを取得する通信ログ取得部と、
前記通信ログ取得部によって取得された前記通信ログを蓄積する通信ログ蓄積部と、をさらに備え、
前記動作モード判定部は、前記通信ログ蓄積部に蓄積された前記通信ログから前記動作モードを判定する、
請求項1〜5のいずれか1項に記載の異常検知装置。
A communication log acquisition unit that acquires the communication log by recording communication in the communication network;
A communication log storage unit that stores the communication log acquired by the communication log acquisition unit;
The operation mode determination unit determines the operation mode from the communication log stored in the communication log storage unit;
The abnormality detection apparatus of any one of Claims 1-5.
前記通信ログから正常モデルを作成し、作成した前記正常モデルを用いて、当該正常モデルに対応する動作モードに対応する、前記正常モデル保管部に保管されている正常モデルを更新する正常モデル作成部、をさらに備える、
請求項1〜6のいずれか1項に記載の異常検知装置。
A normal model creation unit that creates a normal model from the communication log and updates the normal model stored in the normal model storage unit corresponding to the operation mode corresponding to the normal model using the created normal model Further comprising
The abnormality detection device according to any one of claims 1 to 6.
前記異常検知装置の外部から新たな特徴量パラメータを取得する特徴量パラメータ更新部、をさらに備え、
前記正常モデル作成部は、前記特徴量パラメータ更新部によって取得された前記特徴量パラメータを用いて、前記正常モデル保管部に保管されている正常モデルを更新する、
請求項7記載の異常検知装置。
A feature quantity parameter update unit that acquires a new feature quantity parameter from outside the abnormality detection device;
The normal model creation unit updates the normal model stored in the normal model storage unit using the feature parameter acquired by the feature parameter update unit.
The abnormality detection device according to claim 7.
通信ネットワークを備えて動作する対象物における異常を検知する装置による異常検知方法であって、
前記通信ネットワークの通信ログから前記対象物の動作モードを判定する動作モード判定ステップと、
前記対象物が取り得る複数の動作モードのそれぞれに対応し、前記通信ネットワークでの正常時の通信における特徴量の特性を示すデータである複数の正常モデルから、前記動作モード判定ステップで判定された動作モードに対応する正常モデルを選択する正常モデル選択ステップと、
前記正常モデル選択ステップで選択された前記正常モデルに従って、前記通信ログから前記通信ネットワークでの通信における特徴量を抽出する特徴量抽出ステップと、
前記正常モデル選択ステップで選択された前記正常モデル、及び、前記特徴量抽出ステップで抽出された前記特徴量に基づいて、前記通信ネットワークでの通信における異常を検知する異常検知ステップと、
を含む異常検知方法。
An abnormality detection method by an apparatus for detecting an abnormality in an object operating with a communication network,
An operation mode determination step of determining an operation mode of the object from a communication log of the communication network;
Corresponding to each of a plurality of operation modes that can be taken by the object, it is determined in the operation mode determination step from a plurality of normal models that are data indicating characteristics of characteristic quantities in normal communication in the communication network. A normal model selection step for selecting a normal model corresponding to the operation mode;
According to the normal model selected in the normal model selection step, a feature amount extraction step of extracting a feature amount in communication on the communication network from the communication log;
An abnormality detection step of detecting an abnormality in communication in the communication network based on the normal model selected in the normal model selection step and the feature amount extracted in the feature amount extraction step;
Anomaly detection method including
通信ネットワークを備えて動作する対象物における異常の検知をコンピュータに実行させるプログラムであって、
前記通信ネットワークの通信ログから前記対象物の動作モードを判定する動作モード判定処理と、
前記対象物が取り得る複数の動作モードのそれぞれに対応し、前記通信ネットワークでの正常時の通信における特徴量の特性を示すデータである複数の正常モデルから、前記動作モード判定処理で判定された動作モードに対応する正常モデルを選択する正常モデル選択処理と、
前記正常モデル選択処理で選択された前記正常モデルに従って、前記通信ログから前記通信ネットワークでの通信における特徴量を抽出する特徴量抽出処理と、
前記正常モデル選択処理で選択された前記正常モデル、及び、前記特徴量抽出処理で抽出された前記特徴量に基づいて、前記通信ネットワークでの通信における異常を検知する異常検知処理と、
を含むプログラム。
A program for causing a computer to detect an abnormality in an object operating with a communication network,
An operation mode determination process for determining an operation mode of the object from a communication log of the communication network;
Corresponding to each of a plurality of operation modes that can be taken by the object, it is determined by the operation mode determination process from a plurality of normal models that are data indicating characteristics of characteristic amounts in normal communication in the communication network. A normal model selection process for selecting a normal model corresponding to the operation mode;
In accordance with the normal model selected in the normal model selection process, a feature quantity extraction process for extracting a feature quantity in communication on the communication network from the communication log;
An abnormality detection process for detecting an abnormality in communication in the communication network based on the normal model selected in the normal model selection process and the feature quantity extracted in the feature quantity extraction process;
Including programs.
JP2017056691A 2017-03-22 2017-03-22 Abnormality detection device and abnormality detection method Pending JP2018160078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017056691A JP2018160078A (en) 2017-03-22 2017-03-22 Abnormality detection device and abnormality detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017056691A JP2018160078A (en) 2017-03-22 2017-03-22 Abnormality detection device and abnormality detection method

Publications (1)

Publication Number Publication Date
JP2018160078A true JP2018160078A (en) 2018-10-11

Family

ID=63795685

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017056691A Pending JP2018160078A (en) 2017-03-22 2017-03-22 Abnormality detection device and abnormality detection method

Country Status (1)

Country Link
JP (1) JP2018160078A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020123887A (en) * 2019-01-31 2020-08-13 ヒースト株式会社 Automatic door device
WO2020203352A1 (en) 2019-03-29 2020-10-08 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Anomaly sensing method and anomaly sensing system
JP2020204937A (en) * 2019-06-18 2020-12-24 ファナック株式会社 Examination apparatus and examination method
CN112673326A (en) * 2018-10-24 2021-04-16 欧姆龙株式会社 Control device and control program
CN113454542A (en) * 2019-02-19 2021-09-28 日立造船株式会社 Information processing device, information processing method, and information processing program
CN114051581A (en) * 2019-08-01 2022-02-15 三菱动力株式会社 Plant monitoring device, plant monitoring method, and program
JP2022165278A (en) * 2021-04-19 2022-10-31 株式会社日立製作所 Abnormality detection method and system for the same
JP7304401B1 (en) 2021-12-20 2023-07-06 エヌ・ティ・ティ・コミュニケーションズ株式会社 Support device, support method and support program
JP7371802B1 (en) * 2023-01-11 2023-10-31 富士電機株式会社 Abnormality diagnosis system, abnormality diagnosis device, abnormality diagnosis method, and program

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3872593A4 (en) * 2018-10-24 2022-07-13 OMRON Corporation Control device and control program
US11829130B2 (en) 2018-10-24 2023-11-28 Omron Corporation Control apparatus and non-transitory computer readable medium for detecting abnormality occurring in subject to be monitored
CN112673326A (en) * 2018-10-24 2021-04-16 欧姆龙株式会社 Control device and control program
JP7210304B2 (en) 2019-01-31 2023-01-23 ナブテスコ株式会社 automatic door device
JP2020123887A (en) * 2019-01-31 2020-08-13 ヒースト株式会社 Automatic door device
EP3929669A4 (en) * 2019-02-19 2022-11-23 Hitachi Zosen Corporation Information processing device, information processing method, and information processing program
CN113454542A (en) * 2019-02-19 2021-09-28 日立造船株式会社 Information processing device, information processing method, and information processing program
WO2020203352A1 (en) 2019-03-29 2020-10-08 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Anomaly sensing method and anomaly sensing system
US11943243B2 (en) 2019-03-29 2024-03-26 Panasonic Intellectual Property Corporation Of America Anomaly detection method and anomaly detection device
JP2020204937A (en) * 2019-06-18 2020-12-24 ファナック株式会社 Examination apparatus and examination method
JP7347969B2 (en) 2019-06-18 2023-09-20 ファナック株式会社 Diagnostic equipment and method
CN114051581A (en) * 2019-08-01 2022-02-15 三菱动力株式会社 Plant monitoring device, plant monitoring method, and program
CN114051581B (en) * 2019-08-01 2024-05-31 三菱重工业株式会社 Plant monitoring device, plant monitoring method, and storage medium
JP2022165278A (en) * 2021-04-19 2022-10-31 株式会社日立製作所 Abnormality detection method and system for the same
JP7277504B2 (en) 2021-04-19 2023-05-19 株式会社日立製作所 Anomaly detection method and anomaly detection system
JP7304401B1 (en) 2021-12-20 2023-07-06 エヌ・ティ・ティ・コミュニケーションズ株式会社 Support device, support method and support program
JP2023099875A (en) * 2021-12-20 2023-07-14 エヌ・ティ・ティ・コミュニケーションズ株式会社 Support device, support method and support program
JP7371802B1 (en) * 2023-01-11 2023-10-31 富士電機株式会社 Abnormality diagnosis system, abnormality diagnosis device, abnormality diagnosis method, and program

Similar Documents

Publication Publication Date Title
JP2018160078A (en) Abnormality detection device and abnormality detection method
US11748474B2 (en) Security system and methods for identification of in-vehicle attack originator
JP7250411B2 (en) Method for Motor Vehicle Driver Assistance System
US11618395B2 (en) Vehicle data verification
US10723361B2 (en) Monitoring apparatus, communication system, vehicle, monitoring method, and non-transitory storage medium
JP2018182724A5 (en)
US11368329B2 (en) Device and method for dividing field boundary of can trace
US11023578B2 (en) Method and electronic device for monitoring an avionics software application, related computer program and avionics system
US11288054B2 (en) Vehicular communication system
US11899785B2 (en) Method for detecting an unauthorized physical access to a bus system
CN111600885A (en) SQL injection vulnerability detection method and device, equipment and storage medium
CN113014542A (en) System and method for network intrusion detection based on physical measurement
CN113986852A (en) Driving program calibration parameter matching method and device, electronic equipment and storage medium
JP7176564B2 (en) Monitoring device and monitoring method
JP2017168907A (en) Communication system
CN114567456A (en) Method for checking messages in a communication system
CN108241578B (en) Method and device for checking software compatibility of automobile electric control unit
CN111619578A (en) Vehicle motion state determination method and device, vehicle-mounted terminal and storage medium
CN111079124A (en) Security chip activation method and device, terminal equipment and server
WO2024071120A1 (en) Information processing device, information processing system, information processing program, and information processing method
KR102469399B1 (en) Attack detection system of can network, attack detection method of can network and computer program stored in a recording medium to execute the method
JP7201073B2 (en) Information processing equipment
CN113954768B (en) Detection data acquisition method, vehicle controller and storage medium
CN115086167B (en) Parameter configuration method, device, computer equipment and storage medium
CN112232525B (en) Driving mode characteristic construction and screening method and device and storage medium