OPC UA is the interoperability standard that ties modern OT together. Unlike the legacy protocols it often replaces, it was designed with security built in: encryption, signing, mutual authentication and a structured trust model are part of the specification, not bolt-on extras. That design is why OPC UA shows up in everything from PLCs and gateways to MES, historians and cloud connectors.

But built-in security is not the same as secure by default. OPC UA gives you a set of dials — security modes, certificate trust, user tokens, discovery, and now PubSub — and the protection you actually get depends on how those dials are set. A server left at “None” security mode, with self-signed certificates auto-trusted and anonymous login enabled, exposes a rich address space to anyone who can reach it. This article is a practical, standards-aware guide to hardening OPC UA specifically, and to deciding which boundaries should carry it at all.

01Key takeaways

  1. 01

    OPC UA ships with strong security primitives, but defaults vary by product; the real security posture is set during commissioning, not by the spec alone.

  2. 02

    The three security modes — None, Sign, and SignAndEncrypt — are the first decision. Production OT traffic should use SignAndEncrypt; “None” should be reserved for isolated, low-trust discovery cases.

  3. 03

    Trust comes from X.509 certificates on both client and server. Application authentication, user authentication and certificate lifecycle are three separate problems you must manage deliberately.

  4. 04

    OPC UA PubSub changes the threat model: broker-based or multicast messaging needs its own message security and key management, not the session security of client-server.

  5. 05

    OPC UA reduces protocol-layer risk, but it does not remove bidirectional reachability. For OT-to-IT and OT-to-cloud flows, pairing hardened OPC UA with one-way transfer or scheduled disconnection limits exposure further.

02What OPC UA is, and why it is everywhere

OPC UA (Unified Architecture) is a platform-independent, service-oriented interoperability standard for industrial automation, published as the IEC 62541 series and maintained by the OPC Foundation. It defines how clients and servers exchange data, how that data is structured in an address space, and how the connection is secured. It replaced the older Windows-COM/DCOM-bound OPC “Classic” with a transport- and OS-neutral design.

It matters because it is the connective tissue of modern OT. A single plant may use OPC UA to move tag data from PLCs to a SCADA layer, from SCADA to a historian, and from the historian outward to MES, analytics or cloud platforms. That ubiquity is exactly why its security configuration deserves scrutiny: one protocol now spans many trust boundaries that used to be separate.

Short version: OPC UA is the standard that lets OT systems talk to each other and to IT. Its security is genuinely capable — but only when configured, not assumed.

03Why OPC UA security is different from legacy OT protocols

Legacy protocols such as Modbus and DNP3 were designed for closed, trusted networks. They typically have no encryption, no authentication and no integrity checks, so the defensive answer is usually segmentation and monitoring around them. OPC UA is the opposite: the security mechanisms exist inside the protocol, so the failure mode is misconfiguration rather than absence.

That shift changes where attackers look. Instead of an unauthenticated read of a register, the realistic OPC UA attack paths are weak or disabled security modes, blanket certificate trust, anonymous or shared user accounts, exposed discovery endpoints, and unpatched stack vulnerabilities. The protocol is strong; the deployment is where it gets weak.

MITRE ATT&CK for ICS frames these as techniques rather than products: an adversary that reaches an OPC UA endpoint with weak security can perform Point & Tag Identification, read process values, or in poorly secured cases issue writes. The defensive goal is to make the endpoint refuse anything but mutually authenticated, encrypted sessions from known applications and users.

04Security modes: None, Sign, and SignAndEncrypt

Every OPC UA secure-channel uses a security mode combined with a security policy. The mode decides what protection the messages get; the policy decides which cryptographic algorithms are used. Getting both right is the foundation of OPC UA security.

None
No signing and no encryption. Messages are plaintext and unauthenticated. Acceptable only for isolated discovery on a trusted segment, never for production data or control.
Sign
Messages are signed, so integrity and origin are verified and tampering is detectable, but the payload is still readable on the wire. Useful where confidentiality is not required but integrity is.
SignAndEncrypt
Messages are both signed and encrypted. This is the appropriate default for production OT traffic, giving integrity, authenticity and confidentiality on the channel.

Security policies pair with the mode. Deprecated policies based on SHA-1 and Basic128Rsa15 should be disabled; current deployments should prefer the Basic256Sha256 or, where supported, the newer ECC-based policies. Treat the available policy list as an attack surface: every weak policy you leave enabled is one an attacker can negotiate down to.

