How Security Onion playbooks standardize alert triage
A SOC lead often finds that analysts handle the same alert type in different ways. One analyst checks the source host first, another pulls the full session, and a third closes the alert after reading the signature text. Playbooks in Security Onion give the team one shared set of investigative questions for each alert. In an expanded alert, Guided Analysis shows those playbook questions. Each question runs a query that returns up to 5 results, and any question can be opened in Hunt for a wider search. The result is that every analyst starts from the same checks, in the same order, against the same data.
Teams usually need this when triage quality varies between shifts, when new analysts join and need a documented path through common alerts, or when someone later asks which steps were taken on a case. The playbook questions also leave a consistent trail of what was queried. Confirm with your own environment which playbooks ship with your version and which your team must write, because the available set changes between releases. Check the current Security Onion alerts documentation for how Guided Analysis is presented in your console.
Playbooks standardize the questions, not the judgment. A playbook can tell an analyst to check whether the destination is known, but it cannot decide whether a connection is malicious or whether an alert is a false positive for your network. Review each playbook with the people who will use it, and record what a finding should lead to, such as escalation, suppression or a case. Keep that decision logic in your own runbooks so the analyst still owns the conclusion.
Playbook options and when each fits
This table compares four ways a team can use playbooks in Guided Analysis: bundled plays, adjusted plays, custom plays and reviewed AI-generated plays. Read each row for the situation it suits and the main cost it carries, such as coverage gaps, upkeep or review effort. Confirm which plays ship in your Security Onion version before deciding how much to change.
| Option | When it fits | Main trade-off | What to confirm first |
|---|---|---|---|
| Use bundled plays as provided | Early rollout, small team, alert families that already match your triage steps | Questions may not reflect your environment, so some investigations stall | Which alert families have plays in your version and what each question queries |
| Adjust plays per alert family | Recurring alerts where a question is correct but needs your log sources, field names or thresholds | Each edit must be re-checked after upgrades and recorded so others know why it changed | Whether your version lets you edit a bundled play or whether you must copy it first |
| Write custom plays for local detections | Local Suricata, Sigma or YARA rules that have no bundled play, or detections tied to your own assets | Highest coverage gain, but you own the questions, queries and their accuracy over time | How your rule names map to play triggers and how results appear in Hunt |
| Review AI-generated plays before adoption | Teams that want a faster first draft for a new detection and have an analyst who can test it | Drafts can ask wrong questions or query the wrong fields, so every play needs human testing before use | Whether the AI assistant is enabled in your edition and what data it sends, since that varies by setup |
Setting up playbooks for triage
This sequence turns playbook questions from ad hoc notes into a maintained set that analysts can run consistently against the alert families your team sees most. Each step ends with a check so the result is a set of questions that return usable results and pivot cleanly into Hunt.
Choose the alert families to standardize first
Start with a short list of alert families that your analysts triage most often or that carry the most risk if handled inconsistently. Ask the detection owner and the shift leads to rank them, and record the list with the reason for each choice. Keep the first set small so that review and testing stay manageable. Done when the team agrees on the list and each family has a named owner in the notes.
Review existing questions against real alerts
Open expanded alerts from each chosen family in the Security Onion Console and read the Guided Analysis questions that are already attached. Compare them with alerts pulled from imported PCAP or from live traffic, and note questions that do not fit the alert content, duplicate each other or reference fields the alert does not contain. Analysts who triage that family should do this review, because they know which questions help them decide. Done when every existing question is marked keep, adjust or remove, with a reason.
Write or adjust the investigative questions
Rewrite the questions you marked for change so that each one asks a single, answerable investigative point, such as whether the source host has contacted the destination before. Keep wording plain and tie each question to a field that appears in the alert. Remove questions that cannot be answered from the data you retain. Done when each question reads clearly to an analyst who did not write it, and the set for each family is short enough to work through during triage.
Test that each query returns a usable result set
Run every question as Guided Analysis executes it. Guided Analysis runs each question with up to 5 results, so confirm that the first results show the activity the question is asking about and that the query is not returning nothing or thousands of unrelated events. Test against a known benign alert and a known malicious or suspicious sample where you have one. Adjust fields or time context and rerun until results are useful. Done when each question has been run against at least one representative alert and its results support the question.
Confirm Hunt pivots work for analysts
From each question's results, open the query in Hunt and check that the query carries over correctly, the time range and filters make sense, and the analyst can refine it or pivot to related fields without losing context. Have an analyst who will use the playbook perform these pivots on their own, because a working query for the author may still be awkward for a responder. Done when an analyst completes at least one pivot per family from Guided Analysis to Hunt without help and reports that the context carried over.
Document ownership and change control
Record who owns each question set, who approves changes, where the decision and test evidence is kept, and how a question is retired. Note the alert family, the reviewer and the date of the last test in the same record so the next reviewer can see what changed and why. Store the notes with your other detection tuning records so they survive rebuilds. Done when every family has an owner, an approver and a dated record, and the team knows where to propose a change.
Re-test questions after detection changes
Whenever a rule is modified, suppressed or replaced, or a related field changes, rerun the affected questions against a fresh alert. A question that worked against one rule version may return nothing or misleading results after a tuning change. Schedule this re-check as part of the change process, not as a separate project. Done when the test record for each changed family shows the questions were rerun after the change and the outcome was noted.
Writing your own plays without hiding gaps
A custom play is only useful if each investigative question maps to one alert and one query that an analyst can answer in a few minutes. Start from the alert rule itself: name the rule, list what the analyst must establish before closing the alert (source host, destination, whether the activity is expected for that asset, and whether related alerts exist), then write one question per fact. Guided Analysis runs each question's query and returns up to 5 results, so a question is answerable only if its query is narrow enough that the first five hits settle it. If a question needs a full result set to answer, split it into a count question and a drill-down question, or move the detail into a Hunt query the analyst opens deliberately. Confirm the current result limit and how queries are defined in your version against the Security Onion alerts documentation before you write the first play.
Phrase each question so the answer forces a decision. A question such as "Is there any traffic from this host to the destination on the same port in the last day?" can be answered yes or no, and the analyst's note should record which outcome applied and why. Avoid questions that invite a vague reading, such as "Does this look suspicious?", because two analysts will close the same alert differently and the record will not show why. Pair each question with a closing field that asks for the disposition, such as benign with a stated reason, suppression candidate, or escalation. The gap to watch is a question that returns zero results because the query is wrong, not because the activity is absent. Test every play against a known benign alert and a known positive, and confirm that an empty result set is shown as a result rather than silently passing.
Version plays with the detection content they support. Store each play in the same repository, branch and review process as the rule, suppression or threshold it accompanies, so a change to a rule forces a review of its questions. Record the Security Onion version, the rule identifier and the reason for each question in the commit message or change record. Keep test notes that show the play was run against an imported PCAP or a replayed alert, since that evidence is what an auditor or a new analyst will ask for. Before adopting an AI-generated play, confirm it against the same tests, because generated questions often reference fields that do not exist in your deployment.
Checking AI-generated plays before analysts use them
An AI-drafted play is a starting point, not a finished control. Each play should be checked against the real index fields, the analyst permissions that govern the data it returns, and the alert logic it is meant to support. The cards below cover the review steps and the records that show a person approved the play.
Confirm queries against real index fields
Generated queries often use field names that look plausible but do not exist in your deployment, or that map differently after a fresh install or upgrade. Run each query in Hunt against the indices your analysts actually search and confirm that every field returns the values the question expects. A query that returns zero results is not evidence of a clean environment, so check that known events do appear. Record the field names you verified.
Check data exposure against permissions
A play runs with the permissions of the analyst who opens it, but a shared play may be used by people with different roles. Confirm that each query returns only data the intended role may see, and that results cannot expose fields or events outside that role. Test the play as a lower-privileged analyst account where your role model allows it. Document any role that should not run the play.
Match each question to the alert logic
A Guided Analysis question should test the same condition that raised the alert, not a loosely related idea. Compare each question with the rule or detection that triggers the alert and confirm the query narrows the same fields. Questions that drift from the alert logic send analysts down unproductive paths. Note which alert types the play covers and which it does not.
Test with benign and malicious samples
Run each play against events you know are benign, such as an authorized scanner or patch activity, and against events you know are malicious. The benign run shows whether the play produces noise an analyst would waste time on. The malicious run shows whether the questions surface evidence of the activity. Keep the sample sets and the results with the play so a later reviewer can repeat the test.
Record who approved each play
Treat AI output as a draft that needs analyst sign-off before it appears in the shared playbook. Record the name of the reviewer, the date, the model or tool that produced the draft, and the changes the reviewer made. This record shows auditors and internal reviewers that a person accepted responsibility for the play. Ask your team which approval roles are needed before a play goes live.
Re-review after alert rule changes
A play is tied to the alert logic it was written for, so a change to a Suricata, Sigma or YARA rule can make a question stale. Schedule a re-review whenever a related rule is tuned, suppressed or replaced, and after major Security Onion upgrades that change indices or field mappings. Flag plays whose linked alerts no longer fire or whose queries return unexpected results.
Questions teams ask before writing playbooks
How much effort does a Security Onion playbook program take?
The effort depends mainly on how many alert families you need to cover, how much reviewer time your analysts can spare, and how much testing you do against real data. Each alert family needs its investigative questions agreed, each question needs a query that returns useful results within the five-result display limit in Guided Analysis, and each query needs review by someone who knows the alert. Costs come from two places: internal analyst hours and, if you hire help, the scoped work agreed in writing. Ask any partner to break its quote down by alert family, review cycles and testing, and to state which parts recur after the first set is complete, such as updates when rules change or new log sources arrive.
Can our analysts write their own Security Onion plays?
Yes, in most teams the analysts who triage an alert family are the best people to write its plays, because they already know which questions they ask by hand. The skill gap is usually query design: turning a question such as whether the same source contacted other hosts into a query that returns a few meaningful results. Pair that with a reviewer who can check the logic and a test step against imported captures before anything reaches production. Confirm in your own environment which role may create or edit plays, since that depends on how you have configured access in the Console.
How long does a first set of playbooks take?
There is no fixed duration that applies to every environment, because the answer depends on the number of alert families in scope, how well those alerts are already understood, and how quickly reviewers can respond. A team that already documents its triage steps can move faster than one that has to reconstruct them. Start with the few alert families that generate the most analyst time, define done as a set of plays that have been tested and signed off by the alert owner, and ask any partner to provide a timeline tied to that written scope rather than a generic estimate.
What do we need from our internal team?
Three groups of people matter most:
- Alert owners, who know what each alert family means in your environment and can confirm whether a question is useful.
- A SOC lead, who sets the triage standard, approves changes and decides which alert families come first.
- Access to a test grid, where new queries can be run against representative data before they reach analysts on production.
Without a test grid, every change is tested on live analysts' time. Ask whether your team can reserve time from these people before the work starts, because delays in review are the most common reason a playbook program slows down.
How do we check playbooks that an AI assistant generated?
Treat AI-generated plays as drafts that need the same review as any other play. Check that each question matches what an analyst would actually ask, that the query uses fields that exist in your data, that it returns a sensible number of results, and that it does not hide relevant activity through overly narrow conditions. Run each play against imported captures or known test events and record the results. Security Onion Pro includes an Onion AI assistant, so confirm with your vendor how it is licensed and what data it processes in your environment before you use it in a regulated setting.
Is Security Onion free to use for this work?
The Security Onion repository is licensed under the Elastic License 2.0, which is a source-available license rather than an OSI-approved open-source license. Read the license terms with your legal team before you build internal processes around it, especially if you plan to offer the platform to others. Security Onion Pro is a separately sold edition on 1 to 5 year terms that adds features such as OIDC single sign-on and an MCP server. Confirm which edition fits your requirements and what your support obligations are before you commit.
When does an outside partner help with playbooks?
An outside partner usually helps when the internal team lacks spare analyst time, when alert families span several log sources that nobody on staff has tuned together, or when the program must meet an assessor's review timeline. A partner can draft plays, run them against test data, document the decisions and hand the work back in a form your team can maintain. DeployOpen plans, implements and documents self-hosted platforms in infrastructure you control and works from a written, fixed scope. Ask for the deliverables, review steps and handover material in writing, and confirm which parts your team will own after the engagement ends.
How an alert moves from playbook question to Hunt
The path starts when Suricata or another detection raises an alert in the Security Onion Console. The analyst expands the alert, and Guided Analysis lists the playbook questions attached to it. Each question runs a query that returns up to 5 results, and the analyst can open those results in Hunt to pivot on fields, timelines and related events. The last step is recording the decision, so the next analyst can see which questions were answered and what was found. Check that the query results match the question before you rely on them, because a capped result set can hide the rest.
Each playbook question runs a query whose results can be pivoted in Hunt.
How DeployOpen scopes playbook work
DeployOpen agrees the scope of playbook work in writing before any analyst time is spent on it. The written scope lists which alert families and detection sources are in play, which existing playbook questions will be reviewed, which custom plays will be written, who on your side approves them, and what counts as finished. Because Guided Analysis questions run queries that return up to 5 results and open in Hunt, the scope also states which indexes and log sources those queries depend on, so that a play that works in a lab does not silently return nothing in production. Ask for this scope document first, and check that it names your analysts and your alert volume rather than a generic set of plays.
Work starts with a review of the questions that already exist against the alerts your sensors actually produce. Each question is checked for whether its query returns results in your environment, whether the answer changes a triage decision, and whether it duplicates another question. Custom plays are then written and tested with your analysts, who know which hosts and accounts are normal in your network. Every AI-generated play is read line by line, checked against the alert it claims to address, and run against sample alerts before it reaches the shared set. Ongoing tuning as your alerts change is available as a retainer, which you should price against how often your rules and environment change. Confirm with us what the retainer covers and how changes are reviewed.

