KR20180039586A - A CAN controller secured from hacking attack based on the CAN protocol - Google Patents

A CAN controller secured from hacking attack based on the CAN protocol Download PDF

Info

Publication number
KR20180039586A
KR20180039586A KR1020180010847A KR20180010847A KR20180039586A KR 20180039586 A KR20180039586 A KR 20180039586A KR 1020180010847 A KR1020180010847 A KR 1020180010847A KR 20180010847 A KR20180010847 A KR 20180010847A KR 20180039586 A KR20180039586 A KR 20180039586A
Authority
KR
South Korea
Prior art keywords
filter
message
transmission
controller
reception
Prior art date
Application number
KR1020180010847A
Other languages
Korean (ko)
Inventor
홍석민
이현정
Original Assignee
주식회사 페스카로
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 페스카로 filed Critical 주식회사 페스카로
Priority to KR1020180010847A priority Critical patent/KR20180039586A/en
Publication of KR20180039586A publication Critical patent/KR20180039586A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40104Security; Encryption; Content protection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1408Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • H04L63/1466Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Small-Scale Networks (AREA)

Abstract

According to one embodiment of the present invention, a method of controlling an electronic control unit including a controller area network (CAN) controller that is safe for CAN communication based hacking attacks comprises: a step of storing message IDs permitted to be transmitted in a protection memory as filter values of a transmission filter; a step of setting the filter value of the transmission filter based on the filter value stored in the protection memory; a step of temporarily storing transmission data to be transmitted to a CAN bus in a transmission buffer; and a step of searching the message ID of the transmission data in the transmission filter, and filtering the transmission data, wherein the protection memory or a protection area of the protection memory does not change or delete the filter value stored by the CAN controller or a microcontroller of the electronic control device.

Description

CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러{A CAN controller secured from hacking attack based on the CAN protocol}[0001] The present invention relates to a CAN controller secured against a hacking attack based on CAN communication,

본 발명은 각 CAN 컨트롤러에서 CAN 버스로 전송하려는 메시지를 필터링하되, 해당 CAN 컨트롤러에서 유효한 송신용 아이디(ID)를 가지는 메시지만 전송하도록 필터링하는, CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러에 관한 것이다.The present invention relates to a CAN communication-based hacking attack-safe CAN controller that filters messages sent from each CAN controller to the CAN bus, but filters only those messages having valid transmission IDs from the corresponding CAN controller.

또한, 본 발명은 각 CAN 컨트롤러에서 CAN버스로 브로드캐스팅되는 메시지를 필터링하여 수신하되, 메시지의 전송 주기를 체크하여 전송 주기에 맞지 않은 메시지를 차단하거나 경고하는, CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러에 관한 것이다.Further, the present invention provides a CAN controller which is safe for a hacking attack based on CAN communication, which filters and receives a message broadcasted on a CAN bus in each CAN controller, .

일반적으로, 전자제어기술의 비약적인 발전에 따라 자동차에서도 기계적인 방법에 의해 동작하던 각종 장치들이 운전자의 편리성 및 운행의 안전성 등의 이유로 전기적인 방법에 의해 구동되고 있으며, 자동차의 시스템은 점차 고도화되고 최첨단화되어 가고 있다. 특히, 차량의 시스템이 전자동화됨에 따라, 차량 내부 제어기들 간의 통신 또한 빈번하게 이뤄지고 있다. 차량 내부 통신을 위해서 CAN(Controller Area Network) 통신이 일반적으로 이용된다.In general, according to the remarkable development of electronic control technology, various devices which are operated by a mechanical method in an automobile are driven by an electric method for convenience of driver and safety of operation, and automobile systems are gradually advanced It is becoming more advanced. Particularly, as the system of the vehicle becomes electronic, communication among the in-vehicle controllers is also frequently performed. CAN (Controller Area Network) communication is generally used for intra-vehicle communication.

즉, 자동차 내부의 전자제어시스템은 엔진제어기, 변속기제어기, 브레이크제어기, 에어백제어기 등 수십여개의 전자식 제어기(Electronic Control Unit)들로 구성되어 있다. 또한, 각 전자식 제어기들은 CAN 통신을 위한 CAN 컨트롤러를 구비하고, 이러한 전자식 제어기들 간의 통신은 CAN 통신을 사용한다.That is, the electronic control system in the automobile is composed of dozens of electronic control units such as an engine controller, a transmission controller, a brake controller, and an air bag controller. In addition, each electronic controller has a CAN controller for CAN communication, and the communication between these electronic controllers uses CAN communication.

기본적으로, CAN(Controller Area Network) 프로토콜 방식의 메시지 통신에 따르면, 네트워크는 다수의 노드(또는 CAN 컨트롤러)와 공통의 CAN 버스로 구성되고, 각 노드는 브로드캐스팅 방식으로 메시지를 전송하고, 각 노드가 필요한 메시지를 선택하여 수신한다. 즉, 모든 CAN 컨트롤러(또는 노드)는 CAN 버스(Bus)를 공통으로 사용하여 메시지를 송수신한다. 또한, 각 CAN 컨트롤러(또는 노드)는 전송할 메시지들을 네트워크 상 모든 노드들에게 브로드캐스트 방식으로 전송한다. 그리고 메시지 식별자에 의한 자체적인 중재 기능을 제공한다. 구체적으로, 각 노드또는 CAN 컨트롤러는 메시지의 식별자를 인식하여, 브로트캐스트된 메시지들 중에서 필요한 메시지만 걸러서 수신한다. 즉, CAN 통신에는, 메시지의 데이터 프레임 내에 메시지의 송신 대상(destination)을 인증할 수 있는 필드가 없다.Basically, according to a CAN (Controller Area Network) protocol-based message communication, a network is composed of a plurality of nodes (or a CAN controller) and a common CAN bus, each node transmits a message in a broadcast manner, Selects and receives a necessary message. That is, all CAN controllers (or nodes) send and receive messages using a common CAN bus. In addition, each CAN controller (or node) broadcasts messages to be transmitted to all nodes on the network in a broadcast manner. And provides its own arbitration function based on the message identifier. Specifically, each node or the CAN controller recognizes the identifier of the message, and receives only necessary messages among the broadcasted messages. That is, in the CAN communication, there is no field for authenticating the transmission destination of the message in the data frame of the message.

그런데, 앞서 본 바와 같이, CAN(Controller Area Network) 통신은 브로드캐스팅 방식과 메시지 식별자만을 이용하여 송수신함으로써, CAN 프로토콜에 내재된 보안위험성이 존재한다.However, as described above, there is a security risk inherent in the CAN protocol by transmitting and receiving CAN (Controller Area Network) communication using only the broadcasting method and message identifier.

예를 들어, CAN 통신이 브로드캐스트 방식으로 메시지를 전송하기 때문에, CAN 통신 네트워크에 악의적인 노드를 추가하면, 악의적인 노드는 다른 노드들이 전송하는 모든 메시지를 수집할 수 있다. 그리고 악의적인 노드는 수집된 정보를 이용하여, 가짜 메시지를 생성하여 CAN통신 네트워크에 전송할 수 있다. CAN 통신 메시지의 데이터 프레임 내에는 송신하는 대상을 인증하는 별도의 필드가 존재하지 않기 때문에, 상기와 같은 스푸핑 공격이 쉽게 가능하다.For example, because a CAN communication sends messages in a broadcast fashion, adding a malicious node to a CAN communication network can allow a malicious node to collect all messages sent by other nodes. The malicious node can then use the collected information to generate a fake message and send it to the CAN communication network. In the data frame of the CAN communication message, there is no separate field for authenticating the transmission object, so that the spoofing attack as described above is easily possible.

또한, CAN 메시지 식별자에 의한 중재기능을 악용하면, 서비스거부 공격도 쉽게 가능하다. 식별자에 의한 중재기능은 각 식별자에 우선순위가 부여되어, 우선순위가 부여된 메시지를 우선적으로 전송해주는 기능을 말한다. 일단 공격자(또는 악의적인 노드)가 CAN통신 네트워크상 메시지를 수집하여 가장 높은 우선순위를 가진 식별자(ID)를 알아낸다. 그리고 공격자는 상기 식별자를 이용하여 가짜 메시지를 만들고, 이 메시지를 네트워크 상에 지속적으로 전송한다. 공격자에 의한 가짜 메시지가 높은 우선순위를 가지고 있기 때문에, 다른 정상적인 메시지는 CAN 메시지 식별자에 의한 중재기능에 의해 전송되지 못한다. 이러한 상태가 지속되면 CAN 통신 네트워크에는 공격자의 메시지만이 남게 되어, 다른 정상적인 메시지들이 전달되지 못하게 되는 서비스 거부 상황이 발생된다.In addition, if the arbitration function based on the CAN message identifier is abused, a denial of service attack is also easily possible. An arbitration function based on an identifier is a function of assigning a priority to each identifier and preferentially transmitting a message to which a priority is assigned. Once an attacker (or malicious node) collects messages on the CAN communication network, it finds out the identifier with the highest priority (ID). Then, the attacker uses the identifier to create a fake message, and continuously transmits the message on the network. Since the fake message by the attacker has a high priority, other normal messages are not transmitted by the arbitration function by the CAN message identifier. If this state continues, only the attacker's message remains in the CAN communication network, resulting in a denial of service situation where other normal messages can not be delivered.

