Abnormality detection device and abnormality detection method

By monitoring and detecting the abnormalities of Ethernet communication frames in the on-board network, dynamically setting detection rules to identify abnormal frames, the security threat of node hijacking in SOME/IP service-oriented communication is solved, improving security and maintaining mobility .

CN112840620BActive Publication Date: 2024-11-01PANASONIC INTELLECTUAL PROPERTY CORP OF AMERICA
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202080005583.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-07-04
Filing Date
2020-06-24
Publication Date
2024-11-01
Estimated Expiration
2040-06-24

AI Technical Summary

Technical Problem

In SOME/IP service-oriented communication, there are security threats caused by abnormal node hijacking in the on-board network, and existing security countermeasures such as IPSec will affect mobility and increase management complexity, and set IP addresses and other information in advance. resulting in reduced mobility.

Method used

By setting an abnormality detection device in the on-board network system, monitoring Ethernet communication frames, generating detection rules to identify abnormal frames, and notifying them when abnormal frames are detected, and dynamically setting detection rules to avoid relying on IP address information of the system environment.

Benefits of technology

Improves the safety of the car, while maintaining the mobility of service-oriented communications, reducing the cost of software changes to other models and vehicles, and preventing illegal nodes from impersonating and abnormal communications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112840620B_ABST
    Figure CN112840620B_ABST
Patent Text Reader

Abstract

An anomaly detection device and an anomaly detection method, the anomaly detection device (IDSECU (100)) comprising: a detection rule generating unit (140) for monitoring communication establishment frames flowing on Ethernet (13) during the communication establishment phase of service-oriented communication, and generating a detection rule containing a communication ID recorded in the communication establishment frame and a server address or a client address for each communication ID; an anomaly detection unit (150) for monitoring communication frames flowing on Ethernet (13) during the communication phase of service-oriented communication, and referring to the detection rule containing the communication ID recorded in the communication frame, detecting the communication frame as an abnormal frame when the server address or the client address recorded in the communication frame is different from the server address or the client address contained in the detection rule; and an abnormality notification unit (160) for notifying the abnormality when an abnormal frame is detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an abnormality detection device and an abnormality detection method for detecting abnormal communication in a vehicle-mounted network system. Background Art

[0002] In recent years, many devices called electronic control units (ECUs) have been configured in the system of automobiles. The network connecting these ECUs is called an in-vehicle network. There are many standards for in-vehicle networks. One of the in-vehicle networks is the Ethernet (registered trademark) standard specified by IEEE 802.3. In advanced driving support systems or autonomous driving, since it is necessary to process a large amount of information such as sensor information or dynamic maps obtained by sensors such as cameras or LIDAR (Light Detection and Ranging), the introduction of Ethernet with high data transmission speed continues to develop. In addition, as a communication protocol on Ethernet, there is the SOME / IP (Scalable Service-Oriented Middleware over IP) standard. In SOME / IP, since each node connected to Ethernet determines the communication content through the service ID recorded in the header, SOME / IP is called service-oriented communication. Furthermore, in SOME / IP, there is a communication establishment phase (phrase) between nodes called SOME / IP-SD (Service Discovery) before starting SOME / IP communication. If the service ID of the service you want to use or the service ID of the service that can be provided is stored in advance in the communication establishment phase, the IP address and MAC address of the communication destination (target) node can be dynamically obtained. Therefore, there is no need to set information such as IP address and MAC address that depends on the system environment in advance, and it is easy to design software with excellent portability, so it is expected to be widely used as a next-generation communication method.

[0003] Prior art literature

[0004] Non-patent literature

[0005] Non-patent document 1: "SOME / IP, Publications, Specifications / Standards", [online], [retrieved on June 18, 2020], Internet <URL: http: / / some-ip.com / papers.shtml / >

[0006] Non-patent literature 2: N.Herold, et al, "Anomaly Detection for SOME / IPusingComplex Event Processing", NOMS 2016, IEEE / IFIP Network Operations and Management Symposium, 2016 Summary of the invention

[0007] Problem that the invention aims to solve

[0008] In service-oriented communications such as SOME / IP, if a node is abnormally (illegally) hijacked without taking any security measures, there is a threat that not only can frames containing the service ID sent by the hijacked node be abnormally (illegally) sent and received, but it is also possible to establish abnormal communications or stop communications by impersonating other nodes by sending frames containing the service ID that should be sent by other nodes other than the hijacked node.

[0009] In particular, in the in-vehicle network, since there are particularly important services related to "driving, turning, and stopping" of the vehicle, the possibility that these services may be abnormally controlled or abnormally stopped poses a great threat.

[0010] To deal with these threats, there are measures such as encrypting SOME / IP communications using IPSec (Security Architecture for Internet Protocol) and measures disclosed in Non-Patent Document 2.

[0011] When IPSec is used, communication is encrypted using a key shared between nodes, thereby preventing eavesdropping on the communication content.

[0012] However, when the key is commonly used in each ECU in the vehicle, there is a problem that if a specific ECU is hijacked abnormally, the key will also be leaked, thereby enabling abnormal communication.

[0013] Furthermore, when different secret keys or public keys are used for different ECUs, there is a problem in that not only the management of the secret keys becomes complicated, but also encryption and decryption processes for communication are required, which increases overhead.

[0014] Furthermore, if IPSec is used for security purposes, portability, which is an advantage of utilizing SOME / IP, will be lost.

[0015] In the countermeasure disclosed in non-patent document 2, for SOME / IP communication frames, the destination IP address and the source IP address corresponding to the service ID are set in advance as normal rules, the communication frames are monitored, and communication frames that do not comply with the normal rules are detected as abnormal frames.

[0016] However, there is a problem that, since information such as an IP address differs depending on the model or vehicle, information that depends on the system environment must be set in advance, which reduces portability, which is an advantage of utilizing SOME / IP.

[0017] The present disclosure aims to solve the conventional problems and to provide an abnormality detection device or the like that can improve the safety of a car without losing the mobility of service-oriented communication.

[0018] Means used to solve problems

[0019] In order to solve the above-mentioned problems, an abnormality detection device of a technical solution of the present invention is an abnormality detection device in a vehicle network system composed of Ethernet (registered trademark) and performing service-oriented communication, and the abnormality detection device comprises: a detection rule generation unit, which monitors the communication establishment frames flowing in the Ethernet during the communication establishment phase of the service-oriented communication, and generates a detection rule containing the communication ID and the server address or the client address recorded in the communication establishment frame for each communication ID; an abnormality detection unit, which monitors the communication frames flowing in the Ethernet during the communication phase of the service-oriented communication, and refers to the detection rule containing the communication ID recorded in the communication frame. When the server address or the client address recorded in the communication frame is different from the server address or the client address included in the detection rule, the communication frame is detected as an abnormal frame; and an abnormality notification unit, which notifies the abnormality when the abnormal frame is detected.

[0020] Effects of the Invention

[0021] According to the present disclosure, the safety of a car can be improved without losing the mobility of service-oriented communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is an overall configuration diagram of the in-vehicle network system in the first embodiment of the present disclosure.

[0023] Figure 2 This is a diagram showing the configuration of the IDSECU in the first embodiment of the present disclosure.

[0024] Figure 3 This is a diagram showing an example of a header format in Ethernet of the in-vehicle network system in Embodiment 1 of the present disclosure.

[0025] Figure 4This is a diagram showing an example of a pre-set detection rule in Embodiment 1 of the present disclosure.

[0026] Figure 5 This is a diagram showing an example of dynamically setting detection rules in Embodiment 1 of the present disclosure.

[0027] Figure 6 1 is a diagram showing the sequence of the detection rule generation process in the first embodiment of the present disclosure.

[0028] Figure 7 1 is a diagram showing a sequence of abnormality detection processing in Embodiment 1 of the present disclosure.

[0029] Figure 8 1 is a diagram showing a flowchart of the detection rule generation process in Embodiment 1 of the present disclosure.

[0030] Fig. 9 This is a flowchart of the abnormality detection process in the first embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] In order to solve the above-mentioned problem, an abnormality detection device of a technical solution disclosed in the present invention is an abnormality detection device in a vehicle network system composed of Ethernet and performing service-oriented communication, and the abnormality detection device comprises: a detection rule generation unit, which monitors the communication establishment frames flowing in the Ethernet during the communication establishment phase of the service-oriented communication, and generates a detection rule containing the communication ID and the server address or the client address recorded in the communication establishment frame for each communication ID; an abnormality detection unit, which monitors the communication frames flowing in the Ethernet during the communication phase of the service-oriented communication, and refers to the detection rule containing the communication ID recorded in the communication frame. When the server address or the client address recorded in the communication frame is different from the server address or the client address included in the detection rule, the communication frame is detected as an abnormal frame; and an abnormality notification unit, which notifies the abnormality when the abnormal frame is detected.

[0032] Thus, there is no need to set IP addresses in advance, and the server address (e.g., server IP address) or client address (e.g., client IP address) corresponding to the communication ID can be dynamically generated and utilized as a detection rule in the communication establishment phase. Moreover, in the communication phase, since the communication frame whose address is different from the server IP address or client IP address recorded in the detection rule is a frame that has not passed through the communication establishment phase of the regular service-oriented communication, it can be judged as an abnormal frame. In this way, the software portability that is an advantage of service-oriented communication will not be lost, abnormal communication frames can be detected, and the safety of the car can be improved. As a result, in service-oriented communication, when an illegally (abnormally) hijacked node pretends to be another regular node and sends a frame containing a service ID that should be sent by other nodes, thereby causing abnormal communication to be established or causing communication to be stopped, the frame can be detected as an abnormal frame. Furthermore, since there is no need to set IP addresses that depend on the system environment, the cost of software changes when expanding to other models and other vehicles is reduced.

