Using the Simple Detection Builder

Create and edit detections without code

Overview

This functionality, as part of the Simple Detections feature set, is in closed beta starting with Panther version 1.81. To request access to the feature or share any bug reports or feature requests, please contact your Panther support team.

You can use the Simple Detection builder in the Panther Console to create and edit rules using drop-down fields. The builder lets you manage detections without writing code, but retains the benefits of detections-as-code, e.g., expressiveness, testability, CI/CD integration, and reusability.

The Simple Detection builder is part of the Simple Detections feature set, which promotes collaboration among team members with all levels of technical skill. Detections constructed in the CLI workflow in YAML, then uploaded to Panther, will be viewable and editable in the Simple Detection builder in the Console.

See step-by-step instructions on how to create rules using the Simple Detection builder below, in How to create a rule in the Simple Detection builder.

If your team uses the CLI workflow to manage detection content, the changes made to detections using the Simple Detection builder in the Console will be overwritten on next upload (except for Inline Filters created in the Console, which will be preserved).

If you create or edit detections using the Simple Detection builder in the Console, copy the resulting YAML representation and include it in your local detections files, in order to prevent the changes from being overwritten on next upload.

Video overview

Limitations of the Simple Detection builder

The Simple Detection builder in the Console cannot render certain YAML expressions. If you locally develop and upload YAML detections using any of the below expressions, they will not be visible in the Simple Detection builder in the Console—they will be shown in raw YAML.

Simple Detection builder limitations
  • Only YAML rules (not scheduled rules nor policies) can be created or rendered in the Simple Detection builder.

  • Absolute, multi-key, list comprehension, and enrichment match expressions cannot be rendered in the Simple Detection builder.

  • The OnlyOne and None combinators cannot be rendered in the Simple Detection builder.

    • The Simple Detection builder can render the All and Any combinators.

  • Many Condition values cannot be rendered in the Simple Detection builder. Only the following values may be used:

    • Equals

    • DoesNotEqual

    • IsGreaterThan

    • IsGreaterThanOrEquals

    • IsLessThan

    • IsLessThanOrEquals

    • Contains

    • DoesNotContain

    • StartsWith

    • EndsWith

    • IsIPAddressInCIDR

    • IsIPAddressNotInCIDR

    • CIDRContainsIPAddresses

    • CIDRDoesNotContainIPAddresses

    • IsIn

    • IsNotIn

    • IsIPAddressPublic

    • IsIPAddressPrivate

    • IsNullOrEmpty

    • IsNotNullOrEmpty

How to create a rule in the Simple Detection builder

You can create rules in the Simple Detection builder in the Panther Console. Learn more about rules on Rules and Scheduled Rules.

If your team uses the CLI workflow to manage detection content, the changes made to detections using the Simple Detection builder in the Console will be overwritten on next upload (except for Inline Filters created in the Console, which will be preserved).

If you create or edit detections using the Simple Detection builder in the Console, copy the resulting YAML representation and include it in your local detections files, in order to prevent the changes from being overwritten on next upload.

Creating a rule in the Simple Detection builder in the Console
  1. In the left-hand navigation bar of your Panther Console, click Build > Detections.

  2. Click Create New.

  3. On the New Detection page, select Rule for the detection type.

  4. In the Basic Info section, provide values for the following fields:

    • Name: Enter a descriptive name for the rule.

    • ID (optional): Click the pen icon and enter a unique ID for your rule.

  5. In the upper-right corner, click Continue.

    • The no-code detection builder will appear.

  6. For each clause (either on its own or within a group), define the logic:

    1. Click Key, then select an event key the condition will apply to.

    2. Click Condition, then select a condition.

    3. If the selected Condition requires an inputted value(s) (e.g., is or contains), provide a value or list of values.

  7. Between each clause and clause group, ensure the correct combinator (either and or or) is selected.

  8. (Optional) Once you have finished constructing your detection logic, you can view the result in raw YAML by selecting Text Editor in the toggle in the upper-right corner of the Detect section.

  9. In the Set Alert Fields section, under Required Fields, select a Severity.

  10. Within Optional Fields, set the dynamic alert fields:

    • Title:

      1. To the right of Change to, click the plus (+).

  11. Within Optional Fields, set the static alert fields:

    • Description: Enter additional context about the rule.

    • Runbook: Enter the procedures and operations relating to this rule.

    • Reference: Enter an external link to more information relating to this rule.

    • Destination Overrides: Choose destinations to receive alerts for this detection, regardless of severity. Note that destinations can also be set dynamically, in the rule function. See Routing Order Precedence to learn more about routing precedence.

    • Deduplication Period: Choose a period of time over which to deduplicate events. Learn more in Deduplication of alerts.

    • Events Threshold: Enter the deduplication event threshold. Learn more in Deduplication of alerts.

    • Summary Attributes: Enter the attributes you want to showcase in the alerts that are triggered by this detection.

    • Tags: Enter custom tags to help you understand the rule at a glance (e.g., HIPAA.)

    • Framework Mapping:

      1. Click Add New to enter a report.

      2. Provide values for the following fields:

        • Report Key: Enter a key relevant to your report.

        • Report Values: Enter values for that report.

  12. Within Test, in the Unit Test section, click Add New to create a test for the rule.

  13. In the upper-right corner, click Deploy.

Last updated

Change request #1924: [don't merge until ~Oct] Notion Logs (Beta)