특히, 종래의 CAN 통신에 의한 차량 전자제어 시스템은 보안 취약성이 높은 장치들과 보안상 중요한 장치들이 동일한 CAN버스에 연결되어 있다. 따라서 외부망 연결성이 높아 보안 취약성이 높은 장치들(텔레매틱스, AVN시스템 등)이 해커들에게 장악되면, 보안상 중요한 장치들(엔진제어기, 브레이크제어기, 에어백제어기등)이 도용되어, 차량 시스템에 중대한 보안 위협이 될 수 있는 문제점이 존재한다.In particular, conventional vehicle electronic control systems based on CAN communication are connected to the same CAN bus with high security vulnerability devices and security critical devices. Therefore, if security devices (such as engine controller, brake controller, airbag controller, etc.) are stolen when high-security devices (telematics, AVN system, etc.) are secured to hackers due to high external network connectivity, There is a problem that can become a security threat.

상기와 같은 문제점을 해결하기 위해, 암호화키를 서로 교환하고 상호 공유되는 타임 윈도우 내에서만 암호화하여 메시지를 송수신하는 기술이 제시되고 있 다[특허문헌 1]. 또한, 비밀키 스트림을 생성하여 대칭키 방식으로 암호화하여 메시지를 송수신하는 기술도 제시되고 있다[특허문헌 2,3]. 또한, 암호키를 생성하기 위한 OTP(원타임 패스워드) ROM을 구비하는 기술도 제시되고 있다[특허문헌 4].CAN 통신에서 메시지의 주기성을 이용하여 해킹 메시지 여부를 판단하는 기술이 제시되고 있다[특허문헌 5].In order to solve the above problems, there is proposed a technique of transmitting and receiving a message by exchanging encryption keys and encrypting only within a mutually-shared time window [Patent Document 1]. Also, there is proposed a technique of generating a secret key stream and encrypting it with a symmetric key method to transmit and receive a message [Patent Literatures 2 and 3]. In addition, a technique of providing an OTP (one-time password) ROM for generating an encryption key is also proposed (Patent Document 4). A technique for determining whether a hacking message is used by using the periodicity of a message in CAN communication has been proposed Literature 5].

그러나 상기 선행기술들은 메시지를 암호화하여 송수신하기 때문에, 암호화 또는 복호화하기 위한 연산을 수행해야 하고, 또한, 암호화 통신을 위하여 암호화키 또는 비밀키를 생성하거나 교환해야 한다는 문제점이 있다. 이와 같은 암호화 연산을 위하여 연산 시간이 소요되기 때문에, 메시지의 송수신 시간이 지연될 수 있는 문제점이 있다.However, since the above-mentioned prior art encrypts and transmits a message, an operation for encrypting or decrypting the message must be performed, and an encryption key or a secret key must be generated or exchanged for encryption communication. Since a computation time is required for such an encryption operation, there is a problem that the transmission and reception time of a message may be delayed.

한국등록특허 제10-1651648호(2016.08.29.공고)Korean Registered Patent No. 10-1651648 (Announced 2016.08.29) 한국공개특허 제10-2011-0057348호(2011.06.01.공개)Korean Patent Laid-Open No. 10-2011-0057348 (published on June 1, 2011) 한국등록특허 제10-1413427호(2014.07.01.공고)Korean Registered Patent No. 10-1413427 (Announced 2014.07.01) 한국공개특허 제10-2016-0093764호(2016.08.09.공개)Korean Patent Publication No. 10-2016-0093764 (published on Aug. 20, 2016) 한국등록특허 제10-1472896호(2014.12.16.공고)Korean Registered Patent No. 10-1472896 (issued October 16, 2014)

본 발명의 목적은 상술한 바와 같은 문제점을 해결하기 위한 것으로, 각 CAN 컨트롤러에서 CAN 버스로 전송하려는 메시지를 필터링하되, 해당 CAN 컨트롤러에서 유효한 송신용 아이디(ID)를 가지는 메시지만 전송하도록 필터링하는, CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러을 제공하는 것이다.An object of the present invention is to solve the above-mentioned problems, and it is an object of the present invention to provide a CAN controller which filters a message to be transmitted to a CAN bus in each CAN controller but filters only a message having a valid transmission ID in the corresponding CAN controller, It is to provide a CAN controller that is safe for CAN communication-based hacking attacks.

또한, 본 발명의 목적은 각 CAN 컨트롤러에서 CAN버스로 브로드캐스팅되는 메시지를 필터링하여 수신하되, 메시지의 전송 주기를 체크하여 전송 주기에 맞지 않은 메시지를 차단하거나 경고하는, CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러을 제공하는 것이다.It is another object of the present invention to provide a method and apparatus for transmitting and receiving a message broadcasted on a CAN bus in each CAN controller by receiving and filtering a message that does not match the transmission cycle, CAN controller.

본 발명의 일 실시예에 따르면, CAN 통신 기반 해킹공격에 안전한, CAN 컨트롤러를 포함하는 전자식 제어 장치(Electronic Control Unit)를 제어하는 방법에 있어서, 전송이 허용된 메시지 ID들을 전송 필터의 필터값으로서 보호메모리에 저장하는 단계; 상기 보호메모리에 저장된 필터값에 기초하여, 전송필터의 필터값을 설정하는 단계; CAN 버스로 전송할 전송데이터를 전송버퍼에 임시로 저장하는 단계; 상기 전송데이터의 메시지 ID를 상기 전송필터에서 검색하여, 상기 전송데이터를 필터링하는 단계;를 포함하고, 상기 보호메모리 또는 상기 보호메모리의 보호영역은 상기 전자식 제어 장치의 CAN 컨트롤러 또는 마이크로컨트롤러에 의해 저장된 필터값이 변경되거나 삭제되지 않는 것을 특징으로 하는, 전자식 제어 장치를 제어하는 방법이 제공된다.According to an embodiment of the present invention, there is provided a method of controlling an electronic control unit including a CAN controller, which is safe for hacking attacks based on CAN communication, Storing in a protected memory; Setting a filter value of the transmission filter based on the filter value stored in the protection memory; Temporarily storing transmission data to be transmitted to a CAN bus in a transmission buffer; And searching the transmission filter for a message ID of the transmission data to filter the transmission data, wherein the protection area of the protection memory or the protection memory is stored by a CAN controller or a microcontroller of the electronic control unit A method of controlling an electronic control device is provided, wherein the filter value is not changed or deleted.

본 발명의 일 실시예에 따르면, CAN 통신 기반 해킹공격에 안전한, CAN 컨트롤러를 포함하는 전자식 제어 장치(Electronic Control Unit)를 제어하는 방법에 있어서, 전송이 허용된 메시지 ID들을 전송필터의 필터값으로서, 수신이 허용된 메시지 ID들을 수신필터의 필터값으로서 보호메모리에 저장하는 단계; 상기 보호메모리에 저장된 필터값에 기초하여, 전송필터의 필터값 및 수신필터의 필터값을 설정하는 단계; CAN 버스로 전송할 전송데이터를 전송버퍼에 임시로 저장하는 단계; 상기 전송데이터의 메시지 ID를 상기 전송필터에서 검색하여, 상기 전송데이터를 필터링하는 단계; 를 포함하고, CAN 버스로부터 수신한 수신데이터의 메시지 ID를 상기 수신필터에서 검색하여, 상기 수신데이터를 필터링하는 단계; 상기 보호메모리 또는 상기 보호메모리의 보호영역은 상기 전자식 제어 장치의 CAN 컨트롤러 또는 마이크로컨트롤러에 의해 저장된 필터값이 변경되거나 삭제되지 않는 것을 특징으로 하는, 전자식 제어 장치를 제어하는 방법이 제공된다.According to an embodiment of the present invention, there is provided a method of controlling an electronic control unit including a CAN controller, which is safe for hacking attacks based on CAN communication, Storing the message IDs permitted to be received in the protection memory as filter values of the reception filter; Setting a filter value of the transmission filter and a filter value of the reception filter based on the filter value stored in the protection memory; Temporarily storing transmission data to be transmitted to a CAN bus in a transmission buffer; Searching the transmission filter for a message ID of the transmission data, and filtering the transmission data; Searching for the message ID of the received data received from the CAN bus in the receive filter and filtering the received data; Wherein the protection area of the protection memory or the protection memory does not change or delete the filter value stored by the CAN controller or the microcontroller of the electronic control unit.

본 발명의 일 실시예에 따르면, CAN 통신 기반 해킹공격에 안전한, CAN 컨트롤러를 포함하는 전자식 제어 장치(Electronic Control Unit)를 제어하는 방법에 있어서, 수신이 허용된 메시지 ID들을 수신필터의 필터값으로서 보호메모리에 저장하는 단계; 상기 보호메모리에 저장된 필터값에 기초하여, 수신필터의 필터값을 설정하는 단계; CAN 버스로부터 수신한 수신데이터의 메시지 ID를 상기 수신필터에서 검색하여, 상기 수신데이터를 필터링하는 단계; 상기 보호메모리 또는 상기 보호메모리의 보호영역은 상기 전자식 제어 장치의 CAN 컨트롤러 또는 마이크로컨트롤러에 의해 저장된 필터값이 변경되거나 삭제되지 않는 것을 특징으로 하는, 전자식 제어 장치를 제어하는 방법이 제공된다.According to an embodiment of the present invention, there is provided a method of controlling an electronic control unit including a CAN controller, which is safe for hacking attacks based on CAN communication, Storing in a protected memory; Setting a filter value of the reception filter based on the filter value stored in the protection memory; Searching the reception filter for the message ID of the reception data received from the CAN bus, and filtering the reception data; Wherein the protection area of the protection memory or the protection memory does not change or delete the filter value stored by the CAN controller or the microcontroller of the electronic control unit.