[0033] In addition, the detection rule generation unit may generate multiple detection rules for more than one communication ID, each of which includes the same communication ID and different server addresses or different client addresses, and the abnormality detection unit may refer to the multiple detection rules including the communication ID recorded in the communication frame, and detect the communication frame as an abnormal frame when the server address or client address recorded in the communication frame is different from the server address or client address included in the multiple detection rules.

[0034] Therefore, by generating multiple detection rules with different server addresses or client addresses for one communication ID, it is possible to prevent false detection even in service-oriented communication when there are multiple servers providing the same service due to system redundancy or when there are multiple clients using the same service.

[0035] In addition, the detection rule may include a communication establishment state, wherein the communication establishment state is indicated as ON when the server corresponding to the server address included in the detection rule or the client corresponding to the client address is in a state of conducting communication with the service corresponding to the communication ID included in the detection rule, and is indicated as OFF when not in a state of conducting communication. The detection rule generating unit confirms the communication category recorded in the communication establishment frame, and if the communication category is service provision, service subscription response, service search or service subscription, the group of the communication ID and the server address, or the group of the communication ID and the client address recorded in the communication establishment frame is included in the communication establishment frame. The communication establishment status included in the detection rule of the group is changed to ON; if the communication category is service provision stop or service subscription stop, the communication establishment status included in the detection rule of the group of communication ID and server address recorded in the communication establishment frame, or the group of communication ID and client address is changed to OFF; the abnormality detection unit refers to the detection rule including the communication ID recorded in the communication frame, and when the server address or client address recorded in the communication frame is consistent with the server address or client address included in the detection rule, if the communication establishment status included in the detection rule is OFF, the communication frame is detected as an abnormal frame.

[0036] Therefore, in service-oriented communication, by maintaining the communication establishment status indicating whether the communication frame is in a state where communication is possible or in a state where communication is not possible for each communication ID, even if the communication frame records a server address or client address that is the same as the server address or client address recorded in the detection rule, a communication frame that is in a state where communication is not possible and that has performed abnormal communication can be judged as abnormal.

[0037] In addition, the detection rule generating unit may change the communication establishment status included in the detection rule of the group of communication ID and server address recorded in the communication establishment frame, or the group of communication ID and client address to OFF after waiting for a predetermined time if the communication category is service provision stop or service subscription stop.

[0038] Therefore, since it may take a predetermined time from sending a frame of service provision stop or service subscription stop to completing reception of subscription stop on the server or completing reception of service provision stop on the client, by waiting for the predetermined time and then changing the communication establishment state of the detection rule, it is possible to prevent false detection during the time period when the server has not received the subscription stop or the client side has not received the service provision stop.

[0039] In addition, the detection rule generating unit may confirm the communication category recorded in the communication establishment frame, and if the communication category is service provision suspension, confirm whether a detection rule for a group including the communication ID and the server address recorded in the communication establishment frame exists, and determine that it is abnormal if the detection rule does not exist; if the communication category is service subscription suspension, confirm whether a detection rule for a group including the communication ID and the client address recorded in the communication establishment frame exists, and determine that it is abnormal if the detection rule does not exist.

[0040] Therefore, in the communication establishment phase, if the service provision or service subscription is stopped, which should be implemented after the service provision or service subscription is implemented, even though the service provision or service subscription has not yet been implemented, it can be clearly seen that it is abnormal communication and is therefore judged as abnormal.

[0041] In addition, it may also be that the abnormality detection device pre-stores at least one of the number of servers distinguished by communication ID, which indicates the maximum number of servers used by each communication ID, and the number of clients distinguished by communication ID, which indicates the maximum number of clients used by each communication ID, in the vehicle-mounted network system, and the detection rule generation unit confirms whether a detection rule including a group of communication ID and server address recorded in the communication establishment frame exists. If the detection rule does not exist, if the number of types of the server address in the detection rule including the communication ID is greater than the number of servers distinguished by the communication ID, it is determined to be abnormal; if the server address in the detection rule including the communication ID If the number of types is smaller than or the same as the number of servers distinguished by the communication ID, a detection rule for the group of communication ID and server address recorded in the communication establishment frame is added, or, it is confirmed whether a detection rule for the group of communication ID and client address recorded in the communication establishment frame exists. If the detection rule does not exist, if the number of types of the client address in the detection rule containing the communication ID is larger than the number of clients distinguished by the communication ID, it is determined to be abnormal. If the number of types of the client address in the detection rule containing the communication ID is smaller than or the same as the number of clients distinguished by the communication ID, a detection rule for the group of communication ID and client address recorded in the communication establishment frame is added.

[0042] Therefore, by pre-setting the maximum number of servers or the maximum number of clients used for each communication ID, which is easier to set than the IP address, when the communication establishment frame is sent abnormally, the number of types of communication establishment frames, in other words, the number of types of servers or clients existing in the vehicle network system increases compared to normal, and since it exceeds the above maximum number, it can be judged as an abnormality.

[0043] In addition, it is also possible that the abnormality detection device stores the last detection rule generated when it was last started, and when the detection rule generation unit generates the detection rule by monitoring the communication establishment frame, if it is determined to be abnormal, the detection rule generation unit refers to the last detection rule containing the communication ID recorded in the communication establishment frame, and rewrites the content recorded in the detection rule containing the communication ID with the content recorded in the last detection rule.

[0044] Therefore, in the case where a communication establishment frame is sent abnormally, by giving priority to the last detection rule, for example, before leaving the factory, a regular communication establishment frame flows and a correct detection rule is made. In the case where an abnormal communication establishment frame is sent after leaving the factory and the detection rule may become abnormal, the correct detection rule before leaving the factory can be given priority, and a more correct detection rule can be used.

[0045] In addition, it may also be that the abnormality detection device stores in advance the vehicle state for which communication is permitted for each communication ID, and the detection rule generation unit, when receiving the communication establishment frame, obtains the current vehicle state, and for the communication ID recorded in the communication establishment frame, when the pre-stored vehicle state for which communication is permitted is different from the current vehicle state, determines that it is abnormal; the abnormality detection unit, when receiving the communication frame, obtains the current vehicle state, and when the pre-stored vehicle state for which communication is permitted recorded in the communication frame is different from the current vehicle state, detects the communication frame as an abnormal frame.

[0046] Thus, in an abnormal vehicle state, when a communication establishment frame or a communication frame is transmitted, it can be determined as abnormal.

[0047] Furthermore, the vehicle status may include at least one of an ignition status, a network connection status, a gear status, a driving support mode status, an automatic driving status, and a person or object detection status.

[0048] Thus, it is possible to detect abnormal communication frames when they are generated in an abnormal state, such as frames of camera image processing generated only when the ignition is on, frames of software update generated only when the network is connected and the vehicle is parked and shifted, steering instruction frames generated only when the vehicle is in automatic parking mode, or brake control instruction frames generated only when the vehicle is in automatic driving mode and a person or object is detected.

[0049] In addition, SOME / IP may be used in the communication phase of the service-oriented communication, and SOME / IP-SD may be used in the communication establishment phase, the communication ID may be Service ID and Method ID, and the service provision, service subscription, service search, service subscription response, service provision stop, and service subscription stop in the communication categories may be Service Offer, Service Subscribe, Service Find, Service SubscribeAck, Stop Offer, and Stop Subscribe, respectively.

[0050] As a result, in SOME / IP, rules can be dynamically created during the communication establishment phase, and abnormal communication frames can be detected during the communication phase.

[0051] In addition, an abnormality detection method of a technical solution of the present invention is an abnormality detection method in a vehicle network system composed of Ethernet and performing service-oriented communication, and the abnormality detection method includes: a detection rule generation step, monitoring the communication establishment frame flowing in the Ethernet during the communication establishment phase of the service-oriented communication, and generating a detection rule containing the communication ID recorded in the communication establishment frame and the server address or the client address for each communication ID; an abnormality detection step, monitoring the communication frame flowing in the Ethernet during the communication phase of the service-oriented communication, referring to the detection rule containing the communication ID recorded in the communication frame, and detecting the communication frame as an abnormal frame when the server address or the client address recorded in the communication frame is different from the server address or the client address contained in the detection rule; and an abnormality notification step, notifying the abnormality when the abnormal frame is detected.

[0052] Thus, it is possible to provide an abnormality detection method that can improve the safety of a car without losing the mobility of service-oriented communication.

[0053] Furthermore, these general or specific technical solutions may be implemented by systems, methods, integrated circuits, computer programs, or computer-readable recording media such as CD-ROMs, or by any combination of systems, methods, integrated circuits, computer programs, or recording media.

[0054] Hereinafter, the abnormality detection device of the embodiment will be described with reference to the accompanying drawings. The embodiments shown here all represent a specific example of the present disclosure. Therefore, the numerical values, constituent elements, configurations and connection methods of the constituent elements, and the steps and the order of the steps shown in the following embodiments are examples and do not limit the present disclosure. Among the constituent elements in the following embodiments, the constituent elements not described in the independent claims are constituent elements that can be arbitrarily added. In addition, each figure is a schematic diagram and is not a strict illustration.

