Detections
Use detections to analyze data, run queries, and trigger alerts on suspicious behavior
Last updated
Was this helpful?
Use detections to analyze data, run queries, and trigger alerts on suspicious behavior
Last updated
Was this helpful?
Detections are Python functions that take in log events to identify suspicious behavior and trigger alerts. There are three types:
Rules
Python functions that detect suspicious activity in security logs in real-time. For more information, see Rules and Scheduled Rules.
Scheduled Rules
Python functions that run against results from scheduled queries on your data lake. For more information, see Rules and Scheduled Rules.
Policies
Python functions that scan and evaluate cloud infrastructure configurations to identify misconfigurations. For more information, see Policies.
Each of these types of detections, when finding a match, triggers an alert—alerts are then based on configurations on the detection and destination.
You'll need to decide whether you'd like to manage your detections in the Panther Console, or using Panther Developer Workflows. Then you can get started enabling Panther-managed detections, or writing your own.
You can create and manage Panther detections using one of the following methods:
Panther Console
Write your own rules in the Console, or enable Panther-managed detections (individually, or in Detection Packs) to get started quickly, with no additional configuration necessary.
Learn more about managing Panther detections using a Continuous Integration and Continuous Deployment workflow in our CI/CD Guide.
Workflows commonly include Panther Analysis Tool (PAT), an open source utility for testing, packaging, and deploying Panther detections from source code.
Managing detections via both the Panther Console and a Git-based workflow simultaneously may result in unexpected behavior.
You can export a .zip file of all of the detections and scheduled queries in your Panther Console:
In the lefthand side of the Panther Console, click Build > Bulk Uploader.
In the upper right side of the Bulk Uploader page, click Download all entities.
The quickest way to start detecting threats with Panther is to turn on the already written Panther-managed detections that come with your Panther instance. These built-in rules and policies are applicable to various log sources, and Panther periodically releases improvements to their core detection logic. Panther-managed rules can be customized using Rule Filters, or you can clone them and edit the detection logic of the cloned version to suit your exact needs.
If you'd rather write your own detections from scratch, visit Writing and Editing Detections to learn how.
Panther’s Schemas provide helpful information on the types of fields contained within your data, which makes it easier to understand how to interact with your data when writing a Detection.
Schema definitions can be found in:
Panther's documentation
See schemas for each integration within the Supported Logs section of the documentation. Find more information about Custom Log schemas in Custom Logs.
The Panther Console
Log in to the Panther Console and navigate to Data > Schemas.
Data Explorer makes it easier to understand and investigate data, location of data, and data types when writing Python code. It contains all the data Panther parses from your log sources and stores the data in tables.
Explore and find log events by searching the relevant table for the log type you are interested in writing a detection for.
You can preview example table data without writing SQL. To generate a sample SQL query for that log source, click the eye icon next to the table type:
When the query has produced results, you will see the example log events in the Results table. You can download these as a CSV file.
To copy the log event to be used in Unit Tests while writing detections, click View JSON.
You can get started quickly by enabling Panther-managed Detection Packs in the Panther Console, but later on you may want to start using a CI/CD workflow. To migrate your workflow to CI/CD, follow the steps in .