본 발명에 있어서, 상기 필터값을 설정하는 단계는 보호가능 모드 및 테스트 모드 중 하나의 모드로 설정되고, 보호가능 모드인 경우 상기 보호메모리에 저장된 필터값으로 상기 필터값을 설정하고, 테스트 모드인 경우 상기 전자식 제어 장치의 CAN 컨트롤러 또는 마이크로컨트롤러에 의해 상기 필터값을 설정하는 것을 특징으로 한다.In the present invention, the step of setting the filter value may be set to one of a protectable mode and a test mode. In case of a protectable mode, the filter value may be set to a filter value stored in the protection memory. And the filter value is set by the CAN controller or the microcontroller of the electronic control unit.

본 발명에 있어서, 상기 전자식 제어 장치의 제어 방법은, 상기 수신데이터에 수신시간을 삽입하는 수신시간 삽입 단계를 더 포함하고, 상기 수신데이터를 필터링하는 단계는 동일한 메시지 ID를 가지고 가장 최근에 수신한 적어도 3개의 수신데이터의 수신시간의 차이와, 해당 메시지 ID의 주기를 비교하여, 수신데이터의 악성 여부를 판단하는 것을 특징으로 한다. In the present invention, the control method of the electronic control apparatus may further include a receiving time inserting step of inserting a receiving time into the received data, wherein filtering the received data includes: The difference between the reception times of at least three pieces of received data and the period of the message ID are compared to determine whether the received data is malicious or not.

본 발명에 있어서, 상기 수신데이터를 필터링하는 단계는 가장 최근에 수신한 적어도 3개의 수신데이터 중에서 첫번째 수신시간과 3번째 수신시간의 차이가 해당 메시지 ID의 주기 보다 작으면, 상기 적어도 3개의 수신데이터 중 적어도 1개의 수신데이터를 악성 메시지로 판단하는 것을 특징으로 한다.In the present invention, filtering the received data may include filtering the at least three received data if the difference between the first received time and the third received time among the at least three received data most recently received is smaller than the period of the corresponding message ID And judges that at least one of the received data is a malicious message.

본 발명에 있어서, 상기 보호메모리는 ROM(Read Only Memory) 또는, 플래시메모리의 비휘발성 메모리인 것을 특징으로 한다.In the present invention, the protection memory is a ROM (Read Only Memory) or a nonvolatile memory of a flash memory.

본 발명에 기재된 방법을 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램.A computer program stored in a computer-readable medium for carrying out the method according to the present invention.

본 발명의 일 실시예에 따르면 CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러에 있어서, 수신이 허용된 메시지 ID들을 수신필터로 보유하고, CAN 버스로 수신한 수신데이터의 메시지 ID를 상기 수신필터에서 검색하여, 상기 수신데이터를 필터링하는 수신필터부; 상기 수신필터의 필터값을 저장하는 보호메모리; 및, 상기 보호메모리에 저장된 필터값을 가져와서, 상기 수신필터의 필터값을 설정하는 필터값 설정부를 포함하고, 상기 보호메모리 또는 상기 보호메모리의 보호영역은 제어기의 CAN 컨트롤러 또는 마이크로컨트롤러에 의해 저장된 필터값이 변경되거나 삭제되지 않는 것을 특징으로 하는 CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러가 제공된다.According to an embodiment of the present invention, in a CAN controller that is safe for a hacking attack based on CAN communication, the CAN controller retains message IDs that are allowed to be received by the reception filter, and retrieves the message ID of the received data received by the CAN bus from the reception filter A reception filter unit for filtering the reception data; A protection memory for storing a filter value of the reception filter; And a filter value setting unit for obtaining a filter value stored in the protection memory and setting a filter value of the reception filter, wherein the protection area of the protection memory or the protection memory is stored by a CAN controller or a microcontroller of the controller A CAN controller is provided which is safe for hacking attacks based on CAN communication, characterized in that the filter value is not changed or deleted.

본 발명에 있어서, 상기 CAN 컨트롤러는, 상기 수신데이터에 수신시간을 삽입하는 수신시간 삽입부를 더 포함하고, 상기 수신필터부는 동일한 메시지 ID를 가지고 가장 최근에 수신한 적어도 3개의 수신데이터의 수신시간의 차이와, 해당 메시지 ID의 주기를 비교하여, 수신데이터의 악성 여부를 판단하는 것을 특징으로 한다.In the present invention, the CAN controller further includes a reception time inserter for inserting a reception time into the received data, and the reception filter unit has a reception time of at least three reception data And comparing the difference with the cycle of the message ID to judge whether the received data is malicious or not.

본 발명의 일 실시예에 따르면, CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러에 있어서, CAN 버스로 전송할 전송데이터를 임시로 저장하는 전송버퍼부; 전송이 허용된 메시지 ID들을 전송필터로 보유하고, 상기 전송데이터의 메시지 ID를 상기 전송필터에서 검색하여, 상기 전송데이터를 필터링하는 전송필터부; 상기 전송필터의 필터값을 저장하는 보호메모리; 및, 상기 보호메모리에 저장된 필터값을 가져와서, 상기 전송필터부의 전송필터의 필터값을 설정하는 필터값 설정부를 포함하고, 상기 필터값 설정부는 보호가능 모드 및 테스트 모드로 설정되고, 보호가능모드인 경우 상기 보호메모리에 저장된 필터값으로 상기 전송필터의 필터값을 설정하고, 테스트 모드인 경우 제어기의 CAN 컨트롤러 또는 마이크로컨트롤러에 의해 상기 전송필터의 필터값을 설정하는 것을 특징으로 하는 CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러가 제공된다.According to an embodiment of the present invention, there is provided a CAN controller which is safe for a hacking attack based on CAN communication, comprising: a transmission buffer unit for temporarily storing transmission data to be transmitted to a CAN bus; A transmission filter unit for holding message IDs permitted to be transmitted as transmission filters, searching the transmission filter for a message ID of the transmission data, and filtering the transmission data; A protection memory for storing a filter value of the transmission filter; And a filter value setting unit for obtaining a filter value stored in the protection memory and setting a filter value of a transmission filter of the transmission filter unit, wherein the filter value setting unit is set to a protectable mode and a test mode, The controller sets a filter value of the transmission filter with a filter value stored in the protection memory and sets a filter value of the transmission filter by a CAN controller or a microcontroller of the controller in a test mode, An attack-safe CAN controller is provided.

본 발명의 일 실시예에 따르면, CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러에 있어서, CAN 버스로 전송할 전송데이터를 임시로 저장하는 전송버퍼부; 전송이 허용된 메시지 ID들을 전송필터로 보유하고, 상기 전송데이터의 메시지 ID를 상기 전송필터에서 검색하여, 상기 전송데이터를 필터링하는 전송필터부; 상기 전송필터의 필터값을 저장하는 보호메모리; 및, 상기 보호메모리에 저장된 필터값을 가져와서, 상기 전송필터부의 전송필터의 필터값을 설정하는 필터값 설정부를 포함하고, 상기 보호메모리는 ROM(Read Only Memory) 또는, 플래시메모리의 비휘발성 메모리인 것을 특징으로 하는 CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러가 제공된다.According to an embodiment of the present invention, there is provided a CAN controller which is safe for a hacking attack based on CAN communication, comprising: a transmission buffer unit for temporarily storing transmission data to be transmitted to a CAN bus; A transmission filter unit for holding message IDs permitted to be transmitted as transmission filters, searching the transmission filter for a message ID of the transmission data, and filtering the transmission data; A protection memory for storing a filter value of the transmission filter; And a filter value setting unit for obtaining a filter value stored in the protection memory and setting a filter value of a transmission filter of the transmission filter unit, wherein the protection memory is a ROM (Read Only Memory) or a nonvolatile memory A CAN controller that is safe for hacking attacks based on CAN communication is provided.

상술한 바와 같이, 본 발명에 따른 CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러에 의하면, 자동차 CAN 버스에 연결된 전자식 제어장치(Electric Control Unit, ECU)가 CAN 버스로부터 수신(Receive)한 CAN 메시지들 중에서 공격(악성) 메시지를 탐지하거나 차단할 수 있는 효과가 얻어진다.As described above, according to the CAN controller, which is safe for hacking attacks based on CAN communication according to the present invention, an electronic control unit (ECU) connected to the CAN bus of an automobile transmits an attack (Malicious) message can be detected or intercepted.

또한, 본 발명에 따른 CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러에 의하면, 해커에게 제어권한을 탈취당한 전자식 제어장치(ECU)가 자동차 CAN 버스에 공격(악성) 메시지를 전송(Transmit)하는 해킹공격의 도구로 악용되는 것을 차단할 수 있는 효과가 얻어진다. 특히, 알려진 공격기법들 뿐만 아니라 알려지지 않은 형태의 수신된 공격메시지 탐지나 차단이 가능하다.Further, according to the CAN controller which is safe for a hacking attack based on CAN communication according to the present invention, it is possible to prevent a hacking attack in which an electronic control unit (ECU) It is possible to prevent the abuse by the tool. In particular, it is possible to detect or block unknown attack messages as well as known attack methods.

