Skip to main content

Create a Custom Policy

In addition to creating a custom policy using the Lacework API, you can create a custom policy through the Lacework Console. This section provides the steps to create a custom Lacework Query Language (LQL) policy, as well as information on how to view and edit policies.

Create a New Custom Policy

Lacework enables you to create a new LQL policy through the Lacework Console.

  1. Log into the Lacework Console and navigate to Policies.

    Lacework Console Policies Page with Add Policy button

  2. Click + Add Policy. The New Policy window appears.

    New Policy Window

  3. Specify the parameters for your policy.

    • Title: Name for the new policy that also identifies what the policy does
    • Description: Information about the new policy
    • Alerts: Select the action to take for an event triggered by this policy. You can either send an alert notification or mute the event.
    • Severity: The severity of an event triggered by the policy. Select the level of severity to assign to events triggered by this policy. This allows you to sort and filter based on severity level.
    • Status: Enable or disable this policy with this toggle.

    Missing required fields are indicated with a red error message. You cannot continue with the policy creation until you provide these required parameters. Missing fields error message

  4. Click Save and Continue. The Query window appears.

    Query Window

  5. Specify a query identifier in Query ID for your new policy.

  6. Paste the custom query you created earlier into the window. See Create a Query. Lacework performs a validation on your query. An error appears if you enter an invalid or empty query. If you want to erase the pasted query, click the Remove the pasted query icon Remove the pasted query icon.

    Query window error message

  7. Click Save and Continue. The Context window appears.

  8. Optionally, enter remediation information to display with notifications from this new policy.

    Context Window

  9. Click Save and Continue. A confirmation message appears upon successful creation of your new custom LQL policy.