JP6203365B2 - Fraud detection electronic control unit, in-vehicle network system and fraud detection method - Google Patents

Fraud detection electronic control unit, in-vehicle network system and fraud detection method Download PDF

Info

Publication number
JP6203365B2
JP6203365B2 JP2016212353A JP2016212353A JP6203365B2 JP 6203365 B2 JP6203365 B2 JP 6203365B2 JP 2016212353 A JP2016212353 A JP 2016212353A JP 2016212353 A JP2016212353 A JP 2016212353A JP 6203365 B2 JP6203365 B2 JP 6203365B2
Authority
JP
Japan
Prior art keywords
fraud detection
detection processing
unit
fraud
data frame
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.)
Active
Application number
JP2016212353A
Other languages
Japanese (ja)
Other versions
JP2017069965A (en
Inventor
剛 岸川
剛 岸川
良浩 氏家
良浩 氏家
芳賀 智之
智之 芳賀
松島 秀樹
秀樹 松島
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 Corp of America
Original Assignee
Panasonic Intellectual Property Corp of America
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 Corp of America filed Critical Panasonic Intellectual Property Corp of America
Publication of JP2017069965A publication Critical patent/JP2017069965A/en
Application granted granted Critical
Publication of JP6203365B2 publication Critical patent/JP6203365B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1408Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
    • H04L63/1425Traffic logging, e.g. anomaly detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40032Details regarding a bus interface enhancer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Description

本開示は、電子制御ユニットが通信を行う車載ネットワークにおいて送信された不正なフレームを検知する技術に関する。   The present disclosure relates to a technology for detecting an illegal frame transmitted in an in-vehicle network in which an electronic control unit communicates.

近年、自動車の中のシステムには、電子制御ユニット(ECU:Electronic Control Unit)と呼ばれる装置が多数配置されている。これらのECUをつなぐネットワークは車載ネットワークと呼ばれる。車載ネットワークには、多数の規格が存在する。その中でも最も主流な車載ネットワークの一つに、ISO11898−1で規定されているCAN(Controller Area Network)という規格が存在する。   In recent years, many systems called electronic control units (ECUs) are arranged in a system in an automobile. A network connecting these ECUs is called an in-vehicle network. There are many standards for in-vehicle networks. Among them, one of the most mainstream in-vehicle networks is a standard called CAN (Controller Area Network) defined by ISO11898-1.

CANでは、通信路は2本のバスで構成され、バスに接続されているECUはノードと呼ばれる。バスに接続されている各ノードは、フレームと呼ばれるメッセージを送受信する。フレームを送信する送信ノードは、2本のバスに電圧をかけ、バス間で電位差を発生させることによって、レセシブと呼ばれる「1」の値と、ドミナントと呼ばれる「0」の値を送信する。複数の送信ノードが全く同一のタイミングで、レセシブとドミナントを送信した場合は、ドミナントが優先されて送信される。受信ノードは、受け取ったフレームのフォーマットに異常がある場合には、エラーフレームと呼ばれるフレームを送信する。エラーフレームとは、ドミナントを6bit連続して送信することで、送信ノードや他の受信ノードにフレームの異常を通知するものである。   In CAN, the communication path is composed of two buses, and an ECU connected to the bus is called a node. Each node connected to the bus transmits and receives a message called a frame. A transmission node that transmits a frame applies a voltage to two buses to generate a potential difference between the buses, thereby transmitting a value of “1” called recessive and a value of “0” called dominant. When a plurality of transmitting nodes transmit recessive and dominant at exactly the same timing, the dominant is transmitted with priority. When there is an abnormality in the format of the received frame, the receiving node transmits a frame called an error frame. An error frame is a notification of frame abnormality to a transmitting node or another receiving node by transmitting dominants continuously for 6 bits.

またCANでは送信先や送信元を指す識別子は存在せず、送信ノードはフレーム毎にIDを付けて送信し(つまりバスに信号を送出し)、各受信ノードは予め定められたIDのフレームのみを受信する(つまりバスから信号を読み取る)。また、CSMA/CA(Carrier Sense Multiple Access/Collision Avoidance)方式を採用しており、複数ノードの同時送信時にはメッセージIDによる調停が行われ、メッセージIDの値が小さいフレームが優先的に送信される。   In CAN, there is no identifier indicating the transmission destination or transmission source, the transmission node transmits an ID for each frame (that is, sends a signal to the bus), and each reception node only has a frame with a predetermined ID. (I.e. read a signal from the bus). In addition, a CSMA / CA (Carrier Sense Multiple Access / Collision Avoidance) method is employed, and arbitration is performed based on the message ID during simultaneous transmission of a plurality of nodes, and a frame with a small message ID value is preferentially transmitted.

CANの車載ネットワークシステムについては、攻撃者がバスにアクセスして不正なフレームを送信することでECUを不正に制御するといった脅威が存在し、セキュリティ対策が検討されている。   Regarding the in-vehicle network system of CAN, there is a threat that an attacker accesses the bus and transmits an illegal frame to illegally control the ECU, and security measures are being studied.

例えば特許文献1に記載された車載ネットワーク監視装置は、CANのバスに流れるフレームを監視し、不正フレームを検知した場合に警告情報を送信する。そして、警告情報を受信したECUは不正フレームによる制御を禁止する。   For example, the in-vehicle network monitoring device described in Patent Document 1 monitors a frame flowing in a CAN bus, and transmits warning information when an illegal frame is detected. Then, the ECU that has received the warning information prohibits the control by the unauthorized frame.

特開2013−131907号公報JP 2013-131907 A

本開示は、不正なフレームの効率的な検知のための技術を提供する。   The present disclosure provides techniques for efficient detection of illegal frames.

上記課題を解決するために本開示の一態様に係る不正検知電子制御ユニットは、CAN(Controller Area Network)プロトコルに従って通信を行う複数の電子制御ユニットが通信に用いるバスに接続されて不正検知処理を行う不正検知電子制御ユニットであって、前記バスを搭載する車両の状態に基づいて、前記バスからのデータフレームの受信中に、不正検知処理タイミングを決定する不正検知処理要求部と、前記不正検知処理要求部により決定された前記不正検知処理タイミングで前記データフレームについて前記不正検知処理を行う不正検知処理部とを備える不正検知電子制御ユニットである。 In order to solve the above problem, a fraud detection electronic control unit according to an aspect of the present disclosure is connected to a bus used for communication by a plurality of electronic control units that perform communication according to a CAN (Controller Area Network) protocol to perform fraud detection processing. A fraud detection electronic control unit that performs fraud detection processing requesting unit for determining fraud detection processing timing during reception of a data frame from the bus based on a state of a vehicle equipped with the bus, and the fraud detection A fraud detection electronic control unit including a fraud detection processing unit that performs the fraud detection process on the data frame at the fraud detection processing timing determined by a processing request unit.

また、上記課題を解決するために本開示の一態様に係る車載ネットワークシステムは、CAN(Controller Area Network)プロトコルに従ってバスを介して通信を行う複数の電子制御ユニットを備える車載ネットワークシステムであって、前記バスを搭載する車両の状態に基づいて、前記バスからのデータフレームの受信中に、不正検知処理タイミングを決定する不正検知処理要求部と、前記不正検知処理要求部により決定された前記不正検知処理タイミングで前記データフレームについて不正検知処理を行う不正検知処理部とを備える車載ネットワークシステムである。 An in-vehicle network system according to an aspect of the present disclosure for solving the above problem is an in-vehicle network system including a plurality of electronic control units that perform communication via a bus according to a CAN (Controller Area Network) protocol, Based on the state of the vehicle on which the bus is mounted, a fraud detection processing request unit that determines fraud detection processing timing during reception of a data frame from the bus, and the fraud detection determined by the fraud detection processing request unit An in-vehicle network system including a fraud detection processing unit that performs a fraud detection process on the data frame at a processing timing.

また、上記課題を解決するために本開示の一態様に係る不正検知方法は、CAN(Controller Area Network)プロトコルに従ってバスを介して通信を行う複数の電子制御ユニットを備える車載ネットワークシステムにおいて用いられる不正検知方法であって、前記バスを搭載する車両の状態に基づいて、前記バスからのデータフレームの受信中に、不正検知処理タイミングを決定し、決定した前記不正検知処理タイミングで前記データフレームについて不正検知処理を行う不正検知方法である。 Further, in order to solve the above problem, a fraud detection method according to an aspect of the present disclosure is a fraud detection method used in an in-vehicle network system including a plurality of electronic control units that communicate via a bus according to a CAN (Controller Area Network) protocol. A detection method, wherein a fraud detection processing timing is determined during reception of a data frame from the bus based on a state of a vehicle equipped with the bus, and the data frame is fraudulent at the determined fraud detection processing timing. This is a fraud detection method that performs detection processing.

本開示によれば、セキュリティの確保のために、バスで送信される各フレームに対して一律に監視を行うのではなく、フレームの受信中に決定したタイミングで不正検知処理を行うため、不正なフレームの効率的な検知が実現され得る。   According to the present disclosure, in order to ensure security, fraud detection processing is performed at a timing determined during reception of a frame rather than uniformly monitoring each frame transmitted on the bus. Efficient frame detection can be realized.

図1は、実施の形態1に係る車載ネットワークシステムの全体構成を示す図である。FIG. 1 is a diagram showing an overall configuration of the in-vehicle network system according to the first embodiment. 図2は、CANプロトコルで規定されるデータフレームのフォーマットを示す図である。FIG. 2 is a diagram showing a format of a data frame defined by the CAN protocol. 図3は、CANプロトコルで規定されるエラーフレームのフォーマットを示す図である。FIG. 3 is a diagram illustrating an error frame format defined by the CAN protocol. 図4は、実施の形態1に係る不正検知ECUの構成図である。FIG. 4 is a configuration diagram of the fraud detection ECU according to the first embodiment. 図5は、実施の形態1に係る不正検知ECUの不正検知処理タイミング保持部に格納される対応情報の一例を示す図である。FIG. 5 is a diagram illustrating an example of correspondence information stored in the fraud detection processing timing holding unit of the fraud detection ECU according to the first embodiment. 図6は、実施の形態1に係る不正検知ECUの不正検知ルール保持部に格納される不正検知ルールの一例を示す図である。FIG. 6 is a diagram illustrating an example of a fraud detection rule stored in a fraud detection rule holding unit of the fraud detection ECU according to the first embodiment. 図7は、実施の形態1に係るECUの構成図である。FIG. 7 is a configuration diagram of the ECU according to the first embodiment. 図8は、実施の形態1に係る不正検知ECUのデータフレーム受信時の処理シーケンスの一例を示す図である。FIG. 8 is a diagram illustrating an example of a processing sequence when the fraud detection ECU according to the first embodiment receives a data frame. 図9は、実施の形態1に係る不正検知ECUのデータフレーム受信時の処理を示すフローチャートである。FIG. 9 is a flowchart showing a process when the fraud detection ECU according to the first embodiment receives a data frame. 図10は、実施の形態2に係る車載ネットワークシステムの全体構成を示す図である。FIG. 10 is a diagram illustrating an overall configuration of the in-vehicle network system according to the second embodiment. 図11は、実施の形態2に係る不正検知ECUの構成図である。FIG. 11 is a configuration diagram of the fraud detection ECU according to the second embodiment. 図12は、実施の形態2に係る不正検知ECUが用いる不正検知処理タイミング特定用情報の一例を示す図である。FIG. 12 is a diagram illustrating an example of fraud detection processing timing specifying information used by the fraud detection ECU according to the second embodiment. 図13は、実施の形態2に係る不正検知ECUが監視レベルの決定のために用いるテーブルを例示する図である。FIG. 13 is a diagram illustrating a table used by the fraud detection ECU according to the second embodiment to determine the monitoring level. 図14は、実施の形態2に係る不正検知ECUの不正状態保持部に保持される不正状態情報の一例を示す図である。FIG. 14 is a diagram showing an example of unauthorized state information held in the unauthorized state holding unit of the unauthorized detection ECU according to the second embodiment. 図15は、実施の形態2に係る不正検知ECUの車状態保持部に保持される車両状態情報の一例を示す図である。FIG. 15 is a diagram illustrating an example of vehicle state information held in the vehicle state holding unit of the fraud detection ECU according to the second embodiment. 図16は、実施の形態2に係る不正検知ECUの監視レベル保持部に格納される監視レベル情報の一例を示す図である。FIG. 16 is a diagram illustrating an example of monitoring level information stored in the monitoring level holding unit of the fraud detection ECU according to the second embodiment. 図17は、実施の形態2に係る不正検知ECUの動作の変化(車両の状態変化に伴う変化)を例示する図である。FIG. 17 is a diagram illustrating a change in the operation of the fraud detection ECU according to the second embodiment (a change accompanying a change in the state of the vehicle). 図18は、実施の形態2に係る不正検知ECUの動作の変化(不正の検知回数の増加に伴う変化)を例示する図である。FIG. 18 is a diagram illustrating a change in the operation of the fraud detection ECU according to the second embodiment (change due to an increase in the number of fraud detections). 図19は、実施の形態2に係る不正検知ECUのデータフレーム受信時の処理を示すフローチャートである。FIG. 19 is a flowchart illustrating processing when the fraud detection ECU according to the second embodiment receives a data frame. 図20は、実施の形態2に係る不正検知ECUの監視レベル決定部が行う処理を示すフローチャートである。FIG. 20 is a flowchart illustrating processing performed by the monitoring level determination unit of the fraud detection ECU according to the second embodiment.

(本発明の基礎となった知見)
ところで、不正なフレームによる脅威に対処する監視を過度に行うことで、監視装置を含む車載ネットワークシステムの消費電力が過度に増大することは好ましくない。
(Knowledge that became the basis of the present invention)
By the way, it is not preferable that the power consumption of the in-vehicle network system including the monitoring device is excessively increased by excessively monitoring the threat caused by the illegal frame.

そこで、本開示は、車載ネットワークシステムのセキュリティを確保した上で、消費電力の増大を防止すべく、不正なフレームの送信を検知する不正検知処理を効率的に実行し得るECUである不正検知電子制御ユニット(不正検知ECU)を提供する。また、本開示は、その効率的に不正検知処理を行う不正検知ECUを備える車載ネットワークシステム、及び、その車載ネットワークシステムにおいて効率的に不正なフレームを検知するために用いられる不正検知方法を提供する。   Therefore, the present disclosure provides fraud detection electronics, which is an ECU that can efficiently execute fraud detection processing for detecting transmission of fraudulent frames in order to prevent an increase in power consumption while ensuring the security of an in-vehicle network system. A control unit (fraud detection ECU) is provided. In addition, the present disclosure provides an in-vehicle network system including an injustice detection ECU that efficiently performs injustice detection processing, and an injustice detection method used to efficiently detect an inaccurate frame in the in-vehicle network system. .

本開示の一態様に係る不正検知電子制御ユニットは、CAN(Controller Area Network)プロトコルに従って通信を行う複数の電子制御ユニットが通信に用いるバスに接続されて不正検知処理を行う不正検知電子制御ユニットであって、前記バスから得たデータフレームのIDに基づいて不正検知処理タイミングを決定する不正検知処理要求部と、前記不正検知処理要求部により決定された前記不正検知処理タイミングで前記データフレームについて前記不正検知処理を行う不正検知処理部とを備える不正検知電子制御ユニットである。これにより、データフレームのIDに基づくタイミングで不正検知処理を行うため、不正なフレームの効率的な検知が実現され得る。   A fraud detection electronic control unit according to an aspect of the present disclosure is a fraud detection electronic control unit that performs fraud detection processing by connecting a plurality of electronic control units that perform communication in accordance with a CAN (Controller Area Network) protocol to a bus used for communication. A fraud detection processing requesting unit for determining fraud detection processing timing based on an ID of the data frame obtained from the bus, and the data frame at the fraud detection processing timing determined by the fraud detection processing requesting unit. It is a fraud detection electronic control unit provided with the fraud detection process part which performs a fraud detection process. Thereby, since the fraud detection process is performed at the timing based on the ID of the data frame, efficient detection of the fraud frame can be realized.

また、前記不正検知電子制御ユニットは、プログラムを実行するマイクロプロセッサを含む半導体集積回路であるマイコン部と、前記マイコン部に接続され、前記不正検知処理要求部としての機能を実現する半導体集積回路であるコントローラ部とを備え、前記マイクロプロセッサは、前記プログラムの実行により割り込み要求信号に対応して前記不正検知処理を行うことで、前記不正検知処理部としての機能を実現し、前記不正検知処理要求部は、決定した前記不正検知処理タイミングで前記マイクロプロセッサへと前記割り込み要求信号を送出することとしても良い。これにより、不正検知処理タイミングが到来したら割り込み要求信号によりマイコン部のプロセッサに通知されるため、プロセッサは割り込み要求信号が入力されるまでは、不正検知処理を実行せず、例えば低消費電力状態(スリープ状態)等になり得る。従って、比較的消費電力を抑えてセキュリティの確保を実現し得る。   The fraud detection electronic control unit includes a microcomputer unit that is a semiconductor integrated circuit including a microprocessor that executes a program, and a semiconductor integrated circuit that is connected to the microcomputer unit and that functions as the fraud detection processing request unit. A controller unit, wherein the microprocessor performs the fraud detection process in response to an interrupt request signal by executing the program, thereby realizing a function as the fraud detection processing unit, and the fraud detection process request The unit may send the interrupt request signal to the microprocessor at the determined fraud detection processing timing. As a result, when the fraud detection processing timing arrives, the processor of the microcomputer unit is notified by the interrupt request signal. Therefore, the processor does not execute the fraud detection processing until the interrupt request signal is input, for example, a low power consumption state ( Sleep state). Therefore, security can be ensured with relatively low power consumption.

また、前記不正検知電子制御ユニットは、1つ以上のIDそれぞれについてタイミングを対応付けた対応情報を保持する不正検知処理タイミング保持部を備え、前記不正検知処理要求部は、前記バスから得たデータフレームの前記IDと前記対応情報において対応付けたタイミングを前記不正検知処理タイミングとして前記決定を行うこととしても良い。これにより、セキュリティ上、重要なデータフレームのIDと重要性の低いデータフレームのIDとで異なる不正検知処理タイミングを対応情報に定めておくことができ、重要性に応じて効率的に不正なフレームを検知できるようになる。   The fraud detection electronic control unit includes a fraud detection processing timing holding unit that holds correspondence information in which timings are associated with each of one or more IDs, and the fraud detection processing request unit includes data obtained from the bus. The determination may be performed with the timing associated with the ID of the frame and the correspondence information as the fraud detection processing timing. As a result, it is possible to set different fraud detection processing timings in correspondence information for security important data frame IDs and less important data frame IDs in correspondence information. Can be detected.

また、前記対応情報は、1つ以上の前記IDそれぞれについてデータフレーム中の1つ又は複数の特定フィールドの受信タイミングを前記タイミングとして対応付けており、前記不正検知電子制御ユニットは、前記不正検知処理部が前記特定フィールドの受信タイミングで行う前記不正検知処理において不正を検知した場合に、前記バスにエラーフレームを送出することとしても良い。また、前記1つ又は複数の特定フィールドのうちの1つは、IDフィールド、DLC(Data Length Code)のフィールド及びデータフィールドのうちのいずれかであることとしても良い。これらにより、例えば、セキュリティ上、重要なデータフレームのIDについては、特定フィールド(例えばIDフィールド、DLCのフィールド、データフィールド等)の受信タイミングで不正検知処理を行って不正が検知されるとエラーフレームの送出により、不正なフレームに対応したECUの制御等を阻止することが可能となる。   The correspondence information associates, as the timing, reception timing of one or more specific fields in a data frame for each of the one or more IDs, and the fraud detection electronic control unit is configured to perform the fraud detection processing. When a fraud is detected in the fraud detection process performed by the unit at the reception timing of the specific field, an error frame may be transmitted to the bus. Also, one of the one or more specific fields may be any one of an ID field, a DLC (Data Length Code) field, and a data field. Accordingly, for example, for an ID of a data frame important for security, an error frame is detected when fraud is detected by performing fraud detection processing at the reception timing of a specific field (for example, ID field, DLC field, data field, etc.). This makes it possible to prevent control of the ECU corresponding to an unauthorized frame.

また、前記不正検知電子制御ユニットは、前記対応情報に係る前記複数のIDそれぞれについて、当該IDを含むデータフレームについて既に行われた前記不正検知処理での不正の検知回数を示すように更新される不正状態情報を保持する不正状態保持部を備え、前記不正検知処理タイミング保持部は、前記対応情報を、前記複数のIDそれぞれについて、前記不正状態情報における当該IDに係る前記不正の検知回数が多い程、多くの前記特定フィールドの受信タイミングを対応付けるように更新することとしても良い。これにより、不正の検知回数が多くなった場合に監視頻度を高めるので、例えば不正への対応を迅速化することが可能となる。   In addition, the fraud detection electronic control unit is updated to indicate the number of fraud detections in the fraud detection process already performed for the data frame including the ID for each of the plurality of IDs related to the correspondence information. An unauthorized state holding unit for holding unauthorized state information is provided, and the unauthorized detection processing timing holding unit has a large number of times of unauthorized detection related to the ID in the unauthorized state information for each of the plurality of IDs. The update may be performed so that the reception timings of many specific fields are associated with each other. As a result, since the monitoring frequency is increased when the number of fraud detections increases, for example, it is possible to speed up the response to fraud.

また、前記不正検知処理要求部は、既に行われた前記不正検知処理での不正の検知結果に応じて前記不正検知処理タイミングの前記決定を行うこととしても良い。これにより、不正の検知回数等を不正検知処理タイミングに反映させ得るので、例えば一定数以上の不正があった場合にのみ監視頻度を高める等といった、効率的な監視(つまり不正検知処理の実行)が可能となる。   Further, the fraud detection process requesting unit may perform the determination of the fraud detection process timing according to a fraud detection result in the fraud detection process already performed. As a result, the number of fraud detections and the like can be reflected in the fraud detection processing timing, so efficient monitoring such as increasing the monitoring frequency only when there are more than a certain number of frauds (that is, execution of fraud detection processing) Is possible.

また、前記不正検知処理要求部は、前記バスを搭載する車両の状態に応じて前記不正検知処理タイミングの前記決定を行うこととしても良い。これにより、車両の状態との関係で特定のIDを含むデータフレームのセキュリティ上の重要性が変化するような場合において、不正なフレームの効率的な検知が実現され得る。   Further, the fraud detection process requesting unit may perform the determination of the fraud detection process timing according to a state of a vehicle on which the bus is mounted. Thereby, in a case where the security importance of a data frame including a specific ID changes in relation to the state of the vehicle, efficient detection of an illegal frame can be realized.

また、前記不正検知処理要求部は、前記データフレームのIDが第1値であれば前記データフレームの受信中のタイミングを前記不正検知処理タイミングとして前記決定を行い、前記データフレームのIDが前記第1値と異なる第2値であれば前記データフレームの受信完了以後のタイミングを前記不正検知処理タイミングとして前記決定を行い、前記不正検知電子制御ユニットは、前記不正検知処理部が前記データフレームの受信中のタイミングで行う前記不正検知処理において不正を検知した場合に、前記バスにエラーフレームを送出することとしても良い。これにより、例えば、不正を迅速に検知して阻止すべきか、不正について網羅的な検査を行うべきか等の不正検知の必要性がデータフレームのID毎に異なる場合において、必要性に対応した不正検知処理が実現可能となる。例えば、データフレームの受信中のタイミングを不正検知処理タイミングとして不正検知処理を行えば不正の検知時にエラーフレームの送出により不正なデータフレームを上書きして無効化することが可能となる。また、例えばデータフレームの受信完了時を不正検知処理タイミングとして不正検知処理を行えば、この1度のタイミングでデータフレーム中のIDフィールド、DLC、データフィールド等の各部の内容について検査を行うことが可能となるため、効率的な不正検知が実現できる。   The fraud detection processing requesting unit performs the determination using the timing during reception of the data frame as the fraud detection processing timing if the ID of the data frame is a first value, and the ID of the data frame is the first value. If the second value is different from the first value, the timing after the completion of reception of the data frame is determined as the fraud detection processing timing, and the fraud detection electronic control unit is configured so that the fraud detection processing unit receives the data frame. When a fraud is detected in the fraud detection process performed at an intermediate timing, an error frame may be transmitted to the bus. As a result, for example, if the necessity of fraud detection such as whether to detect and prevent fraud quickly or whether to conduct a comprehensive inspection for fraud differs for each data frame ID, Detection processing can be realized. For example, if the fraud detection process is performed with the timing during reception of the data frame as the fraud detection process timing, it is possible to invalidate the fraudulent data frame by overwriting it by sending an error frame when fraud is detected. For example, if the fraud detection process is performed with the data frame reception completion as the fraud detection process timing, the contents of each part such as the ID field, DLC, and data field in the data frame can be inspected at this timing. Therefore, efficient fraud detection can be realized.

また、前記不正検知電子制御ユニットは、更に、前記プログラムを記憶するメモリを含んでもよい。   The fraud detection electronic control unit may further include a memory for storing the program.

また、前記不正検知電子制御ユニットは、更に、前記プログラムを記憶するハードディスク装置を含んでもよい。   The fraud detection electronic control unit may further include a hard disk device for storing the program.

また、本開示の一態様に係る車載ネットワークシステムは、CAN(Controller Area Network)プロトコルに従ってバスを介して通信を行う複数の電子制御ユニットを備える車載ネットワークシステムであって、前記バスから得たデータフレームのIDに基づいて不正検知処理タイミングを決定する不正検知処理要求部と、前記不正検知処理要求部により決定された前記不正検知処理タイミングで前記データフレームについて不正検知処理を行う不正検知処理部とを備える車載ネットワークシステムである。これにより、データフレームのIDに基づくタイミングで効率的に消費電力を抑制して不正検知処理を行う車載ネットワークシステムが実現され得る。   An in-vehicle network system according to one aspect of the present disclosure is an in-vehicle network system including a plurality of electronic control units that perform communication via a bus according to a CAN (Controller Area Network) protocol, and a data frame obtained from the bus A fraud detection processing requesting unit that determines fraud detection processing timing based on the ID of the fraud detection unit, and a fraud detection processing unit that performs fraud detection processing on the data frame at the fraud detection processing timing determined by the fraud detection processing requesting unit. It is an in-vehicle network system provided. Thereby, an in-vehicle network system that performs fraud detection processing while efficiently suppressing power consumption at the timing based on the ID of the data frame can be realized.

また、本開示の一態様に係る不正検知方法は、CAN(Controller Area Network)プロトコルに従ってバスを介して通信を行う複数の電子制御ユニットを備える車載ネットワークシステムにおいて用いられる不正検知方法であって、前記バスから得たデータフレームのIDに基づいて不正検知処理タイミングを決定し、決定した前記不正検知処理タイミングで前記データフレームについて不正検知処理を行う不正検知方法である。これにより、データフレームのIDに基づくタイミングで効率的に不正検知処理を行うことができる。   A fraud detection method according to an aspect of the present disclosure is a fraud detection method used in an in-vehicle network system including a plurality of electronic control units that communicate via a bus according to a CAN (Controller Area Network) protocol. In this fraud detection method, fraud detection processing timing is determined based on an ID of a data frame obtained from a bus, and fraud detection processing is performed on the data frame at the determined fraud detection processing timing. As a result, the fraud detection process can be efficiently performed at the timing based on the ID of the data frame.

なお、これらの全般的又は具体的な態様は、システム、方法、集積回路、コンピュータプログラム又はコンピュータで読み取り可能なCD−ROM等の記録媒体で実現されても良く、システム、方法、集積回路、コンピュータプログラム又は記録媒体の任意な組み合わせで実現されても良い。   These general or specific aspects may be realized by a system, a method, an integrated circuit, a computer program, or a computer-readable recording medium such as a CD-ROM. The system, method, integrated circuit, computer You may implement | achieve with arbitrary combinations of a program or a recording medium.

以下、実施の形態に係る車載ネットワークシステムについて、図面を参照しながら説明する。ここで示す実施の形態は、いずれも本開示の一具体例を示すものである。従って、以下の実施の形態で示される数値、構成要素、構成要素の配置及び接続形態、並びに、ステップ(工程)及びステップの順序等は、一例であって本開示を限定するものではない。以下の実施の形態における構成要素のうち、独立請求項に記載されていない構成要素については、任意に付加可能な構成要素である。また、各図は、模式図であり、必ずしも厳密に図示されたものではない。   Hereinafter, an in-vehicle network system according to an embodiment will be described with reference to the drawings. Each of the embodiments shown here shows a specific example of the present disclosure. Therefore, numerical values, components, arrangement and connection forms of components, and steps (processes) and order of steps shown in the following embodiments are merely examples, and do not limit the present disclosure. Among the constituent elements in the following embodiments, constituent elements that are not described in the independent claims can be arbitrarily added. Each figure is a mimetic diagram and is not necessarily illustrated strictly.

(実施の形態1)
以下、本開示の実施の形態として、複数のECUがバスを介して通信する車載ネットワークシステム10において用いられる不正検知方法について、図面を用いて説明する。不正検知方法は、主としてバスに接続された不正検知ECUにより実行される。不正検知ECUは、不正検知処理(バス上に現れたフレームが不正なフレームであるか否かを判別する処理)のための制御プログラムをプロセッサ(マイクロプロセッサ)に実行させるタイミングを、受信中のデータフレームに応じて決定する機能を有し、効率的な不正の検知を実現する。
(Embodiment 1)
Hereinafter, as an embodiment of the present disclosure, a fraud detection method used in the in-vehicle network system 10 in which a plurality of ECUs communicate via a bus will be described with reference to the drawings. The fraud detection method is mainly executed by a fraud detection ECU connected to the bus. The fraud detection ECU detects the timing at which the processor (microprocessor) executes a control program for fraud detection processing (processing for determining whether or not a frame appearing on the bus is an illegal frame). It has a function to decide according to the frame and realizes efficient fraud detection.

[1.1 車載ネットワークシステム10の全体構成]
図1は、実施の形態1に係る車載ネットワークシステム10の全体構成を示す図である。車載ネットワークシステム10は、CANプロトコルに従って通信するネットワーク通信システムの一例であり、制御装置、センサ、アクチュエータ等の各種機器が搭載された自動車におけるネットワーク通信システムである。車載ネットワークシステム10は、バスを介してフレームに係る通信を行う複数の装置を備え、不正検知方法を用いる。具体的には図1に示すように車載ネットワークシステム10は、バス300と、不正検知ECU100、各種機器に接続されたECU200a、200b等のECUといったバスに接続された各ノードとを含んで構成される。なお、車載ネットワークシステム10には、不正検知ECU100及びECU200a、200b以外にもいくつものECUが含まれ得るが、ここでは、便宜上不正検知ECU100及びECU200a、200bに注目して説明を行う。ECU(例えば、不正検知ECU100及びECU200a、200bなど)は、例えば、プロセッサ(マイクロプロセッサ)、メモリ等のデジタル回路、アナログ回路、通信回路等を含む装置である。メモリは、ROM、RAM等であり、プロセッサにより実行される制御プログラム(コンピュータプログラム)を記憶することができる。
[1.1 Overall configuration of in-vehicle network system 10]
FIG. 1 is a diagram illustrating an overall configuration of an in-vehicle network system 10 according to the first embodiment. The in-vehicle network system 10 is an example of a network communication system that performs communication in accordance with a CAN protocol, and is a network communication system in an automobile on which various devices such as a control device, a sensor, and an actuator are mounted. The in-vehicle network system 10 includes a plurality of devices that perform communication related to a frame via a bus, and uses a fraud detection method. Specifically, as shown in FIG. 1, the in-vehicle network system 10 includes a bus 300 and fraud detection ECU 100, and nodes connected to the bus such as ECUs 200a and 200b connected to various devices. The The in-vehicle network system 10 may include a number of ECUs in addition to the fraud detection ECU 100 and the ECUs 200a and 200b, but here, the explanation will be given with a focus on the fraud detection ECU 100 and the ECUs 200a and 200b for convenience. ECU (for example, fraud detection ECU100 and ECU200a, 200b etc.) is an apparatus containing digital circuits, analog circuits, communication circuits, etc., such as a processor (microprocessor) and memory, for example. The memory is a ROM, a RAM, or the like, and can store a control program (computer program) executed by the processor.

また、ECUは、例えば、図示しないハードディスク装置を含んでもよい。また、ハードディスク装置に制御プログラム(コンピュータプログラム)を記憶してもよい。   Further, the ECU may include a hard disk device (not shown), for example. Further, a control program (computer program) may be stored in the hard disk device.

例えばプロセッサが、制御プログラム(コンピュータプログラム)に従って動作することにより、ECUを構成する要素の一部又は全部の機能をソフトウェア的に実現することになる。   For example, when the processor operates according to a control program (computer program), some or all functions of elements constituting the ECU are realized by software.

なお、コンピュータプログラムは、所定の機能を達成するために、プロセッサに対する指令を示す命令コードが複数個組み合わされて構成されたものである。   The computer program is configured by combining a plurality of instruction codes indicating instructions for the processor in order to achieve a predetermined function.

ECU200a、200bは、バス300と接続され、それぞれセンサ210、アクチュエータ220に接続されている。センサ210の一例としては、加速度センサや、操舵角センサ等が挙げられる。アクチュエータ220の一例としては、ブレーキアクチュエータ等が挙げられる。ECU200aは、センサ210の状態を取得して、取得した情報をデータフレームに含めて、バス300に送出する。ECU200bは、ECU200aからバス300に送出されたデータフレームを受信し、そのデータフレームに含まれるセンサ210の状態に係る情報に従ってアクチュエータ220を制御する。   ECUs 200a and 200b are connected to bus 300, and are connected to sensor 210 and actuator 220, respectively. Examples of the sensor 210 include an acceleration sensor and a steering angle sensor. An example of the actuator 220 is a brake actuator. The ECU 200a acquires the state of the sensor 210, includes the acquired information in a data frame, and sends it to the bus 300. The ECU 200b receives the data frame sent from the ECU 200a to the bus 300, and controls the actuator 220 according to information related to the state of the sensor 210 included in the data frame.

不正検知ECU100は、バス300に接続される一種のECUであり、バス上に流れるフレーム(つまりバス上に現れるフレーム)を監視して、不正なフレーム(つまり予め定められたルールに適合しないフレーム)が流れているか否かを判別するための不正検知処理を行う機能を有する。   The fraud detection ECU 100 is a kind of ECU that is connected to the bus 300 and monitors a frame flowing on the bus (that is, a frame that appears on the bus) to detect an unauthorized frame (that is, a frame that does not conform to a predetermined rule). Has a function of performing fraud detection processing for determining whether or not a message is flowing.

車載ネットワークシステム10においてはCANプロトコルに従って、各ECUがフレームの授受を行う。CANプロトコルにおけるフレームには、データフレーム、リモートフレーム、オーバーロードフレーム及びエラーフレームがある。ここではデータフレーム及びエラーフレームを中心に説明する。   In the in-vehicle network system 10, each ECU exchanges frames according to the CAN protocol. Frames in the CAN protocol include a data frame, a remote frame, an overload frame, and an error frame. Here, the description will focus on the data frame and error frame.

[1.2 データフレームフォーマット]
以下、CANプロトコルに従ったネットワークで用いられるフレームの1つであるデータフレームについて説明する。
[1.2 Data frame format]
Hereinafter, a data frame that is one of frames used in a network according to the CAN protocol will be described.

図2は、CANプロトコルで規定されるデータフレームのフォーマットを示す図である。同図には、CANプロトコルで規定される標準IDフォーマットにおけるデータフレームを示している。データフレームは、SOF(Start Of Frame)、IDフィールド、RTR(Remote Transmission Request)、IDE(Identifier Extension)、予約ビット「r」、DLC(Data Length Code)、データフィールド、CRC(Cyclic Redundancy Check)シーケンス、CRCデリミタ「DEL」、ACK(Acknowledgement)スロット、ACKデリミタ「DEL」、及び、EOF(End Of Frame)の各フィールドで構成される。   FIG. 2 is a diagram showing a format of a data frame defined by the CAN protocol. In the figure, a data frame in a standard ID format defined by the CAN protocol is shown. The data frame includes an SOF (Start Of Frame), an ID field, an RTR (Remote Transmission Request), an IDE (Identifier Extension), a reserved bit “r”, a DLC (Data Length Code), a data field, and a CRC (Cyclic Redundancy Check) sequence. , A CRC delimiter “DEL”, an ACK (Acknowledgement) slot, an ACK delimiter “DEL”, and an EOF (End Of Frame) field.

SOFは、1bitのドミナントで構成される。バスがアイドルの状態はレセシブになっており、SOFによりドミナントへ変更することでフレームの送信開始を通知する。   The SOF is composed of a 1-bit dominant. When the bus is idle, it is recessive, and the start of frame transmission is notified by changing to dominant by SOF.

IDフィールドは、11bitで構成される、データの種類を示す値であるIDを格納するフィールドである。複数のノードが同時に送信を開始した場合、このIDフィールドで通信調停を行うために、IDが小さい値を持つフレームが高い優先度となるよう設計されている。   The ID field is a field for storing an ID that is a value indicating the type of data, which is composed of 11 bits. When a plurality of nodes start transmission at the same time, a frame having a small ID is designed to have a high priority in order to perform communication arbitration in this ID field.

RTRは、データフレームとリモートフレームとを識別するための値であり、データフレームにおいては1bitのドミナントで構成される。   The RTR is a value for identifying a data frame and a remote frame, and is composed of a 1-bit dominant in the data frame.

IDEと「r」とは、それぞれ1bitのドミナントで構成される。   IDE and “r” are each composed of a 1-bit dominant.

DLCは、4bitで構成され、データフィールドの長さを示す値である。ここでは、データフレームにおけるDLCの値を格納する4bitをDLCのフィールドとも称する。   The DLC is composed of 4 bits and is a value indicating the length of the data field. Here, 4 bits for storing the DLC value in the data frame is also referred to as a DLC field.

データフィールドは、最大64bitで構成される送信するデータの内容を示す値である。8bit毎に長さを調整できる。送られるデータの仕様については、CANプロトコルで規定されておらず、車載ネットワークシステム10において定められる。従って、車種、製造者(製造メーカ)等に依存した仕様となる。   The data field is a value indicating the content of data to be transmitted that is composed of a maximum of 64 bits. The length can be adjusted every 8 bits. The specification of the data to be sent is not defined by the CAN protocol, but is defined in the in-vehicle network system 10. Therefore, the specification depends on the vehicle type, manufacturer (manufacturer), and the like.

CRCシーケンス(図2に示す「CRC」)は、15bitで構成される。SOF、IDフィールド、コントロールフィールド及びデータフィールドの送信値より算出される。   The CRC sequence (“CRC” shown in FIG. 2) is composed of 15 bits. It is calculated from the transmission values of the SOF, ID field, control field and data field.

CRCデリミタ(図2に示す「CRC」と「ACK」の間に位置する「DEL」)は、1bitのレセシブで構成されるCRCシーケンスの終了を表す区切り記号である。なお、CRCシーケンス及びCRCデリミタを合わせてCRCフィールドと称する。   The CRC delimiter (“DEL” positioned between “CRC” and “ACK” shown in FIG. 2) is a delimiter representing the end of a CRC sequence composed of 1-bit recessive. The CRC sequence and the CRC delimiter are collectively referred to as a CRC field.

ACKスロット(図2に示す「ACK」)は、1bitで構成される。送信ノードはACKスロットをレセシブにして送信を行う。受信ノードはCRCシーケンスまで正常に受信ができていればACKスロットをドミナントとして送信する。レセシブよりドミナントが優先されるため、送信後にACKスロットがドミナントであれば、送信ノードは、いずれかの受信ノードが受信に成功していることを確認できる。   The ACK slot (“ACK” shown in FIG. 2) is composed of 1 bit. The transmitting node performs transmission with the ACK slot being recessive. The receiving node transmits an ACK slot as a dominant if reception is successful up to the CRC sequence. Since dominant is given priority over recessive, if the ACK slot is dominant after transmission, the transmitting node can confirm that any receiving node has received successfully.

ACKデリミタ(図2に示す「ACK」と「EOF」の間に位置する「DEL」)は、1bitのレセシブで構成されるACKの終了を表す区切り記号である。   The ACK delimiter (“DEL” located between “ACK” and “EOF” shown in FIG. 2) is a delimiter representing the end of ACK composed of 1-bit recessive.

EOFは、7bitのレセシブで構成されており、データフレームの終了を示す。   The EOF is composed of 7 bits recessive and indicates the end of the data frame.

[1.3 エラーフレームフォーマット]
図3は、CANプロトコルで規定されるエラーフレームのフォーマットを示す図である。エラーフレームは、エラーフラグ(プライマリ)と、エラーフラグ(セカンダリ)と、エラーデリミタとから構成される。
[1.3 Error frame format]
FIG. 3 is a diagram illustrating an error frame format defined by the CAN protocol. The error frame includes an error flag (primary), an error flag (secondary), and an error delimiter.

エラーフラグ(プライマリ)は、エラーの発生を他のノードに知らせるために使用される。エラーを検知したノードはエラーの発生を他のノードに知らせるために6bitのドミナントを連続で送信する。この送信は、CANプロトコルにおけるビットスタッフィングルール(連続して同じ値を6bit以上送信しない)に違反し、他のノードからのエラーフレーム(セカンダリ)の送信を引き起こす。   The error flag (primary) is used to notify other nodes of the occurrence of an error. A node that detects an error continuously transmits a 6-bit dominant to notify other nodes of the occurrence of the error. This transmission violates the bit stuffing rule in the CAN protocol (the same value is not transmitted continuously for 6 bits or more), and causes the transmission of an error frame (secondary) from another node.

エラーフラグ(セカンダリ)は、エラーの発生を他のノードに知らせるために使用される連続した6ビットのドミナントで構成される。エラーフラグ(プライマリ)を受信してビットスタッフィングルール違反を検知した全てのノードがエラーフラグ(セカンダリ)を送信することになる。   The error flag (secondary) is composed of a continuous 6-bit dominant used to notify other nodes of the occurrence of an error. All nodes that have received the error flag (primary) and detected a violation of the bit stuffing rule will transmit the error flag (secondary).

エラーデリミタ「DEL」は、8bitの連続したレセシブであり、エラーフレームの終了を示す。   The error delimiter “DEL” is a continuous recess of 8 bits and indicates the end of the error frame.

[1.4 不正検知ECU100の構成]
図4は、不正検知ECU100の構成図である。不正検知ECU100は、トランシーバ部130と、コントローラ部140と、マイコン部150とを含んで構成される。
[1.4 Configuration of Fraud Detection ECU 100]
FIG. 4 is a configuration diagram of the fraud detection ECU 100. The fraud detection ECU 100 includes a transceiver unit 130, a controller unit 140, and a microcomputer unit 150.

トランシーバ部130は、通信回路等の電子回路である。トランシーバ部130は、コントローラ部140から通知されたフレームをバス300に送信可能な電気信号に変換して送信し、また、バス300に現れる電気信号を受信することで、1bitずつ受信したフレームの内容をコントローラ部140へ通知する。   The transceiver unit 130 is an electronic circuit such as a communication circuit. The transceiver unit 130 converts the frame notified from the controller unit 140 into an electrical signal that can be transmitted to the bus 300, and transmits the electrical signal that appears on the bus 300. To the controller unit 140.

コントローラ部140は、マイコン部150及びトランシーバ部130と信号の授受を行う、デジタル回路及びメモリ等の記憶媒体を含む半導体集積回路である。コントローラ部140は、プロトコル処理部141と、不正検知処理要求部142と、不正フレーム判断部143と、不正検知処理タイミング保持部144とを有する。   The controller unit 140 is a semiconductor integrated circuit including a storage medium such as a digital circuit and a memory that exchanges signals with the microcomputer unit 150 and the transceiver unit 130. The controller unit 140 includes a protocol processing unit 141, a fraud detection processing request unit 142, a fraud frame determination unit 143, and a fraud detection processing timing holding unit 144.

プロトコル処理部141は、トランシーバ部130と通信を行い、プロトコル(CANプロトコル等)に従った処理を行う。プロトコル処理部141は、例えば受信中のフレームについてエラーを検知した場合は、トランシーバ部130にエラーフレームを送信させるべく、エラーフレームの送信(つまり送信要求)をトランシーバ部130に通知する。プロトコル処理部141は、データフレームの受信が完了した場合は、データフレームの受信完了をマイコン部150に通知する。プロトコル処理部141は、マイコン部150からのデータフレーム送信要求に対して、プロトコルに従ってデータフレームを送信できるようにトランシーバ部130に通知する。プロトコル処理部141は、トランシーバ部130から通知されるフレームの内容を、不正検知処理要求部142にも通知する。プロトコル処理部141は、不正フレーム判断部143からエラーフレームの送信(つまり送信要求)を通知された場合には、エラーフレームの送信をトランシーバ部130に通知する。また、プロトコル処理部141は、トランシーバ部130を介して取得した、バス300に現れたデータフレームの内容を一時的に保持して、マイコン部150から不正検知処理に必要なID、DLC、データ等の情報が要求された場合に要求された情報をマイコン部150に与える。更に、プロトコル処理部141は、データフレームの前回受信時と今回受信時との差を算定してその算定結果等である受信タイミングに係るタイミング通知情報が要求された場合にそのタイミング通知情報をマイコン部150に与える。   The protocol processing unit 141 communicates with the transceiver unit 130 and performs processing according to a protocol (CAN protocol or the like). For example, when the protocol processing unit 141 detects an error with respect to a frame being received, the protocol processing unit 141 notifies the transceiver unit 130 of transmission of an error frame (that is, a transmission request) so that the transceiver unit 130 transmits the error frame. When the reception of the data frame is completed, the protocol processing unit 141 notifies the microcomputer unit 150 of the completion of the data frame reception. In response to the data frame transmission request from the microcomputer unit 150, the protocol processing unit 141 notifies the transceiver unit 130 so that the data frame can be transmitted according to the protocol. The protocol processing unit 141 also notifies the fraud detection processing requesting unit 142 of the contents of the frame notified from the transceiver unit 130. When the protocol processing unit 141 is notified of transmission of an error frame (that is, a transmission request) from the illegal frame determination unit 143, the protocol processing unit 141 notifies the transceiver unit 130 of transmission of the error frame. Further, the protocol processing unit 141 temporarily holds the contents of the data frame appearing on the bus 300 acquired via the transceiver unit 130, and the ID, DLC, data, etc. necessary for fraud detection processing from the microcomputer unit 150 Is requested, the requested information is given to the microcomputer unit 150. Further, the protocol processing unit 141 calculates the difference between the previous reception time and the current reception time of the data frame, and when timing notification information related to the reception timing, such as the calculation result, is requested, the timing notification information is sent to the microcomputer. Part 150 is given.

不正検知処理要求部142は、受信中のデータフレームをプロトコル処理部141から通知され、データフレーム受信中に、不正検知処理タイミング保持部144を参照し、受信中のデータフレーム(具体的にはフレームのID)に応じて不正検知処理タイミングを決定する。そして不正検知処理要求部142は、決定した不正検知処理タイミングが到来した時点でマイコン部150の不正検知処理部154へ、不正検知処理要求信号を通知する。   The fraud detection processing requesting unit 142 is notified of the data frame being received from the protocol processing unit 141, and refers to the fraud detection processing timing holding unit 144 while receiving the data frame, so that the data frame being received (specifically, the frame The fraud detection processing timing is determined according to the ID). The fraud detection processing request unit 142 notifies the fraud detection processing request signal to the fraud detection processing unit 154 of the microcomputer unit 150 when the determined fraud detection processing timing arrives.

不正フレーム判断部143は、マイコン部150の不正検知処理部154による不正検知処理における不正の検知結果を取得して、不正を検知した場合には、エラーフレームの送信をプロトコル処理部141に通知する。   The fraud frame determination unit 143 acquires the fraud detection result in the fraud detection processing by the fraud detection processing unit 154 of the microcomputer unit 150, and when detecting fraud, notifies the protocol processing unit 141 of transmission of an error frame. .

不正検知処理タイミング保持部144は、記憶媒体(または記録媒体ともいう)等により、複数のIDそれぞれについてタイミングを対応付けた対応情報(図5参照)を保持する。記憶媒体とは、例えば、不正検知ECU100(例えば、コントローラ部140)に含まれるメモリである。   The fraud detection processing timing holding unit 144 holds correspondence information (see FIG. 5) in which timings are associated with each of a plurality of IDs using a storage medium (also referred to as a recording medium) or the like. A storage medium is memory contained in fraud detection ECU100 (for example, controller part 140), for example.

マイコン部150は、コントローラ部140と信号の授受を行う、プログラムを実行するプロセッサ(マイクロプロセッサ)及びメモリを含む半導体集積回路である。プログラムは、例えば、半導体集積回路のメモリに記憶される。または、不正検知ECU100が図示しないハードディスク装置を含む場合、プログラムは、ハードディスク装置に記憶されてもよい。プロセッサが、このプログラムを実行することにより、マイコン部150が機能する。マイコン部150は、プログラムを実行するプロセッサ、メモリ等により実現される機能的な構成要素として、コントローラ通信部151と、フレーム処理部152と、フレーム生成部153と、不正検知処理部154と、不正検知ルール保持部155とを有する。   The microcomputer unit 150 is a semiconductor integrated circuit including a processor (microprocessor) for executing a program and a memory for exchanging signals with the controller unit 140. For example, the program is stored in a memory of a semiconductor integrated circuit. Alternatively, when the fraud detection ECU 100 includes a hard disk device (not shown), the program may be stored in the hard disk device. When the processor executes this program, the microcomputer unit 150 functions. The microcomputer unit 150 includes a controller communication unit 151, a frame processing unit 152, a frame generation unit 153, a fraud detection processing unit 154, And a detection rule holding unit 155.

コントローラ通信部151は、コントローラ部140から受信したデータフレームを、フレーム処理部152へ通知する。コントローラ通信部151は、フレーム生成部153から通知されたデータフレームを、コントローラ部140へ通知し、データフレーム送信要求を行う。コントローラ通信部151は、不正検知処理部154から不正検知処理に必要な情報の取得要求通知を受け、コントローラ部140から、不正検知処理に必要なID(つまりIDフィールドの内容)と、DLC(DLCのフィールドの内容)と、データ(データフィールドの内容)と、データフレームの受信タイミングに係るタイミング通知情報とを取得する。   The controller communication unit 151 notifies the frame processing unit 152 of the data frame received from the controller unit 140. The controller communication unit 151 notifies the controller unit 140 of the data frame notified from the frame generation unit 153 and makes a data frame transmission request. The controller communication unit 151 receives an acquisition request notification of information necessary for the fraud detection processing from the fraud detection processing unit 154, and receives an ID (that is, the contents of the ID field) necessary for the fraud detection processing and a DLC (DLC) from the controller unit 140. Field contents), data (data field contents), and timing notification information related to the reception timing of the data frame.

