Alert Runbooks
Recommended steps to investigate and reconcile an alert
Overview
An alert runbook is a set of instructions for investigating and remediating the issue triggering an alert. It's recommended to provide a descriptive runbook, as Panther AI alert triage will take it into consideration. Learn how to write an effective runbook below.
Runbooks are defined on detections:
In Python detections, in the dynamic
runbook()function or the staticRunbookfield.In Simple Detections, in the static
Runbookfield.In correlation rules, in the static
Runbookfield.
Panther provides alert runbooks for a number of Panther-managed detections—view them in the panther-analysis repository.
Runbook examples
def runbook(event):
user_arn = event.deep_get("userIdentity", "arn", default="this user")
source_ip = event.deep_get("sourceIPAddress", default="this IP address")
return f"""
1. Find all API calls by {user_arn} in the 24 hours before the alert
2. Check if the source IP {source_ip} is associated with known cloud provider IP ranges or VPN endpoints
3. Look for other alerts from {user_arn} or {source_ip} in the past 7 days
"""Tips for writing an effective runbook
To write an effective runbook that Panther AI or a human analyst can follow:
Provide 2-3 focused investigation steps that build on each other.
Ensure steps are specific, concrete, and actionable. For example:
Good (specific, actionable): "Query AWS CloudTrail for all API calls by {user_arn} in the 6 hours before and after this alert to identify what actions were performed."
Bad (vague, without a clear outcome): "Search for related user activity."
To help gather context and build a narrative, think of using steps that can answer:
What happened? (immediate context)
Is this normal? (baseline comparison)
What else is suspicious? (correlation)
Reference specific alert fields by name to avoid ambiguity.
For example, use
sourceIPAddressinstead of "the IP" anduserIdentity:arninstead of "the user."
Indicate time windows for data searches (e.g., "24 hours before" or "30 minutes around"). When deciding how much time to search, use the following guidelines:
Looking for recent suspicious activity: 1-6 hours before/after
Establishing behavioral baselines: 30-90 days of history
Executing correlation searches: 24 hours to 7 days
Searching for long-term patterns: 90 days
How Panther AI uses an alert runbook
When Panther AI triages an alert, it reads the alert runbook and autonomously executes it. Writing a runbook according to the tips above can help Panther AI perform the strongest alert triage possible.
See a demo of a detection runbook affecting AI alert triage here.
Last updated
Was this helpful?