[0055] (Implementation Method 1)

[0056] [Overall Configuration Diagram of In-Vehicle Network System 10]

[0057] Figure 1 It is a diagram showing the overall configuration of the in-vehicle network system 10 in the first embodiment of the present disclosure.

[0058] exist Figure 1 In the embodiment, the in-vehicle network system 10 includes an IDSECU 100 , a central ECU 200 , a zone ECU 300 a , a zone ECU 300 b , a zone ECU 300 c , a zone ECU 300 d , a camera ECU 400 a , a car navigation ECU 400 b , a steering ECU 400 c , and a brake ECU 400 d .

[0059] The IDSECU 100 , the central ECU 200 , the area ECU 300 a , the area ECU 300 b , the area ECU 300 c , and the area ECU 300 d are connected via the Ethernet 13 .

[0060] The camera ECU 400 a is connected to the zone ECU 300 a via the Ethernet 12 , the car navigation ECU 400 b is connected to the zone ECU 300 b via the Ethernet 11 , the steering ECU 400 c is connected to the zone ECU 300 c via the CAN (registered trademark) 14 , and the brake ECU 400 d is connected to the zone ECU 300 d via the CAN-FD 15 .

[0061] The central ECU 200 is connected to an external network such as the Internet in addition to the Ethernet 13 .

[0062] The IDSECU 100 is an abnormality detection device having the following functions, that is, monitoring the communication conforming to the service-oriented communication protocol flowing on the Ethernet 13, detecting an abnormal frame, notifying the abnormal frame information to the server on the Internet via the central ECU 200, and displaying the abnormality to the car navigation ECU 400b via the zone ECU 300b, thereby notifying the driver, etc. of the abnormal frame information. The abnormality detection method will be described later.

[0063] The central ECU 200 communicates with the zone ECUs 300 a , 300 b , 300 c , and 300 d and the IDSECU 100 via the Ethernet 13 according to a service-oriented communication protocol, controls the zone ECUs 300 a , 300 b , 300 c , and 300 d , and controls the entire in-vehicle network system 10 .

[0064] In addition, the central ECU 200 has a switch function inside thereof, and has a function of transmitting frames transmitted between the zone ECUs 300a, 300b, 300c, and 300d and the central ECU 200, and frames communicated between the zone ECUs 300a, 300b, 300c, and 300d, to the IDSECU 100. In addition, the central ECU 200 has a function of receiving information of abnormal frames from the IDSECU 100, and notifying the information of abnormal frames to a server on the Internet via an external network.

[0065] The zone ECU 300a communicates with the central ECU 200, the IDSECU 100, and the zone ECUs 300b, 300c, and 300d via the Ethernet 13, and communicates with the camera ECU 400a via the Ethernet 12 to control ON / OFF of camera images.

[0066] The zone ECU 300b communicates with the central ECU 200, the IDSECU 100, and the zone ECUs 300a, 300c, and 300d via the Ethernet 13, and communicates with the car navigation ECU 400b via the Ethernet 11, and controls the display of the car navigation.

[0067] The zone ECU 300 c communicates with the central ECU 200 , the IDS ECU 100 , and the zone ECUs 300 a , 300 b , and 300 d via the Ethernet 13 , and controls steering of the steering gear by communicating with the steering gear ECU 400 c via the CAN 14 .

[0068] The zone ECU 300 d communicates with the central ECU 200 , the IDSECU 100 , and the zone ECUs 300 a , 300 b , and 300 c via the Ethernet 13 , and communicates with the brake ECU 400 d via the CAN-FD 15 to control the brakes.

[0069] The camera ECU 400a controls images of a camera mounted on the vehicle.

[0070] The car navigation ECU 400b controls the display of the car navigation system mounted on the vehicle.

[0071] The steering ECU 400c controls the steering of a steering gear mounted on the vehicle.

[0072] The brake ECU 400d controls brakes mounted on the vehicle.

[0073] [Configuration diagram of IDSECU 100]

[0074] Figure 2 FIG. 1 is a diagram showing the structure of the IDSECU 100 in the first embodiment of the present disclosure. Figure 2 As shown, the IDSECU 100 includes, for example, a communication unit 110 , a transmission unit 120 , a detection rule storage unit 130 , a detection rule generation unit 140 , an abnormality detection unit 150 , an abnormality notification unit 160 , and a vehicle state extraction unit 170 .

[0075] The communication unit 110 is connected to the Ethernet 13, and has a function of receiving frames that comply with the service-oriented communication protocol flowing on the Ethernet 13 and sending them to the transmission unit 120. The service-oriented communication protocol is, for example, SOME / IP. SOME / IP is used in the communication phase of the service-oriented communication, and SOME / IP-SD is used in the communication establishment phase. The details of the data format of SOME / IP will be described later.

[0076] The transmission unit 120 receives a frame conforming to the service-oriented communication protocol from the communication unit 110. If the received frame is a communication frame in the communication phase of SOME / IP, the transmission unit 120 transmits the received frame to the abnormality detection unit 150, and if the received frame is a communication establishment frame in the communication establishment phase of SOME / IP, the transmission unit 120 transmits the received frame to the detection rule generation unit 140. In addition, if the received frame is a communication frame related to the vehicle state, the transmission unit 120 transmits the received frame to the vehicle state extraction unit 170. The vehicle state includes, for example, at least one of the ignition state, the network connection state, the gear state, the driving support mode state, the automatic driving state, and the state of person or object detection.

[0077] Here, the communication establishment frame is a frame having a SOME / IP-SD header, and the communication frame is a frame having only a SOME / IP header. The communication frame related to the vehicle status is a frame storing the network connection status, vehicle speed, gear status or ignition status, or a frame storing the driving status such as the automatic driving mode or the automatic parking mode.

[0078] The detection rule storage unit 130 receives the detection rule from the detection rule generation unit 140 and stores it as the current detection rule. Furthermore, the detection rule storage unit 130 stores the detection rule generated by the detection rule generation unit 140 at the last startup as the last detection rule. In addition, the detection rule storage unit 130 stores at least one of the number of servers distinguished by communication ID indicating the maximum number of servers used by each communication ID and the number of clients distinguished by communication ID indicating the maximum number of clients used by each communication ID (for example, both of them here) and the vehicle state that allows communication for each communication ID as the pre-set detection rule. The pre-set detection rule and the details of the detection rule will be described later.

[0079] The detection rule generation unit 140 monitors the communication establishment frame flowing on the Ethernet 13 during the communication establishment phase of the service-oriented communication, and generates a detection rule including the communication ID recorded in the communication establishment frame and the server address or the client address based on the communication ID. Specifically, the detection rule generation unit 140 receives the communication establishment frame from the transmission unit 120, generates the detection rule based on the communication ID recorded in the header information of the communication establishment frame, and stores it in the detection rule storage unit 130. In addition, the detection rule generation unit 140 obtains the vehicle status from the vehicle status extraction unit 170. In addition, when generating the detection rule, the detection rule generation unit 140 sends the communication establishment frame determined to be abnormal to the abnormality notification unit 160. The method for generating the detection rule will be described later, but the detection rule generation unit 140 may also have the following functions.

[0080] The detection rule generation unit 140 generates a plurality of detection rules including the same communication ID and different server addresses or different client addresses for one or more communication IDs.

[0081] In addition, the detection rule generation unit 140 confirms the communication category recorded in the communication establishment frame. If the communication category is service provision, service subscription response, service search, or service subscription, the communication establishment state included in the detection rule containing the group of the communication ID and the server address recorded in the communication establishment frame, or the group of the communication ID and the client address, is changed to ON. In addition, if the communication category is service provision stop or service subscription stop, the detection rule generation unit 140 changes the communication establishment state included in the detection rule containing the group of the communication ID and the server address recorded in the communication establishment frame, or the group of the communication ID and the client address, to OFF. Specifically, if the communication category is service provision stop or service subscription stop, the detection rule generation unit 140 changes the communication establishment state included in the detection rule containing the group of the communication ID and the server address recorded in the communication establishment frame, or the group of the communication ID and the client address, to OFF after waiting for a predetermined time.

[0082] In addition, the detection rule generation unit 140 confirms the communication category recorded in the communication establishment frame. If the communication category is service provision suspension, it is confirmed whether a detection rule for the group including the communication ID and server address recorded in the communication establishment frame exists, and if the detection rule does not exist, it is determined to be abnormal; if the communication category is service subscription suspension, it is confirmed whether a detection rule for the group including the communication ID and client address recorded in the communication establishment frame exists, and if the detection rule does not exist, it is determined to be abnormal.

[0083] In addition, the detection rule generation unit 140 confirms whether a detection rule for a group including the communication ID and the server address recorded in the communication establishment frame exists. If the detection rule does not exist, if the number of types of the server address in the detection rule including the communication ID is greater than the number of servers distinguished by the communication ID, it is determined to be abnormal. If the number of types of the server address in the detection rule including the communication ID is less than or equal to the number of servers distinguished by the communication ID, a detection rule for a group including the communication ID and the server address recorded in the communication establishment frame is added. In addition, the detection rule generation unit 140 confirms whether a detection rule for a group including the communication ID and the client address recorded in the communication establishment frame exists. If the detection rule does not exist, if the number of types of the client address in the detection rule including the communication ID is greater than the number of clients distinguished by the communication ID, it is determined to be abnormal. If the number of types of the client address in the detection rule including the communication ID is less than or equal to the number of clients distinguished by the communication ID, a detection rule for a group including the communication ID and the client address recorded in the communication establishment frame is added.

