Security mechanisms : Secure by Default
With the increasing interconnection of automation systems and the heightened demands on cyber security, the framework conditions for the operation and maintenance of the Controller have changed fundamentally. Functions and processes that were previously considered solely from the perspective of functionality and availability must now also take security technology requirements into account.
For this reason, various measures, settings and procedures have been introduced to protect the Controller from unauthorised access, tampering and other cyber threats. These changes affect not only commissioning and operation but also service and maintenance work.
This documentation explains the key changes and describes the resulting requirements, procedures and courses of action in detail. The aim is to provide users and service personnel with an understanding of the new security mechanisms and to ensure their correct application.
As of Controller firmware v2.0.0, the security settings are "Secure by Default", i.e. a large part of the security settings are active and only a few are deactivated by default.
Secure by Default : Activity Diagram
Start of project planning
After establishing the connection from the PLC Designer to the Controller as describes in the chapter "Commissioning" of the manual, the administrator has to enter the name and the password as described in the chapter Controller.UserManagement.
The administrator could then parameterize the complete User Management or is able to start the programming. Functionalities like SFTP had to be disabled by default. To get more informations about these functionalities refer to the chapter Controller.LeastFunctionalitites.
Another important point is the activated Firewall of the Controller.
To get more informations about the Firewall parameterization per default have a look at the chapter Controller.Firewall.
To get more information about the different topics, have a look at the following chapter "Secure by Default" which gives an overview of the different points and lists the links to different chapters where the functionlities are described in detail.
Secure By Default
Controller User Management
-
The Controller User Management is activated by default and the user must log in with the stored credentials when using it for the first time. These can be found in this documentation under chapter Controller.AccountManagementGuidelines. After successful login, the administrator's password is forced to change (refer to chapter Controller.UserManagement).
-
It is recommended to keep the Controller User Management active. However, the users can deactivate it if they wish. To do this, the Runtime Policy of the Controller must first be adjusted and then User Management must be deactivated. A suitable way to do this is via Reset origin (refer to chapter Controller.UserManagement).
Controller Runtime Policy
-
The Communication Policy is set to "enforced encryption". This means that the Controller enforces encrypted connections by default, e.g. via OPC UA, i.e. an unencrypted connection requested by a client is rejected. If an unencrypted connection should still be possible, the communication policy must be set to "optional encryption" or "plaintext" and reboot the Controller (refer to chapter Controller.EncryptedCommunication.PLCDesigner).
-
The Controller User Management is set to "enforced" by default. This means that the Controller enforces user management, i.e. a user cannot deactivate user management. If the controller is to be operated without user management, the user must first set the Controller Runtime policy regarding user management to "optional user management" and can then deactivate User Management (refer to chapter Controller.UserManagement).
-
The Controller Anonymous User is "disabled" by default. This means that no anonymous connections to the controller can be established, but authentication must take place via user and password. If this is not desired by the user, the controller runtime policy must be changed and the "Anonymous log in" field must be activated and reboot the Controller (refer to chapter Controller.OPCUAServer.Authentification).
Controller UI Runtime
-
If the UI Runtime accesses the controller's own variables for visualization, this is done via a controller-internal OPC UA connection. As the Controller Runtime Policy no longer allows anonymous access with secure by default, the internal OPC UA access must also be authenticated. To do this, the access rights must be stored in the UI Designer Server (refer to chapter UIDesigner.OPCUAClient.Authentification) project or anonymous must be reactivated in the controller policy (refer to chapter Controller.OPCUAServer.Authentification).
Controller OPC UA PubSub
-
The OPC UA PubSub module currently requires anonymous login functionality to access internal variables. This means that OPC UA PubSub communication is not possible in secure-by-default mode. If this is required by the user, the anonymous login must be allowed again (refer to chapter Controller.OPCUAServer.Authentification).
Controller Runtime Password Policy
-
The Controller Password Policy is activated by default, i.e. the settings that are stored by default apply. The user must comply with these, change the password policy or even deactivate it (refer to chapter Controller.UserManagement).
-
The Controller Password Expiry is activated by default, i.e. the settings for the expiry of the stored passwords apply. The user must comply with this or deactivate the password policy for password expiry (refer to chapter Controller.UserManagement).
-
The Controller Login Lock is activated by default, i.e. the time login lock applies after a number of incorrect logins. This means that a time lock becomes active after a defined number of incorrect logins, or the user must deactivate the login lock beforehand (refer to chapter Controller.UserManagement).
Controller Web Diagnosis
-
The Web Diagnosis of the Controller is protected securely by default via authentication. This applies to guest access and advanced access. If the users do not want this, they can deactivate this authentication (refer to chapter Controller.WebDiagnosis).
Controller Firewall
-
The Controller Firewall is activated by default. If the users do not want this, they can deactivate it (refer to chapter Controller.Firewall).
Controller Least Functionality
-
Functionalities such as SFTP access, visualization access and options for EtherCAT diagnostics are deactivated securely by default via the Least Functionality functions. If the user wishes to use these, they must be activated during commissioning (refer to chapter Controller.LeastFunctionalitites).
Controller Key Handling
-
The Controller has the Device Replacement (refer to chapter Controller.DeviceReplacement) function to store the necessary data in encrypted form on the SD Card. By default, this is done using a device key. If the user wants to change this key from the device key to a Lenze-General-Key, he must change this during commissioning (refer to chapter Controller.KeyHandling).
Non Secure By Default
Controller Password Expiration
-
Using the PLC Designer, you can configure the password expiration setting during controller commissioning. This feature is not enabled by default, as it could otherwise lead to difficulties for many users. It is recommended to perform a risk analysis of the machine being built and to evaluate whether this functionality should be enabled and how it should be configured (refer to chapter Controller.UserManagement).
Controller Application
-
The application created by the PLC Designer is not encrypted and not signed in secure-by-default. The reason for this is the high dependency between PLC Designer project generation and Controller runtime. To prevent this dependency from being established by default, this security setting is switched off and can be activated at the user's request (refer to chapter Controller.Applicaiton.Encryption).
Controller SysLog
-
The SysLog functionality is activated secure-by-default with regard to logging in the Controller. However, the SysLog Client must be configured by the user and is deactivated by default. The reason for this is that if the user forgets to configure it, the SysLog Client will try to reach a non existent SysLog server at a default IP address, which will result in many error messages for technical reasons. The user must therefore parameterize the SysLog Client correctly beforehand, provide an appropriate certificate for encryption if necessary and activate the SysLog Client (refer to chapter Controller.SysLog).