フレーム処理部152は、コントローラ通信部151から通知されたデータフレームを、処理する。   The frame processing unit 152 processes the data frame notified from the controller communication unit 151.

フレーム生成部153は、コントローラ通信部151に、データフレームの送信要求を通知する。   The frame generation unit 153 notifies the controller communication unit 151 of a data frame transmission request.

不正検知処理部154は、コントローラ部140の不正検知処理要求部142から不正検知処理要求信号を受信すると不正検知処理を行う。例えば、不正検知処理要求信号は、マイコン部150のプロセッサに対する割り込み要求信号として与えられる。プロセッサは、割り込み要求信号による割り込みに対応して、例えばプログラムの実行中であればその実行を中断して、予め定められた特定の割り込み対応処理プログラムを実行することで、不正検知処理部154の主たる機能を実現し、つまり不正検知処理を行う。プロセッサは、例えば特にプログラムの実行の必要がない場合には低消費電力状態(スリープ状態)になり得るが、この場合において割り込み要求信号(不正検知処理要求信号)を受信するとスリープを解除して通常の消費電力状態に戻って、不正検知処理を実行する。不正検知処理は、バス300に送出されたフレームつまりバス300に現れたフレームが不正なフレームであるか否か、つまり予め定められたルールに適合しないフレームであるか否かを判別するための処理である。その判別は、不正検知ルール保持部155が保持する不正検知ルール(図6参照)に基づいて行われる。   When the fraud detection processing unit 154 receives a fraud detection processing request signal from the fraud detection processing request unit 142 of the controller unit 140, the fraud detection processing unit 154 performs fraud detection processing. For example, the fraud detection processing request signal is given as an interrupt request signal for the processor of the microcomputer unit 150. The processor responds to the interrupt by the interrupt request signal, for example, interrupts the execution of the program if it is being executed, and executes a predetermined interrupt handling processing program, so that the fraud detection processing unit 154 The main function is realized, that is, fraud detection processing is performed. For example, the processor can enter a low power consumption state (sleep state), for example, when there is no need to execute a program. In this case, when the interrupt request signal (injustice detection processing request signal) is received, the processor is released from the sleep state. Return to the current power consumption state and execute fraud detection processing. The fraud detection process is a process for determining whether a frame sent to the bus 300, that is, a frame appearing on the bus 300 is an illegal frame, that is, whether the frame does not conform to a predetermined rule. It is. The determination is made based on the fraud detection rule (see FIG. 6) held by the fraud detection rule holding unit 155.

