Kaspersky Industrial CyberSecurity for Networks

Creating a Process Control rule with a Lua script

March 22, 2024

ID 136486

To create a rule with a Lua script:

  1. Connect to the Kaspersky Industrial CyberSecurity for Networks Server through the web interface using the Administrator account.
  2. Select the Process Control section.
  3. On the Rules tab, open the details area by clicking the Add Lua script link.
  4. Perform the following actions:
    1. Use the Enable toggle to define the status of the rule: Enabled or Disabled.
    2. Enter the rule name and description.
    3. If you want to define the script from a template, in the details area click the Use Lua template button, select the necessary template in the opened window and click Apply.
    4. In the Lua script for rule field, enter the code of the script in the Lua language.

      The script input field displays the names of functions and comments loaded from template. You can create a script by editing and augmenting template strings. When entering text, suggestions or available values automatically appear near the cursor (for example, relevant names of devices and tags when entering settings that identify a tag).

      If the script code does not fit into the Lua script for rule field, you can use the Expand Window button button to open a separate window for displaying the code.

    5. Configure the settings for registering an event when the rule is triggered (event title, description and score, and settings for saving traffic).
  5. Click Save.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.