[0084] In addition, when the detection rule generation unit 140 generates detection rules by monitoring the communication establishment frame, if it is determined to be abnormal, it refers to the previous detection rule containing the communication ID recorded in the communication establishment frame and rewrites the content recorded in the detection rule containing the communication ID with the content recorded in the previous detection rule.

[0085] Furthermore, when the detection rule generation unit 140 receives the communication establishment frame, it obtains the current vehicle state and determines that the communication ID recorded in the communication establishment frame is abnormal if the vehicle state for communication permission stored in advance is different from the current vehicle state.

[0086] The abnormality detection unit 150 receives the communication frame from the transmission unit 120, obtains the communication ID and the combination of the server address and the client address recorded in the header information of the communication frame, obtains the vehicle state from the vehicle state extraction unit 170, and refers to the current detection rule stored in the detection rule storage unit 130. Using the detection rule, it detects whether the received communication frame is an abnormal frame. The detection method for the abnormal frame will be described later, but the abnormality detection unit 150 may also have the following functions.

[0087] The anomaly detection unit 150 monitors the communication frames flowing on the Ethernet 13 during the communication phase of the service-oriented communication, and refers to the detection rule including the communication ID recorded in the communication frame. When the server address or the client address recorded in the communication frame is different from the server address or the client address included in the detection rule, the communication frame is detected as an abnormal frame.

[0088] In addition, the abnormality detection unit 150 refers to multiple detection rules including the communication ID recorded in the communication frame, and detects the communication frame as an abnormal frame when the server address or client address recorded in the communication frame is different from the server address or client address included in each of the multiple detection rules.

[0089] In addition, the abnormality detection unit 150 refers to the detection rule including the communication ID recorded in the communication frame. When the server address or the client address recorded in the communication frame is consistent with the server address or the client address included in the detection rule, if the communication establishment status included in the detection rule is OFF, the communication frame is detected as an abnormal frame.

[0090] Furthermore, when receiving a communication frame, the abnormality detection unit 150 obtains the current vehicle state, and detects the communication frame as an abnormal frame if the vehicle state for which communication is permitted for the communication ID recorded in the communication frame and which is stored in advance is different from the current vehicle state.

[0091] The abnormality notification unit 160 receives an abnormal communication establishment frame from the detection rule generation unit 140 , receives an abnormal communication frame from the abnormality detection unit 150 , saves information of the abnormal frame (abnormal communication establishment frame or abnormal communication frame) in a frame directed to the central ECU 200 , and sends it to the communication unit 110 .

[0092] The vehicle state extraction unit 170 receives the communication frame related to the vehicle state from the transmission unit 120 , extracts the vehicle state, and transmits the extracted vehicle state to the detection rule generation unit 140 and the abnormality detection unit 150 .

[0093] [Header format in the in-vehicle network system 10]

[0094] Figure 3 This is a header format in the Ethernet 13 of the in-vehicle network system 10 in the first embodiment of the present disclosure. Here, the header format is a header format in SOME / IP which is a service-oriented communication.

[0095] In the communication frame of the communication phase in SOME / IP, only the SOME / IP header is stored, and in the communication establishment frame of the communication establishment phase in SOME / IP, the SOME / IP header and the SOME / IP-SD header are stored.

[0096] The SOME / IP header records the message ID, MessageID, Length, RequestID, ProtocolVersion, InterfaceVersion, MessageType, and ReturnCode.

[0097] The MessageID includes a ServiceID and a MethodID. The MessageID is unique in the vehicle network system 10. The ServiceID indicates a number for identifying an application of a service provided by the server, and the MethodID indicates a number for a method of the application of the service provided by the server.

[0098] Length records the length from RequestID to the end of the SOME / IP header.

[0099] RequestID records ClientID, i.e., client ID, and SessionID, i.e., session ID. ClientID is a number used to identify the client application, and SessionID is a number used to identify the communication between the server application and the client application.

[0100] ProtocolVersion records the version information of the SOME / IP protocol, InterfaceVersion records the version of the interface of the SOME / IP protocol, MessageType records the communication type in the communication frame of SOME / IP, and ReturnCode records the return value such as an error code.

[0101] Specifically, MessageType records numbers for identifying Request, RequestNoReturn, Response, Error, TPRequest, TPNotification, TPResponse, and TPError.

[0102] Here, MessageID is also recorded as communication ID. In other words, communication ID is Service ID and MethodID. The content of the communication frame is determined according to the communication ID. For example, a communication frame that provides a service requesting camera images, a communication frame requesting software updates, a communication frame indicating steering wheel control, a communication frame indicating brake control, a communication frame requesting vehicle status or a communication frame requesting a gear change, etc., by confirming the communication ID, it is possible to determine what information is stored in the communication frame.

[0103] Flags, Reserved, LengthOfEntriesArrayInBytes, SD-Type, Index1stOptions and Index2ndOptions, NumberOfOptions, SD-ServiceID, InstanceID, MajorVersion, TTL, and MinorVersion are recorded in the SOME / IP-SD header.

[0104] Flags records flag information, Reserved records the reservation number, LengthOfEntriesArrayInBytes records the length up to the end of the SOME / IP-SD header excluding options, SD-Type records the communication type in the communication establishment frame of SOME / IP, Index1stOptions and Index2ndOptions record the presence or absence of the first option header and the presence or absence of the second option header, NumberOfOptions records the number of option headers, SD-ServiceID records the identification number of the communication establishment frame in SOME / IP-SD, InstanceID records the number for identifying the ECU, MajorVersion records the major version of the communication establishment phase, TTL records TTL, and MinorVersion records the minor version of the communication establishment phase.

[0105] In addition, the SOME / IP-SD header describes LengthOfOptionsArrayInBytes, OptionLength, OptionType, Reserved, IPv4-Address, L4-Proto, and PortNumber as options. The options are used when sharing IP address information.

[0106] LengthOfOptionsArrayInBytes records the data length of the entire option header, OptionLength records the length of the first option header, OptionType records the communication category in the option, Reserved records the reservation number, IPv4-Address records the IPv4 address information, L4-Proto records the category of communication protocols in IPv4 such as UDP and TCP, and PortNumber records the port number.

[0107] SD-Type is also recorded as SD communication category. SD communication categories include, for example, service offering, service subscription, service search, service subscription response, service offering stop, and service subscription stop. The service offering, service subscription, service search, service subscription response, service offering stop, and service subscription stop in the communication category are respectively: Service Offer, ServiceSubscribe, Service Find, Service SubscribeAck, Stop Offer, and Stop Subscribe. Specifically, the SD communication category records the numbers identifying ServiceOffer, ServiceStopOffer, Subscribe, ServiceSubscribeAck, StopSubscribe, and ServiceFind.

[0108] ServiceOffer is used to notify the client that the service provided by the server is available, ServiceStopOffer is used to notify the client that the service provided by the server is unavailable, Subscribe is used to notify the server that the client has started subscribing to the service, StopSubscribe is used to notify the server that the client has terminated subscription to the service, and ServiceFind is used for the client to search for a server that has the desired service.

[0109] In SOME / IP, before SOME / IP communication is carried out in the communication phase, in the communication establishment phase, the server searches for the client that wants the service corresponding to the predetermined ServiceID by broadcasting a frame that stores the SOME / IP-SD header. The client searches for the server that provides the service corresponding to the desired ServiceID and obtains information such as the IP address and port number of the communication object. After that, service-oriented communication is carried out based on the ServiceID and MessageType recorded in the SOME / IP header.

[0110] However, a single SOME / IP cannot implement countermeasures against data impersonation, and there is a problem that, by observing broadcast communications of SOME / IP-SD, a malicious client may establish communications with a server, or a malicious server may establish communications with a client.

[0111] By referring to the ServiceOffer or ServiceSubscribeAck of SOME / IP-SD sent from the server by broadcast, the IP address, protocol, port number and ECU identification number of the server providing the service corresponding to a specific service ID can be obtained. By referring to the IPv4 packet, the MAC address can also be obtained.

[0112] Furthermore, by referring to the StopServiceOffer of SOME / IP-SD transmitted by broadcast from the server, it can be obtained that the service cannot be provided.

[0113] In addition, by referring to ServiceFind or ServiceSubscribe of SOME / IP-SD sent from the client using broadcast, the IP address, protocol, port number and ECU identification number of the client providing the service corresponding to a specific service ID can be obtained. By referring to the IPv4 packet, the MAC address can also be obtained.

[0114] Furthermore, by referring to StopSubscribe of SOME / IP-SD transmitted by broadcast from the client, it can be obtained that the service cannot be received.

[0115] [Set detection rules in advance]

[0116] Figure 4 FIG. 1 is a diagram showing an example of a pre-set detection rule stored in the detection rule storage unit 130 in the first embodiment of the present disclosure. Figure 4 As shown, the pre-set detection rule is composed of, for example, a communication ID including a service ID and a method ID, the number of servers, the number of clients, the vehicle status, and the service content.

[0117] The service ID corresponds to Figure 3 The ServiceID in the header format of SOME / IP in Ethernet 13 corresponds to the method ID Figure 3 MethodID in the header format of SOME / IP in Ethernet 13.

