Skip to content
Zyberum Cyber Security Firm
Menu
GlossaryOTProtocols

OPC UA

OPC UA (IEC 62541) is the platform-independent industrial communication standard with built-in security. Security policies, certificates and the misconfigurations we see.

Updated This page as Markdown

In short

OPC UA (OPC Unified Architecture) is the service-oriented, platform-independent communication standard for industrial systems, specified by the OPC Foundation and standardised as IEC 62541. Unlike older industrial protocols it has security built in: X.509 application certificates, signed and encrypted secure channels, user authentication and role-based access. Whether an installation is secure depends on configuration; endpoints with SecurityPolicy None, anonymous users and servers that trust every client certificate are the usual gaps.

What is OPC UA?

OPC UA, the OPC Unified Architecture, is the communication standard that connects machines, controllers, SCADA, MES and cloud systems in industrial environments. The OPC Foundation specifies it in the OPC 10000 series, and it is standardised as IEC 62541. It is service-oriented and platform-independent: servers expose an address space of nodes that describe the machine, its variables, methods and events, and clients browse, read, write, subscribe and call methods through defined services. Companion specifications add standard information models for machine tools, robots, packaging (PackML) and many other domains, which is why OPC UA is the backbone of most Industry 4.0 architectures.

Transport is the binary protocol opc.tcp on port 4840, HTTPS, or, for publish/subscribe, UDP multicast and MQTT (Part 14, OPC UA PubSub).

Where is it defined?

Part 2 of the specification defines the security model. Each application has an X.509 application instance certificate. Client and server open a secure channel under a security policy that names the algorithms (Basic256Sha256, Aes128_Sha256_RsaOaep and Aes256_Sha256_RsaPss are current; Basic128Rsa15 and Basic256 are deprecated; None disables protection) and a message security mode (None, Sign, SignAndEncrypt). On top of the channel a session authenticates the user with an anonymous, username and password, X.509 certificate or issued token. Part 4 defines the services, Part 6 the mappings, Part 7 the profiles that products are certified against, Part 12 discovery and the Global Discovery Server for certificate management, and Part 18 role-based security. The BSI’s security analyses of OPC UA (2016, updated 2022) examined the specification and reference implementations and confirmed the design while pointing to implementation and configuration risks.

What it means in practice

OPC UA gives integrators every tool needed for a secure installation, and most installations use few of them. Typical findings:

  • SecurityPolicy None in production. Enabled “for commissioning” and never disabled, often next to an anonymous user token policy. Anyone on the network can browse the full address space and write to writable nodes.
  • Trust everything. Servers configured to accept any client certificate automatically, which turns certificate authentication into a formality. The trust list is the actual access control list and is rarely managed.
  • Default and shared certificates. Self-signed certificates with the vendor’s default subject, identical on every device of a product line, never rotated.
  • Deprecated policies. Basic128Rsa15 and Basic256 left enabled for old clients.
  • Credentials in the clear. Username and password tokens over an unencrypted channel when the user token policy does not enforce encryption.
  • No authorisation per node. Every authenticated user can write every writable variable, including setpoints, because roles are not configured.
  • Implementation bugs. Chunk handling, certificate parsing and session limits in server SDKs have produced crashes and bypasses; the version of the SDK inside a product matters.

In a test we enumerate endpoints and their policies, check the trust list handling with our own certificates, map the address space and the write permissions, and fuzz the server stack on bench units. Zyberum tests OPC UA servers and the products that embed them, for component manufacturers against IEC 62443-4-2 and for operators as part of OT penetration tests.

Common misunderstandings

OPC UA is secure by design, not secure by default: the vendor ships every policy, the integrator chooses. OPC UA PubSub over MQTT shifts the trust to the broker; its security has to be configured there. And a certified OPC UA stack says the protocol is implemented correctly against the profile, not that the product around it is secure.

FAQ

Frequently asked questions

Is OPC UA secure?

The design is. The BSI analysed the specification in 2016 and again in 2022 and found no systematic weaknesses in the security model. Installations are a different matter: a server that offers an endpoint with SecurityPolicy None and allows anonymous users is as open as Modbus. Security in OPC UA is a result of configuration and certificate management, not of the protocol name.

What is the difference between OPC UA and OPC Classic?

OPC Classic (OPC DA, HDA, A&E) from the 1990s is built on Microsoft COM/DCOM, is Windows-only and is notoriously hard to secure or to pass through firewalls. OPC UA is a new design: platform-independent, with its own binary protocol on port 4840 or HTTPS, an information model and integrated security. Wrappers exist to bridge Classic servers into UA, but they inherit the problems of the Classic server.

Which OPC UA security policy should I use?

Basic256Sha256, Aes128_Sha256_RsaOaep or Aes256_Sha256_RsaPss with message security mode SignAndEncrypt. Basic128Rsa15 and Basic256 are deprecated because of weak algorithms, and None should only exist on a commissioning network. Disable the deprecated policies and None on every production endpoint and manage the trust lists instead of accepting every certificate.

Sources

Related pages

Get started

A term that applies to your product?

In 15 minutes we tell you what it means for you in practice, which requirement follows from it and what the sensible next step is.

  • Direct answer from a security engineer
  • Which standard or law applies to you
  • Free and without obligation
Tom Zaubermann

Your call is withTom ZaubermannFounder & CEO, Zyberum

Call us: +49 176 439 17074info@zyberum.com

Or send us a message

We reply within one business day.

Call usAsk a security engineer

Pick a time that suits you

Open in a new tab