Regex

The Regex control searches for lines in configuration files that match a given regex pattern and verifies connections, for example, to TCP, logging, console timeouts and encryption on passwords.

To create a new regex control, complete the following steps.

  1. On the toolbar, click Compliance > Controls.
  2. Click Create.
  3. Select Regex.
  4. In the General Control Properties, complete the following fields common to all control types:
    • Name— type a name for the control.
    • Severity—select the risk level (from 0-9) of vulnerability risk associated with this control.
    • Tags—optional, tag words can be used as an additional search filter option.

    Separate tag words with a space, not a comma.

    • Description—optional, type a description of what the control will be used for.
  5. Complete the Regex Control Properties section.
    • Enter the Match Pattern in the text box.
    • For Scope, select All Files or Specific Files and then specify the files.
  1. In the Evaluation section of Control Properties, select Fail if Pattern Matches, Fail if No Pattern Matches or Information Only.
  2. In the Device Test Conditions section of Control Properties, select the Type, Vendor, and Product.
  3. In the Reporting Properties section, enter text for Pass and Fail results, and any Instructions for remediation.
  4. Click Save.