[0118] The number of servers indicates the total number (maximum number) of servers providing services corresponding to the communication ID, i.e., the number of servers distinguished by communication ID. The number of clients indicates the total number (maximum number) of clients utilizing the services corresponding to the communication ID, i.e., the number of clients distinguished by communication ID.

[0119] The vehicle status indicates the vehicle status condition when the service corresponding to the communication ID is provided or utilized. Specifically, the following are recorded: "ignition ON status" indicating that the vehicle's ignition is ON, "network ON status" indicating that the vehicle's network connection is ON, "parking ON status" indicating that the vehicle's gear position is parked, "stop status" indicating that the vehicle's speed is 0 km / h, "auto cruise mode" indicating that the vehicle's driving mode is auto cruise mode, "auto parking mode" indicating that the vehicle's driving mode is auto parking mode, or "person detection" indicating that the vehicle's camera and / or sensor is detecting a person, etc.

[0120] Multiple vehicle states can be set, "or" represents an OR condition, and "and" represents an AND condition.

[0121] The service content indicates an outline of the service corresponding to the communication ID.

[0122] exist Figure 4 For example, in the pre-set detection rules recorded in the second row, the service ID is "0001", the method ID is "0002", the communication ID is "00010002", the number of servers is "1", the number of clients is "5", the vehicle status is "network connection ON state and parked state and stopped state", and the service content is "software update request".

[0123] In addition, Figure 4 For example, in the pre-set detection rule recorded in the sixth row, the service ID is "0009", the method ID is "0010", the communication ID is "00090010", the number of servers is "1", the number of clients is "1", the vehicle state is "-", and the service content is "gear change request". Here, "-" indicates that the vehicle state is arbitrary.

[0124] The detection rule generation unit 140 can obtain, by referring to the pre-set detection rules of the detection rule storage unit 130: the total number of servers providing services corresponding to the communication ID, the total number of clients using the services corresponding to the communication ID, and the vehicle status conditions when communicating with the service corresponding to the communication ID.

[0125] Furthermore, when the detection rule generation unit 140 receives a frame containing a specific communication ID, if the total number of observed servers (server addresses) is greater than the total number of servers providing services corresponding to the communication ID, that is, the number of servers distinguished by the communication ID, it can be determined as an abnormality that an abnormal server is connected; if the total number of observed clients (client addresses) is greater than the total number of clients using the service corresponding to the communication ID, that is, the number of clients distinguished by the communication ID, it can be determined as an abnormality that an abnormal client is connected.

[0126] Furthermore, when the detection rule generation unit 140 receives a frame including a specific communication ID, if the vehicle state described in the preset detection rule does not match the current vehicle state, it can be determined as abnormal because the service is provided in an abnormal vehicle state.

[0127] [Dynamically set detection rules]

[0128] Figure 5 FIG. 1 is a diagram showing an example of a dynamically set detection rule generated by the detection rule generation unit 140, stored in the detection rule storage unit 130, and referenced by the abnormality detection unit 150 in the first embodiment of the present disclosure. Figure 5 As shown, the dynamically set detection rule is, for example, a detection rule composed of a communication ID including a service ID and a method ID, a server address, a client address, and a communication establishment state.

[0129] The service ID corresponds to Figure 3 The ServiceID in the header format of SOME / IP in Ethernet 13 corresponds to the method ID Figure 3 MethodID in the header format of SOME / IP in Ethernet 13. The server address indicates the IP address of the server that provides the service corresponding to the communication ID, and the client address indicates the IP address of the client that uses the service corresponding to the communication ID. The communication establishment status indicates whether the service corresponding to the communication ID is currently valid. If it is "ON", it indicates a permitted state, and if it is "OFF", it indicates a non-permitted state. In other words, the communication establishment status indicates ON when the server corresponding to the server address included in the detection rule or the client corresponding to the client address is in a state of communicating with the service corresponding to the communication ID included in the detection rule, and indicates OFF when it is not in a state of communication.

[0130] exist Figure 5 For example, in the dynamic setting detection rule recorded in the first line, the service ID is "0001", the method ID is "0001", the communication ID is "00010001", the server address is "X", the client address is "B", and the communication establishment status is "ON".

[0131] In addition, Figure 5 For example, in the dynamic setting detection rule recorded in line 9, the service ID is "0002", the method ID is "0003", the communication ID is "00020003", the server address is "Y", the client address is "B", and the communication establishment status is "OFF".

[0132] For example, the detection rule generation unit 140 generates a detection rule for the communication ID “00010001”, which includes the same communication ID “00010001” and different client addresses “A” and “B”; generates a detection rule for the communication ID “00010002”, which includes the same communication ID “00010002” and different client addresses “A”, “B”, “C”, “D” and “E”; generates a detection rule for the communication ID “00020003”, which includes the same communication ID “00020003”, different server addresses “X” and “Y”, and different client addresses “A” and “B”; and generates a detection rule for the communication ID “00030004”, which includes the same communication ID “00030004”, and different server addresses “Z” and “X”.

[0133] In addition, the detection rule storage unit 130 deletes all dynamic setting detection rules when the vehicle network system 10 is powered on, and retains the dynamic setting detection rules as the old dynamic setting detection rules (previous detection rules) when the vehicle network system 10 is powered off.

[0134] The detection rule generation unit 140 can refer to Figure 3 A communication ID item is generated based on the ServiceID and MethodID included in the SOME / IP header in Ethernet 13, and a server address item is generated corresponding to the generated communication ID item by referring to the IP address included in the SOME / IP-SD option header sent from the server based on the communication ID. A client address item is generated corresponding to the generated communication ID item by referring to the IP address included in the SOME / IP-SD option header sent from the client based on the communication ID. A communication establishment status item is generated corresponding to the generated communication ID item by referring to the SD-Type included in the SOME / IP-SD header containing the option header sent from the server based on the communication ID.

[0135] Specifically, if SD-Type is ServiceOffer or ServiceSubscribeAck, the communication establishment state of the dynamic setting detection rules including the corresponding communication ID and server address can be set to "ON"; if SD-Type is StopServiceOffer, the communication establishment state of the dynamic setting detection rules including the corresponding communication ID and server address can be set to "OFF"; if SD-Type is ServiceFind or ServiceSubscribe, the communication establishment state of the dynamic setting detection rules including the corresponding communication ID and server address can be set to "ON"; if SD-Type is StopSubscribe, the communication establishment state of the dynamic setting detection rules including the corresponding communication ID and server address can be set to "OFF".

[0136] In addition, the anomaly detection unit 150 can confirm whether the communication ID, server address, and client address contained in the frame match the communication ID, server address, and client address in the dynamic setting detection rules by referring to the dynamic setting detection rules. If there is no match, the anomaly detection unit 150 can judge it as an anomaly because the formal communication establishment stage has not been passed.

[0137] Furthermore, the abnormality detection unit 150 can confirm whether the frame containing a specific communication ID, server address and client address is currently valid (that is, whether the communication establishment status is ON). If it is not valid, the abnormality detection unit 150 can judge it as an abnormality because it was sent in an abnormal communication establishment state.

[0138] [Processing Timing]

[0139] Figure 6 1 is a diagram showing the sequence of the detection rule generation process in the first embodiment of the present disclosure. Figure 7 is a diagram showing the timing of abnormality detection processing in Embodiment 1 of the present disclosure. Specifically, Figure 6 and Figure 7 The figure shows the processing sequence of the IDSECU 100 in the first embodiment of the present disclosure, which obtains the vehicle network log, generates the dynamic setting detection rule, and refers to the dynamic setting detection rule and the pre-set detection rule until the abnormal frame is detected and notified. Figure 6 In FIG. 1 , the processing sequence is shown according to the case where the received frame is a vehicle status frame and the case where the received frame is a communication establishment frame. Specifically, in Figure 6 The upper side of the single-dot chain line in FIG. 1 shows the processing sequence when the received frame is a vehicle status frame. Figure 6 The lower side of the single-dot chain line in shows the processing sequence when the received frame is a communication establishment frame. Figure 7 In the process, a processing sequence is generated for the case where the received frame is a communication frame.

[0140] First, for Figure 6 Provide explanation.

[0141] ( S601 ) The communication unit 110 of the IDSECU 100 receives a frame conforming to the service-oriented communication protocol flowing on the Ethernet 13 , and transmits it to the transmission unit 120 .

[0142] ( S602 ) The transmission unit 120 receives a frame from the communication unit 110 , and when the frame is a vehicle status frame including a communication ID providing a vehicle status in a SOME / IP-SD header, the transmission unit 120 transmits the vehicle status frame to the vehicle status extraction unit 170 .

[0143] ( S603 ) The vehicle state extraction unit 170 receives the vehicle state frame from the transmission unit 120 , and extracts the vehicle state included in the vehicle state frame.

[0144] ( S604 ) The detection rule generation unit 140 requests the vehicle state extraction unit 170 to obtain the vehicle state.

[0145] ( S605 ) The vehicle state extraction unit 170 receives the request for the vehicle state from the detection rule generation unit 140 .

[0146] ( S606 ) The vehicle state extraction unit 170 transmits the vehicle state to the detection rule generation unit 140 .

[0147] ( S607 ) The detection rule generation unit 140 receives the vehicle state from the vehicle state extraction unit 170 .

