How does the destinations() function affect alert routing in Panther?

The destinations() function in Panther detections allows you to dynamically route alerts to specific destinations. This article explains how the function impacts alert routing and what happens when you don't return anything from it.

ANSWER

The destinations() function in Panther provides fine-grained control over alert routing. Here's how the routing works:

1. When destinations() is not defined

If you don't include a destinations() function in your Python detection, alerts are sent to specific destinations based on severity level or log type event, as configured in your detection and alert settings.

2. When destinations() is defined but returns nothing

If you define a destinations() function but it doesn't return anything (i.e., it returns None), Panther will fall back to the default routing behavior. This means:

Important notes

For more detailed information on alert routing scenarios, please refer to Panther's documentation on alert routing scenarios.