不正検知処理の内容は、不正か否かの判別対象となるデータフレームのID毎に予め定められており(例えば不正検知ルールで規定されており)、例えば、対応情報等によりID毎に定められた不正検知処理タイミングと対応して次のようになっている。即ち、不正検知処理部154は、いつ不正検知処理要求信号を通知されて動作するかによって不正検知処理として次に示す検査を行う。不正検知処理部154は、データフレームにおけるID受信時(つまりIDフィールドを受信した時)に不正検知処理要求信号を通知されて動作する場合には、不正検知処理として、受信中のデータフレームのID(IDフィールドの値)が、不正検知ルール保持部155の不正検知ルールにおいて規定されていないIDか否かにより、不正なID(つまり不正なフレーム)か否かを判別する検査を行う。更に、この場合に、不正検知ルール保持部155に格納された不正検知ルールにより周期についてのルールが規定されているときには、前回データフレームを受信してから今回データフレームを受信するまでの時間がルールで規定している周期と合致するか否かにより不正な周期(つまり不正なフレーム)であるか否かを判別する検査を行う。また、不正検知処理部154は、データフレームにおけるDLC受信時(つまりDLCのフィールドを受信した時)に不正検知処理要求信号を通知されて動作する場合には、受信中のデータフレームのDLCのフィールドの値が、不正検知ルールに規定されたDLCと異なるか否かにより、不正なDLC(つまり不正なフレーム)か否かを判別する検査を行う。また、不正検知処理部154は、データフレームにおけるデータ受信時(つまりデータフィールドを受信した時)に不正検知処理要求信号を通知されて動作する場合には、受信中のデータフィールドの値が、不正検知ルールに規定された値と異なるか否かにより、不正なデータ(つまり不正なフレーム)か否かを判別する検査を行う。また、不正検知処理部154は、データフレームの受信完了後に不正検知処理要求信号を通知されて動作する場合には、上述した不正なIDか否か、不正な周期か否か、不正なDLCか否か、及び、不正なデータか否かに係る検査を行い、不正なフレームか否かを判別する。なお、不正検知処理としては、データ値が前回のデータフレームのデータ値から予め定められた変動量よりも大きく変化する場合に不正なフレームと判別するようなデータの一貫性に係る検査を行っても良い。   The content of the fraud detection process is predetermined for each ID of the data frame to be discriminated whether or not it is fraudulent (for example, defined in the fraud detection rule), for example, for each ID based on correspondence information or the like. Corresponding to the fraud detection processing timing, it is as follows. That is, the fraud detection processing unit 154 performs the following inspection as the fraud detection processing depending on when the fraud detection processing request signal is notified and operates. When the fraud detection processing unit 154 operates upon receiving a fraud detection processing request signal when receiving an ID in a data frame (that is, when receiving an ID field), the fraud detection processing unit 154 performs ID detection of the data frame being received as fraud detection processing. A test is performed to determine whether or not (ID field value) is an illegal ID (that is, an illegal frame) depending on whether or not the ID is not defined in the fraud detection rule of the fraud detection rule holding unit 155. Further, in this case, when the rule for the cycle is defined by the fraud detection rule stored in the fraud detection rule holding unit 155, the time from the reception of the previous data frame to the reception of the current data frame is a rule. A test is performed to determine whether or not the cycle is invalid (that is, an invalid frame) depending on whether or not it matches the cycle defined in (1). In addition, when the fraud detection processing unit 154 operates upon receiving a fraud detection processing request signal when DLC is received in a data frame (that is, when a DLC field is received), the fraud detection processing unit 154 receives the DLC field of the data frame being received. A check is performed to determine whether or not the value is different from the DLC defined in the fraud detection rule. Further, when the fraud detection processing unit 154 operates upon receiving a fraud detection processing request signal when data is received in a data frame (that is, when a data field is received), the value of the data field being received is invalid. A test is performed to determine whether or not the data is illegal (that is, an illegal frame) depending on whether or not the value is different from the value defined in the detection rule. In addition, when the fraud detection processing unit 154 operates upon receiving a fraud detection processing request signal after completion of reception of a data frame, whether the fraud detection processing unit 154 receives the fraud detection processing signal or whether the fraud detection period is an illegal DLC. And whether the data is invalid or not is determined to determine whether or not it is an illegal frame. In the fraud detection process, a data consistency check is performed such that a data value is determined to be an illegal frame when the data value changes more than a predetermined amount of variation from the data value of the previous data frame. Also good.

不正検知処理部154は、不正検知処理を行った後に、不正が検知されたか否かを示す不正検知処理の結果を、コントローラ部140の不正フレーム判断部143に通知する。なお、不正検知処理部154は、不正検知処理に必要なID(IDフィールドの内容)と、DLC(DLCのフィールドの内容)と、データ(データフィールドの内容)と、データフレームの受信タイミングに係るタイミング通知情報とのうちの1以上の情報の取得要求通知を、コントローラ通信部151に伝達することで、不正検知処理に必要な情報の取得を行う。   After performing the fraud detection process, the fraud detection processing unit 154 notifies the fraud detection unit 143 of the controller unit 140 of the result of the fraud detection process indicating whether fraud has been detected. The fraud detection processing unit 154 relates to ID (contents of ID field), DLC (contents of DLC field), data (contents of data field), and data frame reception timing necessary for fraud detection processing. By transmitting an acquisition request notification for one or more pieces of timing notification information to the controller communication unit 151, information necessary for fraud detection processing is acquired.

不正検知ルール保持部155は、不正検知処理部154に参照されるべき不正検知ルール(図6参照)を記憶媒体(または、記録媒体ともいう)等により保持する。記憶媒体とは、例えば、不正検知ECU100(例えば、マイコン部150)に含まれるメモリである。   The fraud detection rule holding unit 155 holds a fraud detection rule (see FIG. 6) to be referred to by the fraud detection processing unit 154 by a storage medium (also referred to as a recording medium). The storage medium is, for example, a memory included in the fraud detection ECU 100 (for example, the microcomputer unit 150).

なお、不正検知処理部154或いは不正フレーム判断部143において、フレームの不正が検知された場合に記憶媒体等に、不正なフレームに関するログ情報(例えばフレームの内容、受信日時等)を記録することとしても良いし、不正を報知するための制御(表示、外部サーバへの情報送信等)を行っても良い。   In addition, when the fraud detection processing unit 154 or the fraud frame determination unit 143 detects fraud of a frame, log information regarding the fraudulent frame (for example, the contents of the frame, the reception date / time, etc.) is recorded. Alternatively, control (notification, information transmission to an external server, etc.) for notifying fraud may be performed.

[1.5 対応情報]
図5は、不正検知処理タイミング保持部144が保持する対応情報の一例としてのリストを示す。対応情報は、複数のIDそれぞれについてタイミング(不正検知処理タイミング)を対応付けた情報であり、不正検知処理要求部142が、割り込み要求信号(不正検知処理要求信号)を通知するタイミングを決定するために利用される。対応情報は、図5に例示するリストでは、1つ以上のIDそれぞれについて、不正検知処理タイミングとして、データフレーム中の1つ又は複数の特定フィールド(IDフィールド、DLCのフィールド、データフィールド等)の受信タイミングを対応付けている。この例は、受信中のデータフレームのIDに応じて、不正検知処理要求信号の通知(発生)のタイミングが異なることを示している。
[1.5 Corresponding information]
FIG. 5 shows a list as an example of correspondence information held by the fraud detection processing timing holding unit 144. The correspondence information is information in which timing (fraud detection processing timing) is associated with each of a plurality of IDs, and the fraud detection processing request unit 142 determines the timing for notifying the interrupt request signal (fraud detection processing request signal). Used for In the list illustrated in FIG. 5, the correspondence information includes one or more specific fields (ID field, DLC field, data field, etc.) in the data frame as fraud detection processing timing for each of one or more IDs. The reception timing is associated. This example shows that the timing of notification (generation) of the fraud detection processing request signal differs according to the ID of the data frame being received.