[0148] ( S608 ) On the other hand, the transfer unit 120 receives the frame from the communication unit 110 , and when the frame is a communication establishment frame including a SOME / IP-SD header, the transfer unit 120 transmits the communication establishment frame to the detection rule generation unit 140 .

[0149] (S609) The detection rule generation unit 140 receives the communication establishment frame from the transmission unit 120, generates a dynamic setting detection rule, and stores the generated dynamic setting detection rule in the detection rule storage unit 130. The method of generating the dynamic setting detection rule will be described later.

[0150] (S610) When generating the dynamic setting detection rule, the detection rule generating unit 140 notifies the abnormality notification unit 160 of the communication establishment frame determined to be abnormal as an abnormal frame. The method of detecting the communication establishment frame as abnormal when generating the dynamic setting detection rule will be described later.

[0151] ( S611 ) Upon receiving the abnormality frame of S610 , the abnormality notification unit 160 transmits a frame requesting notification of the abnormality of the vehicle to the driver or an emergency notification target, other vehicles, other systems, or other IPS (Intrusion Prevention System) to the central ECU 200 .

[0152] Next, for Figure 7 Provide explanation.

[0153] ( S701 ) The abnormality detection unit 150 requests the vehicle state extraction unit 170 to obtain the vehicle state.

[0154] ( S702 ) The vehicle state extraction unit 170 receives a request for the vehicle state from the abnormality detection unit 150 , and extracts the vehicle state.

[0155] ( S703 ) The vehicle state extraction unit 170 transmits the vehicle state to the abnormality detection unit 150 .

[0156] ( S704 ) The abnormality detection unit 150 receives the vehicle state from the vehicle state extraction unit 170 .

[0157] ( S705 ) The transmission unit 120 receives the frame from the communication unit 110 , and when the frame is a communication frame not including the SOME / IP-SD header, the transmission unit 120 transmits the communication frame to the abnormality detection unit 150 .

[0158] (S706) When receiving a frame from the transmission unit 120, the abnormality detection unit 150 refers to the pre-set detection rule and the dynamically set detection rule in the detection rule storage unit 130 to determine whether the received communication frame is abnormal. The abnormality determination method will be described later.

[0159] ( S707 ) When determining that the communication frame is abnormal, the abnormality detection unit 150 transmits the abnormality frame to the abnormality notification unit 160 .

[0160] ( S708 ) Upon receiving the abnormality frame from the abnormality detecting unit 150 , the abnormality notifying unit 160 transmits a frame requesting the central ECU 200 to notify the driver or the police that an abnormality has occurred in the vehicle.

[0161] [Flowchart of the detection rule generation process]

[0162] Figure 8 1 is a diagram showing a flowchart of the detection rule generation process of the detection rule generation unit 140 in Embodiment 1 of the present disclosure.

[0163] ( S801 ) The detection rule generation unit 140 receives a communication establishment frame including a SOME / IP-SD header from the transmission unit 120 , and executes S802 .

[0164] (S802) The detection rule generation unit 140 confirms the SD communication category included in the SOME / IP-SD header of the received communication establishment frame, and implements S803 when the SD communication category is ServiceOffer or ServiceSubscribeAck, implements S804 when the SD communication category is ServiceFind or ServiceSubscribe, implements S805 when the SD communication category is StopOffer, and implements S806 when the SD communication category is StopServiceSubscribe. In addition, although not shown in the figure, the detection rule generation unit 140 ends the processing when the SD communication category is other than these.

[0165] (S803) The detection rule generation unit 140 obtains the communication ID by referring to the SD-ServiceID included in the SOME / IP-SD header of the received frame, obtains the server address by referring to the IPv4Address included in the SOME / IP-SD header, and implements S807. Here, since the SD communication type is ServiceOffer or ServiceSubscribeAck, the received frame is a frame sent from the server, and therefore, the IP address of the server is recorded in IPv4Address.

[0166] (S804) The detection rule generation unit 140 obtains the communication ID by referring to the SD-ServiceID included in the SOME / IP-SD header of the received frame, obtains the client address by referring to the IPv4Address included in the SOME / IP-SD header, and implements S807. Here, since the SD communication type is ServiceFind or ServiceSubscribe, the received frame is a frame sent from the client, and therefore the IP address of the client is recorded in IPv4Address.

[0167] (S805) The detection rule generation unit 140 obtains the communication ID by referring to the SD-ServiceID included in the SOME / IP-SD header of the received frame, obtains the server address by referring to the IPv4Address included in the SOME / IP-SD header, and implements S816. Here, since the SD communication type is StopOffer, the received frame is a frame sent from the server, so the IP address of the server is recorded in IPv4Address.

[0168] (S806) The detection rule generation unit 140 obtains the communication ID by referring to the SD-ServiceID included in the SOME / IP-SD header of the received frame, obtains the client address by referring to the IPv4Address included in the SOME / IP-SD header, and implements S816. Here, since the SD communication type is StopServiceSubscribe, the received frame is a frame sent from the client, so the IP address of the client is recorded in IPv4Address.

[0169] (S807) The detection rule generation unit 140 refers to the row of the communication ID that is the same as the communication ID obtained by S803 or S804 among the pre-set detection rules maintained by the detection rule storage unit 130, and when the current vehicle state obtained from the vehicle state extraction unit 170 is inconsistent with the vehicle state of the above row (No in S807), S809 is implemented; when they are consistent (Yes in S807), S808 is implemented.

[0170] (S808) The detection rule generation unit 140 refers to the row of the communication ID that is the same as the communication ID obtained by S803 or S804 in the dynamically set detection rules maintained by the detection rule storage unit 130, and if there is a group of the communication ID and the server address obtained by S803 or a group of the communication ID and the client address obtained by S804 that is the same (identical) group of communication ID and the server address or the same communication ID and the client address (yes in S808), S810 is implemented; if there is no group of the same communication ID and the server address or the same group of communication ID and the client address (no in S808), S811 is implemented.

[0171] ( S809 ) The detection rule generation unit 140 ends the process by determining that the received communication establishment frame is an abnormal frame because the communication establishment frame is transmitted in an abnormal vehicle state and transmitting the abnormal frame to the abnormality notification unit 160 .

[0172] (S810) When the detection rule generation unit 140 obtains a group of communication ID and server address by S803, it refers to a row including a group of communication ID and server address that is the same as the obtained group of communication ID and server address among the dynamically set detection rules maintained by the detection rule storage unit 130; when the detection rule and client address are obtained by S804, it refers to a row including a group of communication ID and client address that is the same as the obtained group of communication ID and client address; if the communication establishment state of the above row is OFF (Yes in S810), S820 is implemented; if the communication establishment state of the above row is ON (No in S810), the processing is terminated.

[0173] (S811) When the detection rule generation unit 140 obtains a group of communication ID and server address in S803, it obtains the number of servers (the number of servers distinguished by communication ID) by referring to the row with the same communication ID as the obtained communication ID among the pre-set detection rules maintained by the detection rule storage unit 130, and then obtains the number of types of server addresses by referring to the dynamically set detection rules with the same communication ID among the dynamically set detection rules. If the number of types of server addresses is less than the number of servers (yes in S811), S812 is implemented. If the number of types of server addresses is greater than the number of servers (no in S811), S814 is implemented.

[0174] In addition, when a group of communication ID and client address is obtained by S804, the number of clients (the number of clients distinguished by communication ID) is obtained by referring to the row with the same communication ID as the obtained communication ID among the pre-set detection rules maintained by the detection rule storage unit 130, and then the number of types of client addresses is obtained by referring to the dynamically set detection rules with the same communication ID among the dynamically set detection rules. If the number of types of client addresses is less than the number of clients (yes in S811), S812 is implemented, and if the number of types of client addresses is greater than the number of clients (no in S811), S814 is implemented.

[0175] (S812) When the detection rule generation unit 140 obtains a group of a communication ID and a server address in S803, it adds a rule to the dynamically set detection rules for allowing transmission and reception when a communication frame containing the communication ID is sent and received from the server address (that is, it adds a rule containing the group of the communication ID and the server address obtained in S803); and when the detection rule generation unit 140 obtains a group of a communication ID and a client address in S804, it adds a rule to the dynamically set detection rules for allowing transmission and reception when a communication frame containing the communication ID is sent and received from the client address (that is, it adds a rule containing the group of the communication ID and the client address obtained in S804).

[0176] (S813) The detection rule generation unit 140 sets the item of the communication establishment state to ON for the row to be registered in S812 (that is, all the rules to be added in S812), and ends the processing.

[0177] (S814) The detection rule generation unit 140 generates an abnormal dynamic setting detection rule because the number of servers or clients connected to the vehicle network system 10 is greater than the predetermined maximum number of servers or clients, and therefore an abnormal server or abnormal client is added to the vehicle network system 10, and the abnormal detection rule is determined to be abnormal, and S815 is implemented.

[0178] (S815) The detection rule generation unit 140 overwrites and registers all rows of the dynamically set detection rules maintained by the detection rule storage unit 130 that contain communication IDs judged to be abnormal by S814 (specifically, communication IDs whose corresponding number of server address types is larger than the number of servers distinguished by the communication ID, or communication IDs whose corresponding number of client address types is larger than the number of clients distinguished by the communication ID) in a manner that is identical to the rows of the communication IDs of the old dynamically set detection rules maintained by the detection rule storage unit 130 at the time of the last startup, thereby terminating the processing.

