Industrial communication
How secure is OPC UA?
The more powerful the components become, the faster OPC UA will establish itself at field level. How can communication via this data exchange standard be designed securely?
With the further development of technical possibilities, the intelligence in the automation pyramid is spreading more and more towards the field devices. Accordingly, the exchange of data is changing from analog
connections to ever more powerful communication protocols. Against this backdrop, OPC UA is a modern architecture for automation.
In addition to Ethernet-based communication, IT security is playing an increasingly important role in automation. It supports and secures business processes, and the corresponding measures must be geared towards their protection requirements. The need for protection is expressed in the protection goals of confidentiality, integrity and availability. Depending on the application, other protection objectives such as authenticity are also taken into account.
In automation, availability is usually the focus of considerations, as the production processes form the core of value creation. The integrity of systems and data transmission is important to ensure the quality of manufacturing processes and products. The extent to which importance is attached to confidentiality depends on the respective application. In practice, the protection goals may well contradict each other.
Confidential data exchange is typically encrypted and is therefore tap-proof. This makes troubleshooting in a local network much more difficult, as the data traffic can no longer be analyzed using network diagnostics tools. In the event of an attack, encrypted communication makes it even more difficult to distinguish between legitimate and dangerous data traffic. In the IEC 62443 standard (IT security for industrial automation systems), the corresponding requirements for protecting integrity and confidentiality are therefore considered completely separately. It is therefore essential that security measures are not designed according to the "more is better" principle. On the one hand, additional requirements for systems and processes result in unnecessary costs; on the other hand, new risks could arise - see the example of encrypted data transmission.