IDが0x100のデータフレームを受信した場合は、不正検知処理要求部142は、データフレームのID受信時(IDフィールドを受信した時)に、マイコン部150のプロセッサに対する割り込み要求信号としての不正検知処理要求信号を発生させ、不正検知処理部154による不正検知処理の実行を要求することになる。同様に、0x200のIDのデータフレームについては、ID受信時と、データ受信時(データフィールドを受信した時)との両方のタイミングで不正検知処理要求信号を発生させ、IDが0x400のデータフレームについては、ID受信時と、DLC受信時(DLCのフィールドを受信した時)との両方のタイミングで、不正検知処理要求信号を発生させる。一方、IDが0x300のデータフレームについては、不正検知処理要求信号を発生させない。また図5に例示するリストに含まれないIDについては、不正検知処理要求部142は、データフレームの受信完了後に不正検知処理要求信号を発生させる。これは、例えば、図5のリストに含まれない各IDについてデータフレームの受信完了以後のタイミング(例えばデータフレーム受信完了時)を対応付けた対応情報が定められていることと同じ意味を示す。なお、不正検知処理要求信号を発生させないIDについて、リストに含ませないこととして、データフレームの受信完了後に不正検知処理を実行させるべきデータフレームのIDとそのデータフレームの受信完了以後のタイミング(例えばデータフレーム受信完了時)とを対応付けた情報を、対応情報としてのリストに含ませることとしても良い。   When the data frame having the ID of 0x100 is received, the fraud detection processing request unit 142 receives the data frame ID (when the ID field is received) and performs fraud detection processing as an interrupt request signal to the processor of the microcomputer unit 150. A request signal is generated to request execution of fraud detection processing by the fraud detection processing unit 154. Similarly, for a data frame with an ID of 0x200, a fraud detection processing request signal is generated both at the time of ID reception and at the time of data reception (when a data field is received). Generates a fraud detection processing request signal both at the time of ID reception and at the time of DLC reception (when a DLC field is received). On the other hand, the fraud detection processing request signal is not generated for the data frame whose ID is 0x300. For IDs not included in the list illustrated in FIG. 5, the fraud detection processing request unit 142 generates a fraud detection processing request signal after completion of reception of the data frame. For example, this indicates the same meaning as that correspondence information in which a timing after completion of reception of a data frame (for example, when reception of a data frame is completed) is associated with each ID not included in the list of FIG. Note that IDs that do not generate a fraud detection processing request signal are not included in the list, and the ID of a data frame to be subjected to fraud detection processing after completion of reception of the data frame and timing after completion of reception of the data frame (for example, Information associated with (when data frame reception is completed) may be included in a list as correspondence information.

[1.6 不正検知ルール]
図6は、不正検知ルール保持部155が保持する不正検知ルールの一例としてのリストを示す。不正検知ルールは、複数のIDそれぞれについて不正の検知のための検査内容を対応付けた情報であり、不正検知処理部154が不正検知処理の内容となる検査を特定する際に利用される。図6に例示するリストは、1つ以上のIDそれぞれについて、DLC、データ、周期の各項目について正常値を示す基準情報を対応付けている。検査において基準情報は、例えば、データフレームの一部の受信により得られたビット列等との照合に用いられる。図6の例では、不正検知のための検査で用いられない項目については、「なし」と表記しており、不正検知処理においてその項目に係る検査は行われない。
[1.6 Fraud detection rules]
FIG. 6 shows a list as an example of the fraud detection rule held by the fraud detection rule holding unit 155. The fraud detection rule is information in which inspection contents for fraud detection are associated with each of a plurality of IDs, and is used when the fraud detection processing unit 154 specifies an inspection that is the content of fraud detection processing. The list illustrated in FIG. 6 associates reference information indicating normal values for each item of DLC, data, and period for each of one or more IDs. In the inspection, the reference information is used for collation with, for example, a bit string obtained by receiving a part of the data frame. In the example of FIG. 6, an item that is not used in the inspection for fraud detection is described as “none”, and the inspection related to the item is not performed in the fraud detection process.

図6の例では、IDが0x100であるデータフレームのDLCの正常値は「なし」でありDLCについては検査が行われず、データの正常値は「なし」(データについての検査は行われない旨を示す)であり、またデータフレームの受信周期を表す周期の正常値は20msである。IDが0x200であるデータフレームのDLCの正常値は「なし」であり、DLCについては検査が行われず、データの正常値は、最上位バイトが0x20であり、また周期の正常値は「なし」のため、周期については検査が行われない。IDが0x400のデータフレームについてのDLCの正常値は2であり、また、データと周期に関しては正常値が「なし」であるため検査を行わない。なお、不正検知ルール保持部155は、不正検知ルールに係るリストの内容を、暗号化して保持しても良い。また、不正検知処理部154が行う不正検知処理の内容の全てを、不正検知ルールに係るリストに基づいて特定する必要はなく、ID、DLC、データ及び周期の1以上の項目についてだけ、正常値を不正検知ルールとしてのリストで保持することとしても良い。不正検知ルール、プログラム等によって定まる不正検知処理の内容は、ここで示した例に限られない。   In the example of FIG. 6, the normal value of the DLC of the data frame whose ID is 0x100 is “none”, the DLC is not inspected, and the normal value of the data is “none” (the data is not inspected). The normal value of the period representing the data frame reception period is 20 ms. The normal value of the DLC of the data frame whose ID is 0x200 is “none”, the DLC is not inspected, the normal value of the data is 0x20 in the most significant byte, and the normal value of the cycle is “none”. Therefore, the period is not inspected. The normal value of the DLC for the data frame whose ID is 0x400 is 2, and the normal value is “none” for the data and the period, so the inspection is not performed. The fraud detection rule holding unit 155 may encrypt and hold the contents of the list related to the fraud detection rule. Further, it is not necessary to specify all the contents of the fraud detection processing performed by the fraud detection processing unit 154 based on the list related to the fraud detection rule, and only normal values for one or more items of ID, DLC, data, and period May be held in a list as a fraud detection rule. The contents of fraud detection processing determined by fraud detection rules, programs, etc. are not limited to the examples shown here.

[1.7 ECU200aの構成]
図7は、ECU200aの構成図である。ECU200aは、トランシーバ部130と、コントローラ部240と、マイコン部250とを含んで構成される。
[1.7 Configuration of ECU 200a]
FIG. 7 is a configuration diagram of the ECU 200a. The ECU 200a includes a transceiver unit 130, a controller unit 240, and a microcomputer unit 250.

トランシーバ部130は、不正検知ECU100(図4参照)におけるトランシーバ部130と、同様であるため説明を省略する。   Since the transceiver unit 130 is the same as the transceiver unit 130 in the fraud detection ECU 100 (see FIG. 4), the description thereof is omitted.

コントローラ部240は、マイコン部250及びトランシーバ部130と信号の授受を行う、デジタル回路及びメモリ等の記憶媒体を含む半導体集積回路である。コントローラ部240は、プロトコル処理部241を有する。コントローラ部240は、不正検知ECU100のコントローラ部140と異なり、不正検知処理要求部142及び不正フレーム判断部143を含まない。   The controller unit 240 is a semiconductor integrated circuit including a digital circuit and a storage medium such as a memory that exchanges signals with the microcomputer unit 250 and the transceiver unit 130. The controller unit 240 includes a protocol processing unit 241. Unlike the controller unit 140 of the fraud detection ECU 100, the controller unit 240 does not include the fraud detection processing request unit 142 and the fraud frame determination unit 143.

プロトコル処理部241は、トランシーバ部130と通信を行い、プロトコル(CANプロトコル等)に従った処理を行う。プロトコル処理部241は、例えば受信中のフレームについてエラーを検知した場合は、トランシーバ部130にエラーフレームを送信させるべく、エラーフレームの送信(つまり送信要求)をトランシーバ部130に通知する。プロトコル処理部241は、データフレームの受信が完了した場合は、データフレームの受信完了をマイコン部250に通知する。プロトコル処理部241は、マイコン部250からのデータフレーム送信要求に対して、プロトコルに従ってデータフレームを送信できるようにトランシーバ部130に通知する。   The protocol processing unit 241 communicates with the transceiver unit 130 and performs processing according to a protocol (CAN protocol or the like). For example, when the protocol processing unit 241 detects an error in a frame being received, the protocol processing unit 241 notifies the transceiver unit 130 of transmission of an error frame (that is, a transmission request) so that the transceiver unit 130 transmits an error frame. When the reception of the data frame is completed, the protocol processing unit 241 notifies the microcomputer unit 250 of the reception completion of the data frame. In response to the data frame transmission request from the microcomputer unit 250, the protocol processing unit 241 notifies the transceiver unit 130 so that the data frame can be transmitted according to the protocol.

マイコン部250は、コントローラ部240と信号の授受を行う、プログラムを実行するプロセッサ及びメモリを含む半導体集積回路である。マイコン部250は、プログラムを実行するプロセッサ、メモリ等により実現される機能的な構成要素として、コントローラ通信部151と、フレーム処理部252と、フレーム生成部253と、外部機器入出力部254とを有する。   The microcomputer unit 250 is a semiconductor integrated circuit including a processor that executes a program and a memory that exchanges signals with the controller unit 240. The microcomputer unit 250 includes a controller communication unit 151, a frame processing unit 252, a frame generation unit 253, and an external device input / output unit 254 as functional components realized by a processor that executes a program, a memory, and the like. Have.

コントローラ通信部151は、不正検知ECU100(図4参照)におけるコントローラ通信部151と同様である。但し、コントローラ通信部151は、マイコン部250が含まない不正検知処理部154とは連携しない。即ち、コントローラ通信部151は、コントローラ部240から受信したデータフレームを、フレーム処理部252へ通知する。コントローラ通信部151は、フレーム生成部253から通知されたデータフレームを、コントローラ部240へ通知し、データフレーム送信要求を行う。   The controller communication unit 151 is the same as the controller communication unit 151 in the fraud detection ECU 100 (see FIG. 4). However, the controller communication unit 151 does not cooperate with the fraud detection processing unit 154 that does not include the microcomputer unit 250. That is, the controller communication unit 151 notifies the frame processing unit 252 of the data frame received from the controller unit 240. The controller communication unit 151 notifies the controller unit 240 of the data frame notified from the frame generation unit 253 and makes a data frame transmission request.

フレーム処理部252は、コントローラ通信部151から通知されたデータフレームを処理して結果を外部機器入出力部254へ通知する。   The frame processing unit 252 processes the data frame notified from the controller communication unit 151 and notifies the external device input / output unit 254 of the result.

フレーム生成部253は、外部機器入出力部254から通知された値に基づいてデータフレームを生成し、コントローラ通信部151に、データフレームを通知する。   The frame generation unit 253 generates a data frame based on the value notified from the external device input / output unit 254 and notifies the controller communication unit 151 of the data frame.

外部機器入出力部254は、ECU200aに接続される外部機器と、通信を行う。即ち、外部機器入出力部254は、センサ210から、センサ情報を取得し、フレーム生成部253に通知する。   The external device input / output unit 254 communicates with an external device connected to the ECU 200a. That is, the external device input / output unit 254 acquires sensor information from the sensor 210 and notifies the frame generation unit 253 of the sensor information.

ECU200bも上述のECU200aと同様の構成を備える。但し、ECU200bにおける外部機器入出力部254は、ECU200bに接続されるアクチュエータ220へ、フレーム処理部252から通知された値に基づいた制御情報を出力することで、アクチュエータ220の制御を行う。   The ECU 200b has the same configuration as the ECU 200a described above. However, the external device input / output unit 254 in the ECU 200b controls the actuator 220 by outputting control information based on the value notified from the frame processing unit 252 to the actuator 220 connected to the ECU 200b.

[1.8 不正検知ECU100における各部のデータフレーム受信時の連携動作に係るシーケンス]
以下、上述の構成を備える車載ネットワークシステム10のバス300に不正なECUがアクセスして、IDが0x100であるデータフレームを送信した場合について、バス300に接続された、不正検知方法を行う不正検知ECU100の動作例について説明する。
[1.8 Sequence Related to Cooperation Operation at Receiving Data Frame of Each Part in Fraud Detecting ECU 100]
In the following, fraud detection is performed using a fraud detection method connected to the bus 300 when a fraudulent ECU accesses the bus 300 of the in-vehicle network system 10 having the above-described configuration and transmits a data frame whose ID is 0x100. An operation example of the ECU 100 will be described.

図8は、不正なデータフレームを受信した場合における不正検知ECU100の各部の連携動作例を示すシーケンス図である。前提として、不正検知ECU100の不正検知処理タイミング保持部144が図5に例示した対応情報としてのリストを保持し、不正検知ルール保持部155が図6に例示した不正検知ルールとしてのリストを保持しているとする。また、不正検知ECU100は、10ms前に、IDが0x100であるデータフレームを受信した状態であるものとする。図8のシーケンス図では、不正検知処理要求部142、不正検知処理部154、不正フレーム判断部143及びプロトコル処理部141との相互間での信号の伝達に係る動作を矢線で示しており、上から下へ向かう時間の流れに沿って各部の動作を矩形の処理ブロックで示している。   FIG. 8 is a sequence diagram showing an example of cooperative operation of each part of fraud detection ECU 100 when an illegal data frame is received. As a premise, the fraud detection processing timing holding unit 144 of the fraud detection ECU 100 holds the list as the correspondence information illustrated in FIG. 5, and the fraud detection rule holding unit 155 holds the list as the fraud detection rule illustrated in FIG. Suppose that Further, it is assumed that fraud detection ECU 100 has received a data frame whose ID is 0x100 10 ms ago. In the sequence diagram of FIG. 8, operations related to signal transmission between the fraud detection processing request unit 142, the fraud detection processing unit 154, the fraud frame determination unit 143, and the protocol processing unit 141 are indicated by arrows. The operation of each unit is indicated by a rectangular processing block along the time flow from top to bottom.

IDが0x100であるデータフレームがバス300に送信されると、不正検知ECU100のコントローラ部140のプロトコル処理部141は、トランシーバ部130を介してバス300から、そのデータフレームのID(つまりIDフィールドの値である0x100)を受信する(ステップS1001)。IDを受信するとプロトコル処理部141は、不正検知処理要求部142へ、受信中のデータフレームのID(受信したID)を通知する(ステップS1002)。   When a data frame having an ID of 0x100 is transmitted to the bus 300, the protocol processing unit 141 of the controller unit 140 of the fraud detection ECU 100 transmits the ID of the data frame (that is, the ID field) from the bus 300 via the transceiver unit 130. Value 0x100) is received (step S1001). Upon receiving the ID, the protocol processing unit 141 notifies the fraud detection processing requesting unit 142 of the ID of the data frame being received (received ID) (step S1002).

不正検知処理要求部142は、不正検知処理タイミング保持部144が保持している対応情報を参照して、通知されたIDに対応する不正検知処理タイミングを決定する(ステップS1003)。図5の対応情報の例によれば、受信したデータフレームのIDである0x100に対応するID受信時というタイミングが不正検知処理タイミングとして決定される。   The fraud detection processing request unit 142 refers to the correspondence information held by the fraud detection processing timing holding unit 144 and determines the fraud detection processing timing corresponding to the notified ID (step S1003). According to the example of the correspondence information in FIG. 5, the timing of receiving the ID corresponding to 0x100 that is the ID of the received data frame is determined as the fraud detection processing timing.

不正検知処理要求部142は、ステップS1003で決定した不正検知処理タイミングが到来した時点で、マイコン部150のプロセッサに割り込み要求信号(不正検知処理要求信号)を入力することで不正検知処理の実行を要求する(ステップS1004)。コントローラ部140からマイコン部150への割り込み要求信号の伝達(プロセッサへの割り込み)のタイミングにより、不正検知処理の実行タイミングが制御される。不正検知処理タイミングがID受信時であれば、IDが受信された時点なので直ちに不正検知処理要求信号(割り込み要求信号)が不正検知処理部154に通知される。なお、もし決定された不正検知処理タイミングが例えばDLC受信時であればDLCが受信された時点を待って不正検知処理要求信号が不正検知処理部154に通知される。また、もし決定された不正検知処理タイミングが例えばデータフレーム受信完了時であればデータフレームの受信が完了した時点を待って不正検知処理要求信号が不正検知処理部154に通知される。   The fraud detection process request unit 142 executes the fraud detection process by inputting an interrupt request signal (fault detection process request signal) to the processor of the microcomputer unit 150 when the fraud detection process timing determined in step S1003 arrives. A request is made (step S1004). The execution timing of fraud detection processing is controlled by the timing of transmission of an interrupt request signal from the controller unit 140 to the microcomputer unit 150 (interrupt to the processor). If the fraud detection processing timing is when an ID is received, the fraud detection processing request signal (interrupt request signal) is immediately notified to the fraud detection processing unit 154 because the ID is received. If the determined fraud detection processing timing is, for example, when DLC is received, the fraud detection processing request signal is sent to the fraud detection processing unit 154 after the DLC is received. If the determined fraud detection processing timing is, for example, when reception of a data frame is completed, the fraud detection processing request signal is notified to the fraud detection processing unit 154 after the reception of the data frame is completed.

割り込み要求信号を受けると、マイコン部150でプロセッサが、割り込み対応処理プログラムを実行する。これにより不正検知処理部154が不正検知処理を実行する(ステップS1005)。不正検知処理部154は、不正検知処理においては、コントローラ通信部151を介してコントローラ部140のプロトコル処理部141に、バス300から受信したIDと、受信周期に係るタイミング通知情報との取得要求通知を伝達する(ステップS1005a)。これに呼応してプロトコル処理部141が伝達するID及びタイミング通知情報を不正検知処理部154は、コントローラ通信部151を介して取得する(ステップS1005b)。不正検知処理部154は、不正検知処理において、取得したID及びタイミング通知情報を、不正検知ルールに基づいて検査する。この検査において、取得したIDは、図6の不正検知ルールとしてのリストに含まれているため正常なIDと判別されるが、タイミング通知情報が示す受信タイミングは例えば前回受信から10ms経過を表しており、図6の不正検知ルールのリストで規定されている20msとは異なるため、不正な周期と判別される。このため、不正検知処理部154は、不正なフレームを検知した旨を不正検知処理の結果として、コントローラ部140の不正フレーム判断部143に通知する(ステップS1006)。   When the interrupt request signal is received, the processor in the microcomputer unit 150 executes the interrupt handling process program. As a result, the fraud detection processing unit 154 executes fraud detection processing (step S1005). In the fraud detection process, the fraud detection processing unit 154 notifies the protocol processing unit 141 of the controller unit 140 via the controller communication unit 151 of the acquisition request for the ID received from the bus 300 and the timing notification information related to the reception cycle. Is transmitted (step S1005a). In response to this, the fraud detection processing unit 154 acquires the ID and timing notification information transmitted by the protocol processing unit 141 via the controller communication unit 151 (step S1005b). The fraud detection processing unit 154 inspects the acquired ID and timing notification information based on the fraud detection rule in the fraud detection process. In this inspection, the acquired ID is determined to be a normal ID because it is included in the list as the fraud detection rule in FIG. 6, but the reception timing indicated by the timing notification information represents, for example, that 10 ms has elapsed since the previous reception. Therefore, the period is different from 20 ms defined in the list of fraud detection rules in FIG. Therefore, the fraud detection processing unit 154 notifies the fraud frame determination unit 143 of the controller unit 140 that the fraud frame has been detected as a result of the fraud detection processing (step S1006).

不正フレーム判断部143は、不正検知処理の結果の通知を受けると、不正検知処理において不正が検知されたか否かを判別し(ステップS1007)、不正が検知された場合には、プロトコル処理部141に、エラーフレームの送信(送信要求)を通知する(ステップS1008)。   Upon receiving the notification of the result of the fraud detection process, the fraud frame determination unit 143 determines whether or not fraud is detected in the fraud detection process (step S1007). If fraud is detected, the protocol processing unit 141 is detected. In addition, the transmission of the error frame (transmission request) is notified (step S1008).

プロトコル処理部141は、不正フレーム判断部143からエラーフレームの送信を通知された場合には、エラーフレームの送信(送信要求)をトランシーバ部130に通知する(ステップS1009)。これによりトランシーバ部130がエラーフレームをバス300へと送出することになる。バス300での送信途中のデータフレーム(IDが0x100でありIDフィールドまで送信がなされたデータフレーム)の残りの部分に対して、連続するドミナントで構成されるエラーフレームがレセシブより優先され、言わばエラーフレームにより上書きされることになる。このため、バス300に接続されたECU200a、200bが不正なデータフレームに対応して動作(不正な動作等)をすることが阻止される。これは、不正なデータフレームに対応した動作により、ECU200a、200bが不要な電力消費を行うことの阻止にもなる。なお、不正検知ECU100において、上述の例ではID受信時に不正検知処理を行っているので不正が検知されたらエラーフレームを送信するが、もしデータフレームの受信完了時に不正検知を行っているのであればエラーフレームの送信は行わず、例えばログ情報の記録、不正の報知に係る制御等を行い得る。   When the protocol processing unit 141 is notified of transmission of an error frame from the illegal frame determination unit 143, the protocol processing unit 141 notifies the transceiver unit 130 of transmission of an error frame (transmission request) (step S1009). As a result, the transceiver unit 130 sends an error frame to the bus 300. For the remaining part of the data frame being transmitted on the bus 300 (data frame whose ID is 0x100 and transmitted to the ID field), an error frame composed of consecutive dominants has priority over recessive, so to speak, an error It will be overwritten by the frame. For this reason, the ECUs 200a and 200b connected to the bus 300 are prevented from operating in response to an unauthorized data frame (such as an unauthorized operation). This also prevents the ECUs 200a and 200b from performing unnecessary power consumption due to the operation corresponding to the unauthorized data frame. In the above-described example, the fraud detection ECU 100 performs the fraud detection process when receiving the ID. Therefore, if fraud is detected, an error frame is transmitted. However, if the fraud detection is performed when the reception of the data frame is completed. The error frame is not transmitted, and for example, log information can be recorded, and control related to fraudulent notification can be performed.

[1.9 不正検知ECU100のデータフレーム受信時の処理]
以下、不正検知ECU100がデータフレーム受信時に行う処理について図9のフローチャートに即して説明する。
[1.9 Processing when fraud detection ECU 100 receives a data frame]
Hereinafter, processing performed by fraud detection ECU 100 when receiving a data frame will be described with reference to the flowchart of FIG. 9.

不正検知ECU100は、バス300からデータフレームのIDフィールドまでを受信することにより、データフレームのIDを取得する(ステップS1101)。   The fraud detection ECU 100 acquires the ID of the data frame by receiving from the bus 300 to the ID field of the data frame (step S1101).

不正検知ECU100は、不正検知処理要求部142により、不正検知処理タイミング保持部144が保持している対応情報を参照して、取得したデータフレームのIDに対応する不正検知処理タイミングを決定する(ステップS1102)。これにより、受信されたIDに応じて、例えばID受信時、DLC受信時、データ受信時、データフレーム受信完了時等のうち1つ又は複数が不正検知処理タイミングとして決定される。   The fraud detection ECU 100 refers to the correspondence information held by the fraud detection processing timing holding unit 144 by the fraud detection processing request unit 142 and determines the fraud detection processing timing corresponding to the acquired data frame ID (step). S1102). Thereby, according to the received ID, for example, one or more of ID reception, DLC reception, data reception, data frame reception completion, and the like are determined as fraud detection processing timing.

不正検知ECU100は、不正検知処理要求部142により、決定した不正検知処理タイミングが到来したか否かを判定する(ステップS1103)。不正検知処理タイミングが到来していなければ、データフレームの受信が完了したか否かを判定し(ステップS1104)、完了していなければプロトコル処理部141等により、バス300上に現れた次の1ビットを受信して(ステップS1105)、ステップS1103の判定に戻る。なお、不正検知ECU100では、データフレームの受信が完了すると、プロトコル処理部141により、マイコン部150にデータフレームの受信完了が通知される。不正検知ECU100は、ステップS1104での判定で、データフレームの受信が完了していたらデータフレームの受信時の処理を終える。   The fraud detection ECU 100 determines whether or not the determined fraud detection process timing has been reached by the fraud detection process request unit 142 (step S1103). If the fraud detection processing timing has not arrived, it is determined whether or not the reception of the data frame has been completed (step S1104). If it has not been completed, the protocol processing unit 141 or the like displays the next 1 appearing on the bus 300. The bit is received (step S1105), and the process returns to the determination in step S1103. In the fraud detection ECU 100, when reception of the data frame is completed, the protocol processing unit 141 notifies the microcomputer unit 150 of completion of reception of the data frame. The fraud detection ECU 100 ends the process at the time of receiving the data frame if the reception of the data frame is completed in the determination in step S1104.

ステップS1103において不正検知処理タイミングが到来したと判定された場合には、不正検知ECU100は、コントローラ部140の不正検知処理要求部142からマイコン部150のプロセッサに割り込み要求信号(不正検知処理要求信号)を入力することで、不正検知処理部154により、不正検知ルールに基づき不正検知処理を実行する(ステップS1106)。   If it is determined in step S1103 that the fraud detection processing timing has arrived, the fraud detection ECU 100 sends an interrupt request signal (fraud detection processing request signal) from the fraud detection processing request unit 142 of the controller unit 140 to the processor of the microcomputer unit 150. The fraud detection processing unit 154 executes fraud detection processing based on the fraud detection rule (step S1106).

不正検知ECU100は、データフレーム受信中において不正検知処理部154による不正検知処理の結果として不正が検知された場合には(ステップS1107)、バス300へとエラーフレームを送出することでエラーフレームの送信を行う(ステップS1108)。また、不正検知ECU100は、不正検知処理の結果が正常である場合(不正が検知されなかった場合)、或いは、データフレーム受信後に不正検知処理の結果として不正が検知された場合には、エラーフレームを送信せずにステップS1104での判定を行う。   The fraud detection ECU 100 transmits an error frame by sending an error frame to the bus 300 when fraud is detected as a result of the fraud detection processing by the fraud detection processing unit 154 during reception of a data frame (step S1107). Is performed (step S1108). In addition, the fraud detection ECU 100 determines that an error frame is displayed when fraud detection processing results are normal (when fraud is not detected) or when fraud is detected as a result of fraud detection processing after receiving a data frame. Is determined in step S1104.

図9に示す処理は、データフレームのIDが受信される毎に繰り返し行われる。例えば、不正検知処理要求部142は、データフレームのIDが第1値(例えば0x100、0x200等)であればデータフレームの受信中のタイミングを不正検知処理タイミングとして決定する。そして、データフレームのIDが第1値と異なる第2値(例えば0x500等)であればデータフレームの受信完了以後のタイミング(例えばデータフレーム受信完了時)を不正検知処理タイミングとして決定する。この場合において、不正検知ECU100は、不正検知処理部154がデータフレームの受信中のタイミングで行う不正検知処理において不正を検知したときにバス300にエラーフレームを送出するが、データフレームの受信完了時のタイミングで行う不正検知処理において不正を検知したときにはエラーフレームを送出しない。このように不正検知処理タイミングを決定することは、第1値のIDを含むデータフレームがセキュリティ上、迅速な不正の検知を要するものであり、第2値のIDを含むデータフレームが不正の検知の迅速性を要しない場合に有用である。   The process shown in FIG. 9 is repeated every time the data frame ID is received. For example, if the ID of the data frame is a first value (for example, 0x100, 0x200, etc.), the fraud detection processing request unit 142 determines the timing during reception of the data frame as the fraud detection processing timing. If the data frame ID is a second value different from the first value (for example, 0x500), the timing after the completion of the data frame reception (for example, when the data frame reception is completed) is determined as the fraud detection processing timing. In this case, fraud detection ECU 100 sends an error frame to bus 300 when fraud detection is performed in fraud detection processing performed by fraud detection processing unit 154 at the timing during reception of the data frame. When a fraud is detected in the fraud detection processing performed at the timing, the error frame is not transmitted. Determining the fraud detection processing timing in this way means that a data frame including a first value ID requires rapid fraud detection for security, and a data frame including a second value ID is detected as fraud. This is useful when quickness is not required.