05Application authentication and the certificate trust model

OPC UA authenticates applications using X.509 certificates. Each client and server holds an application instance certificate, and a secure connection only forms when each side trusts the other’s certificate. This is mutual authentication at the application layer — distinct from authenticating the human or service using the session.

The common failure is convenience. During commissioning, engineers often set servers to auto-accept untrusted certificates so devices simply connect. If that setting survives into production, certificate trust becomes meaningless and any rogue client is accepted. Trust should be explicit: certificates are placed in a trust list deliberately, and the auto-accept option is disabled before go-live.

  • Use a proper certificate hierarchy where practical, so a CA-signed application certificate can be trusted by issuer rather than one-by-one.
  • Disable “automatically trust all certificates” on every server before production use.
  • Validate the full certificate chain, expiry, key usage and the application URI, not just the thumbprint.
  • Maintain trust lists and certificate revocation lists, and remove certificates for decommissioned devices.
  • Protect private keys at rest; a stolen application key lets an attacker impersonate a trusted endpoint.

06User authentication and authorization

Application authentication proves which software is connecting. User authentication proves who is using the session, and OPC UA supports several user identity tokens: anonymous, username/password, and X.509 user certificates, with issued-token mechanisms for federated schemes.

Anonymous access is the riskiest token type and is frequently left enabled. For anything beyond public, read-only discovery data it should be disabled. Username/password tokens must only be sent over a SignAndEncrypt channel so credentials are never exposed; certificate-based user tokens are stronger still. Whatever the token, the server should map identities to least-privilege roles so a read-only consumer can never write to the address space.

Two questions to ask of any OPC UA server: which applications am I willing to trust, and which users may do what once connected? They are separate controls and both must be set explicitly.

07Securing OPC UA PubSub

Classic OPC UA is client-server with a stateful session, and that session is where security lives. OPC UA PubSub is different: publishers send messages to subscribers over a broker (MQTT or AMQP) or by UDP multicast, with no session between them. That decoupling is excellent for scalable, many-to-many telemetry, but it changes the security model entirely.

Because there is no secure-channel handshake, PubSub relies on message-level security: messages are signed and encrypted using symmetric keys distributed by a Security Key Service (SKS). Key management, group membership and key rotation become the core controls. For broker-based PubSub you also inherit the broker’s own security — TLS, authentication and topic authorization on the MQTT or AMQP layer must be configured alongside OPC UA message security, not instead of it.

  • Enable message signing and encryption on PubSub groups; do not rely on transport TLS alone.
  • Deploy and harden a Security Key Service, and rotate keys on a defined schedule.
  • Secure the broker independently: authenticated clients, TLS, and least-privilege topic permissions.
  • Restrict UDP multicast PubSub to controlled network segments where membership is tightly scoped.

08Discovery and the Global Discovery Server

OPC UA discovery lets clients find servers and their endpoints. A LocalDiscoveryServer advertises endpoints on a host; the Global Discovery Server (GDS) extends this across a network and, importantly, can act as a certificate manager — issuing, renewing and revoking application certificates and pushing trust lists to enrolled devices.

The GDS is therefore both an operational convenience and a high-value target. If it manages certificates for a fleet, compromising it could undermine trust across many endpoints. It belongs in a protected management zone, with its own hardened authentication and tightly controlled access, not exposed alongside the data it helps secure.

Discovery endpoints themselves should be treated carefully. A discovery service that lists every server, endpoint and supported security policy is reconnaissance for an attacker. Limit who can reach discovery, and remember that a discovery endpoint at security mode None still reveals structure even when the data endpoints are encrypted.

09Mapping OPC UA controls to standards and compliance

OPC UA security does not stand alone; it implements requirements that frameworks already expect. The OPC Foundation publishes a dedicated security model (IEC 62541-2) and the protocol has been the subject of independent security analysis, including work commissioned by Germany’s BSI. Mapping configuration to a framework keeps the hardening auditable.

NIST SP 800-82
OPC UA encryption, signing and authentication support the OT-specific guidance on protecting communications and restricting access between zones.
ISA/IEC 62443
Security modes, certificate-based application auth and user roles map to foundational requirements for identification, authentication, integrity and confidentiality across zones and conduits.
MITRE ATT&CK for ICS
Hardened OPC UA endpoints reduce exposure to techniques such as unauthorized command messaging, point and tag identification, and remote system discovery.
IEC 62541-2
The OPC UA security model itself, defining the secure channel, certificate handling and user authentication that the other standards expect to see implemented.

