Method for protection of modbus / TCP-based systems
The method addresses the vulnerability of Modbus/TCP systems by using a supervisor device for authentication and encryption, ensuring secure communication with legacy peers, thus enhancing cybersecurity without modifying existing hardware or firmware.
Patent Information
- Application Number
- PCT/EP2023/055947
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-12
AI Technical Summary
Modbus/TCP-based systems in industrial automation and control are vulnerable to Man-in-the-Middle attacks due to lack of integrity and authenticity checks, posing cybersecurity risks as they interact with IT systems and legacy devices, requiring a method that ensures secure communication without hardware or firmware modifications.
Implementing a supervisor device for data origin authentication, peer authentication, and key agreement services using port mirroring, which encapsulates Modbus/TCP messages with additional fields like PDU counters and MACs, allowing protected peers to communicate securely with legacy peers by sending UDP packets for verification.
Enables secure communication between protected and legacy Modbus/TCP peers, ensuring backward compatibility and partial protection of communication, effectively mitigating cybersecurity risks without requiring hardware or firmware changes.
Smart Images

Figure EP2023055947_12092024_PF_FP_ABST
Abstract
Description
[0001] METHOD FOR PROTECTION OF MODBUS / TCP-BASED SYSTEMS
[0002] DESCRIPTION
[0003] Technical Field
[0004] The invention discloses a novel method for the protection of Modbus / TCP-based systems used in industrial automation and control systems ( IACSs ) and enables such systems to operate in a secure and reliable manner . Modbus / TCP-based systems were developed primarily as an open standard for communication between various programmable logic controllers ( PLC ) used for controlling and supporting industrial facilities and, in particular , critical infrastructure ( CI ) such as energy and water distribution systems . The disclosed protection method is based on the procedure in which the data content is protected by encapsulating the Modbus / TCP message , and wherein the network entities apply symmetric encryption . In addition, the security features are implemented above the transport layer in a manner that allows communication of protected Modbus / TCP peers with legacy devices that do not support the proposed protection method, as well as the secure exchange of information between protected Modbus / TCP peers .
[0005] Technical Problem
[0006] The term industrial cybersecurity encompasses a set of knowledge and activities performed to mitigate cybersecurity risks within IACSs . IACSs , such as supervisory control and data acquisition ( SCADA) and PLCs , are the main components of critical infrastructures . It is well- known that even a small disruption in energy or transport infrastructures could seriously impact the stability of modern societies , as we learned in the past years . Still , insecure and outdated industrial communication protocols , such as Modbus-over-TCP (Modbus / TCP ) are widely used for their efficiency and ease-of-use requirement , which is standard in IACS . With time and with the extensive distribution of such systems , they become increasingly interconnected with the information technology ( IT ) systems , introducing cybersecurity vulnerabilities and attack vectors that were not analyzed at the time of their deployment , i . e . , in late ' 70 and early ' 80 . The need for backward compatibility and the computational limitations of old IACS devices led to the fact that cybersecurity requirements were sacrificed for the most important requirement in IACSs - the availability requirement . Without integrity and authenticity checks , protocols such as Modbus / TCP are particularly vulnerable to Man in the Middle (MITM) attacks .
[0007] The main technical problem solved with the present disclosure is a novel method for the protection of Modbus / TCP-based systems in a way that protected peers may communicate among themselves in a protected manner, and all protected peers can communicate with legacy peers which do not support the disclosed protection method, at the same time providing partial protection of the communication . This assures backward compatibility with existing IACSs without any hardware or firmware modifications .
[0008] The problem is solved by adding the supervisor device designed to execute the data origin authentication, the peer authentication and the key agreement service for the legacy peer, using the port mirroring . The port mirroring service allows the supervisor device to analyze the exchanged Modbus / TCP packets between protected and legacy peers , as well as to analyze sent User Datagram Protocol (UDP ) packets to the legacy peer by the protected peer , carrying at least the Protocol Data Unit ( PDU ) counter and the Message Authentication Code (MAC ) data of the sent Modbus / TCP ADU . The later sent UDP packet or packets allow the supervisor to verify the corresponding standard Modbus / TCP PDUs integrity, previously sent from the protected Modbus / TCP peer to the legacy Modbus / TCP peer . In general , UDP is one of the simplest OSI (Open Systems Interconnection ) transport layer protocols , allowing communication peers to send messages to other communication peers with a minimum of protocol mechanisms . In that sense , it is good to investigate : https : / / www . rfc- editor . org / rfc / rfc768 . When communicating with each other, protected peers protect the data within Modbus / TCP Application Data Unit (ADU) by adding additional fields to it, where the additional fields are, at least, the PDU counter and the MAC field. The mentioned fields are concatenated at the end of the said Modbus / TCP ADU data field and the opposite of the Modbus Application Protocol (MBAP) header.
[0009] State of the Art
[0010] There have been many attempts to solve a similar technical problem in the art. The two articles below form a standard approach to the problem.
[0011] Ferst, M. K. , de Figueiredo, H. F. M., Denardin, G., & Lopes, J. (2018) . Implementation of Secure Communication With Modbus and Transport Layer Security protocols. 2018 13th IEEE International Conference on Industry Applications (INDUSCON) . doi:10.1109 / induscon .2018.8627306
[0012] Hayes, G. , & El-Khatib, K. (2013) . Securing modbus transactions using hash-based message authentication codes and stream transmission control protocol. 2013 Third International Conference on Communications and Information Technology (ICCIT) . doi:10.1109 / iccitechnology .2013.6579545
[0013] The use of lightweight cryptography which does not require any additional hardware and firmware modifications is well described in the article by Yang, Z . , Bao, Z . , Jin, C . , Liu, Z . , & Zhou, J. (2021) . PLCrypto: A Symmetric Cryptographic Library for Programmable Logic Controllers. IACR Transactions on Symmetric Cryptology, 2021(3) , 170- 217. https: / / doi.org / 10.46586 / tosc.v2021.i3.170-217; where the used lightweight cryptography was the Chaskey algorithm for MAC evaluation.
[0014] In the article by Shahzad, A., Lee, M., Lee, Y.-K., Kim, S., Xiong, N., Choi, J.-Y. , & Cho, Y. (2015) , Real Time MODBUS Transmissions and Cryptography Security Designs and Enhancements of Protocol Sensitive Information, Symmetry, 7 (3) , 1176-1210, doi : 10.3390 / sym7031176; the novel Modbus encapsulation model was proposed, where the security bytes were added at the beginning of the standard Modbus TCP / IP ADU. This method is very efficient and simple to implement. However, the message structure would inevitably prevent legacy peers to be included in the communication scheme.
[0015] Chinese patent application CN113472520A for the invention Modbus TCP protocol safety enhancement method and system, filed in the name of Shandong Computer Science Center, discloses another variant for modification of the standard Modbus TCP / IP ADU to perform the message protection where the Modbus Function code and the Data field are encrypted. As in the previous solution, the message structure would inevitably prevent legacy peers to be included in the communication scheme .
[0016] Chinese patent application CN113824705A for the invention Security reinforcement method for Modbus TCP protocol, filed in the name of Zhejiang University, discloses yet another method for using symmetric cryptography to protect and deprotect the Modbus / TCP communication, with no indication that legacy peers can be effectively included in the communication scheme.
[0017] In the PPT presentation by Hirotaka Yoshida: On the Design and Use of Lightweight Cryptography for Cyber-Physical Systems, held in Kolkata, IN, https : / / www .isical.ac.in / ~ask2018 / slides / hi rota ka-yoshida.pdf, the Chaskey algorithm is recognized as the most suitable for the lightweight MAC approach in securing cyber-physical system communications. The recommended way of message encapsulation set the partial usage of encryption, i.e., the encrypted are only those parts related to sensitive data. Such an approach again disqualifies using of legacy pears in communication.
[0018] The above-cited survey shows that hybrid mode, i.e. , the mode where legacy peers and protected peers communicate seems to be a novel approach in the field. Summary of the Invention
[0019] A method for the protection of Modbus / TCP-based systems, in communication over the network, is disclosed. These systems consist of a plurality of protected Modbus / TCP peers, legacy Modbus / TCP peers, and at least one Modbus / TCP supervisor. Each protected Modbus / TCP peer has its data origin authentication (DAO) service, peer authentication and key agreement (PAKA) service, Modbus / TCP ADU MAC protection (MTAMP) service, and peer application. Each legacy Modbus / TCP peer has its peer application, and each Modbus / TCP supervisor has its supervisor application, DAO service, and PAKA service as well.
[0020] All PAKA services are designed to establish a session key and protocol data unit (PDU) counter on both peers selected from protected Modbus / TCP peers or Modbus / TCP supervisors. Similarly, all DAO services are designed to verify, for their communication party, that the received Modbus / TCP ADU is authentic. Each MTAMP service is capable to encapsulate Modbus / TCP ADU via the Message Authentication Code (MAC) protection algorithm. Each Modbus / TCP supervisor is configured to capture sent packets, by using Switched Port Analyzer (SPAN) , for all legacy Modbus / TCP peers which are supervised by the said Modbus / TCP supervisor. In addition, all protected Modbus / TCP peers and Modbus / TCP supervisors are previously fed with the List of all legacy Modbus peers' IP Addresses (LIPA) , operating within the same Modbus / TCP-based system.
[0021] When the legacy Modbus / TCP peer is acting as the Modbus / TCP server, the appropriate Modbus / TCP supervisor is supervising the said legacy Modbus / TCP peer performing the DAO service and the PAKA service for the said legacy Modbus / TCP peer emulating the Modbus / TCP server peer' s DAO and PAKA services. The above-cited communication is performed via the steps below.
[0022] A. The protected Modbus / TCP peer, acting as the client, initiates a communication request to the legacy Modbus / TCP peer acting as the server. The PAKA services establish a session key and PDU counter on the protected Modbus / TCP peer and the Modbus / TCP Supervisor which is supervising sent packets by the protected Modbus / TCP peer to the said legacy Modbus / TCP peer .
[0023] B . The protected Modbus / TCP client peer application sends its original application data unit (ADU) to the MTAMP service which checks the LIPA and determines that the server is now the Legacy Modbus / TCP peer . Then, it sends unchanged Modbus / TCP PDU to the said Legacy Modbus / TCP peer, upon which generates and sends at least one UDP packet . Each UDP packet contains the PDU and the MAC of the unchanged Modbus / TCP ADU j ust sent to the same Legacy Modbus / TCP peer . When arriving at the Legacy Modbus / TCP peer , the UDP packet is subsequently rej ected or ignored . The sent UDP packets are captured by the Modbus / TCP Supervisor and checked against the Modbus / TCP PDU sent before the said UDP packets . The amount of information sent via the said UDP packets allows the Modbus / TCP supervisor to unambiguously determine which client sent standard Modbus / TCP PDUs to which the subsequently received one or more UDP packets relate .
[0024] C . When the legacy peer receives the Modbus / TCP PDU, it normally reads the original unprotected Modbus / TCP ADU, executes the set of commands contained in the received Modbus / TCP ADU, and generates a new application data unit (ADU) to be returned to the protected client peer .
[0025] D . The legacy Modbus / TCP server peer application sends its original unprotected application data unit (ADU) as the Modbus / TCP PDU which is received by the DAO service of the protected Modbus / TCP peer . The DAO service uses the LIPA and processes the unprotected Modbus / TCP ADU to its peer application without further processing .
[0026] In one variant of the protocol described above the number of UDP packets in step B is 1 . According to the invention, the communication between the protected Modbus / TCP peers is performed via the steps below .
[0027] A . When the protected Modbus / TCP peer , acting as the client initiates a communication request to another protected Modbus / TCP peer acting as the server, the PAKA services establish a session key and PDU counter on both peers .
[0028] B . Then, the Modbus / TCP client peer application sends its original application data unit (ADU ) to the MTAMP service which protects the ADU and sends the protected Modbus / TCP PDU to the server peer .
[0029] C . When the server peer receives the protected Modbus / TCP PDU, it initiates its DAO service and verifies the authenticity of the received Modbus / TCP ADU, and passes the received Modbus / TCP ADU, together with other processing data, to the server peer application .
[0030] D . The server peer application executes the set of commands contained in the received Modbus / TCP ADU and generates a new ADU to be returned to the client peer application .
[0031] E . The Modbus / TCP server peer application sends its original application data unit (ADU ) to the MTAMP service which, using the session key and PDU counter assumed from the PAKA service , protects the ADU and sends the protected Modbus / TCP PDU to the client peer .
[0032] F . When the client peer receives the protected Modbus / TCP PDU, it initiates its DAO service and verifies the authenticity of the received Modbus / TCP ADU, and passes the received Modbus / TCP ADU, together with other processing data, to the client peer application .
[0033] In the above-cited steps , each MTAMP service encapsulates the
[0034] Modbus / TCP ADU by adding the additional fields to the said Modbus / TCP ADU, where the additional fields are , at least , the PDU counter and MAC field, and where said additional fields are added at the end of the said Modbus / TCP ADU and opposite of the Modbus Application Protocol (MBAP ) header .
[0035] In the preferred embodiment , lightweight cryptography is used in the Message Authentication Code (MAC ) protection algorithm, preferably, the selected lightweight cryptographic method is Chaskey 12 . When the communication between the protected Modbus / TCP peers is performed, each DAO service , after receiving protected Modbus / TCP PDU, uses the session key and the PDU counter received from the PAKA service to check the MAC and the PDU counter . If the check is passed, the Modbus / TCP ADU is processed to the peer application ( 131 ) , or, if the check failed, the packet is discarded and the number of consecutive discarded packets , number of unexpected packets , counter flag and MAC flag are processed to the peer application .
[0036] In yet another variant only one Modbus / TCP supervisor is used for supervising all legacy peers , and optionally, all protected Modbus / TCP peers as well .
[0037] The disclosure protects the protected Modbus / TCP peers , the Modbus / TCP supervisors , and the legacy peers , operating on the same network and capable to exchange and work with the protected and unprotected Modbus / TCP ADU, by using the above-cited method of operation .
[0038] Description of Figures
[0039] Figure 1 discloses standard Modbus / TCP-based systems , used in industrial automation and control systems ( IACS ) , with operational levels 0-3 and enterprise level 4 separated via the demilitarized zone .
[0040] Figure 2 represents the structure of unprotected Modbus / TCP PDU . Figure 3 represents the encapsulated (protected ) Modbus / TCP ADU which is capable to be processed by the protected peers and the legacy peers as well .
[0041] Figure 4 depicts the standard symmetrical cryptography scheme used in communication between the protected peers .
[0042] Figure 5 depicts the situation when the protected peer is communicating with the legacy peer, with the help of the Modbus / TCP supervisor included in the communication scheme .
[0043] Figure 6 shows the work of any Modbus / TCP peer DAO service used within the disclosed method .
[0044] Figure 7 shows the work of any Modbus / TCP peer MTAMP service used within the disclosed method .
[0045] Detailed Description of the Invention
[0046] As a result of an intensive security analysis of the Modbus / TCP communication protocol , the Modbus Organization has developed a new industrial communication protocol called Modbus Security . Modbus Security is a TLS-based Modbus / TCP protocol that provides integrity, authentication, and encryption of data, but is not backward compatible with legacy Modbus / TCP . The mitigation of the observed drawback is the main goal of the present disclosure .
[0047] While developing a Modbus / TCP-based TAGS model , which is shown in Fig . 1 , the rules of the Purdue Enterprise Reference Model are adopted . The Purdue model is also used in the ISA / IEC 62443 industrial cybersecurity standard as a reference for TAGS network architecture . In the Purdue model , the TAGS network is divided into several levels , with the lowest level 0 , also referred to as the process level ( 10 ) representing the physical process , while level 4 is the enterprise IT system ( 14 ) . Within the model , IT and Operation Technology ( OT ) networks are separated by a demilitarized zone DMZ ( 13 ) , a zone designed to prevent direct communication between given networks . At the process level (10) , it is common to find devices such as sensors and actuators, which serve as a direct interface to an industrial process, via the process level PLC (110) . In terms of communication, process-level devices are usually Modbus / TCP servers (110) that respond to requests from clients located in the control level (11) , such as control PLC (120) . The Control level contains devices that control the automated industrial process, as well as transfer process- related information to the supervisory level (12) , eventually comprising workstations (180) . An example of such a device is a PLC, which can be a Modbus / TCP client (120) to the process devices, but also a Modbus / TCP server (120) to the supervisory level systems (12) . Finally, supervisory-level devices allow human operators to supervise and partially control the industrial process, such as SCADA (190) . The supervision process is maintained by a client-server application related to the control level. In addition, supervisory-level devices communicate with enterprise devices through services located in the DMZ (13) , but they generally do not use Modbus / TCP for communication. Levels 0-3 are connected via the set of network switches (21, 22) in a manner that is common in the art.
[0048] Specifically, the present disclosure has at least one or more Modbus / TCP Supervisors (150) at the supervisory level to make the present method feasible in practice.
[0049] Possible Man in the Middle (MIM) intrusions in the system, i.e. , the adversary, are depicted via the lightning bolt sign in Fig. 1. Having in mind the area of the producing facilities, or industrial facilities in general, the direct attacks can be expected in any part of the infrastructure especially knowing the vulnerability of the Modbus / TCP system and related open protocol.
[0050] The structure of the protected Modbus / TCP server (110) is depicted in Fig. 4. , where the said server is usually located at the process level, level 0, according to Fig. 1. It consists of the server application (111) , DAO service (112) , PAKA service (115) and MTAMP service (119) . Similarly, the protected Modbus / TCP client (120) , which is depicted in Fig 4. , consists of the client application (121) , DAO service (122) , PAKA service (125) , and MTAMP service (129) . The roles of the mentioned services are different. It should be noted that Fig. 4 represents the usual way of using symmetric cryptography within the protected Modbus / TCP operating devices. The Peer Authentication and Key Agreement (PAKA) services (115, 125) are designed to establish a session key and protocol data unit (PDU) counter on both peers selected from protected Modbus / TCP peers, i.e. , the server (110) and the client (120) peers. Similarly, the Data Origin Authentication (DAO) services (112, 122) are designed to verify, for their respective communication party (110, 120) , that the received Modbus / TCP ADU is authentic. The Modbus / TCP ADU MAC Protection (MTAMP) services (119, 129) are designated to encapsulate Modbus / TCP ADU via the Message Authentication Code (MAC) protection algorithm, according to the present invention.
[0051] Within this document, Modbus / TCP network packets will be referred to as Modbus / TCP Protocol Data Unit (Modbus / TCP PDU) , which is not to be confused with Modbus PDU, defined by the Modbus Organisation in Modbus Application Protocol Specification Vl.l.b3 as "simple protocol data unit independent of the underlying communication layers". It should be noted that this definition could introduce some confusion, but we argue that this is according to the definition given in the Request For Comments (RFC) written by M. Rose; ISO Presentation Services on top of TCP / IP-based internet.
[0052] Additionally, Modbus Organisation defined a Modbus Application Data Unit (Modbus ADU) which is dependent on "specific buses or network that can introduce some additional fields to it". Based on the given, we define Modbus / TCP ADU as the Modbus PDU encapsulated with TCP- specific fields, as defined in Modbus Messaging on TCP / IP Implementation Vl.O.b. The given definitions of Modbus / TCP PDU, Modbus / TCP ADU, and Modbus PDU can be seen in Figs. 2 and 3, respectively. Although we have strictly defined the difference between the Modbus / TCP ADU and PDU, we stress that they could be used interchangeably without changing the context of this document.
[0053] Fig. 2 represents the frame size of a standard Ethernet frame, defined by RFC 894. It is the sum of the Ethernet header, which is 14 bytes long, the payload - which is an IP packet usually 1,500 bytes long, and the Frame Check Sequence (FCS) field of 4 bytes. The IP packet or Ethernet data array consists of an IP header that contains information about the IP version, source IP address, destination IP address, time- to-live, etc. TCP wraps each data packet with a header containing 10 mandatory fields totaling 20 bytes, or octets. Each header holds information about the connection and the current data being sent. Modbus / TCP ADU is a packet within the IP data array, consisting of Modbus Application Protocol (MBAP) header, Function code, and Modbus data, all being well-known to the person skilled in the art.
[0054] According to the present invention, the protected Modbus / TCP ADU is formed in a way that additional fields were added as a part of Modbus data. If Fig. 2 is compared with Fig 3, it is evident that the PDU counter with the length of m-bytes, MAC with the length of n-bytes, and optional length field of 1 byte is incorporated in a Modbus data which has 252 or fewer bytes. By the proposed method, the Modbus data is reduced to 252-m-n bytes, or in the case of the length filed included, to 252-m-n-l bytes. MAC calculation is executed over the MBAP header, the Function code, reduced Modbus data, PDU counter, and optional Length field. Method for MAC calculation should be chosen among the applicable lightweight cryptographic methods, for instance, Chaskey 12 algorithm. Such procedure is well-known in the art, and it is described in the article written by Mouha, Nicky; Chaskey: a MAC Algorithm for Microcontrollers - Status Update and Proposal of Chaskey-12 -. IACR Cryptol. ePrint Arch. 2015 (2015) : 1182. On the other hand, communication with legacy devices is executed in a standard Modbus / TCP manner, with the addition of a multicast / broadcast / unicast UDP packet created by the protected peer which consists of, at least the PDU counter and MAC, allowing supervisor device to verify the Modbus / TCP PDU sent by the protected peer .
[0055] However, the practical implementation requires at least one Modbus / TCP
[0056] Supervisor (150) whose role will be discussed later in more detail.
[0057] All protected Modbus / TCP peers (130) and Modbus / TCP supervisors (150) are previously fed with the List of all legacy Modbus peers' IP Addresses (LIPA) , operating within the same Modbus / TCP-based system. LIPA allows the protected peers (130) and supervisors (150) to identify all legacy peers with their IP addresses and to allow their DAO services (132, 152) and MTAMP services (139) to know the opposite peer abilities to process the protected Modbus / TCP ADUs .
[0058] Fig. 4 describes the protected communication between the Protected Modbus / TCP server (110) and the Protected Modbus / TCP client (120) . The data exchange is performed via the following steps A-F:
[0059] A. The protected Modbus / TCP peer (120) , acting as the client, initiates a communication request to another protected Modbus / TCP peer (110) acting as the server. The PAKA services establish a session key and PDU counter on both peers (110, 120) , in a manner that is known in the art.
[0060] B. The Modbus / TCP client peer application (120) sends its original application data unit (ADU) to the MTAMP service (129) . The MTAMP service (129) protects the ADU in the way shown in Fig. 3, and sends now the protected Modbus / TCP ADU to the server peer (110) .
[0061] C. When the server peer (110) receives the protected Modbus / TCP PDU, it initiates its DAO service (112) and verifies the authenticity of the received Modbus / TCP ADU, using the session key and counter data. If the received protected Modbus / TCP ADU is authentic and valid, the received and extracted Modbus / TCP ADU, together with other processing data such as authenticity-related information, are processed to the server peer application (111) . D. The server peer application (111) executes the set of commands contained in the received Modbus / TCP ADU and generates a new application data unit (ADU) to be returned to the client peer application (120) .
[0062] E. The Modbus / TCP server peer application (111) sends its original application data unit (ADU) to the MTAMP service (119) which, using the session key and PDU counter assumed from the PAKA service (115) , now protects the ADU and sends the protected Modbus / TCP PDU to the client peer (120) .
[0063] F. When the client peer (120) receives the protected Modbus / TCP PDU, it initiates its DAO service (122) and verifies the authenticity of the received protected Modbus / TCP ADU, and passes the received Modbus / TCP ADU, together with other processing data, to the client peer application (129) , in the same manner as the server did in step C.
[0064] The role of the DAO services (112, 122) shown in Fig. 4 is fully revealed as the Modbus / TCP peer DAO service (132) in Fig. 6. For proper functioning, the DAO service (132) is using the session key and PDU counter assumed from the peer's PAKA service (135) . After receiving any Modbus / TCP ADU, i.e. , protected or unprotected, the DAO service (132) performs the following check:
[0065] (i) if the message originates from the legacy peer (140) , which is obvious from the data listed from the LIPA, the unprotected Modbus / TCP ADU is processed to the peer application (131) , or,
[0066] (ii) if the message originates from the protected Modbus / TCP peer (130) , the session key and the PDU counter received from the PAKA service (135) are used to check the MAC and the PDU counter, and if the check is passed, the Modbus / TCP ADU is processed to the peer application (131) , or, if the check failed, the packet is discarded and the number of consecutive discarded packets, number of unexpected packets, counter flag and MAC flag are processed to the peer application (131) .
[0067] Similarly, the role of the MTAMP services (119, 129) shown in Fig. 4 is fully revealed as the Modbus / TCP peer MTAMP service (139) in Fig. 7. For proper functioning, the MTAMP service (139) is using the session key and PDU counter assumed from the peer's PAKA service (135 - At the moment, only the route with Protected Modbus / TCP peer is considered. If the opposite party is the Protected Modbus / TCP peer (130' , 130") , the situation described in Fig. 4, the Modbus / TCP ADU is protected via encapsulation and subsequently sent to the opposite peer .
[0068] Steps A to F represent the standard symmetrical cryptography exchange of information depicted in Fig. 4 and performed with the assistance of the DAO services and MTAMP services reviled in Figs. 6 and 7.
[0069] A well-known fact in the field is that lot of actuators and sensors from the 20thcentury cannot be upgraded to form protected devices, mainly due to their lack of computation power. Inevitably, the hybrid model of data exchange, i.e., where protected and unprotected data exchange occurs, is a must for the method of operation to be successfully deployed. Fig. 5 helps to understand the communication between legacy Modbus / TCP peer (140) and protected Modbus / TCP peer (130) . Legacy Modbus / TCP peer (140) has only the peer application (141) capable to receive unprotected Modbus / TCP ADU and transmit the reply in the same format. Protected Modbus / TCP peer (130) has all functionalities and modules as previously explained for the peers (110, 120) , Fig. 4, i.e., DAO service (132) , PAKA service (135) , and MTAMP service (139) . From Fig. 5, it is evident the lack of PAKA service on the legacy Modbus / TCP peer (140) . To overcome the observed difficulty, the Operation Technology (OT) network is equipped with one or more Modbus / TCP Supervisors (150) . Each supervisor (150) has at least three important modules, PAKA service (155) , DAO service (152) , and supervisor application (151) , where the first two have the identical functionality as protected Modbus / TCP peers (130, 130' , 130") . In addition, each Modbus / TCP supervisor is configured to capture Modbus / TCP PDUs, by using Switched Port Analyzer (SPAN) , for all legacy Modbus / TCP peers (140) , by using the LIPA which indicates all IP addresses for which the said Modbus / TCP supervisor is responsible. The session is performed via the steps described below.
[0070] A. The protected Modbus / TCP peer (130) , acting as the client, initiates a communication request to the legacy Modbus / TCP peer (140) acting as the server. The PAKA services establish a session key and PDU counter on the protected Modbus / TCP peer (130) and the Modbus / TCP Supervisor (150) . The Modbus / TCP Supervisor (150) is supervising sent packets by the protected Modbus / TCP peer (130) to the said legacy Modbus / TCP peer (140) .
[0071] B. The Modbus / TCP client peer application (131) sends its original application data unit (ADU) to the MTAMP service (139) which checks the LIPA and determines that the server (130") is now the Legacy Modbus / TCP peer (140) . The MTAMP service (139) sends the unchanged Modbus / TCP PDU to the said Legacy Modbus / TCP peer (140) , upon which generates and sends at least one UDP packet, as depicted in Fig. 7. This UDP packet or packets contains the PDU and the MAC of the unchanged Modbus / TCP ADU just sent to the same Legacy Modbus / TCP peer (140) . Such UDP packets are subsequently rejected or ignored by the said Legacy Modbus / TCP peer (140) , but the said UDP packets are captured by the Modbus / TCP Supervisor (150) and checked against the Modbus / TCP PDU sent before the said UDP packets . The amount of information sent via the said UDP packets allows the Modbus / TCP supervisor (150) to unambiguously determine which client (130) sent standard Modbus / TCP PDUs to which the subsequently received one or more UDP packets relate.
[0072] C. When the legacy peer (140) receives the Modbus / TCP PDU, it normally reads the original unprotected Modbus / TCP ADU, executes the set of commands contained in the received Modbus / TCP ADU, and generates a new application data unit (ADU) to be returned to the protected client peer (130) . D. the legacy Modbus / TCP server peer application (141) sends its original unprotected application data unit (ADU) as the Modbus / TCP PDU which is received by the DAO service (132) of the protected Modbus / TCP peer. The DAO service (132) uses the LIPA and processes the unprotected Modbus / TCP ADU to its peer application (131) without further processing.
[0073] In practice, only one Modbus / TCP supervisor (150) is sufficient for supervising all legacy peers (140) , and optionally, all protected Modbus / TCP peers (130) as well. However, in more complicated cases, two or more supervisors (150) can be used to monitor the process and control levels, despite the fact that only one is depicted in Fig. 1.
[0074] It should be emphasized that the disclosed method is not perfect but, in contrast to other methods in the fields, allows the protected and legacy peers to communicate while ensuring partial protection of the communication. Protected peers (130' , 130") will communicate in a protected manner as disclosed above and in Fig. 4, with the encapsulated Modbus / TCP ADU as disclosed in Fig. 3. The legacy peers (140) will communicate among themselves in a standard manner, exchanging the Modbus / TCP ADU as depicted in Fig. 2. In a hybrid mode, the protected peer (130) will communicate with legacy peers (140) via the standard Modbus / TCP PDU. The PAKA services and DAO services, instead of the said legacy peers (140) , will be executed using the data acquired from the UDP packet sent by the protected peer (130) and the data from the earlier sent Modbus / TCP PDU with the help of one or more Modbus / TCP supervisors (150) , which are permanently scanning the network via the SPAN port and communication sent to legacy peers (140) . After acquiring both the Modbus / TCP PDU and the related UDP packet, the Modbus / TCP supervisor (150) executes the DAO (152) using the PDU counter and session key acquired from the PAKA (155) and the acquired Modbus / TCP ADU and compares the generated MAC and PDU counter with the ones acquired from the related UDP packet. If the generated and acquired values do not match up, the Modbus / TCP Supervisor application (151) alerts the operator controlling the IACS. For the protected exchange of information, i.e. , among protected Modbus / TCP peers (130) , the DAO service, whose flow chart is given in Fig. 6., allows communication parties to verify that the received Modbus / TCP ADU is authentic or has been tampered with in some way.
[0075] Similarly, when the protected Modbus / TCP peers (130) act as the client, and the legacy peer (140) as the server, the Modbus / TCP supervisor checks with its DAO service (152) that the request is legit, while the return legacy peer (140) Modbus / TCP ADU can be tampered or altered. Although the given problem poses a cybersecurity threat, it should be noted that attacks on Modbus / TCP requests can drive the system from a safe state to a critical state, as described in the article written by Gao, Wei; On Cyber Attacks and Signature Based Intrusion Detection for Modbus Based Industrial Control Systems -. The Journal of Digital Forensics, Security and Law, 2014; DOI: https : / / doi.org / 10.15394 / jdfsl.2014.1162.
[0076] The given fact shows that attacks on Modbus / TCP requests can be more dangerous than the ones on Modbus / TCP responses, especially in situations where an operator needs to send safety-related commands to the IACS (e.g., emergency shutdown) . In general, such decisions should be made based on threat modelling and risk assessments. In IACSS in which cybersecurity risk analysis shows significant risk even when using the hybrid mode, it is advised to change legacy peers with protected ones.
[0077] The person skilled in the art will immediately recognize that even further measures, for instance, monitoring the history of recorded latencies on the Modbus / TCP supervisor (150) side, can be applied to recognize the legacy peer (140) , which Modbus / TCP ADU message is possibly tampered. In addition, one or more similar measures may be employed in parallel with the disclosed method of protection.
[0078] Industrial Applicability The novel method for the protection of Modbus / TCP-based systems in communication over the network is disclosed . Those systems consist of a plurality of protected and legacy Modbus / TCP peers , and at least one Modbus / TCP supervisor operating on the same network . The said supervisor is designed to execute the data origin authentication, the peer authentication and key agreement service for the legacy peer, using port mirroring , which copies the network traffic between the peers . Protected peers encapsulate the Modbus / TCP ADU by adding additional fields to it , where the additional fields are , at least , the PDU counter and MAC field . The said fields are added at the end of the said Modbus / TCP ADU and opposite of the Modbus Application Protocol (MBAP ) header . When communicating with legacy devices , protected peers send standard Modbus / TCP PDUs , after which they create and send the corresponding UDP packets which are composed of , at least , the PDU and MAC counter, which allow the Modbus / TCP Supervisor to verify the authenticity of the corresponding standard Modbus / TCP PDUs . Henceforth, the present invention is industrially applicable .
[0079] Reference numbers and abbreviations
[0080] 10 Level 0 - process level
[0081] 11 Level 1 - control level
[0082] 12 Level 2 / 3 - supervisory level
[0083] 13 Demilitarized zone
[0084] 14 Level 4 - Enterprise level
[0085] 21 Network switch
[0086] 22 Network switch
[0087] 110 Modbus / TCP server device , Process level PLC
[0088] 111 Server application
[0089] 112 Data origin authentication ( DAO ) service
[0090] 115 Peer authentication and key agreement ( PAKA) service
[0091] 119 Modbus / TCP ADU MAC protection ( PAKA) service
[0092] 120 Modbus / TCP client device , Control PLC
[0093] 121 Client application
[0094] 122 Data origin authentication ( DAO ) service
[0095] 125 Peer authentication and key agreement ( PAKA) service 12 9 Modbus / TCP ADU MAC protection (MTAMP ) service
[0096] 130 Protected Modbus / TCP peer
[0097] 131 Peer application
[0098] 132 Data origin authentication ( DAO ) service
[0099] 135 Peer authentication and key agreement ( PAKA) service
[0100] 139 Modbus / TCP ADU MAC protection (MTAMP ) service
[0101] 140 Legacy Modbus / TCP peer
[0102] 141 Peer application
[0103] 150 Modbus / TCP Supervisor
[0104] 151 Supervisor application
[0105] 152 Data origin authentication ( DAO ) service
[0106] 155 Peer authentication and key agreement ( PAKA) service
[0107] 180 Workstation
[0108] 190 Modbus / TCP client device , SCADA
[0109] SCADA Supervisory control and data acquis ition
[0110] PDU Protocol Data Unit
[0111] ADU Application Data Unit
[0112] MAC Mes sage Authentication Code
[0113] MBAP Modbus Application Protocol
[0114] TCP Transmiss ion Control Protocol
[0115] FCS Frame Check Sequence ( checksum)
[0116] PAKA Peer Authentication and Key Agreement
[0117] MTAMP Modbus / TCP ADU MAC Protection
[0118] DAO Data Origin Authentication
[0119] ARI Authenticity Related Information
[0120] IACS Industrial Automation and Control Systems
[0121] PLC Programable Logic Controllers
[0122] CI Critical Infrastructure
[0123] LI PA List of All Legacy Modbus peers ' IP Addresses
Claims
CLAIMS1. A method for protection of Modbus / TCP-based systems in communication over the network where those systems consist of a plurality of protected Modbus / TCP peers (130) , legacy Modbus / TCP peers (140) , and at least one Modbus / TCP supervisor (150) , where: each protected Modbus / TCP peer (130) has its data origin authentication (DAO) service (132) , peer authentication and key agreement (PAKA) service (135) , Modbus / TCP ADU MAC protection (MTAMP) service (139) , and peer application (131) , each legacy Modbus / TCP peer (140) has its peer application (141) , and, each Modbus / TCP supervisor (150) has its supervisor application (151) , DAO service (152) , and PAKA service (155) , where all PAKA services (135, 155) are designed to establish a session key and protocol data unit (PDU) counter on both peers selected from protected Modbus / TCP peers (130) or Modbus / TCP supervisors (150) , where all DAO services (132, 152) are designed to verify, for their communication party, that the received Modbus / TCP ADU is authentic, where the MTAMP service (139) is capable to encapsulate Modbus / TCP ADU via the Message Authentication Code (MAC) protection algorithm, where each Modbus / TCP supervisor (150) is configured to capture sent packets, by using Switched Port Analyzer (SPAN) , for all legacy Modbus / TCP peers (140) which are supervised by the said Modbus / TCP supervisor (150) , and where all protected Modbus / TCP peers (130) and Modbus / TCP supervisors (150) are previously fed with the List of all legacy Modbus peers' IP Addresses (LIPA) , operating within the same Modbus / TCP-based system, characterized by that, when the legacy Modbus / TCP peer (140) is acting as the Modbus / TCP server, the appropriate Modbus / TCP supervisor (150) is supervising the said legacy Modbus / TCP peer (140) performing the DAO service (152) and the PAKA service (155)for the said legacy Modbus / TCP peer (140) emulating the Modbus / TCP server peer's DAO and PAKA services (132, 135) , where the communication is performed via the following steps:A. the protected Modbus / TCP peer (130) , acting as the client, initiates a communication request to the legacy Modbus / TCP peer (140) acting as the server, the PAKA services establish a session key and PDU counter on the protected Modbus / TCP peer (130) and the Modbus / TCP Supervisor (150) which is supervising sent packets by the protected Modbus / TCP peer (130) to the said legacy Modbus / TCP peer (140) ,B. the Modbus / TCP client peer application (131) sends its original application data unit (ADU) to the MTAMP service(139) which checks the LIPA and determines that the server (130") is now the Legacy Modbus / TCP peer (140) , and sends the unchanged Modbus / TCP PDU to the said Legacy Modbus / TCP peer (140) , upon which generates and sends at least one UDP packet, containing the PDU and the MAC of the unchanged Modbus / TCP ADU just sent to the same Legacy Modbus / TCP peer(140) , which are subsequently rejected or ignored by the said Legacy Modbus / TCP peer (140) , but where the said UDP packets are captured by the Modbus / TCP Supervisor (150) and checked against the Modbus / TCP PDU sent before the said UDP packets, where the amount of information sent via the said UDP packets allows the Modbus / TCP supervisor (150) to unambiguously determine which client (130) sent standard Modbus / TCP PDUs to which the subsequently received, one or more, UDP packets relate,C. when the legacy peer (140) receives the Modbus / TCP PDU, it normally reads the original unprotected Modbus / TCP ADU, executes the set of commands contained in the received Modbus / TCP ADU, and generates a new application data unit (ADU) to be returned to the protected client peer (130) , and,D. the legacy Modbus / TCP server peer application (141) sends its original unprotected application data unit (ADU) as theModbus / TCP PDU which is received by the DAO service (132) of the protected Modbus / TCP peer, and the DAO service (132) uses the LIPA and processes the unprotected Modbus / TCP ADU to its peer application (131) without further processing.
2. The method for protection of Modbus / TCP-based systems in communication over the network according to claim 1, where the communication between the protected Modbus / TCP peers (130' , 130") is performed via the following steps:A. when the protected Modbus / TCP peer (130' ) , acting as the client initiates a communication request to another protected Modbus / TCP peer (130") acting as the server, the PAKA services establish a session key and PDU counter on both peers (130' , 130") ,B. the Modbus / TCP client peer application (131' ) sends its original application data unit (ADU) to the MTAMP service (139' ) which protects the ADU and sends the protected Modbus / TCP PDU to the server peer (130") ,C. when the server peer (130") receives the protected Modbus / TCP PDU, it initiates its DAO service (132") and verifies the authenticity of the received Modbus / TCP ADU, and passes the received Modbus / TCP ADU, together with other processing data, to the server peer application (131") ,D. the server peer application (131") executes the set of commands contained in the received Modbus / TCP ADU and generates a new ADU to be returned to the client peer application (131' ) ,E. the Modbus / TCP server peer application (131") sends its original application data unit (ADU) to the MTAMP service (139") which, using the session key and PDU counter assumed from the PAKA service (135") , protects the ADU and sends the protected Modbus / TCP PDU to the client peer (130' ) ,F. when the client peer (130' ) receives the protected Modbus / TCP PDU, it initiates its DAO service (132' ) and verifies the authenticity of the received Modbus / TCP ADU, and passes thereceived Modbus / TCP ADU, together with other processing data, to the client peer application (131' ) , where each MTAMP service (139' , 139") encapsulates the Modbus / TCP ADU by adding the additional fields to the said Modbus / TCP ADU, where the additional fields are, at least, the PDU counter and MAC field, and where said additional fields are added at the end of the mentioned Modbus / TCP ADU and opposite of the Modbus Application Protocol (MBAP) header.
3. The method for protection of Modbus / TCP-based systems in communication over the network according to claim 2, where lightweight cryptography is used in the Message Authentication Code (MAC) protection algorithm.
4. The method for protection of Modbus / TCP-based systems in communication over the network according to claim 3, where the selected lightweight cryptographic method is Chaskey 12.
5. The method for protection of Modbus / TCP-based systems in communication over the network according to claim 2, where each DAO service (132) , after receiving protected Modbus / TCP PDU, uses the session key and the PDU counter received from the PAKA service (135) to check the MAC and the PDU counter, and if the check is passed, the Modbus / TCP ADU is processed to the peer application (131) , or, if the check failed, the packet is discarded and the number of consecutive discarded packets, number of unexpected packets, counter flag and MAC flag are processed to the peer application (131) .
6. The method for protection of Modbus / TCP-based systems in communication over the network according to claim 1, wherein the number of UDP packets in step B is set to 1.
7. The method for protection of Modbus / TCP-based systems in communication over the network according to any of the previous claims, wherein only one Modbus / TCP supervisor (150) is used forsupervising all legacy peers (140) , and optionally, all protectedModbus / TCP peers (130) as well.
8. The protected Modbus / TCP peers (130) , the Modbus / TCP supervisors (150) , and the legacy peers (140) , operating on the same network and capable to exchange and work with the protected and unprotected Modbus / TCP ADU, by using the method defined in claims 1-7.
Citation Information
Patent Citations
Modbus TCP protocol safety enhancement method and system
CN113472520A
Security reinforcement method for Modbus TCP protocol
CN113824705A
Cited By
Modbus credibility enhancement method and device based on national cryptographic algorithm and storage medium
CN120692081A