[1.10 実施の形態1の効果]
実施の形態1に係る車載ネットワークシステム10では、不正検知ECU100が、不正検知処理タイミング保持部144に保持された対応情報に基づいて、受信したデータフレームのIDに応じた不正検知処理タイミングを決定し、その決定した不正検知処理タイミングで不正検知処理を行う。これにより、セキュリティの確保のために、バス300で送信される各データフレームに対して一律に監視を行うのではなく、データフレームのIDに対応した適切なタイミングで不正検知処理を行うため、不正なフレームの効率的な検知が実現され得る。例えば、セキュリティ上、重要なデータフレームのIDに対応して、例えばID受信時、DLC受信時、データ受信時の2つ以上を対応付けるように対応情報を定めておくことにより、ID、データフレームの受信周期、DLC及びデータ(データフィールドの内容)のいくつかを迅速に検査できる。そして、不正が検知されるとエラーフレームの送信により、他のECUが不正な動作等をすることを迅速に阻止できる。不正検知処理タイミングが到来したらコントローラ部140から、割り込み要求信号によりマイコン部150のプロセッサに通知されるため、プロセッサは割り込み要求信号が入力されるまでは例えば低消費電力状態(スリープ状態)等になることができ、また、不正検知処理を終えた後に必要な処理がなくなれば再び低消費電力状態に戻ることができる。また、例えば、重要性が比較的低いデータフレームのIDに対応して、データフレーム受信完了時を対応付けるように対応情報を定めておくことで、データフレーム受信完了後の1回の不正検知処理でID、データフレームの受信周期、DLC、データ(データフィールドの内容)等の検査を行うことが可能になり、消費電力を抑えたセキュリティの確保が図れる。
[1.10 Effect of Embodiment 1]
In the in-vehicle network system 10 according to the first embodiment, the fraud detection ECU 100 determines the fraud detection process timing according to the ID of the received data frame based on the correspondence information held in the fraud detection process timing holding unit 144. Then, the fraud detection process is performed at the determined fraud detection process timing. As a result, in order to ensure security, fraud detection processing is performed at an appropriate timing corresponding to the ID of the data frame instead of uniformly monitoring each data frame transmitted on the bus 300. Efficient frame detection can be realized. For example, in correspondence with IDs of important data frames for security, for example, by defining correspondence information so as to associate two or more of ID reception, DLC reception, and data reception, ID, data frame Some of the reception period, DLC and data (data field contents) can be quickly examined. Then, when fraud is detected, transmission of an error frame can quickly prevent other ECUs from performing fraudulent operations. When the fraud detection processing timing arrives, the controller unit 140 notifies the processor of the microcomputer unit 150 by an interrupt request signal. Therefore, the processor enters a low power consumption state (sleep state) or the like until the interrupt request signal is input. In addition, it is possible to return to the low power consumption state again when the necessary processing disappears after the fraud detection processing is completed. In addition, for example, by defining correspondence information so as to associate the data frame reception completion time with the ID of the data frame having a relatively low importance, one fraud detection process after the data frame reception completion is performed. Inspection of ID, data frame reception period, DLC, data (data field contents), etc. can be performed, and security with reduced power consumption can be ensured.

(実施の形態2)
以下、実施の形態1で示した車載ネットワークシステム10を一部変形してなる車載ネットワークシステム11について説明する。
(Embodiment 2)
Hereinafter, an in-vehicle network system 11 formed by partially modifying the in-vehicle network system 10 shown in the first embodiment will be described.

実施の形態1に係る車載ネットワークシステム10の不正検知ECU100では、バス300で送信されたデータフレームについて不正を検知する不正検知処理を実行するための不正検知処理タイミングを、データフレームのIDに応じて決定した。これに対して、本実施の形態に係る車載ネットワークシステム11は、データフレームのIDだけでなく、バス300等の車載ネットワークシステム11を搭載している車両の状態、及び、不正状態(つまり不正検知処理の結果)にも応じて不正検知処理タイミングを決定する不正検知ECU2100を備える。不正検知ECU100を一部変形してなる不正検知ECU2100は、不正検知処理タイミングを、データフレームのIDと車両の状態と不正状態とにより特定される監視レベルに応じて決定する。   In the fraud detection ECU 100 of the in-vehicle network system 10 according to the first embodiment, the fraud detection processing timing for executing the fraud detection processing for detecting fraud on the data frame transmitted via the bus 300 is determined according to the ID of the data frame. Were determined. On the other hand, the in-vehicle network system 11 according to the present embodiment is not only the ID of the data frame, but also the state of the vehicle on which the in-vehicle network system 11 such as the bus 300 is mounted, and the unauthorized state (that is, unauthorized detection) The fraud detection ECU 2100 for determining the fraud detection processing timing according to the processing result) is also provided. The fraud detection ECU 2100 obtained by partially modifying the fraud detection ECU 100 determines fraud detection processing timing according to the monitoring level specified by the ID of the data frame, the vehicle state, and the fraud state.

[2.1 車載ネットワークシステム11の全体構成]
図10は、実施の形態2に係る車載ネットワークシステム11の全体構成を示す図である。
[2.1 Overall configuration of in-vehicle network system 11]
FIG. 10 is a diagram illustrating an overall configuration of the in-vehicle network system 11 according to the second embodiment.

車載ネットワークシステム11は、図10に示すように、バス300と、不正検知ECU2100、各種機器に接続されたECU200a、200b、2200c等のECUといったバスに接続された各ノードとを含んで構成される。本実施の形態において、実施の形態1と同様の機能を有する構成要素については、同じ符号を付して説明を省略する。また、車載ネットワークシステム11は、本実施の形態で特に示さない点については車載ネットワークシステム10と同様である。   As shown in FIG. 10, the in-vehicle network system 11 includes a bus 300, fraud detection ECU 2100, and nodes connected to the bus such as ECUs 200a, 200b, and 2200c connected to various devices. . In the present embodiment, constituent elements having the same functions as those in the first embodiment are denoted by the same reference numerals and description thereof is omitted. Further, the in-vehicle network system 11 is the same as the in-vehicle network system 10 in that it is not particularly shown in the present embodiment.

ECU2200cは、バス300と接続され、また、バッテリ2230及び車速センサ2240に接続されており、これらから情報を取得することで、現在の車両の状態が、停車中、充電中、走行中及び高速走行中のいずれかであるかを特定して、特定した車両の状態を示すデータフレームをバス300に送出する。ここで、停車中は、車速がゼロであって充電中(バッテリ2230への充電中)以外である状態を示す。また、走行中は、車両が高速走行中でなく走行している状態を示す。高速走行中は車速が一定速度(例えば60Km/時)以上である状態を示す。ECU2200cは、ECU200a(図7参照)と同様の構成を有するため、ここでの説明を省略する。バッテリ2230は、各ECU等に電力を供給するための電源である。   The ECU 2200c is connected to the bus 300 and connected to the battery 2230 and the vehicle speed sensor 2240. By acquiring information from these, the current vehicle state is stopped, charging, traveling, and traveling at high speed. The data frame indicating the state of the specified vehicle is transmitted to the bus 300. Here, when the vehicle is stopped, the vehicle speed is zero, indicating a state other than charging (charging the battery 2230). In addition, during traveling, the vehicle is traveling not at high speed. During high speed traveling, the vehicle speed is a certain speed (for example, 60 km / hour) or more. Since the ECU 2200c has the same configuration as the ECU 200a (see FIG. 7), the description thereof is omitted here. The battery 2230 is a power source for supplying electric power to each ECU or the like.

不正検知ECU2100は、不正検知ECU100(図4参照)を一部変形したものであり、バス300と接続され、バス上に流れるフレームを監視して、不正フレームが流れているか否かを判別するための不正検知処理を行う機能を有する。   The fraud detection ECU 2100 is a partial modification of the fraud detection ECU 100 (see FIG. 4). The fraud detection ECU 2100 is connected to the bus 300 and monitors frames flowing on the bus to determine whether or not the fraud frames are flowing. Has a function of performing fraud detection processing.

[2.2 不正検知ECU2100の構成]
図11は、不正検知ECU2100の構成図である。不正検知ECU2100は、トランシーバ部130と、コントローラ部2140と、マイコン部2150とを含んで構成される。なお、実施の形態1と同様の機能を有する構成要素については、同じ符号を付して説明を省略する。
[2.2 Configuration of fraud detection ECU 2100]
FIG. 11 is a configuration diagram of the fraud detection ECU 2100. The fraud detection ECU 2100 includes a transceiver unit 130, a controller unit 2140, and a microcomputer unit 2150. In addition, about the component which has the function similar to Embodiment 1, the same code | symbol is attached | subjected and description is abbreviate | omitted.

コントローラ部2140は、コントローラ部140を一部変形したものであり、マイコン部2150及びトランシーバ部130と信号の授受を行う、デジタル回路及びメモリ等の記憶媒体を含む半導体集積回路である。コントローラ部2140は、プロトコル処理部2141と、不正検知処理要求部142と、不正フレーム判断部143と、不正検知処理タイミング保持部144とを有する。   The controller unit 2140 is a partial modification of the controller unit 140, and is a semiconductor integrated circuit including a storage medium such as a digital circuit and a memory that exchanges signals with the microcomputer unit 2150 and the transceiver unit 130. The controller unit 2140 includes a protocol processing unit 2141, a fraud detection processing request unit 142, a fraud frame determination unit 143, and a fraud detection processing timing holding unit 144.

プロトコル処理部2141は、実施の形態1で示しプロトコル処理部141の機能に加えて、コントローラ通信部151から不正検知処理タイミング保持部144の更新要求を通知された場合に、不正検知処理タイミング保持部144が保持する対応情報を更新する機能を有する。   In addition to the function of the protocol processing unit 141 shown in the first embodiment, the protocol processing unit 2141 receives a request for updating the fraud detection processing timing holding unit 144 from the controller communication unit 151, and the fraud detection processing timing holding unit 144 has a function of updating the correspondence information held in 144.

マイコン部2150は、コントローラ部2140と信号の授受を行う、プログラムを実行するプロセッサ及びメモリを含む半導体集積回路である。プログラムは、例えば、半導体集積回路のメモリに記憶される。または、不正検知ECU2100が図示しないハードディスク装置を含む場合、プログラムは、ハードディスク装置に記憶されてもよい。プロセッサが、このプログラムを実行することにより、マイコン部150が機能する。マイコン部2150は、プログラムを実行するプロセッサ、メモリ等により実現される機能的な構成要素として、コントローラ通信部151と、フレーム処理部2152と、フレーム生成部153と、不正検知処理部2154と、不正検知ルール保持部155と、監視レベル決定部2156と、不正状態保持部2157と、車状態保持部2158と、監視レベル保持部2159とを有する。   The microcomputer unit 2150 is a semiconductor integrated circuit including a processor for executing a program and a memory for exchanging signals with the controller unit 2140. For example, the program is stored in a memory of a semiconductor integrated circuit. Alternatively, when fraud detection ECU 2100 includes a hard disk device (not shown), the program may be stored in the hard disk device. When the processor executes this program, the microcomputer unit 150 functions. The microcomputer unit 2150 includes a controller communication unit 151, a frame processing unit 2152, a frame generation unit 153, a fraud detection processing unit 2154, and a fraudulent function component realized by a processor, a memory, and the like that execute a program. It has a detection rule holding unit 155, a monitoring level determining unit 2156, an unauthorized state holding unit 2157, a vehicle state holding unit 2158, and a monitoring level holding unit 2159.

フレーム処理部2152は、コントローラ通信部151から通知されたデータフレームを、処理する。データフレームの処理の一例としては、フレーム処理部2152は、ECU2200cから通知されたデータフレームを解釈することで車両の状態を取得して、その車両の状態を示す車両状態情報を、車状態保持部2158に格納する。フレーム処理部2152は、車両状態情報を更新した場合には、車両状態情報を更新した旨を、監視レベル決定部2156に通知する。   The frame processing unit 2152 processes the data frame notified from the controller communication unit 151. As an example of the data frame processing, the frame processing unit 2152 acquires the vehicle state by interpreting the data frame notified from the ECU 2200c, and receives the vehicle state information indicating the vehicle state as the vehicle state holding unit. 2158. When the vehicle state information is updated, the frame processing unit 2152 notifies the monitoring level determination unit 2156 that the vehicle state information has been updated.

不正検知処理部2154は、不正検知処理部154を一部変形したものであり、コントローラ部2140から不正検知処理要求信号を受信し、不正検知処理を行う。例えば、不正検知処理要求信号は、マイコン部2150のプロセッサに対する割り込み要求信号として与えられる。不正検知処理の内容については、実施の形態1における不正検知処理部154による不正検知処理と同様である。不正検知処理部2154は、不正検知処理を行った後に、不正が検知されたか否かを示す不正検知処理の結果を、コントローラ部2140の不正フレーム判断部143に通知する。また、不正検知処理部2154は、不正検知処理に必要なID(IDフィールドの内容)と、DLC(DLCのフィールドの内容)と、データ(データフィールドの内容)と、データフレームの受信タイミングに係るタイミング通知情報とのうちの1以上の情報の取得要求通知を、コントローラ通信部151に伝達することで、不正検知処理に必要な情報の取得を行う。また、不正検知処理部2154は、現在時刻を取得する機能を有し、不正検知処理の結果、不正なデータフレームであると判別した場合には、不正状態保持部2157に格納されている不正状態情報(図14参照)における該当するIDの不正が検知された回数(不正発生回数とも称する)と最終更新時刻とを、更新する。このとき、不正発生回数についての更新前の最終更新時刻と、現在時刻とに一定以上の時間差がある場合は、不正発生回数をゼロにリセットする。不正検知処理部2154は、不正状態情報を更新した場合には、監視レベル決定部2156に、不正状態情報を更新したことを通知する。   The fraud detection processing unit 2154 is a modification of the fraud detection processing unit 154, receives a fraud detection processing request signal from the controller unit 2140, and performs fraud detection processing. For example, the fraud detection processing request signal is given as an interrupt request signal for the processor of the microcomputer unit 2150. The content of the fraud detection process is the same as the fraud detection process by the fraud detection processing unit 154 in the first embodiment. After performing the fraud detection process, the fraud detection processing unit 2154 notifies the fraud frame determination unit 143 of the controller unit 2140 of the result of the fraud detection processing indicating whether or not fraud has been detected. Further, the fraud detection processing unit 2154 relates to ID (contents of ID field), DLC (contents of DLC field), data (contents of data field), and data frame reception timing necessary for fraud detection processing. By transmitting an acquisition request notification for one or more pieces of timing notification information to the controller communication unit 151, information necessary for fraud detection processing is acquired. Further, the fraud detection processing unit 2154 has a function of acquiring the current time, and when it is determined that the data frame is an illegal data frame as a result of the fraud detection processing, the fraud state stored in the fraud state holding unit 2157 The number of times fraud of the corresponding ID in the information (see FIG. 14) is detected (also referred to as the number of fraud occurrences) and the last update time are updated. At this time, if there is a certain time difference between the last update time before updating the number of fraud occurrences and the current time, the number of fraud occurrences is reset to zero. When the fraud detection processing unit 2154 updates the fraud state information, the fraud detection processing unit 2154 notifies the monitoring level determination unit 2156 that the fraud state information has been updated.

監視レベル決定部2156は、不正検知処理部2154から不正状態情報の更新を通知された時と、フレーム処理部2152から車両状態情報の更新を通知された時とにおいて、不正状態保持部2157と車状態保持部2158とを参照し、ID毎について監視レベルを決定する。そして監視レベル決定部2156は、決定した監視レベルと、監視レベル保持部2159が保持している監視レベル情報が示すこれまでの監視レベルとを比較することで、不一致であれば、決定した監視レベルを示すように監視レベル情報を更新する。監視レベル情報を更新した場合には、監視レベル決定部2156は、コントローラ通信部151を介して更新要求を通知することで、コントローラ部2140の不正検知処理タイミング保持部144が保持している対応情報における不正検知処理タイミングを、監視レベルに応じて不正検知処理タイミング特定用情報(図12参照)に基づいて書き換える。なお、監視レベル決定部2156は、監視レベルの決定を、例えば、図13に例示するテーブル(対応表)に基づいて行う。この監視レベルの決定方法については後述する。   The monitoring level determination unit 2156 and the unauthorized state holding unit 2157 and the vehicle when the update of the unauthorized state information is notified from the unauthorized detection processing unit 2154 and when the update of the vehicle state information is notified from the frame processing unit 2152. With reference to the state holding unit 2158, the monitoring level is determined for each ID. Then, the monitoring level determination unit 2156 compares the determined monitoring level with the previous monitoring level indicated by the monitoring level information held by the monitoring level holding unit 2159. The monitoring level information is updated so as to indicate When the monitoring level information is updated, the monitoring level determination unit 2156 notifies the update request via the controller communication unit 151, thereby corresponding information held by the fraud detection processing timing holding unit 144 of the controller unit 2140. The fraud detection processing timing is rewritten based on the fraud detection processing timing specifying information (see FIG. 12) according to the monitoring level. Note that the monitoring level determination unit 2156 determines the monitoring level based on, for example, a table (correspondence table) illustrated in FIG. A method for determining the monitoring level will be described later.

不正状態保持部2157は、不正検知処理部2154の不正検知処理の結果から求まる不正状態を示す不正状態情報(図14参照)を保持している。不正状態情報は、具体的には、データフレームのID(対応情報で不正検知処理タイミングと対応付けられた各ID)毎についての既に行われた不正検知処理での不正の検知回数(不正発生回数)を示すように更新される情報である。   The unauthorized state holding unit 2157 stores unauthorized state information (see FIG. 14) indicating an unauthorized state obtained from the result of the unauthorized detection processing of the unauthorized detection processing unit 2154. Specifically, the fraud state information is the number of fraud detections (number of fraud occurrences) in the already performed fraud detection processing for each ID of the data frame (each ID associated with fraud detection processing timing in the correspondence information). ) Is updated as shown.

車状態保持部2158は、ECU2200cから送信されたデータフレームによりフレーム処理部2152が取得した車両の状態を示す車両状態情報(図15参照)を保持する。   The vehicle state holding unit 2158 holds vehicle state information (see FIG. 15) indicating the vehicle state acquired by the frame processing unit 2152 using the data frame transmitted from the ECU 2200c.

監視レベル保持部2159は、ID毎についての監視レベルを示す監視レベル情報(図16参照)を保持している。   The monitoring level holding unit 2159 holds monitoring level information (see FIG. 16) indicating the monitoring level for each ID.

[2.3 不正検知処理タイミング特定用情報]
図12は、不正検知処理タイミング特定用情報の一例を示す図である。同図に示すように、不正検知処理タイミング特定用情報は、監視レベルと不正検知処理タイミングとの対応を示す。監視レベル決定部2156は、この不正検知処理タイミング特定用情報に従って、決定した監視レベルに対応する不正検知処理タイミングを特定し、不正検知処理タイミング保持部144が保持している対応情報を、特定した不正検知処理タイミングを示すように更新する。図12の例では、監視レベルを0から3までの4段階に区分している。なお、これは一例であって、監視レベルを何段階に区分しても良い。図12に例示する不正検知処理タイミング特定用情報により、不正検知ECU2100では監視レベルに応じて次のような処理がなされることになる。即ち、監視レベルが0の場合には、不正検知処理が行われない。監視レベルが1の場合には、データフレーム受信完了時に、不正検知処理要求信号が不正検知処理部2154に通知され、不正検知処理が開始される。監視レベルが2の場合には、ID受信時(つまりデータフレームにおけるIDフィールドを受信した時)に、不正検知処理要求信号が不正検知処理部2154に通知され、不正検知処理が開始される。監視レベルが3の場合には、ID受信時、DLC受信時(DLCのフィールドを受信した時)及びデータ受信時(データフィールドを受信した時)のそれぞれの時点で、不正検知処理要求信号が不正検知処理部2154に通知され、不正検知処理が開始される。監視レベルが2又は3の場合においては、データフレームの受信中に、不正検知処理が行われることになるため、不正検知処理においてデータフレームに係る不正が検知されると、エラーフレームをバス300に送出して不正なデータフレームを上書きすることで、不正なデータフレームを無効化することができる。ここでは、監視レベルが4段階のうち最も高い3の場合には0〜2よりも迅速或いは多項目の検査を行う例を示しており、車両の状態及び不正発生回数により特定される監視レベルと不正検知処理タイミングを適切に設定することは有用である。なお、不正検知処理タイミング特定用情報の内容は図12の例に限られることはない。
[2.3 Information for specifying fraud detection processing timing]
FIG. 12 is a diagram illustrating an example of fraud detection processing timing specifying information. As shown in the figure, the fraud detection processing timing specifying information indicates the correspondence between the monitoring level and the fraud detection processing timing. The monitoring level determination unit 2156 specifies the fraud detection processing timing corresponding to the determined monitoring level according to the fraud detection processing timing specifying information, and specifies the correspondence information held by the fraud detection processing timing holding unit 144. Update to indicate fraud detection processing timing. In the example of FIG. 12, the monitoring level is divided into four stages from 0 to 3. This is an example, and the monitoring level may be divided into any number of stages. Based on the fraud detection processing timing specifying information illustrated in FIG. 12, the fraud detection ECU 2100 performs the following process according to the monitoring level. That is, when the monitoring level is 0, the fraud detection process is not performed. When the monitoring level is 1, the fraud detection processing request signal is notified to the fraud detection processing unit 2154 when reception of the data frame is completed, and the fraud detection processing is started. When the monitoring level is 2, when the ID is received (that is, when the ID field in the data frame is received), the fraud detection processing request signal is notified to the fraud detection processing unit 2154, and the fraud detection processing is started. When the monitoring level is 3, the fraud detection processing request signal is invalid at the time of ID reception, DLC reception (when a DLC field is received), and data reception (when a data field is received). The detection processing unit 2154 is notified and the fraud detection processing is started. When the monitoring level is 2 or 3, fraud detection processing is performed during reception of the data frame. Therefore, when fraud related to the data frame is detected in the fraud detection processing, an error frame is sent to the bus 300. By sending out and overwriting the illegal data frame, the illegal data frame can be invalidated. Here, an example is shown in which when the monitoring level is 3 which is the highest among the four stages, inspection is performed more quickly than 0 to 2 or multiple items, and the monitoring level specified by the state of the vehicle and the number of fraud occurrences It is useful to set the fraud detection processing timing appropriately. Note that the content of the fraud detection processing timing specifying information is not limited to the example of FIG.

[2.4 監視レベルの決定方法]
図13は、監視レベル決定部2156が監視レベルを決定するために用いるテーブルの一例を示す図である。同図ではID毎に異なるテーブルが定められている例を示している。図13において(a)はID「0x100」について、(b)はID「0x200」について、(c)はID「0x300」について、(d)はID「0x400」について、それぞれ、車両の状態と不正が検知された回数(不正発生回数)とから監視レベルを特定するためのテーブルを示す。この各テーブルに従って、監視レベル決定部2156は、車両の状態及び不正発生回数に応じて監視レベルを決定する。図13の例によれば、IDが0x100であるデータフレームに関して、車両の状態が停車中の場合には、不正発生回数が何回であっても監視レベルは0と決定される。IDが0x100であるデータフレームに関して、車両の状態が充電中の場合に、不正発生回数が4回以下であれば監視レベルは1と決定され、不正発生回数が5回以上であれば監視レベルは3と決定される。IDが0x100であるデータフレームに関して、車両の状態が走行中の場合に、不正発生回数が4回以下であれば監視レベルは2と決定され、不正発生回数が5回以上であれば監視レベルは3と決定される。IDが0x100であるデータフレームに関して、車両の状態が高速走行中の場合には、不正発生回数が何回であっても監視レベルは3と決定される。IDが0x200と、0x300と、0x400のデータフレームに関しても同様に、車両の状態と不正発生回数とから監視レベルが決定される。なお、図13のテーブルが無いIDのデータフレームに関しての監視レベルは、1とする。例えば、不正検知処理による監視の必要性の高さ等に対応して監視レベルの高さを適切に設定することが有用となる。
[2.4 Monitoring level determination method]
FIG. 13 is a diagram illustrating an example of a table used by the monitoring level determination unit 2156 to determine the monitoring level. The figure shows an example in which a different table is defined for each ID. In FIG. 13, (a) for ID “0x100”, (b) for ID “0x200”, (c) for ID “0x300”, (d) for ID “0x400” The table for specifying a monitoring level from the frequency | count (number of fraud occurrence) by which this was detected is shown. According to each table, the monitoring level determination unit 2156 determines the monitoring level according to the state of the vehicle and the number of fraud occurrences. According to the example of FIG. 13, regarding the data frame whose ID is 0x100, when the vehicle state is stopped, the monitoring level is determined to be 0 regardless of the number of fraud occurrences. For a data frame with ID 0x100, when the vehicle state is being charged, if the number of fraud occurrences is 4 or less, the monitoring level is determined as 1, and if the number of fraud occurrences is 5 or more, the monitoring level is 3 is determined. For a data frame with an ID of 0x100, when the vehicle is running, if the number of fraud occurrences is 4 or less, the monitoring level is determined to be 2, and if the number of fraud occurrences is 5 or more, the monitoring level is 3 is determined. For a data frame whose ID is 0x100, when the vehicle is traveling at high speed, the monitoring level is determined to be 3 regardless of the number of fraud occurrences. Similarly, for data frames having IDs of 0x200, 0x300, and 0x400, the monitoring level is determined from the vehicle state and the number of fraud occurrences. Note that the monitoring level for the data frame with an ID that does not have the table of FIG. For example, it is useful to appropriately set the monitoring level in accordance with the necessity of monitoring by fraud detection processing.