[0179] (S816) The detection rule generation unit 140 refers to the row with the same communication ID as the communication ID obtained by S805 or S806 among the pre-set detection rules maintained by the detection rule storage unit 130, and if the current vehicle state obtained from the vehicle state extraction unit 170 is inconsistent with the vehicle state of the above row (No in S816), S818 is implemented; if they are consistent (Yes in S816), S817 is implemented.

[0180] (S817) The detection rule generation unit 140 refers to the row of the dynamically set detection rules maintained by the detection rule storage unit 130 that is the same communication ID as the communication ID obtained by S805 or S806. If a group of the communication ID and the server address that is the same as the group of the communication ID and the server address obtained by S805 or the group of the communication ID and the client address obtained by S806 exists (yes in S817), S819 is implemented; if a group of the communication ID and the server address that is the same as the group of the communication ID and the client address obtained by S805 or the group of the communication ID and the client address obtained by S806 does not exist (no in S817), S818 is implemented.

[0181] (S818) When the detection rule generation unit 140 determines "No" in S816, the communication establishment frame is sent under an abnormal vehicle state. Additionally, when the detection rule generation unit 140 determines "No" in S817, during the communication establishment phase, although the service provision or service subscription is not implemented, the service provision stop or service subscription stop that should be implemented after the service provision or service subscription is implemented is implemented. The communication establishment frame is sent abnormally, and the received communication establishment frame is judged as an abnormal frame. The abnormal frame is sent to the abnormal notification unit 160, and the processing is terminated.

[0182] (S819) When the detection rule generation unit 140 obtains a communication ID and a server address group in S805, the communication establishment state of the row including the same communication ID and server address group as the obtained communication ID among the dynamic setting detection rules stored in the detection rule storage unit 130 is changed to OFF. When the detection rule generation unit 140 obtains a communication ID and a client address group in S804, the communication establishment state of the row including the same communication ID and client address group as the obtained communication ID is changed to OFF, and the processing ends. When changing the communication establishment state to OFF, the detection rule generation unit 140 waits for a predetermined time such as 1 second before making the change.

[0183] (S820) When the detection rule generation unit 140 obtains a group of communication ID and server address in S803, the communication establishment state of the row including the group of communication ID and server address that is the same as the obtained group of communication ID and server address among the dynamically set detection rules maintained by the detection rule storage unit 130 is changed to ON; when the detection rule generation unit 140 obtains a group of communication ID and client address in S804, the communication establishment state of the row including the group of communication ID and client address that is the same as the obtained group of communication ID and client address is changed to ON, and the processing is terminated.

[0184] [Flowchart of abnormality detection processing]

[0185] Fig. 9 This is a flowchart of an abnormality detection process performed by the abnormality detection unit 150 in Embodiment 1 of the present disclosure.

[0186] (S901) The abnormality detection unit 150 receives a communication frame including a SOME / IP header from the transmission unit 120, and implements S902.

[0187] (S902) The abnormality detection unit 150 refers to the received frame and obtains the communication ID, server address, and client address. The communication ID is obtained based on the MessageID recorded in the SOME / ID header, and the server address and client address are obtained based on the source IPv4 address and the destination IPv4 address recorded in the IPv4 header.

[0188] (S903) The abnormality detection unit 150 refers to the row with the same communication ID as the communication ID obtained by S902 among the pre-set detection rules maintained by the detection rule storage unit 130, and when the current vehicle state obtained from the vehicle state extraction unit 170 is inconsistent with the vehicle state of the above row (No in S903), S905 is implemented; when they are consistent (Yes in S903), S904 is implemented.

[0189] (S904) With respect to the group of communication ID, server address, and client address obtained by S902, if the abnormality detection unit 150 has a group of communication ID, server address, and client address identical to the group of communication ID, server address, and client address obtained in the dynamically set detection rule maintained by the detection rule storage unit 130 (yes in S904), S905 is implemented; if such group does not exist (no in S904), S906 is implemented.

[0190] (S905) The anomaly detection unit 150 refers to a row of a group of the communication ID, server address, and client address obtained by S902 in the dynamically set detection rules maintained by the detection rule storage unit 130, and when the communication establishment status in the row is on (ON) (yes in S905), the processing is terminated; when the communication establishment status is off (OFF) (no in S905), S906 is implemented.

[0191] (S906) When the abnormality detection unit 150 determines that S903 is No, a communication establishment frame is sent under an abnormal vehicle state. When S904 is No, a frame is sent without going through the regular communication establishment stage. When S905 is No, a frame is sent for unauthorized communication. The received communication frame is judged as an abnormal frame, and the abnormal frame is sent to the abnormality notification unit 160, thereby terminating the processing.

[0192] (Other embodiments)

[0193] Embodiment 1 has been described above as a technical example of the present disclosure. However, the technology of the present disclosure is not limited thereto, and can also be applied to embodiments that are appropriately modified, replaced, added, omitted, etc. For example, the following modified examples are also included in one embodiment of the present disclosure.

[0194] (1) In the above embodiments, the present disclosure is applied to automobile safety measures as an example, but the scope of application is not limited thereto. For example, the present disclosure is not limited to automobiles, but can also be applied to the movement of construction machinery, agricultural machinery, ships, railways, or aircraft.

[0195] (2) In the above-mentioned embodiment, in the dynamically set detection rules generated by the detection rule generation unit 140 and stored in the detection rule storage unit 130, the server address and the client address are described as IPv4 addresses, but the server address and the client address can also be IPv6 addresses, MAC addresses, port numbers, ECU identification numbers, communication protocol categories, or combinations thereof.

[0196] In addition, the server address and the client address may include the CANID used for the frames exchanged in CAN or CAN-FD. In this case, the CANID is stored in the communication frame of SOME / IP for communication.

[0197] (3) In the above-mentioned embodiment, the IDSECU 100 is described as being connected to the Ethernet 13, but specifically, it can also be installed as software or hardware in an Ethernet switch, Ethernet hub, gateway or router, and can also be installed as software or hardware in an ECU or zone ECU connected to them with an Ethernet cable.

[0198] When the IDSECU 100 is mounted on an Ethernet switch, an Ethernet hub, a gateway, or a router, after the abnormality detection unit 150 detects an abnormal frame, the Ethernet switch, the Ethernet hub, the gateway, or the router may cut off the abnormal frame.

[0199] When IDSECU100 is mounted on an ECU or a zone ECU, in order for all packets on Ethernet 13 including unicast packets to be received by IDSECU100, an Ethernet switch, Ethernet hub, gateway or router may transmit all packets to IDSECU100.

[0200] (4) In the above-mentioned embodiment, the Ethernet 13 is used to exchange information between ECUs through frames complying with the SOME / IP protocol. However, even if it is not the SOME / IP protocol, it can be other service-oriented communication protocols or data-oriented communication protocols. For example, DDS (Data Distribution Service) exists as another data-oriented communication protocol. In addition, REST communication or HTTP communication can also be performed. In this case, the detection rules can also be generated in data units instead of service units.

[0201] (5) In the above-mentioned embodiment, the abnormality notification unit 160 notifies the driver or the police of the abnormality, but the notification target may be a server connected to the vehicle, the Ministry of Transport, a neighboring vehicle, a traffic system, or a shared agency for vulnerability information.

[0202] (6) Some or all of the components of each device in the above-mentioned embodiments and modifications may be constituted by a system LSI (Large Scale Integration). A system LSI is a multifunctional LSI manufactured by integrating multiple components on a single chip. Specifically, it is a computer system composed of a microprocessor, ROM, RAM, etc. A computer program is recorded in the RAM. The microprocessor operates according to the computer program, and the system LSI realizes its functions.

[0203] In addition, each unit of the components constituting each of the above-mentioned devices may be independently implemented as a single chip, or a part or all of the components may be implemented as a single chip.

[0204] In addition, although it is set as system LSI here, it is sometimes called IC, LSI, super LSI, and ultra LSI depending on the degree of integration. In addition, the method of integrated circuit is not limited to LSI, and it can also be realized by a dedicated circuit or a general-purpose processor. After LSI is manufactured, a programmable FPGA (Field Programmable Gate Array) or a reconfigurable processor that can reconfigure the connection and setting of the circuit unit inside the LSI can also be used.

[0205] Furthermore, if integrated circuit technology that can replace LSI emerges due to the progress of semiconductor technology or other derived technologies, it is natural that the technology can be used to integrate functional blocks. It can also be applied to biotechnology, etc.

[0206] (7) A part or all of the components constituting each of the above-mentioned devices may also be constituted by an IC card or a single module that can be loaded and unloaded on each device. The IC card or module is a computer system composed of a microprocessor, ROM, RAM, etc. The IC card or module may also include the above-mentioned ultra-multifunctional LSI. The IC card or module realizes its function by the microprocessor operating according to the computer program. The IC card or the module may also have tamper-proof properties.

[0207] (8) The present disclosure can be implemented not only as an abnormality detection device but also as an abnormality detection method including steps (processing) performed by each component constituting the abnormality detection device.

