# US 2021/0281595 A1 · Anomaly detection device and anomaly detection method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0281595 A1
- Document ID: US20210281595A1
- Status: Published application
- Kind: A1
- Application number: 17/330,020
- Filed: 2021-05-25
- Published: 2021-09-09
- Earliest claimed: 2019-07-04
- Assignees: Panasonic Intellectual Property Corporation of America
- Applicants: Panasonic Intellectual Property Corporation of America
- Inventors: Ryo HIRANO; Takeshi KISHIKAWA; Yoshihiro UJIIE; Tomoyuki HAGA
- Web page: https://patentgrep.com/patent/US20210281595A1

## CPC

- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- G06F 21/31: User authentication
- G06F 21/55: Detecting local intrusion or implementing counter-measures
- G06F 21/62: Protecting access to data via a platform, e.g. using keys or access control rules
- H04L 63/0254: {Stateful filtering}
- H04L 63/20: {for managing network security; network security policies in general (filtering policies H04L63/0227)}
- H04L 67/12: specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04W 4/48: for in-vehicle communication
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

An anomaly detection device (IDS ECU) includes a detection rule generator that monitors a communication establishment frame flowing over Ethernet in a communication establishment phase of service-oriented communication and that generates, for each communication ID, a detection rule including the communication ID written in the communication establishment frame and a server (or client) address written in the communication establishment frame; an anomaly detector that monitors a communication frame flowing over the Ethernet in a communication phase of the service-oriented communication and that, by referring to a detection rule that includes a communication ID written in the communication frame, detects the communication frame as an anomalous frame when a server (or client) address written in the communication frame differs from a server (or client) address included in the detection rule; and an anomaly notifier that provides a notification of an anomaly in response to the anomalous frame being detected.

## Claims

### Claim 1

An anomaly detection device in an in-vehicle network system performing service-oriented communication via Ethernet (registered trade mark), the anomaly detection device comprising:
a detection rule generator that monitors a communication establishment frame flowing over the Ethernet in a communication establishment phase of the service-oriented communication and that generates, for each communication ID, a detection rule including the communication ID written in the communication establishment frame and a server address or a client address written in the communication establishment frame;
an anomaly detector that monitors a communication frame flowing over the Ethernet in a communication phase of the service-oriented communication and that, by referring to a detection rule that includes a communication ID written in the communication frame, detects the communication frame as an anomalous frame when a server address or a client address written in the communication frame differs from a server address or a client address included in the detection rule; and
an anomaly notifier that provides a notification of an anomaly in response to the anomalous frame being detected.

### Claim 2 (depends on 1)

The anomaly detection device according to claim 1, wherein
the detection rule generator generates, for each of one or more communication IDs, a plurality of detection rules that include an identical communication ID and server addresses different from each other or client addresses different from each other, and
the anomaly detector, by referring to a plurality of detection rules that include the communication ID written in the communication frame, detects the communication frame as an anomalous frame when the server address or the client address written in the communication frame differs from any of the server addresses or any of the client addresses included in the plurality of detection rules.

### Claim 3 (depends on 1)

The anomaly detection device according to claim 1, wherein
a detection rule includes a communication establishment state, the communication establishment state being ON when a server corresponding to a server address included in the detection rule or a client corresponding to a client address included in the detection rule is in a state of performing communication concerning a service corresponding to a communication ID included in the detection rule, the communication establishment state being OFF when the server corresponding to the server address included in the detection rule or the client corresponding to the client address included in the detection rule is not in a state of performing communication concerning the service corresponding to the communication ID included in the detection rule,
the detection rule generator:
checks a communication type written in the communication establishment frame;
sets, to ON, the communication establishment state included in the detection rule that includes a set of the communication ID and the server address written in the communication establishment frame or a set of the communication ID and the client address written in the communication establishment frame, when the communication type is a service offer, a service subscription acknowledgment, a service search, or a service subscription; and
sets, to OFF, the communication establishment state included in the detection rule that includes the set of the communication ID and the server address written in the communication establishment frame or the set of the communication ID and the client address written in the communication establishment frame, when the communication type is a service offer stop or a service subscription stop, and
the anomaly detector, by referring to the detection rule that includes the communication ID written in the communication frame, detects the communication frame as an anomalous frame when the server address or the client address written in the communication frame matches the server address or the client address included in the detection rule and when the communication establishment state included in the detection rule is OFF.

### Claim 4 (depends on 3)