図13の(a)のテーブルの例は、IDが0x100のデータフレームが、主に走行中に送信されるクルーズコントロールに関する制御用のデータフレームであり、走行中に比較的高い監視レベルで不正検知を行う必要があることを想定した例である。図13の(b)のテーブルの例は、IDが0x200のデータフレームが、充電制御に関するデータフレームであり、充電中により高い監視レベルで不正検知を行う必要があることを想定した例である。図13の(c)のテーブルの例は、IDが0x300であるデータフレームが、バッテリの残量通知に関するデータフレームであることを想定した例である。また、図13の(d)のテーブルの例は、IDが0x400であるデータフレームが、車両の制御に直ちに重大な影響を与えることの無いようなECUの状態通知に関するデータフレームであることを想定した例であり、不正発生回数が多い場合は監視レベルを上げることで車両が安全な状態を保てるようにしている。このように、IDで区別されるデータフレームの特性に応じて、車両の状態或いは不正発生回数との関係で監視レベルを適切に定めることで、電力消費の低減を図り、不正検知処理を効率的に行うことが可能となる。   In the example of the table in FIG. 13A, a data frame with an ID of 0x100 is a data frame for control related to cruise control that is transmitted mainly during traveling, and fraud detection is performed at a relatively high monitoring level during traveling. It is an example assuming that it is necessary to perform. The example of the table in FIG. 13B is an example in which it is assumed that a data frame with an ID of 0x200 is a data frame related to charging control, and fraud detection needs to be performed at a higher monitoring level during charging. The example of the table in FIG. 13C is an example in which it is assumed that the data frame whose ID is 0x300 is a data frame related to the battery remaining amount notification. Further, in the example of the table of FIG. 13D, it is assumed that the data frame with the ID of 0x400 is a data frame related to the state notification of the ECU that does not immediately have a serious influence on the control of the vehicle. In this example, when the number of fraud occurrences is large, the vehicle is kept in a safe state by raising the monitoring level. As described above, according to the characteristics of the data frame identified by the ID, by appropriately determining the monitoring level in relation to the state of the vehicle or the number of fraud occurrences, power consumption can be reduced, and fraud detection processing can be performed efficiently. Can be performed.

[2.5 不正状態情報]
図14は、不正状態保持部2157に保持される不正状態情報の一例を示す図である。同図に示すように、不正状態情報は、データフレームのID毎について、不正が検知された回数(不正発生回数)と、不正状態情報が最後に更新された時刻を示す最終更新時刻とを記録した情報である。この不正状態情報は、不正検知処理部2154によりデータフレームについて不正が検知される度に更新される。
[2.5 Invalid status information]
FIG. 14 is a diagram illustrating an example of the unauthorized state information held in the unauthorized state holding unit 2157. As shown in the figure, the fraud status information records the number of times fraud was detected (number of fraud occurrences) and the last update time indicating the last time the fraud status information was updated for each data frame ID. Information. This fraud status information is updated each time fraud is detected for the data frame by the fraud detection processing unit 2154.

図14の例では、IDが0x100、0x200及び0x300の各データフレームに関しては、不正発生回数が0回で最終更新時刻は起動時(例えば車載ネットワークシステムに電力の供給が開始された時)であり、起動時に設定した初期値のままとなっている。また、IDが0x400であるデータフレームに関しては、不正発生回数が3回であり、最終更新時刻は起動20分後となっている。   In the example of FIG. 14, for each data frame whose ID is 0x100, 0x200, and 0x300, the number of fraud occurrences is 0 and the last update time is at the time of activation (for example, when power supply to the in-vehicle network system is started). The initial value set at startup remains unchanged. For the data frame whose ID is 0x400, the number of fraud occurrences is 3, and the last update time is 20 minutes after activation.

[2.6 車両状態情報]
図15は、車状態保持部2158に保持される車両状態情報の一例を示す図である。図15に例示する車両状態情報は、車両の状態が充電中であることを示している。車両状態情報は、フレーム処理部2152が、例えば、ECU2200cから通知されたデータフレームを解釈することで車両の状態を取得して、その車両の状態を示すように更新する。車両の状態は、例えば、停車中、充電中、走行中及び高速走行中の4つの状態のうちいずれかとなる。
[2.6 Vehicle status information]
FIG. 15 is a diagram illustrating an example of vehicle state information held in the vehicle state holding unit 2158. The vehicle state information illustrated in FIG. 15 indicates that the vehicle state is being charged. The vehicle state information is updated so that the frame processing unit 2152 acquires the state of the vehicle by interpreting a data frame notified from the ECU 2200c, for example, and indicates the state of the vehicle. The state of the vehicle is, for example, any one of four states: stopping, charging, traveling, and traveling at high speed.

[2.7 監視レベル情報]
図16は、監視レベル保持部2159に保持される監視レベル情報の一例を示す図である。監視レベル情報は、ID毎について、そのIDを含むデータフレームに対応する監視レベルを示す。
[2.7 Monitoring level information]
FIG. 16 is a diagram illustrating an example of the monitoring level information held in the monitoring level holding unit 2159. The monitoring level information indicates the monitoring level corresponding to the data frame including the ID for each ID.

図16の例は、IDが0x100のデータフレームに関しては監視レベルが1、IDが0x200のデータフレームに関しては監視レベルが2、IDが0x300のデータフレームに関しては監視レベルが3、IDが0x400のデータフレームに関しては、監視レベルが0である状態を示している。監視レベルは、0〜3の4段階に区分されている。   In the example of FIG. 16, the monitoring level is 1 for the data frame with ID 0x100, the monitoring level is 2 for the data frame with ID 0x200, the monitoring level 3 for the data frame with ID 0x300, and the data with ID 0x400 As for the frame, the monitoring level is 0. The monitoring level is divided into four stages of 0-3.

[2.8 監視レベル更新に応じて変化する不正検知ECU2100の動作例1]
図17は、監視レベル更新に応じて変化する不正検知ECU2100の動作を例示する図である。同図は、車両の状態の変化に伴い監視レベルが更新された場合の動作例を示す。前提として、不正検知ECU2100の不正状態保持部2157に保持される不正状態情報は、図14に例示する状態であるものとする。このとき、不正検知ECU2100は、IDが0x100であるデータフレームについて不正を1度も検知していない。
[2.8 Operation Example 1 of Fraud Detection ECU 2100 that Changes in Accordance with Monitoring Level Update]
FIG. 17 is a diagram illustrating an operation of fraud detection ECU 2100 that changes in accordance with the monitoring level update. This figure shows an operation example when the monitoring level is updated in accordance with a change in the state of the vehicle. As a premise, the unauthorized state information held in the unauthorized state holding unit 2157 of the unauthorized detection ECU 2100 is assumed to be in the state illustrated in FIG. At this time, the fraud detection ECU 2100 has never detected fraud in the data frame whose ID is 0x100.

まず、図17に示すように、ECU2200cから停車中であることを通知するデータフレームがバス300上に流れる。このデータフレームを受信することで不正検知ECU2100は、停車中を示すように車両状態情報を更新し、図13の(a)に例示するテーブルに基づいてIDが0x100であるデータフレームについての監視レベルを0と決定する。続いてIDが0x100のデータフレームがバス300上に流れる。このデータフレームに対して、監視レベルが0であるため、不正検知ECU2100は、不正検知処理を行わない。次に、車載ネットワークシステム11を搭載した車両が走行を開始すると、ECU2200cから走行中であることを通知するデータフレームがバス300上に流れる。このデータフレームを受信することで不正検知ECU2100は、走行中を示すように車両状態情報を更新し、図13の(a)に例示するテーブルに基づいてIDが0x100であるデータフレームについての監視レベルを2と決定する。これにより、不正検知ECU2100のIDが0x100であるデータフレームに対する監視レベルは2となる。そのため、続いてバス300にIDが0x100のデータフレームが流れると、このデータフレームに対して、ID受信時に不正検知処理(IDが不正か否か及びデータフレームの周期が不正か否かを判別する検査)が実行される(図12参照)。   First, as shown in FIG. 17, a data frame notifying that the vehicle is stopped from ECU 2200 c flows on bus 300. By receiving this data frame, the fraud detection ECU 2100 updates the vehicle state information to indicate that the vehicle is stopped, and the monitoring level for the data frame whose ID is 0x100 based on the table illustrated in FIG. Is determined to be 0. Subsequently, a data frame with an ID of 0x100 flows on the bus 300. Since the monitoring level is 0 for this data frame, the fraud detection ECU 2100 does not perform fraud detection processing. Next, when a vehicle equipped with the in-vehicle network system 11 starts traveling, a data frame notifying that the vehicle is traveling from the ECU 2200c flows on the bus 300. By receiving this data frame, the fraud detection ECU 2100 updates the vehicle state information to indicate that the vehicle is running, and the monitoring level for the data frame whose ID is 0x100 based on the table illustrated in FIG. Is determined to be 2. As a result, the monitoring level for the data frame whose ID of the fraud detection ECU 2100 is 0x100 is 2. Therefore, when a data frame with an ID of 0x100 subsequently flows on the bus 300, a fraud detection process (determining whether the ID is invalid and whether the cycle of the data frame is invalid) is received for this data frame. Inspection) is executed (see FIG. 12).

[2.9 監視レベル更新に応じて変化する不正検知ECU2100の動作例2]
図18は、監視レベル更新に応じて変化する不正検知ECU2100の動作の別の例を示す図である。同図は、不正の検知回数の増加に伴い監視レベルが更新された場合の動作例を示す。前提として、不正検知ECU2100の不正状態保持部2157に保持される不正状態情報は、図14に例示する状態であるものとする。このとき、不正検知ECU2100は、IDが0x400であるデータフレームについて既に不正を3回検知している。
[2.9 Operation Example 2 of Fraud Detection ECU 2100 that Changes in Accordance with Monitoring Level Update]
FIG. 18 is a diagram illustrating another example of the operation of fraud detection ECU 2100 that changes in accordance with the monitoring level update. This figure shows an operation example when the monitoring level is updated as the number of fraud detections increases. As a premise, the unauthorized state information held in the unauthorized state holding unit 2157 of the unauthorized detection ECU 2100 is assumed to be in the state illustrated in FIG. At this time, fraud detection ECU 2100 has already detected fraud three times for the data frame whose ID is 0x400.

まず、図18に示すように、ECU2200cから走行中であることを通知するデータフレームがバス300上に流れる。このデータフレームを受信することで不正検知ECU2100は、走行中を示すように車両状態情報を更新する。図13の(d)に例示するテーブルに基づくとIDが0x400であるデータフレームについての監視レベルは1である。続いてIDが0x400のデータフレームがバス300上に流れる。このデータフレームに対して、監視レベルが1であるため、データフレーム受信完了時に、不正検知処理としてID及びDLCが不正か否かを判別する検査を行う(図6、図12参照)。続いて、2回目、3回目とIDが0x400のデータフレーム(但しDLCが8という不正な値となっているデータフレーム)がバス300上に流れる。不正検知ECU2100では、2回目と3回目とに受信するIDが0x400のデータフレームについては、不正検知処理の結果、DLCが8であるため、不正と判別する。これにより、不正状態情報が更新され、不正が検知された回数が5になるため、監視レベルが3となる(図13参照)。そのため、以後はIDが0x400のデータフレームについては、データフレームの受信中(ID受信時及びDLC受信時)に不正検知処理が行われる(図6、図12参照)。このため、5回目に受信したIDが0x400のデータフレーム(DLCが8という不正な値となっているデータフレーム)は、データフレーム受信中に、DLCが不正と判別され、不正なデータフレームとして検知されるため、データフレーム受信中にエラーフレームが送信される。これにより、バス300上のその不正なデータフレームが上書きされて無効化されることになる。   First, as shown in FIG. 18, a data frame notifying that the vehicle is running from ECU 2200 c flows on bus 300. By receiving this data frame, fraud detection ECU 2100 updates the vehicle state information to indicate that the vehicle is running. Based on the table illustrated in FIG. 13D, the monitoring level for the data frame whose ID is 0x400 is 1. Subsequently, a data frame with an ID of 0x400 flows on the bus 300. Since the monitoring level for this data frame is 1, when the reception of the data frame is completed, a test for determining whether the ID and DLC are illegal is performed as fraud detection processing (see FIGS. 6 and 12). Subsequently, the data frame having the ID of 0x400 (the data frame having an incorrect value of DLC of 8) flows on the bus 300 for the second time and the third time. The fraud detection ECU 2100 determines that the data frame received with the second and third IDs of 0x400 is fraud because the DLC is 8 as a result of the fraud detection process. As a result, the fraud state information is updated, and the number of times fraud is detected becomes 5, so the monitoring level becomes 3 (see FIG. 13). Therefore, for the data frame whose ID is 0x400, fraud detection processing is performed during reception of the data frame (when receiving ID and receiving DLC) (see FIGS. 6 and 12). For this reason, the data frame having the ID received 0x400 for the fifth time (the data frame having an illegal value of DLC of 8) is detected as an illegal data frame because the DLC is determined to be illegal during the data frame reception. Therefore, an error frame is transmitted during data frame reception. As a result, the invalid data frame on the bus 300 is overwritten and invalidated.

なお、この例では、不正検知処理タイミング保持部144は、対応情報のIDが0x400についての不正検知処理タイミングについては、車両状態情報が走行中である場合において、不正状態情報における不正の検知回数(不正発生回数)が多い程、ID受信時、DLC受信時、データ受信時及びデータフレーム受信完了時のうちの多くの受信タイミングとなるように更新されている。つまり、不正発生回数が増加することでデータフレーム受信完了時からID受信時及びDLC受信時へと不正検知処理タイミングが増加している。このように、不正検知処理タイミング保持部144は、対応情報を、複数のIDそれぞれについて不正状態情報におけるそのIDに係る不正の検知回数(不正発生回数)が多い程、ID受信時、DLC受信時、データ受信時及びデータフレーム受信完了時のうちの多くの受信タイミングを対応付けるように更新してもよい。   In this example, the fraud detection processing timing holding unit 144 is configured to detect fraud in the fraud state information (when the vehicle state information is running) with respect to the fraud detection processing timing when the ID of the correspondence information is 0x400. The larger the number of fraud occurrences), the more the reception timing is updated at the time of ID reception, DLC reception, data reception, and data frame reception completion. That is, the fraud detection processing timing is increased from the time of completion of data frame reception to the time of ID reception and DLC reception by increasing the number of fraud occurrences. In this way, the fraud detection processing timing holding unit 144 sets the correspondence information for each of a plurality of IDs as the number of fraud detections related to that ID in the fraud state information (the number of fraud occurrences) increases. The update may be performed so that many reception timings at the time of data reception and at the time of completion of data frame reception are associated with each other.

[2.10 不正検知ECU2100のデータフレーム受信時の処理]
以下、不正検知ECU2100がデータフレーム受信時に行う処理について図19のフローチャートに即して説明する。実施の形態1で示した不正検知ECU100の処理ステップ(図9参照)と同様の処理ステップについては、同じ符号を付しており、説明を適宜省略する。
[2.10 Processing at the time of data frame reception of fraud detection ECU 2100]
Hereinafter, processing performed by fraud detection ECU 2100 when receiving a data frame will be described with reference to the flowchart of FIG. Process steps similar to the process steps (see FIG. 9) of fraud detection ECU 100 shown in the first embodiment are given the same reference numerals, and description thereof will be omitted as appropriate.

不正検知ECU2100は、不正検知処理要求部142により、不正検知処理タイミング保持部144が保持している対応情報を参照して、受信したデータフレームのIDに対応する不正検知処理タイミングを決定する(ステップS1102)。決定した不正検知処理タイミングが到来した時に(ステップS1103)、不正検知ECU2100は、コントローラ部2140の不正検知処理要求部142からマイコン部2150のプロセッサに割り込み要求信号(不正検知処理要求信号)を入力することで、不正検知処理部2154により、不正検知ルールに基づき不正検知処理を実行する(ステップS1106)。   The fraud detection ECU 2100 refers to the correspondence information held by the fraud detection processing timing holding unit 144 by the fraud detection processing request unit 142 and determines the fraud detection processing timing corresponding to the ID of the received data frame (step). S1102). When the determined fraud detection processing timing arrives (step S1103), fraud detection ECU 2100 inputs an interrupt request signal (fraud detection processing request signal) from fraud detection processing request unit 142 of controller unit 2140 to the processor of microcomputer unit 2150. Thus, the fraud detection processing unit 2154 executes the fraud detection process based on the fraud detection rule (step S1106).

不正検知ECU2100は、不正検知処理の結果として不正が検知されたか否かを判別し(ステップS2107)、不正が検知された場合には不正状態保持部2157が保持する不正状態情報を更新する(ステップS2108)。つまり、不正が検知された場合には、不正状態情報における該当するIDの不正が検知された回数を1増加させる。ステップS2107で不正が検知されなかったと判別した場合には、不正検知ECU2100は、ステップS1105に処理を移す。   The fraud detection ECU 2100 determines whether fraud has been detected as a result of the fraud detection process (step S2107), and when fraud is detected, the fraud state information held by the fraud state holding unit 2157 is updated (step S2107). S2108). That is, when fraud is detected, the number of times fraud of the corresponding ID in the fraud state information is detected is increased by one. If it is determined in step S2107 that fraud has not been detected, fraud detection ECU 2100 moves the process to step S1105.

ステップS2108で不正状態情報を更新した後に、不正検知ECU2100は、データフレーム受信中か否かを判別して(ステップS2109)、データフレーム受信中である場合に限ってバス300へとエラーフレームを送信する(ステップS2110)。   After updating the fraud state information in step S2108, fraud detection ECU 2100 determines whether or not a data frame is being received (step S2109), and transmits an error frame to bus 300 only when the data frame is being received. (Step S2110).

[2.11 不正検知ECU2100の監視レベル決定部2156による処理]
図20は、監視レベル決定部2156における監視レベルの決定に係る処理を示すフローチャートである。
[2.11 Processing by Monitoring Level Determination Unit 2156 of Fraud Detection ECU 2100]
FIG. 20 is a flowchart showing processing relating to determination of the monitoring level in the monitoring level determination unit 2156.

監視レベル決定部2156は、不正検知処理部2154から不正状態情報の更新を通知されたか或いはフレーム処理部2152から車両状態情報の更新を通知されたかを判断し、通知を待ってこの判断を繰り返す(ステップS3001)。   The monitoring level determination unit 2156 determines whether the fraud detection processing unit 2154 is notified of the update of the fraud state information or the frame processing unit 2152 is notified of the update of the vehicle state information, and waits for the notification to repeat this determination ( Step S3001).

不正状態情報又は車両状態情報の更新の通知がなされた場合には、監視レベル決定部2156は、不正状態情報及び車両状態情報に基づいて、データフレームのID毎に対応して監視レベルを決定する(ステップS3002)。   When notification of updating the unauthorized state information or the vehicle state information is made, the monitoring level determination unit 2156 determines the monitoring level corresponding to each ID of the data frame based on the unauthorized state information and the vehicle state information. (Step S3002).

続いて、監視レベル決定部2156は、決定した監視レベルが、以前の監視レベルから変化しているか(更新されたか)を、監視レベル保持部2159を参照することにより確認する(ステップS3003)。即ち、監視レベル決定部2156は、決定した監視レベルと、監視レベル保持部2159が保持している監視レベル情報(図16参照)が示す、以前の監視レベルとを比較することで、不一致であれば、以前の監視レベルから変化していると判別する。この比較で一致していれば、監視レベルは変化していないので監視レベル決定部2156は、監視レベル情報の更新を行わずに処理を終える。   Subsequently, the monitoring level determination unit 2156 checks whether or not the determined monitoring level has changed (updated) from the previous monitoring level by referring to the monitoring level holding unit 2159 (step S3003). That is, the monitoring level determination unit 2156 compares the determined monitoring level with the previous monitoring level indicated by the monitoring level information (see FIG. 16) held by the monitoring level holding unit 2159. For example, it is determined that there is a change from the previous monitoring level. If they match in this comparison, the monitoring level has not changed, and the monitoring level determination unit 2156 ends the process without updating the monitoring level information.

ステップS3003において、決定した監視レベルが以前の監視レベルから変化していると判別した場合には、監視レベル決定部2156は、監視レベル保持部2159が保持している監視レベル情報を、ID毎に決定した監視レベルを示すように更新する(ステップS3004)。   If it is determined in step S3003 that the determined monitoring level has changed from the previous monitoring level, the monitoring level determination unit 2156 displays the monitoring level information held by the monitoring level holding unit 2159 for each ID. Update to indicate the determined monitoring level (step S3004).

ステップS3004で監視レベル情報を更新した後に、監視レベル決定部2156は、コントローラ通信部151を介して更新要求を通知する(ステップS3005)。この更新要求の通知により、監視レベル決定部2156は、コントローラ部2140の不正検知処理タイミング保持部144が保持している対応情報における不正検知処理タイミングを、監視レベルに応じて不正検知処理タイミング特定用情報(図12参照)に基づいて書き換える。   After updating the monitoring level information in step S3004, the monitoring level determination unit 2156 notifies an update request via the controller communication unit 151 (step S3005). In response to the notification of the update request, the monitoring level determination unit 2156 determines the fraud detection processing timing in the correspondence information held by the fraud detection processing timing holding unit 144 of the controller unit 2140 according to the monitoring level. Rewriting is performed based on the information (see FIG. 12).