Market shares of industrial networks 2019
Industrial Ethernet and wireless networks continue to grow rapidly, while fieldbuses declined for the first time in 2019. This is the conclusion reached by HMS Industrial Networks in its annual evaluation of the network market.
Connection setup and data transmission
Communication model between OPC UA client and server: The security mechanisms at application, communication and transport level must be interlinked.
© Phoenix ContactIn view of this, data exchange between the OPC UA client and server takes place at the application layer via OPC UA sessions. Integrity and confidentiality protection are implemented in the communication layer in the secure channel. The security in the communication layer is reflected in the functions offered by the protocols. In the case of OPC UA, this is expressed by the SecurityMode, which provides the options 'None', 'Sign' and 'SignAndEncrypt'. While the 'None' mode does not support any security objectives, the 'Sign' mode guarantees the authenticity of the communication partners and the integrity of the data transmission. The 'SignAndEncrypt' mode also ensures the confidentiality of communication.
For secure data exchange, OPC UA relies on established algorithms such as AES (Advanced Encryption Standard), SHA (Secure Hash Algorithm) for transmission and RSA (Rivest, Shamir, Adleman) as an asymmetric cryptographic method for authenticating communication partners. The use of the methods is defined by OPC UA in the security policy. Acceptable combinations of algorithms for establishing a connection and transmission are described here. One example is 'Basic256Sha256', which defines a combination of RSA with 2048 to 4096 bits, AES with 256 bits and SHA2 with at least 256 bits and corresponds to the current state of the art. Additions for ECC keys (Elliptic Curve Cryptography) are in progress.
Asymmetric electronic keys, which have a private and a public part, are used to establish a secure connection. The public part of the key is embedded in an electronic certificate, which can contain further information about the owner of the key - such as the name of a system, an application or a user. When a connection is established, the key and certificate are checked against trust lists and/or certificate hierarchies. Based on the results of the authentication, access to the information of the OPC UA endpoint can then take place. The standard describes objects and methods that can be used to manage rights via OPC UA itself. Because rights can be assigned to each object and each method, even the right to assign rights can be customized as required. However, this is currently not well supported by tools.
Electronic keys and certificates
Life cycle phases: Security requirements must be observed at every stage and these must be met by technical and organizational means.
© Phoenix ContactAs already explained, current versions of OPC UA include the basic mechanisms for secure use of the architecture. The secure integration of OPC UA into a local network has been considered in the discussion paper 'Secure implementation of OPC UA for operators, integrators and manufacturers' by Plattform Industrie 4.0. All aspects of a component's life cycle were examined, from commissioning by the integrator to decommissioning. The analysis revealed that the greatest difficulties lie in the management of electronic keys and certificates. In particular, this relates to supporting commissioning with a manufacturer certificate as proof of authenticity, the initial installation of electronic keys and certificates and the management of multiple certificates for different applications.
In response to the above-mentioned analysis, for example, the OPC Foundation is currently working on cross-manufacturer standardization for proof of authenticity. The mechanisms for managing and diagnosing the assignment of different certificates to the communication endpoints of a device that may exist simultaneously are also being further developed. Several communication endpoints are necessary so that one and the same device can communicate with different domains that are managed under different security aspects. For example, a device may need to communicate both with the IT of an operator who produces with the machine and with the IT of a maintenance service provider who monitors wear (condition monitoring) in order to send spare parts in good time. Both the operator and the maintenance service provider may be different legal entities and therefore want to generate and manage their own certificates independently of each other to secure communication. Last but not least, the latest specifications have often not yet been implemented in existing applications, meaning that the current security mechanisms are not yet fully usable in practice.
Example of an automatic certificate supply via certificate management: an essential measure without which a scalable deployment is hardly feasible.
© Phoenix ContactSince the launch of the OPC UA standard, certificates have been used to authenticate OPC UA applications. In automation, however, the handling of electronic keys and certificates is perceived as a challenge. While certificates have been used in traditional IT for several decades, knowledge of how to use them is not yet widespread in automation technology. This is because there was initially no widespread networking and many field devices are only now becoming powerful enough to cope with the computing effort associated with certificates. Part 12 of the OPC UA standard describes a manufacturer-independent way in which OPC UA applications can be supplied with certificates largely automatically, thus reducing the handling effort and making knowledge of certificates largely superfluous in many places. This approach, known as 'certificate management', only requires some manual work to set up the trust relationship between the certificate issuer and the application.
In addition, Part 12 presents an approach for industrial devices that contain OPC UA technology. What is particularly interesting is that the supply of certificates can be used not only for the OPC UA protocol, but also for other protocols and services provided by a device or system. The web server integrated into a device can also be supplied with a new certificate in this standardized and automatic manner at regular intervals.
For OPC UA applications, Part 12 also defines how the settings for the trustworthiness of remote stations can be automatically maintained via so-called 'trust lists' with certificate management. For this purpose, the respective certificates and revocation lists are distributed automatically. Certificate management is usually handled by a Global Discovery Server (GDS), the location of which can be selected as required. The description of the GDS in the standard allows a cascade-like implementation or the connection of certificate management to an existing certificate administration (certificate authority) in the company.
Client-server or publish-subscribe model?
Cross-company communication on the operator/service provider model: The communication path leads through several areas of responsibility and must be coordinated with all parties involved.
© Phoenix ContactCross-company networking is becoming increasingly important as part of the future-oriented Industry 4.0 project. As an architecture, OPC UA is proving to be a key element here. In the discussion paper 'Secure cross-company communication with OPC UA', also initiated by the Industry 4.0 platform, a corresponding use of the standard with the client-server model was therefore considered. For the exemplary case of condition monitoring and a possible parameterization, the interaction of an operator and a service provider was analyzed.
In this context, the protection objectives that can reasonably be assumed present a particular challenge. For data transmission via the Internet, the connection must ensure confidentiality and integrity. However, if the communication between the machine and the service provider is completely encrypted from end to end, the operator has no way of monitoring the connection or detecting unauthorized data traffic. The 'aggregating server' model, which would handle all access, could provide a remedy. However, if an operator wants several service providers to access machines from different providers, this inevitably raises the question of scaling. Overall, the client-server model does not appear to be optimal for this application. DIN SPEC 92222 (Reference Model for Industrial Cloud Federation), which is nearing completion, therefore focuses on the publish-subscribe model (PubSub) of OPC UA, which was released with Part 14 of the 2018 specification. In Plattform Industrie 4.0, the advantages and disadvantages of the models - client-server on the one hand, publish-subscribe on the other - as well as other alternatives are already being considered and discussed in order to meet the challenge of scalability.
In summary, it can be said that The requirements for the security of communication relationships must be based on the need for protection. OPC UA offers available mechanisms for which there are recommendations for implementation and further development in order to support widespread implementation. The focus here is on the local application. The use of OPC UA in cross-company data transmission is still under development and is being driven forward in the context of Industry 4.0.
Authors:
Torsten Förder is Senior Specialist Security at Phoenix Contact Software in Lemgo;
Dr.-Ing. Lutz Jänicke is Product & Solution Security Officer at Phoenix Contact in Blomberg.