The anomaly detection device according to claim 3, wherein
the detection rule generator sets, to OFF, the communication establishment state included in the detection rule that includes the set of the communication ID and the server address written in the communication establishment frame or the set of the communication ID and the client address written in the communication establishment frame after having waited for a predetermined time, when the communication type is the service offer stop or the service subscription stop.

### Claim 5 (depends on 3)

The anomaly detection device according to claim 3, wherein
the detection rule generator:
checks the communication type written in the communication establishment frame;
checks whether there is a detection rule that includes the set of the communication ID and the server address written in the communication establishment frame when the communication type is the service offer stop, and determines that the communication establishment frame is anomalous when the detection rule does not exist; and
checks whether there is a detection rule that includes the set of the communication ID and the client address written in the communication establishment frame when the communication type is the service subscription stop, and determines that the communication establishment frame is anomalous when the detection rule does not exist.

### Claim 6 (depends on 1)

The anomaly detection device according to claim 1, wherein
the anomaly detection device stores in advance at least one of a server count per communication ID or a client count per communication ID in the in-vehicle network system, the server count per communication ID indicating a maximum number of servers to be used for each communication ID, the client count per communication ID indicating a maximum number of clients to be used for each communication ID, and
the detection rule generator:
checks whether there is a detection rule that includes the set of the communication ID and the server address written in the communication establishment frame, and when the detection rule does not exist,
determines that the communication establishment frame is anomalous when a type count of the server address in a detection rule that includes the communication ID is higher than the server count per communication ID, or
adds a detection rule that includes the set of the communication ID and the server address written in the communication establishment frame when the type count of the server address in the detection rule that includes the communication ID is equal to or lower than the server count per communication ID; or
checks whether there is a detection rule that includes the set of the communication ID and the client address written in the communication establishment frame, and when the detection rule does not exist,
determines that the communication establishment frame is anomalous when a type count of the client address in a detection rule that includes the communication ID is higher than the client count per communication ID, or
adds a detection rule that includes the set of the communication ID and the client address written in the communication establishment frame when the type count of the client address in the detection rule that includes the communication ID is equal to or lower than the client count per communication ID.

### Claim 7 (depends on 6)

The anomaly detection device according to claim 6, wherein
the anomaly detection device stores a previous detection rule generated when started last time, and
in response to determining that the communication establishment frame is anomalous when the detection rule generator monitors the communication establishment frame to generate a detection rule, the detection rule generator refers to a previous detection rule that includes the communication ID written in the communication establishment frame and overwrites content written in the detection rule that includes the communication ID with content written in the previous detection rule.

### Claim 8 (depends on 1)

The anomaly detection device according to claim 1, wherein
the anomaly detection device stores in advance a vehicle state in which communication is permitted for each communication ID,
the detection rule generator acquires a current vehicle state in response to receiving the communication establishment frame, and determines that the communication establishment frame is anomalous when the current vehicle state differs from the vehicle state in which the communication is permitted as stored in advance for the communication ID written in the communication establishment frame, and
the anomaly detector acquires a current vehicle state in response to receiving the communication frame, and detects the communication frame as an anomalous frame when the current vehicle state differs from the vehicle state in which the communication is permitted as stored in advance for the communication ID written in the communication frame.

### Claim 9 (depends on 8)

The anomaly detection device according to claim 8, wherein
the vehicle state includes at least one of an ignition state, a network connection state, a gearshift state, a drive assist mode state, an automatic driving state, or a person or object detection state.

### Claim 10 (depends on 1)

The anomaly detection device according to claim 1, wherein
SOME/IP is used in the communication phase of the service-oriented communication,
SOME/IP-SD is used in the communication establishment phase of the service-oriented communication,
the communication ID includes ServiceID and MethodID, and
a service offer, a service subscription, a service search, a service subscription acknowledgment, a service offer stop, and a service subscription stop in a communication type are, respectively, ServiceOffer, ServiceSubscribe, ServiceFind, ServiceSubscribeAck, StopOffer, and StopSubscribe.

### Claim 11

An anomaly detection method in an in-vehicle network system performing service-oriented communication via Ethernet (registered trade mark), the anomaly detection method comprising:
monitoring a communication establishment frame flowing over the Ethernet in a communication establishment phase of the service-oriented communication and generating, for each communication ID, a detection rule including the communication ID written in the communication establishment frame and a server address or a client address written in the communication establishment frame;
monitoring a communication frame flowing over the Ethernet in a communication phase of the service-oriented communication and, by referring to a detection rule that includes a communication ID written in the communication frame, detecting the communication frame as an anomalous frame when a server address or a client address written in the communication frame differs from a server address or a client address included in the detection rule; and
providing a notification of an anomaly in response to detecting the anomalous frame.