[2.12 実施の形態2の効果]
実施の形態2に係る車載ネットワークシステム11では、不正検知ECU2100が、不正検知処理タイミング保持部144に保持された対応情報に基づいて、受信したデータフレームのIDに応じた不正検知処理タイミングを決定し、その決定した不正検知処理タイミングで不正検知処理を行う。データフレームのIDに対応した適切なタイミングで不正検知処理を行うため、不正なフレームの効率的な検知が実現され得る。更に、車載ネットワークシステム11では、車載ネットワークシステム11を搭載する車両の状態と不正検知処理の結果に係る不正状態とに応じて、具体的には車両の状態及び不正状態から決定される監視レベルに応じて、不正検知処理タイミングを変化させ得る。これにより、車両の状態及び不正状態に応じた適切なタイミングで不正検知処理を実行することが可能となり、消費電力の低減を図ることが可能となる。
[2.12 Effects of the second embodiment]
In the in-vehicle network system 11 according to Embodiment 2, the fraud detection ECU 2100 determines the fraud detection processing timing according to the ID of the received data frame based on the correspondence information held in the fraud detection processing timing holding unit 144. Then, the fraud detection process is performed at the determined fraud detection process timing. Since the fraud detection process is performed at an appropriate timing corresponding to the ID of the data frame, efficient detection of the fraud frame can be realized. Furthermore, in the in-vehicle network system 11, the monitoring level determined from the state of the vehicle and the unauthorized state is specifically determined according to the state of the vehicle on which the in-vehicle network system 11 is mounted and the unauthorized state related to the result of the unauthorized detection process. Accordingly, the fraud detection processing timing can be changed. As a result, the fraud detection process can be executed at an appropriate timing according to the state of the vehicle and the unauthorized state, and the power consumption can be reduced.

(他の実施の形態)
以上のように、本開示に係る技術の例示として実施の形態1、2を説明した。しかしながら、本開示に係る技術は、これに限定されず、適宜、変更、置き換え、付加、省略等を行った実施の形態にも適用可能である。例えば、以下のような変形例も本開示の一実施態様に含まれる。
(Other embodiments)
As described above, Embodiments 1 and 2 have been described as examples of the technology according to the present disclosure. However, the technology according to the present disclosure is not limited to this, and can also be applied to embodiments in which changes, replacements, additions, omissions, and the like are appropriately performed. For example, the following modifications are also included in one embodiment of the present disclosure.

(1)上述した不正検知処理要求部142は、不正検知処理タイミングを対応情報に基づいて決定しているが、対応情報の内容、形式等は任意に変更可能であり、ID毎に、不正検知処理タイミングを別々に定めることができれば良い。   (1) The fraud detection processing request unit 142 described above determines the fraud detection processing timing based on the correspondence information, but the contents, format, etc. of the correspondence information can be arbitrarily changed, and fraud detection is performed for each ID. It is sufficient if the processing timing can be determined separately.

(2)上記実施の形態では、CANプロトコルにおけるデータフレームを標準IDフォーマットで記述しているが、拡張IDフォーマットであっても良い。拡張IDフォーマットの場合には、標準IDフォーマットにおけるID位置のベースIDと、拡張IDとを合わせて29ビットで、データフレームのIDを表す。   (2) Although the data frame in the CAN protocol is described in the standard ID format in the above embodiment, the extended ID format may be used. In the case of the extended ID format, the base ID of the ID position in the standard ID format and the extended ID are combined to represent the ID of the data frame with 29 bits.

(3)上記実施の形態では、不正検知処理タイミングが、ID受信時とDLC受信時とデータ受信時とデータフレーム受信完了時とのいずれかである例を示したが、これら以外のタイミングで不正検知処理を行っても良い。例えば、不正検知ルール(図6参照)が各IDについてのデータのルールとしてデータフィールドの先頭から所定数バイト(例えば最上位1バイト等)の値を規定する場合において、不正検知処理タイミングとしては、データ受信時ではなく(つまりDLCが示すサイズのデータフィールドを受信した時)ではなく、データフィールドの先頭から所定数バイト(例えば1バイト)を受信した時としても良い。   (3) In the above embodiment, an example is shown in which the fraud detection processing timing is any one of ID reception, DLC reception, data reception, and data frame reception completion. Detection processing may be performed. For example, when the fraud detection rule (see FIG. 6) defines a value of a predetermined number of bytes (for example, the most significant 1 byte) from the beginning of the data field as the data rule for each ID, It may be not when data is received (that is, when a data field having a size indicated by DLC is received) but when a predetermined number of bytes (for example, 1 byte) are received from the head of the data field.

(4)上記実施の形態では、不正検知ECU100、2100がデータフレームの受信中に、データフレームについての不正を検知した場合にエラーフレームを送信することとしたが、必ずしもエラーフレームの送信を行わなくても良く、エラーフレームの送信以外の方法(例えばバス300以外の通信路により他のECUにエラーを通知すること等)で、ECUによる不正なデータフレームの実行を阻止しても良い。また、エラーフレームを送信せずに、データフレームにより不正を検知したことを他のECUに通知しても良いし、上述したようにログ情報の記録、外部サーバへの情報送信等を行っても良い。   (4) In the above embodiment, the fraud detection ECU 100, 2100 transmits an error frame when it detects fraud on the data frame while receiving the data frame. However, the error frame is not necessarily transmitted. Alternatively, the execution of an illegal data frame by the ECU may be prevented by a method other than transmission of an error frame (for example, notification of an error to another ECU through a communication path other than the bus 300). In addition, it is possible to notify other ECUs that fraud has been detected using a data frame without transmitting an error frame, or recording log information, transmitting information to an external server, etc. as described above. good.