또한, 본 발명에 따른 CAN 통신 기반 해킹공격에 안전한 CAN 컨트롤러에 의하면, CAN 버스에 연결된 전자식 제어장치(ECU)에 직접 탐지 및 차단 시스템을 구비함으로써, 반도체 형태로 내장된 안전한 CAN통신 환경을 제공할 수 있고, 이로 인해, 자동차 통신 국제표준 규격을 준수하여 기존 자동차 내부 네트워크에 변경 없이 적용할 수 있는 효과가 얻어진다.Further, according to the CAN controller which is safe for a hacking attack based on CAN communication according to the present invention, by providing a detection and blocking system directly to an electronic control unit (ECU) connected to a CAN bus, it is possible to provide a safe CAN communication environment built in a semiconductor form Therefore, it is possible to apply the present invention to the internal network of the existing automobile without any change in accordance with the international standard for automobile communication.

도 1은 본 발명을 실시하기 위한 전체 시스템의 구성에 대한 블록도.
도 2는 본 발명의 일실시예에 따른 CAN 컨트롤러의 구성에 대한 블록도.
도 3은 본 발명의 일실시예에 따른 CAN 메시지의 송수신 데이터에 대한 구성도.
도 4는 본 발명의 일실시예에 따른 필터값을 설정하는 방법을 설명하는 흐름도.
도 5는 본 발명의 일실시예에 따른 전송필터부의 세부구성에 대한 블록도.
도 6은 본 발명의 일실시예에 따른 수신필터부의 세부구성에 대한 블록도.
도 7은 본 발명의 일실시예에 따른 수신데이터를 필터링하는 방법을 설명하는 흐름도.
1 is a block diagram of a configuration of an overall system for implementing the present invention;
2 is a block diagram of a configuration of a CAN controller according to an embodiment of the present invention;
3 is a block diagram of transmission / reception data of a CAN message according to an embodiment of the present invention.
4 is a flowchart illustrating a method of setting a filter value according to an embodiment of the present invention;
5 is a block diagram of a detailed configuration of a transmission filter unit according to an embodiment of the present invention;
6 is a block diagram of a detailed configuration of a reception filter unit according to an embodiment of the present invention;
7 is a flow diagram illustrating a method for filtering received data in accordance with an embodiment of the present invention.

이하, 본 발명의 실시를 위한 구체적인 내용을 도면에 따라서 설명한다.DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail with reference to the drawings.

또한, 본 발명을 설명하는데 있어서 동일 부분은 동일 부호를 붙이고, 그 반복 설명은 생략한다.In the description of the present invention, the same parts are denoted by the same reference numerals, and repetitive description thereof will be omitted.

먼저, 본 발명을 실시하기 위한 전체 시스템 구성의 일례를 도 1을 참조하여 설명한다.First, an example of the overall system configuration for implementing the present invention will be described with reference to FIG.

도 1에서 도시한 바와 같이, 본 발명을 실시하기 위한 전체 시스템은 CAN 네 트워크의 구성으로서, 데이터 송수신을 위한 CAN 버스(50), CAN 버스(50)에 연결된 다수의 제어기(10)로 구성된다.As shown in FIG. 1, the overall system for implementing the present invention comprises a CAN network 50 for transmitting and receiving data, and a plurality of controllers 10 connected to a CAN bus 50 .

CAN 버스(50)는 데이터 전송을 위한 통신 라인으로서, 바람직하게는, 연선(Twisted pair wire)으로 구성된다. 이때, 연선을 구성하는 2개의 선은 서로 다른 신호(CAN_H, CAN_L)에 의해 구동된다. CAN 버스(50)상의 전송 속도는 버스의 길이에 따라 달라질 수 있다.The CAN bus 50 is a communication line for data transmission, and is preferably composed of a twisted pair wire. At this time, the two lines constituting the twisted pair are driven by different signals (CAN_H, CAN_L). The transmission speed on the CAN bus 50 may vary depending on the length of the bus.

또한, CAN 버스(50)는 송신 라인(Tx)과 수신 라인(Rx)으로 구분되고, 각 제어기(10)는 송신 라인(Tx)으로 메시지를 전송하고 수신 라인(Rx)으로부터 메시지를 수신한다. 특히, 모든 제어기(10)는 CAN 버스(50)의 공통 송수신 라인(Tx, Rx)에 연결되어, 메시지를 송수신한다.Further, the CAN bus 50 is divided into a transmission line Tx and a reception line Rx, and each controller 10 transmits a message to the transmission line Tx and receives the message from the reception line Rx. In particular, all the controllers 10 are connected to the common transmission and reception lines Tx and Rx of the CAN bus 50 to transmit and receive messages.

다수의 제어기(ECU, Electronic Control Unit)(10) 또는 제1 내지 제N 제어기(10)는 CAN 버스(50)에 소정의 CAN 커넥터를 통해 연결될 수 있으며, 이론적으로 하나의 CAN 네트워크에 연결될 수 있는 최대 제어기의 개수는 2032이다.A plurality of controllers (ECUs) 10 or first to Nth controllers 10 may be connected to the CAN bus 50 via a predetermined CAN connector and may theoretically be connected to one CAN network The maximum number of controllers is 2032.

제어기(ECU)(10)는 스마트폰, 인터넷, 교통정보시스템 등의 외부 통신망과 연결되어 보안 위험성에 직접적으로 노출된 제어기들과, 외부 통신망과 직접적인 연결이 없어 상대적으로 안전한 제어기들로 구분될 수 있다.The controller (ECU) 10 can be divided into controllers that are directly exposed to security risks connected with external communication networks such as a smart phone, the Internet, and a traffic information system, and relatively safe controllers because there is no direct connection with an external communication network have.

전자의 제어기(10)들은 멀티미디어 캔(CAN)으로서, 텔레매틱스나 네비게이션 등에 관련된 제어기들이다. 이들 제어기들은 스마트폰, 인터넷, 교통정보시스템 등의 외부 통신망과 연결되어, 데이터 통신을 수행한다. 따라서 이들 제어기(10)들은 외부 단말 또는 시스템에서 접근이 가능한 제어기이다.The former controllers 10 are multimedia can (CAN), controllers related to telematics, navigation and the like. These controllers are connected to an external communication network such as a smart phone, the Internet, and a traffic information system to perform data communication. Thus, these controllers 10 are controllers accessible from an external terminal or system.

반면, 후자의 제어기들은 주로 종래 전형적인 제어기로서, 차량 내부 시스템을 제어하기 위한 제어기들이다. 예를 들어, 엔진, 트랜스미션 등 파워트레인에 관련된 제어기들; 제동장치, 조향장치, 에어백 등 샤시에 관련된 제어기들; 클러스터, 도어, 윈도우 등 바디에 관련된 제어기들이다. 통상 이들을 각각 P-CAN, CCAN, B-CAN 등으로 부르기도 한다.On the other hand, the latter controllers are mainly conventional conventional controllers, and are controllers for controlling the in-vehicle system. For example, controllers related to powertrain such as engine, transmission, etc .; Controllers associated with the chassis such as braking devices, steering devices, airbags, etc.; Clusters, doors, windows, and so on. These are usually referred to as P-CAN, CCAN, and B-CAN, respectively.

한편, 각 제어기(10)는 CAN 트랜시버(transceiver)(20), CAN 컨트롤러(30) 및 마이크로컨트롤러(CPU)(40)로 구성된다. CAN 트랜시버(20)는 소정 CAN 커넥터를 통해 CAN 버스(50)와 연결되며, 제어기의 물리 계층을 구성한다. CAN 트랜시버(20)는 CAN 버스(50)의 장애를 감지하고 이를 관리하는 기능 및 메시지의 송수신 기능을 제공할 수 있다.Each controller 10 includes a CAN transceiver 20, a CAN controller 30, and a microcontroller (CPU) 40. The CAN transceiver 20 is connected to the CAN bus 50 via a predetermined CAN connector and constitutes the physical layer of the controller. The CAN transceiver 20 can provide functions of detecting and managing the failure of the CAN bus 50 and transmitting and receiving a message.

CAN 컨트롤러(controller)(30)는 CAN 프로토콜 메시지를 송수신하고 수신된 메시지에 대한 메시지 필터링 기능을 수행한다. 또한, CAN 컨트롤러(30)는 재전송 제어를 위한 메시지 버퍼 및 마이크로컨트롤러(40)와의 인터페이스 기능을 제공한다.The CAN controller 30 transmits and receives a CAN protocol message and performs a message filtering function on the received message. In addition, the CAN controller 30 provides a message buffer for retransmission control and an interface function with the microcontroller 40.

마이크로컨트롤러(40)는 CPU가 탑재될 수 있으며, 상위 계층 프로토콜을 제공하고 다양한 응용들을 제공할 수 있다.The microcontroller 40 can be equipped with a CPU, can provide an upper layer protocol and can provide various applications.

다음으로, 본 발명의 일실시예에 따른 CAN 컨트롤러(30)의 구성을 도 2를 참조하여 보다 구체적으로 설명한다.Next, a configuration of the CAN controller 30 according to an embodiment of the present invention will be described in more detail with reference to FIG.

도 2에서 보는 바와 같이, 본 발명에 따른 CAN 컨트롤러(30)는 전송할 데이터를 임시로 저장하는 전송버퍼부(31), 전송데이터를 필터링하는 전송필터부(32), 필터링 값을 설정하는 필터값 설정부(33), 수신데이터를 필터링하는 수신필터부(35), 및, 수신데이터를 임시로 저장하는 수신버퍼부(36)로 구성된다. 또한, 추가적으로, 수신데이터에 수신시간을 삽입하는 수신시간 삽입부(34), 또는, 필터값을 저장하는 보호메모리(38)를 더 포함하여 구성된다.As shown in FIG. 2, the CAN controller 30 according to the present invention includes a transmission buffer unit 31 for temporarily storing data to be transmitted, a transmission filter unit 32 for filtering transmission data, a filter value A setting unit 33, a reception filter unit 35 for filtering reception data, and a reception buffer unit 36 for temporarily storing reception data. In addition, it further comprises a reception time inserting section 34 for inserting a reception time into the reception data, or a protection memory 38 for storing a filter value.