[0208] The anomaly detection method is an anomaly detection method in a vehicle network system composed of Ethernet and performing service-oriented communication. The anomaly detection method includes: a detection rule generation step ( Figure 6S609), monitoring the communication establishment frames flowing in the Ethernet during the communication establishment phase of the service-oriented communication, and generating detection rules including the communication ID recorded in the communication establishment frame and the server address or the client address according to each communication ID; abnormality detection step ( Figure 7 S706), monitoring the communication frame flowing in the Ethernet during the communication phase of the service-oriented communication, referring to the detection rule including the communication ID recorded in the communication frame, and detecting the communication frame as an abnormal frame when the server address or the client address recorded in the communication frame is different from the server address or the client address included in the detection rule; and abnormality notification step ( Figure 7 S707), when an abnormal frame is detected, the abnormality is notified.

[0209] In addition, the steps in the abnormality detection method may also be executed by a computer (computer system). Furthermore, the present disclosure may be implemented as a program (computer program) that causes a computer to execute the steps included in the abnormality detection method, or as a digital signal composed of the computer program.

[0210] In addition, as a technical solution of the present invention, it can also be implemented as a non-transient computer-readable recording medium that records the computer program or digital signal, such as a floppy disk, a hard disk, a CD-ROM, an MO, a DVD, a DVD-ROM, a DVD-RAM, a BD (Blue-ray (registered trademark) Disc) or a semiconductor memory.

[0211] In addition, as a technical solution of the present disclosure, a computer program or a digital signal may be transmitted via an electric communication line, a wireless or wired communication line, a network represented by the Internet, data broadcasting, or the like.

[0212] In addition, as one technical aspect of the present disclosure, a computer system including a microprocessor and a memory may be provided, wherein the memory records the above-mentioned computer program and the microprocessor operates according to the computer program.

[0213] Furthermore, the program or digital signal may be recorded on a recording medium and transferred, or the program or digital signal may be transferred via a network or the like so that it can be executed by another independent computer system.

[0214] (9) Embodiments achieved by arbitrarily combining the components and functions described in the above embodiments are also included in the scope of the present disclosure.

[0215] Industrial Applicability

[0216] The present disclosure can be utilized in an in-vehicle network system using service-oriented communication.

[0217] Description of symbols

[0218] 10 In-vehicle network system

[0219] 11, 12, 13 Ethernet

[0220] 14 CAN

[0221] 15 CAN-FD

[0222] 100 ID SECU

[0223] 110 Ministry of Communications

[0224] 120 Transmission Department

[0225] 130 Detection rule storage unit

[0226] 140 Detection rule generation department

[0227] 150 Abnormality Detection Department

[0228] 160 Abnormal Notification Department

[0229] 170 Vehicle status extraction unit

[0230] 200 Central ECU

[0231] 300a, 300b, 300c, 300d area ECU

[0232] 400a Camera ECU

[0233] 400b Car Navigation ECU

[0234] 400c Steering ECU

[0235] 400d brake ECU.

Claims

1. An abnormality detection device is an abnormality detection device in a vehicle network system composed of Ethernet and performing service-oriented communication, the abnormality detection device comprising: A detection rule generating unit monitors the communication establishment frames flowing in the Ethernet during the communication establishment phase of the service-oriented communication, and dynamically generates a detection rule including the communication ID and the server address or the client address recorded in the communication establishment frame for each communication ID; an abnormality detection unit that monitors a communication frame flowing in the Ethernet during a communication phase of service-oriented communication, and detects the communication frame as an abnormal frame when a server address or a client address recorded in the communication frame is different from a server address or a client address included in the detection rule, referring to a detection rule including a communication ID recorded in the communication frame; and The abnormality notifying unit notifies the abnormality when the abnormal frame is detected.

2. The abnormality detection device according to claim 1, The detection rule generating unit generates a plurality of detection rules including the same communication ID and different server addresses or different client addresses for one or more communication IDs. The abnormality detection unit refers to multiple detection rules including the communication ID recorded in the communication frame, and detects the communication frame as an abnormal frame when the server address or client address recorded in the communication frame is different from the server address or client address included in each of the multiple detection rules.

3. The abnormality detection device according to claim 1, The detection rule includes a communication establishment state, which is indicated as ON when the server corresponding to the server address or the client corresponding to the client address included in the detection rule is in a state of communicating with the service corresponding to the communication ID included in the detection rule, and is indicated as OFF when not in a state of communicating. The detection rule generating unit, Confirm the communication category recorded in the communication establishment frame. If the communication category is service provision, service subscription response, service search or service subscription, change the communication establishment state contained in the detection rule containing the group of the communication ID and the server address or the group of the communication ID and the client address recorded in the communication establishment frame to ON. If the communication type is service provision stop or service subscription stop, the communication establishment state included in the detection rule including the group of communication ID and server address or the group of communication ID and client address recorded in the communication establishment frame is changed to OFF, The abnormality detection unit refers to the detection rule including the communication ID recorded in the communication frame. When the server address or the client address recorded in the communication frame is consistent with the server address or the client address included in the detection rule, if the communication establishment status included in the detection rule is OFF, the communication frame is detected as an abnormal frame.

4. The abnormality detection device according to claim 3, The detection rule generating unit, if the communication category is service provision stop or service subscription stop, will change the communication establishment status included in the detection rule of the group of communication ID and server address recorded in the communication establishment frame, or the group of communication ID and client address to OFF after waiting for a predetermined time.

5. The abnormality detection device according to claim 3, The detection rule generating unit, Confirm the communication category recorded in the communication establishment frame. If the communication category is service provision suspension, confirm whether a detection rule for the group including the communication ID and server address recorded in the communication establishment frame exists. If the detection rule does not exist, determine it as abnormal. If the communication category is service subscription suspension, confirm whether a detection rule for the group including the communication ID and client address recorded in the communication establishment frame exists. If the detection rule does not exist, determine it as abnormal.

6. The abnormality detection device according to claim 1, The abnormality detection device stores in advance at least one of the number of servers distinguished by communication ID indicating the maximum number of servers used by each communication ID and the number of clients distinguished by communication ID indicating the maximum number of clients used by each communication ID in the in-vehicle network system. The detection rule generating unit, Confirm whether a detection rule for the group of the communication ID and the server address recorded in the communication establishment frame exists. If the detection rule does not exist, if the number of types of the server address in the detection rule containing the communication ID is greater than the number of servers distinguished by the communication ID, it is determined to be abnormal; if the number of types of the server address in the detection rule containing the communication ID is less than or the same as the number of servers distinguished by the communication ID, add a detection rule for the group of the communication ID and the server address recorded in the communication establishment frame, or, Confirm whether a detection rule for the group including the communication ID and the client address recorded in the communication establishment frame exists. If the detection rule does not exist, if the number of types of the client address in the detection rule including the communication ID is greater than the number of clients distinguished by the communication ID, it is determined to be abnormal. If the number of types of the client address in the detection rule including the communication ID is less than or the same as the number of clients distinguished by the communication ID, add a detection rule for the group including the communication ID and the client address recorded in the communication establishment frame.

7. The abnormality detection device according to claim 6, The abnormality detection device stores the last detection rule generated when it was last started, When the detection rule generation unit generates the detection rule by monitoring the communication establishment frame, if it is determined to be abnormal, it refers to the previous detection rule containing the communication ID recorded in the communication establishment frame and rewrites the content recorded in the detection rule containing the communication ID with the content recorded in the previous detection rule.

8. The abnormality detection device according to claim 1, The abnormality detection device stores in advance the vehicle status for which communication is permitted for each communication ID. The detection rule generating unit obtains the current vehicle state when receiving the communication establishment frame, and determines that the communication ID recorded in the communication establishment frame is abnormal when the vehicle state of the communication permission stored in advance is different from the current vehicle state. The abnormality detection unit obtains the current vehicle state when receiving the communication frame, and detects the communication frame as an abnormal frame when the vehicle state for which communication is permitted for the communication ID recorded in the communication frame and stored in advance is different from the current vehicle state.

9. The abnormality detection device according to claim 8, The vehicle status includes at least one of an ignition status, a network connection status, a gear status, a driving support mode status, an automatic driving status, and a person or object detection status.

10. The abnormality detection device according to any one of claims 1 to 9, In the service-oriented communication, SOME / IP is used in the communication phase, and SOME / IP-SD is used in the communication establishment phase. The communication ID is the Service ID and the Method ID. The service offer, service subscription, service search, service subscription response, service offer stop, and service subscription stop in the communication category are Service Offer, Service Subscribe, Service Find, ServiceSubscribeAck, Stop Offer, and Stop Subscribe, respectively.

11. An abnormality detection method is an abnormality detection method in a vehicle network system composed of Ethernet and performing service-oriented communication, the abnormality detection method comprising: A detection rule generating step, monitoring the communication establishment frames flowing in the Ethernet during the communication establishment phase of the service-oriented communication, and dynamically generating a detection rule including the communication ID recorded in the communication establishment frame and the server address or the client address according to each communication ID; an abnormality detection step, monitoring a communication frame flowing in the Ethernet during a communication phase of the service-oriented communication, referring to a detection rule including a communication ID recorded in the communication frame, and detecting the communication frame as an abnormal frame when a server address or a client address recorded in the communication frame is different from a server address or a client address included in the detection rule; as well as The abnormality notification step is to notify the abnormality when the abnormal frame is detected.

Citation Information

Patent Citations

  • Detection method and system for protocol format exception

    CN101399710A

  • Malicious attack detection and analysis

    CN102947801A

  • SSL strip defense method based on historical information

    CN106161453A

  • Vehicle-mounted network system, abnormality detection electronic control unit and abnormality detection method

    CN106170953A

  • Public exit IP address detection method and detection device and electronic device

    CN108173714A