(5)上述した不正検知処理部154、2154が不正検知処理として1つのデータフレームについて複数の検査を行う場合においては、そのうちの1つの検査で不正なフレームであると判別できた場合(不正が検知された場合)に、残りの検査を省略しても良い。   (5) When the above-described fraud detection processing units 154 and 2154 perform a plurality of inspections for one data frame as the fraud detection processing, if one of the inspections can determine that the frame is an illegal frame ( If detected, the remaining inspection may be omitted.

(6)上記実施の形態では、車両状態情報が示す車両の状態は、例えば、停車中、充電中、走行中及び高速走行中の4つの状態のうちいずれかであることとしたが、この他の状態を示すようにしても良い。車両に搭載されたセンサ、機器等で識別できる各種状態を、車両状態情報における車両の状態として用い得る。例えば、イグニッションキーがイグニッションキーシリンダに差し込まれた状態、ギアポジション(例えばパーキング、ニュートラル、1速、2速等)の状態、バス300等のネットワーク負荷の状態等を、車両状態情報における車両の状態として用い得る。なお、ネットワーク負荷の状態については、車載ネットワークシステム11を構成する各バスそれぞれについてそのバスに接続されているECUの機能分類に応じて、特定の機能分類のECUが接続されたバスの負荷の状態に注目してその負荷の状態を車両状態情報における車両の状態として用いても良い。ECUの機能分類としては例えば、エンジン、モータ、燃料、電池、トランスミッション等の制御といった車両の走行に関連する機能である「駆動系」、或いは、ドアロック、エアコン、ライト、ウィンカー等といった車両の装備の制御に関連する機能である「ボディ系」等が挙げられる。また、対応情報においては、ID毎に不正検知処理タイミングを定める他に、複数IDからなるIDグループ(例えばそのIDのデータフレームを送信するECUの機能分類により区分したグループ等)毎に不正検知処理タイミングを定めても良い。   (6) In the above embodiment, the vehicle state indicated by the vehicle state information is, for example, any one of the four states of stopping, charging, traveling, and traveling at high speed. You may make it show the state of. Various states that can be identified by sensors, devices, and the like mounted on the vehicle can be used as the vehicle state in the vehicle state information. For example, the state of the vehicle in the vehicle state information such as the state where the ignition key is inserted into the ignition key cylinder, the state of the gear position (for example, parking, neutral, first speed, second speed, etc.), the state of the network load of the bus 300, etc. Can be used as As for the state of the network load, the state of the load of the bus to which the ECU of a specific function classification is connected according to the function classification of the ECU connected to the bus for each bus constituting the in-vehicle network system 11 The state of the load may be used as the vehicle state in the vehicle state information. As the functional classification of the ECU, for example, a “drive system” that is a function related to vehicle running such as control of an engine, a motor, fuel, a battery, a transmission, etc., or a vehicle equipment such as a door lock, an air conditioner, a light, a winker, etc. “Body system” which is a function related to the control of the above. In correspondence information, in addition to determining fraud detection processing timing for each ID, fraud detection processing for each ID group composed of a plurality of IDs (for example, a group classified by the functional classification of the ECU that transmits the data frame of the ID). Timing may be determined.

(7)上記実施の形態では、不正検知ECU2100は、他のECUから車両の状態を示すデータフレームを、バスを介して取得したが、車両の状態を別の手段によって取得しても良い。例えば、車両の状態を通知するための専用の通信路(例えば専用の信号線等)によって、車両の状態を取得しても良い。   (7) In the above embodiment, fraud detection ECU 2100 has acquired the data frame indicating the state of the vehicle from another ECU via the bus. However, the state of the vehicle may be acquired by another means. For example, the vehicle state may be acquired by a dedicated communication path (for example, a dedicated signal line) for notifying the vehicle state.

(8)上記実施の形態では、各IDのデータフレームについての監視レベルの決定の基礎となる不正状態の例として、不正検知処理により不正が検知された回数(不正発生回数)を示したが、不正状態として不正発生回数以外を用いても良い。例えば、不正検知処理の結果に基づいて計算されるIDの信頼度等を用いても良い。   (8) In the above embodiment, the number of times fraud was detected by fraud detection processing (number of fraud occurrences) was shown as an example of the fraud state that is the basis for determining the monitoring level for each ID data frame. An unauthorized state other than the number of fraud occurrences may be used. For example, the reliability of the ID calculated based on the result of the fraud detection process may be used.

(9)上記実施の形態では、監視レベルが、車両の状態と不正状態とに応じて決定されるとしたが、監視レベルは、この2つのうち車両の状態のみに応じて決定されることとしても良い。また、不正状態のみに応じて決定されることとしても良い。また、監視レベルの決定に必ずしもテーブル(図13参照)を用いる必要はなく、例えば、車両の状態と不正状態とを入力とする演算(関数等)により決定しても良い。   (9) In the above embodiment, the monitoring level is determined according to the state of the vehicle and the unauthorized state. However, the monitoring level is determined only according to the state of the vehicle. Also good. Moreover, it is good also as determining only according to an unauthorized state. Further, it is not always necessary to use a table (see FIG. 13) for determining the monitoring level. For example, the monitoring level may be determined by calculation (function or the like) that receives the vehicle state and the illegal state.

(10)上記実施の形態では、マイコン部150、2150で不正検知処理を行ったが、コントローラ部140、2140において不正検知処理を行っても良い。また、上記実施形態では、マイコン部2150で監視レベルを決定していたが、コントローラ部2140において監視レベルを決定しても良い。また、上記実施の形態では、マイコン部2150が不正状態保持部2157と車状態保持部2158とを有しているが、コントローラ部140、2140がこれらの両方又は一方を有しても良い。   (10) In the above embodiment, the fraud detection process is performed by the microcomputer units 150 and 2150, but the fraud detection process may be performed by the controller units 140 and 2140. In the above embodiment, the monitoring level is determined by the microcomputer unit 2150. However, the monitoring level may be determined by the controller unit 2140. Moreover, in the said embodiment, although the microcomputer part 2150 has the improper state holding | maintenance part 2157 and the vehicle state holding | maintenance part 2158, the controller parts 140 and 2140 may have both or one of these.

(11)上記実施の形態では、不正状態保持部2157に、最終更新時刻を保持し、現在時刻との差分によって不正発生回数のリセットの判断を行っていたが、別の手段によってリセットを行っても良い。例えば、最終更新時にタイマをセットして、タイマによって、リセットされるようにしても良い。また、不正発生回数のリセットを行わなくても良く、不正状態保持部2157は、最終更新時刻を記録しなくても良い。   (11) In the above embodiment, the unauthorized state retaining unit 2157 retains the last update time and determines whether to reset the number of fraud occurrences based on the difference from the current time. Also good. For example, a timer may be set at the time of the last update and reset by the timer. Further, it is not necessary to reset the number of fraud occurrences, and the unauthorized state holding unit 2157 may not record the last update time.

(12)上記実施の形態では、不正検知処理要求部142が、不正検知処理要求信号を割り込み要求信号として、不正検知処理部154、2154に通知(具体的にはマイコン部150、2150のプロセッサに入力)する例を示したが、不正検知処理要求信号の通知を他の方法(例えば不正検知処理部154、2154から定期的に不正検知処理要求を問い合わせる方法等)で行っても良い。   (12) In the above embodiment, the fraud detection processing request unit 142 notifies the fraud detection processing units 154 and 2154 of the fraud detection processing request signal as an interrupt request signal (specifically, to the processors of the microcomputer units 150 and 2150). In the example, the fraud detection processing request signal may be notified by another method (for example, a method of periodically inquiring fraud detection processing requests from the fraud detection processing units 154 and 2154).

(13)上記実施の形態では、不正検知処理部154、2154は、不正検知処理に必要な情報の取得を、コントローラ通信部151を介して行うこととしたが、コントローラ部140、2140と直接通信を行い、不正検知処理に必要な情報を取得しても良い。この取得を、例えばコントローラ通信部151がコントローラ部140、2140と信号の授受を行うための通信路とは別の通信路(専用の信号線等)を設けることにより実現しても良い。   (13) In the above embodiment, the fraud detection processing units 154 and 2154 perform acquisition of information necessary for the fraud detection processing via the controller communication unit 151, but directly communicate with the controller units 140 and 2140. To obtain information necessary for fraud detection processing. This acquisition may be realized, for example, by providing a communication path (a dedicated signal line or the like) different from the communication path for the controller communication unit 151 to exchange signals with the controller units 140 and 2140.

(14)上記実施の形態では、不正検知処理部2154は、不正状態保持部2157の内容(不正状態情報)を更新したことを監視レベル決定部2156に通知していたが、この更新の通知を行わなくても良い。同様に、フレーム処理部2152は、車両状態情報の更新の通知を行わなくても良い。また、上記実施の形態では、監視レベル決定部2156は、車両状態情報又は不正状態情報が更新されたことを通知されたときに監視レベルを決定していたが、監視レベルの決定はこのときに限定されるものではない。例えば、監視レベル決定部2156は、監視レベルを定期的に決定しても良い。   (14) In the above embodiment, the fraud detection processing unit 2154 has notified the monitoring level determination unit 2156 that the content (unauthorized state information) of the unauthorized state holding unit 2157 has been updated. It does not have to be done. Similarly, the frame processing unit 2152 does not need to notify the update of the vehicle state information. In the above embodiment, the monitoring level determination unit 2156 determines the monitoring level when notified that the vehicle state information or the unauthorized state information has been updated. It is not limited. For example, the monitoring level determination unit 2156 may periodically determine the monitoring level.

(15)上記実施の形態では、監視レベル決定部2156は、不正検知処理タイミング保持部144の内容(対応情報)の更新を、コントローラ通信部151を介して行うこととしたが、コントローラ部140、2140と直接通信を行い、対応情報を更新しても良い。この更新を、例えばコントローラ通信部151がコントローラ部2140と信号の授受を行うための通信路とは別の通信路(専用の信号線等)を設けることにより実現しても良い。   (15) In the above embodiment, the monitoring level determination unit 2156 updates the contents (correspondence information) of the fraud detection processing timing holding unit 144 via the controller communication unit 151. However, the controller unit 140, The correspondence information may be updated by directly communicating with 2140. This update may be realized, for example, by providing a communication path (a dedicated signal line or the like) different from the communication path for the controller communication section 151 to exchange signals with the controller section 2140.

(16)上記実施の形態における不正検知ECU及び他のECUは、例えば、プロセッサ、メモリ等のデジタル回路、アナログ回路、通信回路等を含む装置であることとしたが、ハードディスク装置、ディスプレイ、キーボード、マウス等の他のハードウェア構成要素を含んでいても良い。また、メモリに記憶された制御プログラムがプロセッサにより実行されてソフトウェア的に機能を実現する代わりに、専用のハードウェア(デジタル回路等)によりその機能を実現することとしても良い。   (16) The fraud detection ECU and other ECUs in the above embodiment are devices including, for example, a processor, a digital circuit such as a memory, an analog circuit, a communication circuit, etc., but a hard disk device, a display, a keyboard, Other hardware components such as a mouse may be included. Further, instead of the control program stored in the memory being executed by the processor and realizing the function in software, the function may be realized by dedicated hardware (digital circuit or the like).

(17)上記実施の形態における各装置を構成する構成要素の一部又は全部は、1個のシステムLSI(Large Scale Integration:大規模集積回路)から構成されているとしても良い。システムLSIは、複数の構成部を1個のチップ上に集積して製造された超多機能LSIであり、具体的には、マイクロプロセッサ、ROM、RAM等を含んで構成されるコンピュータシステムである。前記RAMには、コンピュータプログラムが記録されている。前記マイクロプロセッサが、前記コンピュータプログラムに従って動作することにより、システムLSIは、その機能を達成する。また、上記各装置を構成する構成要素の各部は、個別に1チップ化されていても良いし、一部又は全部を含むように1チップ化されても良い。また、ここでは、システムLSIとしたが、集積度の違いにより、IC、LSI、スーパーLSI、ウルトラLSIと呼称されることもある。また、集積回路化の手法はLSIに限るものではなく、専用回路又は汎用プロセッサで実現しても良い。LSI製造後に、プログラムすることが可能なFPGA(Field Programmable Gate Array)や、LSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用しても良い。さらには、半導体技術の進歩又は派生する別技術によりLSIに置き換わる集積回路化の技術が登場すれば、当然、その技術を用いて機能ブロックの集積化を行っても良い。バイオ技術の適用等が可能性としてあり得る。   (17) A part or all of the constituent elements constituting each device in the above embodiment may be constituted by one system LSI (Large Scale Integration). The system LSI is an ultra-multifunctional LSI manufactured by integrating a plurality of components on a single chip. Specifically, the system LSI is a computer system including a microprocessor, a ROM, a RAM, and the like. . A computer program is recorded in the RAM. The system LSI achieves its functions by the microprocessor operating according to the computer program. In addition, each part of the constituent elements constituting each of the above devices may be individually made into one chip, or may be made into one chip so as to include a part or the whole. Although the system LSI is used here, it may be called IC, LSI, super LSI, or ultra LSI depending on the degree of integration. Further, the method of circuit integration is not limited to LSI's, and implementation using dedicated circuitry or general purpose processors is also possible. An FPGA (Field Programmable Gate Array) that can be programmed after manufacturing the LSI or a reconfigurable processor that can reconfigure the connection and setting of circuit cells inside the LSI may be used. Further, if integrated circuit technology comes out to replace LSI's as a result of the advancement of semiconductor technology or a derivative other technology, it is naturally also possible to carry out function block integration using this technology. Biotechnology can be applied as a possibility.

(18)上記各装置を構成する構成要素の一部又は全部は、各装置に脱着可能なICカード又は単体のモジュールから構成されているとしても良い。前記ICカード又は前記モジュールは、マイクロプロセッサ、ROM、RAM等から構成されるコンピュータシステムである。前記ICカード又は前記モジュールは、上記の超多機能LSIを含むとしても良い。マイクロプロセッサが、コンピュータプログラムに従って動作することにより、前記ICカード又は前記モジュールは、その機能を達成する。このICカード又はこのモジュールは、耐タンパ性を有するとしても良い。   (18) A part or all of the components constituting each of the above devices may be configured as an IC card or a single module that can be attached to and detached from each device. The IC card or the module is a computer system including a microprocessor, a ROM, a RAM, and the like. The IC card or the module may include the super multifunctional LSI described above. The IC card or the module achieves its function by the microprocessor operating according to the computer program. This IC card or this module may have tamper resistance.

(19)本開示の一態様としては、例えば図8、図9等に示す不正検知方法であるとしても良い。また、これらの方法をコンピュータにより実現するコンピュータプログラムであるとしても良いし、前記コンピュータプログラムからなるデジタル信号であるとしても良い。また、本開示の一態様としては、前記コンピュータプログラム又は前記デジタル信号をコンピュータで読み取り可能な記録媒体、例えば、フレキシブルディスク、ハードディスク、CD−ROM、MO、DVD、DVD−ROM、DVD−RAM、BD(Blu-ray(登録商標) Disc)、半導体メモリ等に記録したものとしても良い。また、これらの記録媒体に記録されている前記デジタル信号であるとしても良い。また、本開示の一態様としては、前記コンピュータプログラム又は前記デジタル信号を、電気通信回線、無線又は有線通信回線、インターネットを代表とするネットワーク、データ放送等を経由して伝送するものとしても良い。また、本開示の一態様としては、マイクロプロセッサとメモリを備えたコンピュータシステムであって、前記メモリは、上記コンピュータプログラムを記録しており、前記マイクロプロセッサは、前記コンピュータプログラムに従って動作するとしても良い。また、前記プログラム若しくは前記デジタル信号を前記記録媒体に記録して移送することにより、又は、前記プログラム若しくは前記デジタル信号を前記ネットワーク等を経由して移送することにより、独立した他のコンピュータシステムにより実施するとしても良い。   (19) As one aspect of the present disclosure, for example, the fraud detection method illustrated in FIGS. 8 and 9 may be used. Further, the present invention may be a computer program that realizes these methods by a computer, or may be a digital signal composed of the computer program. Further, as one aspect of the present disclosure, the computer program or the digital signal can be read by a computer, such as a flexible disk, a hard disk, a CD-ROM, an MO, a DVD, a DVD-ROM, a DVD-RAM, and a BD. (Blu-ray (registered trademark) Disc), recorded on a semiconductor memory, or the like. Further, the digital signal may be recorded on these recording media. As one aspect of the present disclosure, the computer program or the digital signal may be transmitted via an electric communication line, a wireless or wired communication line, a network typified by the Internet, data broadcasting, or the like. Further, an aspect of the present disclosure may be a computer system including a microprocessor and a memory, the memory recording the computer program, and the microprocessor operating according to the computer program. . In addition, the program or the digital signal is recorded on the recording medium and transferred, or the program or the digital signal is transferred via the network or the like and executed by another independent computer system. You may do that.

(20)上記実施の形態及び上記変形例で示した各構成要素及び機能を任意に組み合わせることで実現される形態も本開示の範囲に含まれる。   (20) Embodiments realized by arbitrarily combining the constituent elements and functions shown in the embodiment and the modification are also included in the scope of the present disclosure.

本開示は、CANに従った車載ネットワークにおいて、バス上への不正なフレームの送信の検知を効率的に行うために利用可能である。   The present disclosure can be used to efficiently detect transmission of an illegal frame on a bus in an in-vehicle network according to CAN.

10,11 車載ネットワークシステム
100,2100 不正検知電子制御ユニット(不正検知ECU)
130 トランシーバ部
140,240,2140 コントローラ部
141,241,2141 プロトコル処理部
142 不正検知処理要求部
143 不正フレーム判断部
144 不正検知処理タイミング保持部
150,250,2150 マイコン部
151 コントローラ通信部
152,252,2152 フレーム処理部
153,253 フレーム生成部
154,2154 不正検知処理部
155 不正検知ルール保持部
200a,200b,2200c 電子制御ユニット(ECU)
210 センサ
220 アクチュエータ
254 外部機器入出力部
300 バス
2156 監視レベル決定部
2157 不正状態保持部
2158 車状態保持部
2159 監視レベル保持部
2230 バッテリ
2240 車速センサ
10, 11 In-vehicle network system 100, 2100 Fraud detection electronic control unit (fraud detection ECU)
DESCRIPTION OF SYMBOLS 130 Transceiver part 140,240,2140 Controller part 141,241,2141 Protocol processing part 142 Fraud detection process request part 143 Fraud frame determination part 144 Fraud detection process timing holding part 150,250,2150 Microcomputer part 151 Controller communication part 152,252 , 2152 Frame processing unit 153, 253 Frame generation unit 154, 2154 Fraud detection processing unit 155 Fraud detection rule holding unit 200a, 200b, 2200c Electronic control unit (ECU)
210 Sensor 220 Actuator 254 External Device Input / Output Unit 300 Bus 2156 Monitoring Level Determination Unit 2157 Unauthorized State Holding Unit 2158 Car State Holding Unit 2159 Monitoring Level Holding Unit 2230 Battery 2240 Vehicle Speed Sensor

Claims (14)

CAN(Controller Area Network)プロトコルに従って通信を行う複数の電子制御ユニットが通信に用いるバスに接続されて不正検知処理を行う不正検知電子制御ユニットであって、
前記バスを搭載する車両の状態に基づいて、前記バスからのデータフレームの受信中に、不正検知処理タイミングを決定する不正検知処理要求部と、
前記不正検知処理要求部により決定された前記不正検知処理タイミングで前記データフレームについて前記不正検知処理を行う不正検知処理部とを備える
不正検知電子制御ユニット。
A fraud detection electronic control unit that performs fraud detection processing by connecting a plurality of electronic control units that perform communication in accordance with a CAN (Controller Area Network) protocol to a bus used for communication,
A fraud detection processing request unit that determines fraud detection processing timing during reception of a data frame from the bus based on a state of a vehicle equipped with the bus ;
A fraud detection electronic control unit comprising: a fraud detection processing unit that performs the fraud detection process on the data frame at the fraud detection processing timing determined by the fraud detection processing request unit.
前記不正検知処理要求部により決定された前記不正検知処理タイミングは、前記データフレームのID受信以後である
請求項1記載の不正検知電子制御ユニット。
Fraud detection electronic control unit of the said fraud detection process timing determined by the fraud detecting process requesting unit, according to claim 1, wherein the ID received after the previous Kide Tafuremu.
前記不正検知処理要求部により決定された前記不正検知処理タイミングは、前記データフレームのDLC受信以後である
請求項1記載の不正検知電子制御ユニット。
The fraud detection process request the fraud detection process timing determined by the unit, fraud detection electronic control unit according to claim 1, wherein the DLC receiver after prior Kide Tafuremu.
前記不正検知処理要求部により決定された前記不正検知処理タイミングは、前記データフレームのデータフィールド受信以後である
請求項1記載の不正検知電子制御ユニット。
Fraud detection electronic control unit of the said fraud detection process timing determined by the fraud detecting process requesting unit, according to claim 1, wherein the data field received after the previous Kide Tafuremu.
前記不正検知処理要求部により決定された前記不正検知処理タイミングは、前記データフレームのデータフィールドの先頭から所定数バイト受信以後である
請求項1記載の不正検知電子制御ユニット。
The fraud the fraud detection process timing determined by the detection processing request unit, fraud detection electronic control unit according to claim 1, wherein from the beginning of the data field of the previous Kide Tafuremu a predetermined number of bytes received after.
前記不正検知処理要求部により決定された前記不正検知処理タイミングは、前記データフレームの受信完了以後である
請求項1記載の不正検知電子制御ユニット。
Fraud detection electronic control unit of the said fraud detection process timing determined by the fraud detecting process requesting unit, according to claim 1, which is a reception completion after prior Kide Tafuremu.
前記不正検知電子制御ユニットは、
プログラムを実行するマイクロプロセッサを含む半導体集積回路であるマイコン部と、
前記マイコン部に接続され、前記不正検知処理要求部としての機能を実現する半導体集積回路であるコントローラ部とを備え、
前記マイクロプロセッサは、前記プログラムの実行により割り込み要求信号に対応して前記不正検知処理を行うことで、前記不正検知処理部としての機能を実現し、
前記不正検知処理要求部は、決定した前記不正検知処理タイミングで前記マイクロプロセッサへと前記割り込み要求信号を送出する
請求項1記載の不正検知電子制御ユニット。
The fraud detection electronic control unit includes:
A microcomputer unit which is a semiconductor integrated circuit including a microprocessor for executing a program;
A controller unit that is connected to the microcomputer unit and is a semiconductor integrated circuit that realizes a function as the fraud detection processing request unit;
The microprocessor performs the fraud detection process in response to an interrupt request signal by executing the program, thereby realizing a function as the fraud detection processing unit,
The fraud detection electronic control unit according to claim 1, wherein the fraud detection processing request unit sends the interrupt request signal to the microprocessor at the determined fraud detection processing timing.
前記不正検知処理要求部により決定された前記不正検知処理タイミングは、前記データフレームのIDが第1値であれば前記データフレームの受信中であり、前記データフレームのIDが前記第1値と異なる第2値であれば前記データフレームの受信完了以後であり
前記不正検知電子制御ユニットは、前記不正検知処理部が前記データフレームの受信中に前記不正検知処理タイミングを決定した前記不正検知処理において不正を検知した場合に、前記バスにエラーフレームを送出する
請求項2記載の不正検知電子制御ユニット。
The fraud detection processing timing determined by the fraud detection processing request unit is receiving the data frame if the ID of the data frame is a first value, and the ID of the data frame is different from the first value. a reception completion after the data frame if the second value,
The fraud detection electronic control unit sends an error frame to the bus when the fraud detection processing unit detects fraud in the fraud detection processing in which the fraud detection processing timing is determined during reception of the data frame. Item 3. The fraud detection electronic control unit according to item 2.
前記不正検知処理部は、前記不正検知処理において不正を検知した場合に、前記複数の電子制御ユニットのうちの少なくとも1つの電子制御ユニットにエラーを通知するThe fraud detection processing unit notifies an error to at least one electronic control unit of the plurality of electronic control units when fraud is detected in the fraud detection processing.
請求項1記載の不正検知電子制御ユニット。  The fraud detection electronic control unit according to claim 1.
前記不正検知処理部は、前記不正検知処理において不正を検知した場合に、不正なデータフレームに関する情報を記録する  The fraud detection processing unit records information on an illegal data frame when fraud is detected in the fraud detection processing.
請求項1記載の不正検知電子制御ユニット。  The fraud detection electronic control unit according to claim 1.
前記不正検知処理部は、前記不正検知処理において不正を検知した場合に、不正を報知する  The fraud detection processing unit notifies fraud when a fraud is detected in the fraud detection processing.
請求項1記載の不正検知電子制御ユニット。  The fraud detection electronic control unit according to claim 1.
前記不正検知処理部は、前記不正検知処理において不正を検知した場合に、不正を外部サーバへ送信する  The fraud detection processing unit transmits fraud to an external server when fraud is detected in the fraud detection processing.
請求項1記載の不正検知電子制御ユニット。  The fraud detection electronic control unit according to claim 1.
CAN(Controller Area Network)プロトコルに従ってバスを介して通信を行う複数の電子制御ユニットを備える車載ネットワークシステムであって、
前記バスを搭載する車両の状態に基づいて、前記バスからのデータフレームの受信中に、不正検知処理タイミングを決定する不正検知処理要求部と、
前記不正検知処理要求部により決定された前記不正検知処理タイミングで前記データフレームについて不正検知処理を行う不正検知処理部とを備える
車載ネットワークシステム。
An in-vehicle network system including a plurality of electronic control units that communicate via a bus according to a CAN (Controller Area Network) protocol,
A fraud detection processing request unit that determines fraud detection processing timing during reception of a data frame from the bus based on a state of a vehicle equipped with the bus ;
An in-vehicle network system comprising: a fraud detection processing unit that performs fraud detection processing on the data frame at the fraud detection processing timing determined by the fraud detection processing request unit.
CAN(Controller Area Network)プロトコルに従ってバスを介して通信を行う複数の電子制御ユニットを備える車載ネットワークシステムにおいて用いられる不正検知方法であって、
前記バスを搭載する車両の状態に基づいて、前記バスからのデータフレームの受信中に、不正検知処理タイミングを決定し、
決定した前記不正検知処理タイミングで前記データフレームについて不正検知処理を行う
不正検知方法。
A fraud detection method used in an in-vehicle network system including a plurality of electronic control units that perform communication via a bus according to a CAN (Controller Area Network) protocol,
Based on the state of the vehicle on which the bus is mounted , the fraud detection processing timing is determined during reception of the data frame from the bus,
A fraud detection method for performing fraud detection processing on the data frame at the determined fraud detection processing timing.
JP2016212353A 2014-12-01 2016-10-28 Fraud detection electronic control unit, in-vehicle network system and fraud detection method Active JP6203365B2 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201462085744P 2014-12-01 2014-12-01
US62/085,744 2014-12-01
JP2015196430 2015-10-02
JP2015196430 2015-10-02

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016562287A Division JP6077728B2 (en) 2014-12-01 2015-11-13 Fraud detection electronic control unit, in-vehicle network system and fraud detection method

Publications (2)

Publication Number Publication Date
JP2017069965A JP2017069965A (en) 2017-04-06
JP6203365B2 true JP6203365B2 (en) 2017-09-27

Family

ID=56091270

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2016562287A Active JP6077728B2 (en) 2014-12-01 2015-11-13 Fraud detection electronic control unit, in-vehicle network system and fraud detection method
JP2016212354A Active JP6626811B2 (en) 2014-12-01 2016-10-28 Fraud detection electronic control unit, in-vehicle network system and fraud detection method
JP2016212353A Active JP6203365B2 (en) 2014-12-01 2016-10-28 Fraud detection electronic control unit, in-vehicle network system and fraud detection method

Family Applications Before (2)

Application Number Title Priority Date Filing Date
JP2016562287A Active JP6077728B2 (en) 2014-12-01 2015-11-13 Fraud detection electronic control unit, in-vehicle network system and fraud detection method
JP2016212354A Active JP6626811B2 (en) 2014-12-01 2016-10-28 Fraud detection electronic control unit, in-vehicle network system and fraud detection method

Country Status (5)

Country Link
US (3) US10320826B2 (en)
EP (3) EP3229410B1 (en)
JP (3) JP6077728B2 (en)
CN (2) CN105981336B (en)
WO (1) WO2016088304A1 (en)

Families Citing this family (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6836340B2 (en) * 2015-09-29 2021-02-24 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Fraud detection electronic control unit, in-vehicle network system and communication method
EP3396900B1 (en) * 2015-12-25 2019-10-30 Panasonic Intellectual Property Management Co., Ltd. Fraudulent message detection
JP6280662B2 (en) * 2016-07-05 2018-02-14 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Unauthorized control inhibition method, unauthorized control inhibition device and in-vehicle network system
JP6846991B2 (en) * 2016-07-05 2021-03-24 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Anomaly detection electronic control unit, in-vehicle network system and anomaly detection method
JP6631426B2 (en) * 2016-07-08 2020-01-15 マツダ株式会社 In-vehicle communication system
JP6783578B2 (en) * 2016-08-04 2020-11-11 株式会社Subaru Vehicle control system
JP6485429B2 (en) * 2016-11-04 2019-03-20 トヨタ自動車株式会社 In-vehicle network system
US10382466B2 (en) 2017-03-03 2019-08-13 Hitachi, Ltd. Cooperative cloud-edge vehicle anomaly detection
JP6956624B2 (en) 2017-03-13 2021-11-02 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Information processing methods, information processing systems, and programs
JP2018157288A (en) * 2017-03-16 2018-10-04 本田技研工業株式会社 Communication system
DE112018002549T5 (en) * 2017-05-18 2020-04-09 Bosch Corporation Electronic control unit
JP6931094B2 (en) * 2017-06-23 2021-09-01 ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツングRobert Bosch Gmbh A method for detecting disruptions in a vehicle's communication system by checking for communication anomalies
WO2019021403A1 (en) * 2017-07-26 2019-01-31 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Control network system, vehicle remote control system, and vehicle-mounted relay device
JP6828632B2 (en) * 2017-08-03 2021-02-10 住友電気工業株式会社 Detection device, detection method and detection program
US10484425B2 (en) * 2017-09-28 2019-11-19 The Mitre Corporation Controller area network frame override
US10218499B1 (en) * 2017-10-03 2019-02-26 Lear Corporation System and method for secure communications between controllers in a vehicle network
JP6863227B2 (en) * 2017-10-26 2021-04-21 トヨタ自動車株式会社 Electronic control devices, communication management methods, and programs
JP7096242B2 (en) * 2017-12-01 2022-07-05 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Electronic control device, fraud detection server, in-vehicle network system, in-vehicle network monitoring system and in-vehicle network monitoring method
JP7010087B2 (en) 2018-03-16 2022-01-26 トヨタ自動車株式会社 Program update management device, program update management method, and program
CN111052681B (en) * 2018-05-08 2022-06-10 松下电器(美国)知识产权公司 Abnormality detection electronic control unit, vehicle-mounted network system, and abnormality detection method
US11117484B2 (en) * 2018-05-09 2021-09-14 Byton Limited Safe and secure charging of a vehicle
WO2019225259A1 (en) * 2018-05-23 2019-11-28 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Communication control device, unauthorized access-detecting electronic control unit, mobility network system, communication control method, unauthorized access detection method and program
JP6555559B1 (en) * 2018-06-15 2019-08-07 パナソニックIpマネジメント株式会社 Electronic control device, monitoring method, program, and gateway device
WO2020021713A1 (en) * 2018-07-27 2020-01-30 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Fraud detection method and electronic control device for detecting frauds
WO2020021715A1 (en) * 2018-07-27 2020-01-30 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Fraud countermeasure method, fraud countermeasure device and communication system
US20200072889A1 (en) * 2018-09-05 2020-03-05 Nxp B.V. Physical layer device and method for performing physical layer operations in a communications network
US10700810B2 (en) 2018-09-05 2020-06-30 Nxp B.V. Physical layer device and method for performing physical layer operations in a communications network
EP3629525B1 (en) * 2018-09-27 2022-08-17 Melexis Technologies SA Method and system for communicating over a bus
US11171807B2 (en) * 2018-10-30 2021-11-09 Hyundai Motor Company Method and apparatus for allocating priority transmission opportunities in vehicle network
WO2020090108A1 (en) * 2018-11-02 2020-05-07 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Fraudulent control prevention system and fraudulent control prevention method
JP7160178B2 (en) * 2019-03-14 2022-10-25 日本電気株式会社 In-Vehicle Security Countermeasure Device, In-Vehicle Security Countermeasure Method and Security Countermeasure System
JP7226248B2 (en) * 2019-10-31 2023-02-21 トヨタ自動車株式会社 Communication device and abnormality determination device
CN112787984B (en) * 2019-11-11 2023-11-14 厦门雅迅网络股份有限公司 Vehicle-mounted network anomaly detection method and system based on correlation analysis
JP7388303B2 (en) * 2020-07-06 2023-11-29 トヨタ自動車株式会社 Anomaly detection system
CN112193072B (en) * 2020-09-29 2022-06-21 奇瑞新能源汽车股份有限公司 Method for checking error frames of CAN (controller area network) bus of electric vehicle
CN113428167B (en) * 2021-08-25 2021-11-26 长沙德壹科技有限公司 ECU (electronic control Unit) abnormality recognition method
JP2023102213A (en) * 2022-01-11 2023-07-24 トヨタ自動車株式会社 Information processing device, vehicle, information processing method, and information processing program
CN115091471B (en) * 2022-08-26 2022-11-15 法奥意威(苏州)机器人系统有限公司 Mechanical arm safety control method and device based on EtherCAT

Family Cites Families (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3972891B2 (en) * 2003-11-06 2007-09-05 株式会社デンソー Vehicle monitoring system
CN100341283C (en) * 2005-03-24 2007-10-03 袁光辉 On vehicle network central control unit and its managing and controlling method for on-vehicle network
US20060271658A1 (en) * 2005-05-26 2006-11-30 Cisco Technology, Inc. Method and system for transmitting data over a network based on external non-network stimulus
JP4823728B2 (en) * 2006-03-20 2011-11-24 富士通株式会社 Frame relay device and frame inspection device
US9776597B2 (en) * 2006-05-16 2017-10-03 Lear Corporation Vehicle with electronic system intrusion detection
US8213321B2 (en) * 2007-02-01 2012-07-03 Deere & Company Controller area network condition monitoring and bus health on in-vehicle communications networks
JP2009253464A (en) * 2008-04-02 2009-10-29 Fujitsu Ten Ltd Gateway device and gateway method
US8291497B1 (en) * 2009-03-20 2012-10-16 Symantec Corporation Systems and methods for byte-level context diversity-based automatic malware signature generation
CN101510809B (en) * 2009-03-27 2012-04-25 华为技术有限公司 Failure detection method, system and TDM veneer
EP2339790A1 (en) * 2009-12-28 2011-06-29 Nxp B.V. Definition of wakeup bus messages for partial networking
US8499283B2 (en) * 2010-02-09 2013-07-30 Webroot Inc. Detection of scripting-language-based exploits using parse tree transformation
CN101969578B (en) * 2010-09-17 2012-10-10 青岛海信电器股份有限公司 Fault detection system and method as well as television
JP5665232B2 (en) * 2011-08-06 2015-02-04 本田技研工業株式会社 Vehicle position transmitter
JP5770602B2 (en) 2011-10-31 2015-08-26 トヨタ自動車株式会社 Message authentication method and communication system in communication system
JP2013101426A (en) * 2011-11-07 2013-05-23 Toyota Motor Corp On-vehicle communication device
JP5522160B2 (en) 2011-12-21 2014-06-18 トヨタ自動車株式会社 Vehicle network monitoring device
WO2013094072A1 (en) * 2011-12-22 2013-06-27 トヨタ自動車 株式会社 Communication system and communication method
JP5651615B2 (en) * 2012-02-16 2015-01-14 日立オートモティブシステムズ株式会社 In-vehicle network system
JP5836477B2 (en) * 2012-03-09 2015-12-24 三菱電機株式会社 Data communication apparatus, data communication system, and data communication method
JP2014099698A (en) * 2012-11-13 2014-05-29 Toyota Motor Corp Communication system, communication node, and communication method
JP5919205B2 (en) * 2013-01-28 2016-05-18 日立オートモティブシステムズ株式会社 Network device and data transmission / reception system
US9432488B2 (en) * 2013-03-15 2016-08-30 Concio Holdings LLC High speed embedded protocol for distributed control systems
US9398039B2 (en) * 2013-03-15 2016-07-19 Aruba Networks, Inc. Apparatus, system and method for suppressing erroneous reporting of attacks on a wireless network
US9692775B2 (en) * 2013-04-29 2017-06-27 Telefonaktiebolaget Lm Ericsson (Publ) Method and system to dynamically detect traffic anomalies in a network
CN103475523B (en) * 2013-09-10 2016-04-27 浙江大学 With the CAN analytical system of bus error analytical capabilities
CN103902746B (en) * 2014-03-11 2017-10-27 深圳市元征科技股份有限公司 DTC, data flow and the method for freezing frame data preservation and playback
US9843449B2 (en) * 2015-06-09 2017-12-12 Dresser, Inc. Secure device communication
US10361934B2 (en) * 2015-09-28 2019-07-23 Nxp B.V. Controller area network (CAN) device and method for controlling CAN traffic

Also Published As

Publication number Publication date
US20200099712A1 (en) 2020-03-26
JP2017069965A (en) 2017-04-06
EP3229410B1 (en) 2018-04-18
JP2017069966A (en) 2017-04-06
JPWO2016088304A1 (en) 2017-04-27
US20190260790A1 (en) 2019-08-22
CN105981336A (en) 2016-09-28
CN105981336B (en) 2020-09-01
US11695790B2 (en) 2023-07-04
EP3229410A4 (en) 2017-10-11
EP3229410A1 (en) 2017-10-11
JP6077728B2 (en) 2017-02-08
EP3657757A1 (en) 2020-05-27
JP6626811B2 (en) 2019-12-25
US10320826B2 (en) 2019-06-11
US10530801B2 (en) 2020-01-07
US20160359893A1 (en) 2016-12-08
EP3337102A1 (en) 2018-06-20
CN111934966A (en) 2020-11-13
WO2016088304A1 (en) 2016-06-09
CN111934966B (en) 2022-09-20
EP3337102B1 (en) 2020-03-25
EP3657757B1 (en) 2021-08-04

Similar Documents

Publication Publication Date Title
JP6203365B2 (en) Fraud detection electronic control unit, in-vehicle network system and fraud detection method
US11570184B2 (en) In-vehicle network system, fraud-detection electronic control unit, and fraud-detection method
US10902109B2 (en) Misuse detection method, misuse detection electronic control unit, and misuse detection system
US10277598B2 (en) Method for detecting and dealing with unauthorized frames in vehicle network system
US11811798B2 (en) Method for sensing fraudulent frames transmitted to in-vehicle network
JP6173541B2 (en) Security device, attack detection method and program
WO2016038816A1 (en) Vehicle communication device, in-vehicle network system, and vehicle communication method
WO2017061079A1 (en) Security device, attack detection method, and program
JP6874102B2 (en) Fraud detection electronic control unit, in-vehicle network system and fraud detection method
JP2020102771A (en) Electronic control device, control method of electronic control device, and program
JP2019125947A (en) Monitoring device, monitoring method, and program
CN117749555A (en) Controller area network system and method for the same

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170314

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170523

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170822

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170829

R150 Certificate of patent or registration of utility model

Ref document number: 6203365

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150