OPC represents an easy to use, ubiquitous, reliable method of communication. As a result of it being based on DCOM; it is well known by security professionals, but unfortunately is also known by virus writers and hackers. Layers of
security mean that should one part of the system be compromised, the rest will remain secure. Typical layers used include: physical business layer security, physical process layer security, exposure to the internet, business to process layer traversal, OPC architecture security, DCOM configuration, login security, firewalls, etc.
The amount of security required will be different for different implementations. A system at the bottom of a secure mine that will never be connected to the rest of the world will not have to be secured with remote attackers in mind. Physical plant security is a big part of system security, but we canâ€™t assume that itâ€™s enough. Relying on security through a single point, or relying on security through obscurity, is not enough.
For our purposes, weâ€™ll be concentrating on OPC DA, HDA, and A&E. Applications using other specifications are few and far between. OPC systems include OPC Servers and OPC Clients.
OPC Servers represent the largest risk out of all the components because they typically have direct access to devices and data. While it is fairly trivial to introduce an OPC Client to an unsecured point in a system, it is extremely difficult to install and configure an OPC Server to interface with plant resources. This is because OPC Servers typically have privileged or exclusive connections to devices and applications. Therefore, we will concentrate mostly on securing OPC Servers from unauthorized OPC Client
access and restricting authorized OPC Clients to only the functions necessary.
Security Techniques Using Off-the-Shelf Products
Before talking about COM/DCOM, it is important to show how a few key products can greatly improve the security of your system, and your peace of mind.
Shielding Sensitive OPC Servers
When possible and practical, sensitive OPC Servers should be shielded from direct OPC Client access. This is because most OPC Servers in use have no limiting mechanisms. They just give full access to everything and anyone. One mechanism is limiting traffic to one way only. It can be done directly on
hardware, such as on some PLCs, and can also be done on some OPC Servers and products. Other desirable parameters would be the ability to limit OPC Clients to certain tags only, and be able to set which are read/write, and which are read-only. OPC Funnel is one such product. It can be used to shield an OPC Server from direct OPC Client access. The
target OPC Server has its security locked to COM connections only. Funnel makes the connection to the OPC Server, and is exposed as necessary to the outside. Any OPC Client can be added and view the data, but they can only view/change the data we have allowed.
Another way of securing OPC architectures is through a â€śpush architecture.â€ť Recall that we are concerned with OPC Clients being added to our system and accessing data. This is because OPC Clients generally control what the OPC Server
does, and sometimes thatâ€™s more power than weâ€™re comfortable giving them. In these instances, we can â€śpushâ€ť the data to a cache local to the OPC Client and completely lock the OPC Server from outside DCOM connections. This is possible because client and server security settings are separate.
With this type of architecture, we take power away from the outside OPC Clients and put it on the locked-down OPC Server PC. In the diagram shown, we use MatrikonOPCâ€™s Data Manager to â€śpushâ€ť the data to MatrikonOPCâ€™s Server for Caching. The
Server for Caching is configured to only allow DCOM connections from Data Manager and local COM connections. This architecture prevents arbitrarily added OPC Clients from accessing our OPC Server and can have the tags locked down just like the shielding technique shown above has.
The above architectures solve the issue of OPC security, but make significant compromises in other areas. One of those areas is in firewalls, which donâ€™t work well with DCOM. OPC Tunnelling enables us to lock down all PCs by using software firewalls and removing DCOM from the system. To completely
lock the data stream between OPC Client and OPC Server, encrypt the tunneled data and configure the server to
only allow tunneled connections from the OPC Clientâ€™s IP address. Matrikonâ€™s OPC Tunneller enables data stream encryption and only allows access from OPC Clientâ€™s
you specify. In my opinion this architecture represents the
best in layered security for OPC systems because it removes
DCOM from the equation and allows use of firewalls on all PCâ€™s. Tunneled OPC makes OPC over the internet possible without VPN connections and their associated security configuration. Unlike XML-DA, OPC tunneled with Matrikonâ€™s OPC Tunneller does not take a significant performance hit.
COM/DCOM Security Techniques
Specific COM/DCOM security is based on ACLâ€™s (Access Control
Lists) and can be difficult even for IT staff. Specific settings will be omitted for length considerations. Contact your vendor for recommendations on your implementation.
Locking Down for A local Client
To lock down a PC for a local client connection we will close down DCOM, restrict the OPC Server to only allow OPC Clients running as the right user, and possibly ensure that the wrong person can never run the OPC Client with the right privileges. To close down COM/DCOM, a good technique is to create a user that only exists on the local machine, and then give launch and access permissions on your OPC Server to just that user. If itâ€™s possible to launch your OPC Client as that user without being logged in as that user, you can further lock down the station by removing the ability to interactively log in with that account.
Locking Down for A Remote Client Using Domains
Quite a bit more difficult, even to make the initial connection, is the DCOM security around remote connections. The best technique is again to use a specific user. Have IT create a non-interactive user to use for DCOM communications, and set your OPC Client and Server to use this user. Restrict your OPC Server to only allow access by this user. Locking down OPCEnum, the application that lists
OPC Servers, will block outside OPC Clients from even knowing that you have any OPC Servers available. This is done through dcomcnfg.exe just like all the other DCOM settings. Depending on how you start your OPC Server, you may also deny the â€śEveryoneâ€ť group launch permissions to prevent the possibility of launching the OPC Server from an OPC Client. If you have difficulty making a connection,
open up your DCOM security completely, then start restricting it step by step.
Locking Down for A Remote Client Using Workgroups
Potentially the worst from a security standpoint, remote connections through workgroups are also the most difficult to even configure initial connections for. OPC Clients and Servers must usually be run as the same user with the same
password to get any connection at all. Often, local security policy must be edited to enable the â€śEveryone permissions apply to anonymous usersâ€ť option, just to be able to OPC browse the PC. This option is potentially dangerous, so we typically avoid this type of configuration when security is
paramount, or we use OPC tunnelling.
Security in the Future
Currently, a number of plants do not employ any DCOM or OPC architectural security. In some of these plants, it is because the risk has been considerably reduced through other means such as complete disconnection from the outside
world and impressive on-site security. For plants where security is a concern, vendors should be consulted. MatrikonOPC has experts with both OPC and network security backgrounds who can give recommendations or implement the desired level of security in your system. We are committed to supplying products and services that create secure, reliable OPC architectures that end users require in todayâ€™s operating environments.
Adriel Michaud, CNT, is the Lead Solution Architect
for MatrikonOPC. Drawing from on-site experience
with OPC, along with a previous technical support
role, Adriel is the .....
Adriel's Contact Information
Site customized for Screen Resolution - 1400 x 1050