10Common OPC UA security pitfalls

Most real-world OPC UA weaknesses are not novel cryptographic breaks. They are predictable configuration and lifecycle gaps that survive from commissioning into production.

  • Leaving security mode None enabled on data endpoints “for testing” and never removing it.
  • Auto-accepting untrusted certificates, which silently defeats application authentication.
  • Allowing anonymous user access to writable nodes instead of mapping users to least-privilege roles.
  • Keeping deprecated security policies (Basic128Rsa15, SHA-1) negotiable so a client can downgrade.
  • Ignoring certificate expiry and revocation until a connection breaks or a stale device key is abused.
  • Running unpatched OPC UA stacks; stack-level CVEs have affected widely reused SDKs.
  • Exposing the GDS or discovery services in the same flat zone as the endpoints they manage.

A short pre-production checklist catches most of these: confirm SignAndEncrypt on data endpoints, auto-accept disabled, anonymous off where it should be, weak policies removed, trust and revocation lists current, and the stack version patched.

11Where one-way transfer fits, and a hardening roadmap

Hardened OPC UA secures the conversation, but a client-server session is still a two-way conversation. When OPC UA crosses from an OT zone to IT, a SOC or the cloud, that bidirectional channel is exactly the reachability an attacker wants. Strong session security reduces the risk; it does not eliminate the inbound path.

Where the requirement is only to publish OT data outward — historian values, telemetry, KPIs — a one-way transfer can carry OPC UA data northbound while removing the return route entirely. Some unidirectional gateways terminate the OPC UA session inside the OT zone, replicate the address space across a one-way boundary, and re-serve it to clients on the IT side, so external clients never establish a session into the plant. Scheduled disconnection achieves a similar reduction for flows that only need to be online at defined times. The point is to layer, not replace: secure the protocol, then decide whether the boundary should be a live two-way session at all. For OT-to-IT publication, an AIRGAPNET one-way transfer pattern can sit alongside hardened OPC UA so data flows out without an inbound path back in.

A practical roadmap pulls the whole article together: inventory every OPC UA server and client; enforce SignAndEncrypt and modern policies; establish a real certificate trust process with a GDS in a protected zone; disable anonymous access and apply least-privilege roles; secure PubSub message security and brokers separately; patch stacks on a cadence; and, for northbound flows, decide where one-way transfer or scheduled disconnection should replace a live session. Start with the boundaries that cross the most trust — those are where misconfiguration costs the most.

FAQFrequently asked questions

Is OPC UA secure by default?

Not necessarily. OPC UA includes strong security mechanisms — encryption, signing and certificate-based authentication — but the actual posture depends on configuration. Defaults vary by product, and servers left at security mode None, with auto-accepted certificates and anonymous access enabled, are exposed despite the protocol's capabilities.

What are the OPC UA security modes?

There are three: None (no protection), Sign (messages are signed for integrity and authenticity but sent in clear), and SignAndEncrypt (messages are both signed and encrypted). Production OT traffic should use SignAndEncrypt; None should be reserved for isolated discovery on trusted segments.

How does OPC UA use certificates?

OPC UA authenticates applications with X.509 certificates. Each client and server presents an application instance certificate, and a secure channel forms only when each side trusts the other's certificate. Trust should be explicit through managed trust lists, with automatic acceptance of untrusted certificates disabled before production.

Does OPC UA PubSub need different security from client-server?

Yes. PubSub has no session, so it cannot rely on secure-channel security. It uses message-level signing and encryption with symmetric keys distributed by a Security Key Service, and broker-based PubSub also requires the MQTT or AMQP broker to be secured with TLS, authentication and topic authorization.

Can a data diode be used with OPC UA?

Yes. For northbound, publication-only flows, a unidirectional gateway can terminate the OPC UA session inside the OT zone, replicate the address space across a one-way boundary, and re-serve it to IT-side clients, so no external client establishes a session into the plant. This complements protocol hardening rather than replacing it.

SRCSources of record

Secure the protocol, then question the path

Harden OPC UA, then decide if the boundary should be one-way.

SignAndEncrypt, certificate trust and least-privilege users secure the OPC UA session. For OT-to-IT and OT-to-cloud publication, compare keeping a live two-way session against one-way transfer or scheduled disconnection before locking the design.

Related article

Continue the thread Insecure OT Protocols: Why Modbus and DNP3 Need Network-Level Protection