전송버퍼부(31)는 버퍼를 구비하여 전송할 데이터를 버퍼에 임시로 저장한다. 특히, 마이크로컨트롤러(40)는 전송할 데이터(또는 전송 데이터)를 전송버퍼부(31)의 버퍼에 저장한다.The transmission buffer unit 31 has a buffer and temporarily stores data to be transmitted in the buffer. In particular, the microcontroller 40 stores the data (or transmission data) to be transmitted in the buffer of the transmission buffer unit 31. [

도 3에서 보는 바와 같이, 전송데이터는 CAN 헤더(210) 부분과, 데이터 프레임 부분인 CAN 페이로드(220)로 구성된다. CAN 페이로드(220)에는 전송하고자 하는 정보가 기록된다. 예를 들어, 엔진 제어기(ECU)(10)인 경우, 엔진의 현재 상태에 대한 데이터 등이 CAN 페이로드(220) 필드에 기록된다. 상기와 같은 메시지의 규격은 CAN 프로토콜에 의해 정의된 규격을 따른다.As shown in FIG. 3, the transmission data is composed of a CAN header 210 part and a CAN payload part 220 which is a data frame part. The CAN payload 220 records information to be transmitted. For example, in the case of the engine controller (ECU) 10, data on the current state of the engine and the like are recorded in the CAN payload 220 field. The standard of the message conforms to the standard defined by the CAN protocol.

또한, 전송데이터의 CAN 헤더(210) 부분에는 메시지 아이디(ID)(211) 필드가 있고, 해당 필드에는 해당 메시지의 아이디가 기록된다. 메시지 아이디(ID)는 메시지의 식별자로서, 메시지의 종류를 나타낸다. 예를 들어, 엔진의 RPM을 전송하는 메시지는 주기적으로 전송되는데, 이때, RPM 전송 메시지는 동일한 메시지 아이디(ID)를 갖는다. 즉, 메시지를 수신하는 제어기(10)는 메시지 아이디(ID)를 통해 해당 메시지가 어떤 데이터를 가지고 있는지를 확인한다.In the CAN header 210 of the transmission data, there is a message ID (ID) field 211, and the ID of the corresponding message is recorded in the corresponding field. The message ID (ID) is an identifier of the message, and indicates the type of the message. For example, a message that transmits an RPM of an engine is periodically transmitted, where the RPM transmission message has the same message ID. That is, the controller 10 receiving the message confirms what data the corresponding message has via the message ID.

전송버퍼부(31)는 상기와 같이 헤더(210)와 페이로드(220)로 구성된 전송데이터를 순차적으로 버퍼에 저장하고, 마이크로컨트롤러(40)에 의해 수신된 순서로 저장하였다가 수신된 순서대로 CAN 트랜시버(20)를 통해 전송한다.The transmission buffer unit 31 sequentially stores the transmission data composed of the header 210 and the payload 220 in the buffer and stores the transmission data in the order received by the microcontroller 40, Via the CAN transceiver 20.

다음으로, 전송필터부(32)는 전송데이터 내의 메시지 ID(211)를 필터링하여, 필터값에 포함된 메시지 ID를 가지는 전송데이터만 전송하게 한다. 즉, 전송필터부(32)는 전송이 허가된 메시지 ID에 대한 화이트 리스트(white list)를 보유하고, 상기 화이트 리스트 내의 메시지 ID를 가지는 전송데이터만 전송한다. Next, the transmission filter unit 32 filters the message ID 211 in the transmission data, and transmits only the transmission data having the message ID included in the filter value. That is, the transmission filter unit 32 holds a white list of the message IDs permitted to be transmitted, and transmits only the transmission data having the message IDs in the white list.

즉, 전송필터부(32)는 전송데이터의 메시지ID를 화이트 리스트와 대비하여 필터링을 수행한다.That is, the transmission filter unit 32 performs filtering by comparing the message ID of the transmission data with the whitelist.

다음으로, 필터값 설정부(33)는 전송필터부(32)의 필터값, 즉, 화이트 리스트를 설정한다. 필터값을 설정하는 모드는 2가지 모드로 구성되며, 하나는 보호기능 모드이고, 다른 하나의 모드는 관리자 모드(또는 테스트 모드)이다.Next, the filter value setting unit 33 sets the filter value of the transfer filter unit 32, that is, the white list. The mode for setting a filter value is composed of two modes, one is a protection function mode and the other is an administrator mode (or a test mode).

관리자 모드인 경우, 필터값 설정부(33)는 마이크로컨트롤러(40)에 의한 직접 지시에 의하여, 필터값 또는 화이트 리스트를 설정한다. 즉, 필터값 설정부(33)는 허용되는 메시지ID 리스트(또는 화이트 리스트)를 마이크로컨트롤러(40)로부터 수신받아, 수신받은 메시지 ID들을 전송필터부(32)의 필터값으로 설정한다.In the manager mode, the filter value setting unit 33 sets a filter value or a white list according to a direct instruction from the microcontroller 40. [ That is, the filter value setting unit 33 receives the allowed message ID list (or white list) from the microcontroller 40, and sets the received message IDs as filter values of the transmission filter unit 32.

보호기능 모드인 경우, 필터값 설정부(33)는 보호메모리(38)에 저장된 메시지ID 리스트 또는 화이트 리스트를 가져와서 전송필터부(32)의 필터값으로 설정한다. 바람직하게는, CAN 컨트롤러(30)가 전원이 온(On)되어 처음 시작하면(또는 부팅하면), 필터값 설정부(33)는 보호메모리(38)에 저장된 화이트 리스트를 가져와서 필터값으로 설정한다. 또한, 필터값 설정부(33)는 초기에 필터값이 한번 설정되면, 마이크로컨트롤러(40) 등의 명령에 의해 구동 중간에는 필터값을 변경하지 않는다.In the protection function mode, the filter value setting unit 33 fetches the message ID list or the whitelist stored in the protection memory 38, and sets the message ID list or the white list as the filter value of the transmission filter unit 32. Preferably, when the CAN controller 30 is first turned on (or booted), the filter value setting unit 33 fetches the whitelist stored in the protection memory 38 and sets the whitelist to the filter value do. The filter value setting unit 33 does not change the filter value in the middle of driving by the instruction of the microcontroller 40 or the like once the filter value is initially set.

따라서 초기 구동이 될 때에만 보호메모리(38)에서 가져와서 필터값이 설정되므로, 중간에 악의적인 공격자에 의해 제어기(10)가 해킹되더라도 필터값이 변경되지 않는다. Therefore, since the filter value is set to be taken from the protection memory 38 only when the initial drive is performed, the filter value is not changed even if the controller 10 is hacked by a malicious attacker in the middle.

또한, 필터값 설정부(33)는 수신필터부(35)의 필터값, 즉, 화이트 리스트를 설정할 수 있다. 앞서 전송필터부(32)의 화이트 리스트를 제1 화이트 리스트라 부르기로 하고, 수신필터부(35)의 화이트 리스트를 제2 화이트 리스트라 부르기로 한다. 제2 화이트 리스트는 제1 화이트 리스트와 마찬가지로, 수신이 허용된 메시지 ID를 리스트로 가지고 있다.The filter value setting unit 33 can set a filter value of the reception filter unit 35, that is, a white list. The white list of the transmission filter unit 32 will be referred to as a first white list and the white list of the reception filter unit 35 will be referred to as a second white list. The second whitelist, like the first whitelist, has a list of message IDs that are allowed to be received.

*필터값 설정부(33)는 제2 화이트 리스트를 보호메모리(38) 또는 마이크로컨트롤러(40)로부터 가져와서, 수신필터부(35)의 필터링 값으로 설정한다. 또한, 보호기능 모드인 경우, 수신필터부(35)의 필터값은 초기에 한번 설정되고, 구동 중간에는 변경되지 않는다.The filter value setting unit 33 fetches the second white list from the protection memory 38 or the microcontroller 40 and sets it as the filtering value of the reception filter unit 35. [ In the protection function mode, the filter value of the reception filter unit 35 is initially set at once, and is not changed in the middle of driving.

또한, 필터값 설정부(33)는 제2 화이트 리스트에 포함된 메시지 ID 각각에 대한 수신 주기를 수신필터부(35)의 필터값의 주기로 설정한다. 이때 설정되는 주기는 각 메시지 ID에 해당하는 메시지가 전송되는 주기이다. 바람직하게는, 상기 주기도 초기에 한번 설정되고, 구동 중간에는 변경되지 않는다.The filter value setting unit 33 sets the reception period for each message ID included in the second whitelist as the period of the filter value of the reception filter unit 35. [ The period set at this time is a period in which a message corresponding to each message ID is transmitted. Preferably, the period is set once at the beginning, and is not changed in the middle of driving.

다음으로, 보호메모리(38)는 ROM(Read Only Memory), 플래시메모리 등 비휘발성 메모리로서, 필터값 또는 메시지ID 리스트를 저장한다.Next, the protection memory 38 is a non-volatile memory such as a ROM (Read Only Memory) or a flash memory, and stores a filter value or a message ID list.

보호메모리(38)는 필터값 설정부(33)에 대하여 읽기 기능만 허용된 메모리이다. 즉, 필터값 설정부(33) 또는 마이크로컨트롤러(40)는 보호메모리(38)를 직접 접근하여 데이터를 변경하거나 삭제할 수 없다.The protection memory 38 is a memory for which only the read function is allowed for the filter value setting unit 33. [ That is, the filter value setting unit 33 or the microcontroller 40 can not directly access the protection memory 38 to change or delete data.

바람직하게는, 보호메모리(38)는 통상의 비휘발성 메모리로 구성되며, 그 일부의 메모리 공간을 보호영역으로 구분하여 지정될 수 있다. 이 경우, 보호 영역의 메모리에 저장된 데이터만 읽기 기능이 허용되고, 보호 영역 외의 다른 영역에는 데이터를 변경하거나 삭제가 가능하다.Preferably, the protection memory 38 is constituted by a normal nonvolatile memory, and a part of the memory space can be designated as a protection area. In this case, only the data stored in the memory of the protection area is allowed to be read, and data in the area other than the protection area can be changed or deleted.

보호 메모리 또는, 보호된 메모리 영역(보호영역)은 일반적인 비휘발성 메모리(e.g. 플래시 메모리)처럼 메모리 주소값으로 접근이 불가능하며, 보호된 메모리 영역에 대한 읽기/쓰기 접근을 하려면 특수한 접근방법과 패스워드가 필요하다.Protected memory or a protected memory area (protection area) is not accessible as a memory address value, like normal non-volatile memory (eg flash memory), and special access and passwords are required for read / need.

보호된 메모리 또는 보호영역에는 다음과 같은 정보들이 저장된다. 즉, 유효한 송신용 메시지 ID들, 즉, 제1 화이트 리스트이다. 즉, 제1 화이트 리스트에 포함된 메시지 ID들은 "안전한 CAN 컨트롤러(또는 보호기능 모드)"가 적용되는 전자식 제어기에서 CAN 버스에 전송할 수 있는 유효한 CAN ID들이다.The following information is stored in the protected memory or protection area. That is, the valid transmission message IDs, i.e., the first whitelist. That is, the message IDs contained in the first white list are valid CAN IDs that can be transmitted to the CAN bus in the electronic controller to which the " secure CAN controller (or protection mode) "

또한, 제2 화이트 리스트는 "안전한 CAN 컨트롤러(또는 보호기능 모드)"가 적용 전자식 제어기(10)에서 CAN 버스(50)로부터 수신할 수 있는 유효한 CAN ID들 의 집합이다.The second white list is also a set of valid CAN IDs that the "safe CAN controller (or protection mode)" can receive from the CAN bus 50 in the application electronic controller 10.

또한, 바람직하게는, 보호메모리(38)에는 유효한 수신용 CAN 아이디 각각에 대한 주기 시간정보도 함께 기록된다.Further, preferably, the protection memory 38 also records cycle time information for each valid CAN ID for reception.

다음으로, 수신시간 삽입부(34)는 CAN 트랜시버(20)로부터 수신된 데이터(또는 수신 데이터)에 수신시간을 삽입한다. 바람직하게는, 클럭신호를 삽입한다. 즉, 각 수신데이터의 수신시간(클럭신호)을 기록한다.Next, the reception time inserting unit 34 inserts the reception time into the data (or reception data) received from the CAN transceiver 20. Preferably, a clock signal is inserted. That is, the reception time (clock signal) of each received data is recorded.

다음으로, 수신필터부(35)는 수신데이터의 메시지 ID에 대하여 필터링을 수행하여, 허용된 메시지 ID 만을 수신버퍼부(36)로 전송하여 버퍼링한다. 또한, 수신필터부(35)는 수신데이터의 주기를 이용하여, 해당 주기에 수신되는 메시지인지를 판단한다.Next, the reception filter unit 35 performs filtering on the message ID of the received data, and transmits only the allowed message ID to the reception buffer unit 36 to buffer the received message ID. In addition, the reception filter unit 35 uses the period of the received data to determine whether it is a message received in the period.

구체적으로, 수신필터부(35)는 수신데이터 내의 메시지 ID(211)를 필터링하여, 필터값에 포함된 메시지 ID를 가지는 수신데이터만 수신하게 한다. 즉, 수신필터부(35)는 수신이 허가된 메시지 ID에 대한 제2 화이트 리스트(white list)를 보유하고, 상기 제2 화이트 리스트 내의 메시지 ID를 가지는 수신데이터만 수신한다.Specifically, the reception filter unit 35 filters the message ID 211 in the received data, so that only the received data having the message ID included in the filter value is received. That is, the reception filter unit 35 holds the second white list of the message IDs permitted to be received, and receives only the reception data having the message IDs in the second white list.

즉, 수신필터부(35)는 수신데이터의 메시지ID를 제2 화이트 리스트와 대비하여 필터링을 수행한다.That is, the reception filter unit 35 performs filtering by comparing the message ID of the received data with the second white list.

또한, 수신필터부(35)는 수신데이터에 삽입된 수신시간을 각 메시지 아이디 별로 기록한다. 바람직하게는, 연속적으로 수신되는 적어도 3개의 수신데이터의 수신시간을 모두 기록하고, 기록된 수신시간의 차이와 주기를 비교하여, 악성 데이터인지를 판단한다. 이때, 연속적인 3개의 수신시간은 동일한 메시지 아이디를 가지는 수신데이터의 수신시간들이다.In addition, the reception filter unit 35 records the reception time inserted in the received data for each message ID. Preferably, all the reception times of at least three pieces of continuously received data are all recorded, and the difference between the recorded pieces of reception time and the period is compared to determine whether the data is malicious data. At this time, the three consecutive reception times are reception times of reception data having the same message ID.

구체적으로, 연속적인 3개의 수신시간 중에서 첫번째 수신시간과 3번째 수신시간의 차이가 주기 보다 작은 경우에는 수신된 적어도 3개의 수신데이터 중 적어도 1개는 악성 메시지로 판단한다.More specifically, when the difference between the first reception time and the third reception time is shorter than the period, at least one of the received three pieces of reception data is determined to be a malicious message.

다음으로, 수신버퍼부(36)는 수신데이터를 수신 버퍼에 저장한다. 앞서 수신필터부(35)에 의해 필터링된 수신데이터만을 수신 버퍼에 저장한다. 수신버퍼부(36)에 저장된 수신데이터는 마이크로 컨트롤러(10)에 의해 가져간다.Next, the reception buffer unit 36 stores the reception data in the reception buffer. Only the reception data filtered by the reception filter section 35 is stored in the reception buffer. The reception data stored in the reception buffer unit 36 is taken by the microcontroller 10.

다음으로, 본 발명의 일실시예에 따른 필터값 설정 방법에 대하여 도 4를 참조하여 설명한다.Next, a method of setting a filter value according to an embodiment of the present invention will be described with reference to FIG.

도 4에서 보는 바와 같이, 먼저, CAN 컨트롤러(30) 또는 필터값 설정부(33)는 보호기능 모드가 활성화되었는지를 판단한다(S10). 보호기능 모드 활성화 여부 판단은 CAN 통신이 초기화하는 단계에서 수행된다.As shown in FIG. 4, first, the CAN controller 30 or the filter value setting unit 33 determines whether the protection function mode is activated (S10). The determination whether or not the protection function mode is activated is performed in a step of initializing the CAN communication.

보호기능 모드가 활성화된 상태이면, 보호메모리(38) 또는 보호메모리(38) 내의 보호 영역에 저장된 화이트 리스트를 가져와서, 전송 필터값 또는 수신 필터값으로 설정한다(S20). 화이트 리스트는 전송 또는 수신이 허용되는 메시지 아이디(ID)들의 목록이다. 바람직하게는, 화이트 리스트는 전송 필터용과 수신 필터용으로 따로 구분되고, 전송 필터값과 수신 필터값은 서로 구분되어 설정된다.If the protection function mode is activated, the white list stored in the protection area in the protection memory 38 or the protection memory 38 is fetched and set as a transmission filter value or a reception filter value (S20). The whitelist is a list of message identifiers (IDs) that are allowed to be transmitted or received. Preferably, the white list is divided into a transmission filter and a reception filter separately, and a transmission filter value and a reception filter value are set separately from each other.

만약, 보호기능 모드가 활성화되지 않으면, 관리자 모드 또는 테스트 모드로서, 전송 필터값 또는 수신 필터값이 마이크로컨트롤러(40)의 지시에 따라 설정될 수 있다(S30). 구체적으로, 마이크로컨트롤러(40)의 지시에 따라 SPI(Serial Peripheral Interface) 통신을 통해 필터값을 수신하여, 전송 필터값 또는 수신 필터값을 설정한다. 또는 다른 예로서, 제어기(10)에 구비된 레지스터를 이용하여, 레지스터(미도시)에 필터값(또는 화이트 리스트)을 임시로 저장하고, 레지스터에 저장된 값으로 전송 필터값 또는 수신 필터값을 설정한다.If the protection function mode is not activated, the transmission filter value or the reception filter value may be set according to an instruction of the microcontroller 40, as an administrator mode or a test mode (S30). Specifically, the microprocessor 40 receives the filter value through SPI (Serial Peripheral Interface) communication according to an instruction from the microcontroller 40, and sets a transmission filter value or a reception filter value. Alternatively, a filter value (or white list) is temporarily stored in a register (not shown) using a register provided in the controller 10, and a transmission filter value or a reception filter value is set as a value stored in the register do.

다음으로, 본 발명의 일실시예에 따른 전송필터부(32)의 세부 구성을 도 5를 참조하여 보다 구체적으로 설명한다.Next, the detailed configuration of the transmission filter unit 32 according to an embodiment of the present invention will be described in more detail with reference to FIG.

도 5에서 보는 바와 같이, 본 발명에 따른 전송필터부(32)는 전송 데이터를 임시로 저장하는 전송 레지스터(321), 다수의 필터가 기록된 전송필터(322), 다수의 필터 중 하나를 선택하여 출력하는 다중화기(Mux)(323), 전송필터값과 전송 레지스터(321)를 대비하는 비교기(324)로 구성된다. As shown in FIG. 5, the transmission filter unit 32 according to the present invention includes a transmission register 321 for temporarily storing transmission data, a transmission filter 322 in which a plurality of filters are recorded, And a comparator 324 for comparing the transmission filter value with the transmission register 321. The multiplexer 323 multiplexes the transmission filter value with the transmission register 321,

즉, 전송 레지스터(321)에는 전송버퍼부(31)로부터 가져온 전송데이터가 임시로 저장된다. 또한, 전송필터(322)는 다수의 필터값, 또는, 화이트 리스트가 저장되고, 다중화기(323)에 의해 하나의 필터값만 선택된다. 비교기(324)는 전송 레지스터(321)의 전송데이터 중 메시지 ID와 필터값을 대비하여 필터링을 수행한다. 비교기(324)의 결과는 전송 레지스터(321)를 제어하여, CAN 트랜시버(20)로 전송하게 하거나, 차단하도록 제어한다.That is, in the transfer register 321, transfer data fetched from the transfer buffer unit 31 is temporarily stored. In addition, the transmission filter 322 stores a plurality of filter values or a whitelist, and only one filter value is selected by the multiplexer 323. The comparator 324 performs filtering by comparing the message ID and the filter value in the transmission data of the transmission register 321. The result of the comparator 324 controls the transmission register 321 to be transmitted to the CAN transceiver 20 or blocked.

특히, 전송필터(322)는 앞서 초기화 할 때 설정되며, 필터값들은 전송할 수 있는 유효한 메시지 ID들이다. 따라서 비교기(324)에 의해, 적어도 동일한 결과가 나오는 경우에만, 전송 레지스터(321)의 전송 데이터가 CAN 트랜시버(20)로 전송하게 한다. 따라서 전송필터(322)의 어느 필터값과도 동일하다는 결과 나오지 않으면, 전송 데이터가 CAN 트랜시버(20)로 전송되지 않는다. 즉, 유효하지 않은 메시지 ID를 가지므로, 해당 전송데이터는 차단된다.In particular, the transport filter 322 is set at the time of initialization, and the filter values are valid message IDs that can be transmitted. Thus, the comparator 324 causes the transfer data of the transfer register 321 to be transferred to the CAN transceiver 20 only if at least the same result is obtained. Therefore, if the result of the determination is the same as any filter value of the transmission filter 322, the transmission data is not transmitted to the CAN transceiver 20. That is, since it has an invalid message ID, the corresponding transmission data is blocked.

다음으로, 본 발명의 일실시예에 따른 수신필터부(35)의 세부 구성을 도 6을 참조하여 보다 구체적으로 설명한다.Next, a detailed configuration of the reception filter unit 35 according to an embodiment of the present invention will be described in more detail with reference to FIG.

도 6에서 보는 바와 같이, 수신필터부(35)는 수신이 허용된 메시지ID 및 주기나 수신시간을 기록하는 수신필터(351)와, 수신시간의 차이 및 주기를 대비하는 주기연산 회로부(352), 및, 수신필터 및 주기연산 결과를 이용하여 악성 메시지 여부를 판단하는 악성메시지 탐지부(353)를 포함하여 구성된다. 구체적으로, 수신필터(351)는 필터의 메시지 ID, 주기, 수신시간을 기록하는 저장공간으로 구성된다. 바람직하게는, 수신필터(351)는 2차원 레지스터 또는 메모리, 캐시 등으로 구성될 수 있다. 즉, 수신필터(351)는 메시지ID에 대한 필터, 주기, 수신시간을 필드로 구성하는 테이블로 구성된다.6, the reception filter unit 35 includes a reception filter 351 for recording a message ID and a period or a reception time allowed to be received, a periodic operation circuit unit 352 for comparing the reception time and the period, And a malicious message detection unit 353 for determining whether a malicious message is generated using the reception filter and the result of the periodic operation. Specifically, the reception filter 351 is configured as a storage space for recording the message ID, the period, and the reception time of the filter. Preferably, the reception filter 351 may be composed of a two-dimensional register, a memory, a cache, or the like. That is, the reception filter 351 is composed of a table in which a filter, a period, and a reception time for a message ID are configured as fields.

이때, 수신시간은 적어도 3개의 필드를 갖는다. 각 필드는 수신시간을 저장한다. 바람직하게는, 수신시간의 필드는 적어도 3개의 시프트 레지스터로 구성되어, 해당 메시지 ID의 수신 데이터가 수신될 때마다 저장된 값이 앞쪽으로 시프트된다. 즉, 가장 늦게 수신된 1번째 수신시간은 버려지고, 2번째 수신시간이 1번째 시프트 레지스터로 이동하고, 3번째 데이터가 2번째 시프트 레지스터로 이동한다. 그리고 마지막 시프트 레지스터에는 최근의 수신시간이 기록된다.At this time, the reception time has at least three fields. Each field stores the reception time. Preferably, the field of the reception time consists of at least three shift registers, and the stored value is shifted forward as the received data of the message ID is received. That is, the first reception time received last is discarded, the second reception time is shifted to the first shift register, and the third data is shifted to the second shift register. And the last receive register stores the latest receive time.

다음으로, 주기연산 회로부(352)는 수신필터(351)에 기록된 주기, 및, 적어도 3개의 수신시간의 차이를 대비하고, 그 결과 값을 출력하는 회로이다. 바람직하게는, 주기연산 회로부(352)는 1번째 수신시간과 3번째 수신시간의 차이를 연산하고, 연산된 수신시간 차이가 주기 보다 작은지 여부를 대비하여 그 결과를 출력한다. 한편, 주기연산 회로부(352)는 수신시간의 차이, 시간 차와 주기의 차이 등을 연산하기 위해 감산기를 구비한다.Next, the periodic circuit 352 compares the difference between the period recorded in the reception filter 351 and at least three reception times, and outputs the result. Preferably, the periodic operation circuit 352 calculates the difference between the first reception time and the third reception time, and outputs the result in contrast to whether the calculated reception time difference is smaller than the period. On the other hand, the periodic operation circuit unit 352 includes a subtracter for calculating the difference in the reception time, the difference in the time difference and the period, and the like.

다음으로, 악성메시지 탐지부(353)는 수신된 데이터의 메시지 ID를 추출하고, 추출된 메시지 ID가 수신필터(351)에 존재하는지를 검색한다. 악성메시지 탐지부(353)는 추출된 메시지 ID가 수신필터(351)에 존재하지 않으면, 수신데이터를 차단한다.Next, the malicious message detection unit 353 extracts the message ID of the received data, and detects whether the extracted message ID exists in the reception filter 351. [ If the extracted message ID does not exist in the reception filter 351, the malicious message detection unit 353 blocks the received data.

또한, 악성메시지 탐지부(353)는 추출된 메시지 ID가 수신필터(351)에 존재하면, 해당 메시지 ID의 필터값 중 주기 및 수신시간으로 주기연산을 수행하도록, 주기연산 회로부(352)를 제어한다.If the extracted message ID is present in the reception filter 351, the malicious message detection unit 353 controls the periodic operation circuit unit 352 to perform periodic operation with the period and the reception time of the filter value of the message ID do.

또한, 악성메시지 탐지부(353)는 주기연산 회로부(352)의 연산결과에 따라 수신데이터를 수신버퍼부(36)에 전송하거나 차단한다. 즉, 주기연산 회로부(352)의 연산결과가 주기보다 작은 것으로 나오는 경우, 수신데이터를 차단한다. 그리고 작지 않은 것으로 결과가 나오면, 수신데이터를 수신버퍼부(36)로 전송한다.The malicious message detection unit 353 transmits or blocks the received data to the reception buffer unit 36 in accordance with the operation result of the periodic operation circuit unit 352. That is, when the calculation result of the periodic operation circuit unit 352 is smaller than the cycle, the received data is cut off. When the result is not small, the receiving buffer unit 36 transmits the received data.

다음으로, 본 발명의 일실시예에 따른 수신데이터를 필터링하는 방법을 도 7 을 참조하여 보다 구체적으로 설명한다.Next, a method of filtering received data according to an embodiment of the present invention will be described in more detail with reference to FIG.

도 7에서 보는 바와 같이, 먼저, CAN 컨트롤러(30)는 수신데이터를 수신하면, 수신시간 또는 클럭신호를 수신데이터에 추가하여 삽입한다(S110).As shown in FIG. 7, when the CAN controller 30 receives the received data, the CAN controller 30 adds the received time or the clock signal to the received data and inserts the received data in step S110.

다음으로, CAN 컨트롤러(30)는 수신 데이터로부터 메시지 ID를 추출하여, 수신필터에 매칭되는 필터값이 있는지를 검색한다(S120). 메시지 ID는 수신데이터의 CAN 헤더에 저장된 데이터로서, 메시지의 식별자에 대한 정보이다. 즉, 수신데이터(200)의 CAN 헤더(210)로부터 메시지 ID를 추출한다. 그리고 추출된 메시지 ID와 매칭되는 필터를 검색한다.Next, the CAN controller 30 extracts the message ID from the received data and searches for a filter value matched to the received filter (S120). The message ID is data stored in the CAN header of the received data, and is information on the identifier of the message. That is, the message ID is extracted from the CAN header 210 of the received data 200. Then, a filter matching the extracted message ID is searched.

다음으로, 매칭된 필터값이 수신필터에 존재하지 않으면, 해당 수신 데이터를 차단한다(S160). 즉, 수신필터는 수신이 허용된 메시지 ID의 화이트 리스트이다. 따라서 해당 화이트 리스트에 메시지 ID가 존재하지 않으면, 해당 수신데이터는 허용된 메시지가 아니다. 따라서 수신데이터는 차단된다.Next, if the matched filter value does not exist in the reception filter, the received data is blocked (S160). That is, the reception filter is a whitelist of message IDs that are allowed to be received. Therefore, if the message ID does not exist in the corresponding whitelist, the received data is not an allowed message. Therefore, the received data is blocked.

그리고 매칭된 필터값이 수신필터에 존재하면, 해당 수신필터에 수신시간을 기록한다(S130). 이때, 수신필터의 수신시간 시프트 레지시터는 시프트되어, 가장 오래된 수신시간은 버려지고, 현재 수신시간이 최근 수신시간으로 기록된다.If the matched filter value is present in the reception filter, the reception time is recorded in the reception filter (S130). At this time, the reception time shift register of the reception filter is shifted, the oldest reception time is discarded, and the current reception time is recorded as the latest reception time.

다음으로, 해당 메시지 ID의 수신필터의 수신시간의 차이를 계산하고, 계산된 시간 차이와 주기를 대비한다(S140). 바람직하게는, 1번째 수신시간과 3번째 수신시간의 차이를 구하고, 구한 차이와 주기가 대비된다.Next, the difference of the reception time of the reception filter of the message ID is calculated, and the calculated time difference is compared with the period (S140). Preferably, the difference between the first reception time and the third reception time is obtained, and the obtained difference is compared with the period.

시간 차이가 주기 보다 작으면, 해당 수신 데이터는 차단된다(S160). CAN 통신 프로토콜에 의하여, 제어기가 데이터를 송신할 때 최소한 주기 시간 이내에 1회의 데이터를 송신하도록 규정하고 있다. 따라서 3번째 수신시간과 1번째 수신시간의 사이에는 주기 시간 보다 길어야 한다. 만약 1번째 수신시간과 3번째 수신시간의 차이가 주기 보다 작다면, 악성 메시지가 중간에 끼어든 것으로 볼 수 있다. 즉, 1, 2, 3번째 메시지 중 적어도 1개는 악성 메시지일 수 있다.If the time difference is smaller than the period, the received data is interrupted (S160). According to the CAN communication protocol, the controller is required to transmit data at least once within the cycle time when transmitting data. Therefore, the period between the third reception time and the first reception time must be longer than the cycle time. If the difference between the first reception time and the third reception time is less than the period, it can be considered that the malicious message is interrupted. That is, at least one of the first, second, and third messages may be a malicious message.

따라서 CAN 컨트롤러(30)는 악성 메시지가 수신된 것으로 판단하여, 수신된 데이터를 차단하거나, 악성 메시지가 탐지되었음을 경고한다.Therefore, the CAN controller 30 determines that a malicious message has been received, blocks the received data, or warns that a malicious message has been detected.

다음으로, 수신시간의 차이가 주기 보다 큰 경우에는 수신데이터를 수신버퍼로 전송한다(S150).Next, when the difference in the reception time is larger than the period, the reception data is transmitted to the reception buffer (S150).

이상, 본 발명자에 의해서 이루어진 발명을 실시 예에 따라 구체적으로 설명하였지만, 본 발명은 실시 예에 한정되는 것은 아니고, 그 요지를 이탈하지 않는 범위에서 여러 가지로 변경 가능한 것은 물론이다.The invention made by the present inventors has been described concretely with reference to the embodiments. However, it is needless to say that the present invention is not limited to the embodiments, and that various changes can be made without departing from the gist of the present invention.

10 : 제어기 20 : CAN 트랜시버
30 : CAN 컨트롤러 31 : 전송버퍼부
32 : 전송필터부 33 : 필터값 설정부
34 : 수신시간 삽입부 35 : 수신필터부
36 : 수신버퍼부 38 : 보호메모리
40 : 마이크로컨트롤러
10: controller 20: CAN transceiver
30: CAN controller 31: transmission buffer section
32: transmission filter unit 33: filter value setting unit
34: reception time insertion section 35: reception filter section
36: Receive buffer unit 38: Protected memory
40: Microcontroller

Claims (1)

CAN 통신 기반 해킹공격에 안전한, CAN 컨트롤러를 포함하는 전자식 제어 장치(Electronic Control Unit)를 제어하는 방법에 있어서,
전송이 허용된 메시지 ID들을 전송 필터의 필터값으로서 보호메모리에 저장하는 단계;
상기 보호메모리에 저장된 필터값에 기초하여, 전송필터의 필터값을 설정하는 단계;
CAN 버스로 전송할 전송데이터를 전송버퍼에 임시로 저장하는 단계;
상기 전송데이터의 메시지 ID를 상기 전송필터에서 검색하여, 상기 전송데이터를 필터링하는 단계;를 포함하고,
상기 보호메모리 또는 상기 보호메모리의 보호영역은 상기 전자식 제어 장치의 CAN 컨트롤러 또는 마이크로컨트롤러에 의해 저장된 필터값이 변경되거나 삭제되지 않는 것을 특징으로 하는, 전자식 제어 장치를 제어하는 방법.
A method of controlling an electronic control unit (CAN) including a CAN controller, which is safe for CAN communication based hacking attacks,
Storing message IDs permitted to be transmitted in a protection memory as filter values of a transmission filter;
Setting a filter value of the transmission filter based on the filter value stored in the protection memory;
Temporarily storing transmission data to be transmitted to a CAN bus in a transmission buffer;
Searching the transmission filter for a message ID of the transmission data, and filtering the transmission data;
Wherein the protection area of the protection memory or the protection memory does not change or delete the filter value stored by the CAN controller or the microcontroller of the electronic control unit.
KR1020180010847A 2018-01-29 2018-01-29 A CAN controller secured from hacking attack based on the CAN protocol KR20180039586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180010847A KR20180039586A (en) 2018-01-29 2018-01-29 A CAN controller secured from hacking attack based on the CAN protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180010847A KR20180039586A (en) 2018-01-29 2018-01-29 A CAN controller secured from hacking attack based on the CAN protocol

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020170069768A Division KR101825711B1 (en) 2017-06-05 2017-06-05 A CAN controller secured from hacking attack based on the CAN protocol

Publications (1)

Publication Number Publication Date
KR20180039586A true KR20180039586A (en) 2018-04-18

Family

ID=62082729

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180010847A KR20180039586A (en) 2018-01-29 2018-01-29 A CAN controller secured from hacking attack based on the CAN protocol

Country Status (1)

Country Link
KR (1) KR20180039586A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102167610B1 (en) * 2019-04-19 2020-10-20 한국자동차연구원 Gateway apparatus for long distance can communication

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102167610B1 (en) * 2019-04-19 2020-10-20 한국자동차연구원 Gateway apparatus for long distance can communication

Similar Documents

Publication Publication Date Title
KR101754951B1 (en) A CAN controller secured from hacking attack based on the CAN protocol
US10104094B2 (en) On-vehicle communication system
KR101972457B1 (en) Method and System for detecting hacking attack based on the CAN protocol
EP2832070B1 (en) Device for protecting a vehicle electronic system
US9231936B1 (en) Control area network authentication
JP7075886B2 (en) Broadcast bus frame filter
US10630720B2 (en) Secure network access protection using authenticated time measurement
CN109299029B (en) Node, vehicle, integrated circuit and method for updating at least one rule
US11522878B2 (en) Can communication based hacking attack detection method and system
EP3358803A1 (en) Systems and methods for transmitting messages in a controller area network
Boudguiga et al. A simple intrusion detection method for controller area network
WO2021002264A1 (en) Unauthorized frame detection device and unauthorized frame detection method
EP3565212B1 (en) Method for providing an authenticated update in a distributed network
CN112805968B (en) In-vehicle communication device, communication control method, and communication control program
KR101966345B1 (en) Method and System for detecting bypass hacking attacks based on the CAN protocol
Kwon et al. Mitigation mechanism against in-vehicle network intrusion by reconfiguring ECU and disabling attack packet
CN112347023A (en) Security module for CAN node
Olufowobi et al. Controller area network intrusion prevention system leveraging fault recovery
KR101825711B1 (en) A CAN controller secured from hacking attack based on the CAN protocol
Gui et al. Hardware based root of trust for electronic control units
CN112567713B (en) Attack-proof network interface
KR20180039586A (en) A CAN controller secured from hacking attack based on the CAN protocol
Carsten et al. A system to recognize intruders in controller area network (can)
KR20210110408A (en) Method, device, and computer-readable storage medium comprising instructions for signing measurement values of a sensor
Lu et al. Security-aware real-time transmission for automotive can-fd networks

Legal Events

Date Code Title Description
A107 Divisional application of patent