Security Onion detection engineering with Suricata, Sigma and YARA

A planning guide for building and tuning Security Onion detections in the Detections interface, cutting alert noise, verifying changes and deciding what to hand to a partner.

On this page

How Security Onion detection engineering works across three engines

When a Security Onion grid is running and alert volume is either too high or the detections you need are missing, the fix is rarely just adding more rules. The Security Onion Console Detections interface manages three rule sets, and each one is loaded into a different engine: NIDS rules run in Suricata, Sigma rules run in ElastAlert, and YARA rules run in Strelka. Each engine has its own tuning tools, so a change that quiets one source of noise may do nothing for the next, and a rule that works in one engine may never fire in another. Before you edit anything, confirm which engine produces the alerts that are flooding your analysts or which one should have caught the activity you missed.

For Suricata NIDS rules, the Detections interface supports modify, suppress and threshold tuning. Suppressions and thresholds act on alerts after the signature has matched, so they reduce what reaches analysts without changing how traffic is inspected. Sigma rules in ElastAlert use custom filters instead, which means their noise is shaped by the log sources and fields that feed them. YARA rules in Strelka apply to files extracted from traffic, so their volume depends on what the sensors capture and extract in the first place. Ask your team which of these three paths each noisy alert takes, because the tuning method differs for each one.

This is why the work is harder than adding rules. A tuning change in one engine can hide a detection that analysts rely on elsewhere, and a suppression applied too broadly can remove the only signal for a real intrusion. Plan for a review step that records who changed which rule, why, and what evidence supported the change, and retest changed detections against known traffic before you rely on them. Confirm the exact tuning options and rule update behavior for your Security Onion version in the Security Onion detections documentation before you write a process around them.

Which Security Onion components hold each detection type

Security Onion separates detection by what each engine inspects: network traffic, log events and extracted files. The Detections interface in the Security Onion Console is where you manage the rules for all three, so one place governs tuning. Knowing which component produces an alert tells you where to tune it and where the analyst will see it.

Detections interface as the control point

The Security Onion Console Detections interface manages the rules loaded into each engine: NIDS rules for Suricata, Sigma rules for ElastAlert and YARA rules for Strelka. Changes made there are applied to the matching component, so analysts and detection engineers work from one list. Check which engine owns a rule before editing it, because the tuning options differ by type. Confirm role access to this interface before you grant it to analysts.

Detections docs

Suricata NIDS rules on network traffic

Suricata inspects network traffic seen by the sensor nodes and raises alerts on packet and flow patterns. In the Detections interface you can modify a rule, suppress it for specific sources or destinations, or apply threshold tuning to limit how often it fires. These three levers are the first place to reduce noise from known-good scanners, backups or internal tools. Record the reason for each suppression so it can be reviewed later.

Sigma rules on log events in ElastAlert

Sigma rules are loaded into ElastAlert and evaluate log events that Security Onion has already collected, such as endpoint and authentication logs. They do not see raw packets, so a rule can only fire when the right log source is onboarded through Elastic Fleet. Use custom filters to narrow a Sigma rule to your hosts, accounts or business hours. Confirm each required log source is arriving before you judge a rule as silent.

YARA rules on extracted files in Strelka

Strelka loads YARA rules and scans files it extracts from traffic, which means a YARA match depends on a file crossing a monitored network path. A rule for a payload family will not fire on a file that was never transferred over an observed link. Review which protocols and file types the sensors extract before assuming coverage. Test each YARA rule against known samples in a lab before it reaches production.

Alert destinations for analysts

Alerts from all three engines land in the Security Onion Console, where analysts triage them alongside related events. Because each engine has a different source, the same incident can appear as a network alert, a log alert and a file alert. Map which alert types each analyst queue receives and confirm the path before you tune noise away. Pro users can also send external notifications, which should be confirmed against your own alerting workflow.

Choosing where a new detection should live

This table compares Suricata NIDS, Sigma and YARA by the signal each needs, where each fits and what each costs to operate, then sets out when to modify, suppress, threshold or filter an existing alert. Read the first rows to pick a rule type and the last rows to pick a tuning action before you write new logic.

DecisionBest whenOperational costWatch for
Suricata NIDS ruleYou need to match network traffic patterns, protocols or known signatures in packets seen by a sensorDepends on sensor placement and traffic visibility; encrypted payloads and traffic outside the tapped segment are invisibleRules run against what the sensor sees, so a missing tap or SPAN port creates a blind spot, not a false negative you can tune away
Sigma rule (ElastAlert)The signal is already in logs, such as endpoint events, authentication records or Zeek and Elastic Fleet dataDepends on log source coverage and field normalization; the rule is only as good as the ingested fieldsIf the log source is not collected or the expected fields are missing, the rule never fires and nothing reports the gap
YARA rule (Strelka)You need to match file contents or characteristics of files extracted from traffic or monitored sourcesDepends on file extraction being enabled for the relevant protocols and file types, and on scan volumeA YARA rule cannot see a file that was never extracted, so confirm extraction coverage for each protocol before relying on it
Modify an existing ruleThe rule is correct but its pattern, scope or content match is too broad or too narrow for your environmentOne-time review by an analyst who understands both the rule and the traffic it matchesChanges apply to every sensor using that rule; record the reason so later rule updates do not silently undo the edit
Suppress an alertA known, expected source keeps triggering a rule that is otherwise valid for the rest of the networkLow effort, but it removes visibility for the suppressed source, so review it periodicallyBroad suppressions hide real activity from that source; scope them to specific hosts or addresses where possible
Apply a thresholdThe behavior is only suspicious when it repeats, such as many attempts in a short windowRequires agreed counts and time windows based on observed baseline trafficA threshold set too high can miss slow activity; test it against recent alert history before enabling
Custom filter on a Sigma ruleThe base Sigma rule is sound but needs exclusions for specific processes, users or hosts that are legitimate in your environmentAnalyst time to identify exclusions and verify they do not remove the attack patternExclusions based on easily spoofed values can open a bypass; prefer exclusions tied to stable, verified attributes
Write a new custom ruleNo existing rule covers the behavior, and you can name the signal, the source and the expected false positive profileHighest effort: design, testing against sample data, tuning and ongoing ownershipConfirm the required log source or sensor position exists first, then confirm the rule type matches where that signal appears

Build sequence for tuning detections without losing coverage

This sequence reduces alert noise one rule family at a time while proving that real detections still fire. Each change is recorded and checked against a baseline so coverage is never assumed to be intact.

  1. Inventory every enabled rule across engines

    Open the Detections interface in the Security Onion Console and list the Suricata NIDS rules, Sigma rules loaded into ElastAlert and YARA rules loaded into Strelka that are currently enabled. Record the rule ID, source ruleset, owner and the reason each rule was turned on, in a shared register that the analysts and the engineer tuning the rules can both edit. Confirm the register matches what the Console shows, then freeze the baseline by exporting the current enabled set. Done means every enabled rule has a row and the frozen export is stored with the change record.

  2. Baseline alert volume by rule and sensor

    Over a window your team agrees on, count alerts grouped by rule and by sensor so you can see which rules fire most and which sensors produce them. Note rules that never fire, because silence can mean a broken log source or an unmonitored segment rather than a clean network. Save the counts as the reference for every later comparison. Done means you have a per-rule, per-sensor table that another engineer could reproduce from the same time range.

  3. Select the highest-noise rules for review

    Rank rules by alert volume and by the share of alerts that analysts closed as benign. Put the top of the list into a review queue, and mark any rule whose alerts are tied to a high-severity detection so it is handled with extra care. Confirm each selected rule has a named owner who will approve its change. Done means the queue has a documented reason for every rule selected and every rule left alone.

  4. Apply modify, suppress and threshold changes

    For each selected Suricata NIDS rule, choose the narrowest change that solves the noise: modify the rule to fit your environment, add a suppression limited to a known source or destination, or set a threshold so repeated events collapse into fewer alerts. Make one change at a time in the Detections interface and write the reason in the change record. Check that the alert count for that rule dropped in the same time window used for the baseline, and replay or trigger a known-good test event for that rule to confirm it still fires. Done means the count changed as expected and the test event produced an alert.

  5. Add Sigma custom filters

    For Sigma rules that run through ElastAlert, use custom filters to exclude known legitimate activity such as a scheduled backup account or a management tool, keeping the filter as specific as the activity allows. Do not disable the parent rule to remove one false positive. Re-run the baseline query for that rule and confirm the alert count fell while a known-good test event for the same technique still produces an alert. Done means the filter is documented with its scope and the test event still alerts.

  6. Load and test YARA rules in Strelka

    Load the YARA rules you intend to use into Strelka through the Detections interface, then test them against a controlled set of files that you know should match and files that should not. Confirm the rules compile and that matches appear for the known-positive files, and review the matches for any unexpected hits on benign files before enabling them broadly. Done means the known-positive files match, the known-negative files do not, and the enabled set is recorded.

  7. Document each change and re-verify coverage

    Write each change into the register with the rule ID, the before and after alert counts, the test event used, the approver and the date. At the end of the tuning cycle, rerun the full set of known-good test events across all three engines and compare them with the frozen baseline export. Repeat the baseline comparison after the next routine rule update, since updated rules can change behavior. Done means every test event still alerts, every change has a record, and any coverage gap has an open item with an owner.

How the detection workflow differs by deployment model

A standalone deployment runs the Console, Elasticsearch, Suricata, Zeek and the rule engines on one node, so there is no separate manager to coordinate with. Detection work happens in the same place where traffic is captured and alerts are stored. This keeps the feedback loop short, which suits a lab, a small site or a first tuning pass, but it also means every rule change, suppression and threshold is applied on the same host that is handling capture and indexing.

  • One place to edit: NIDS, Sigma and YARA rules are changed in the Detections interface on the single node and take effect there.
  • Shared resource load: Rule reloads, indexing and packet capture compete for the same CPU and memory, so test heavy rule sets before enabling them broadly.
  • Simple rollback: Reverting a suppression or threshold only affects one host, which makes experimentation easier.
  • Limited separation: A single node does not give you the sensor and search separation that a production design usually needs.
  • Rule updates: Confirm with your own environment how and when rule content is refreshed on the node before you rely on it.

Before you move detections into production, confirm that the standalone node meets the hardware minimums for your traffic volume and that you have a documented way to test changes before they reach analysts.

Where noise reduction hides real attacks

Noise reduction is the step most likely to hide an attack that is already happening. In the Security Onion Detections interface, a NIDS suppression or threshold change looks like a routine fix, but three failure modes recur. The first is a broad suppression: a rule silenced for one noisy host or one sensor is often applied across every sensor, so the same traffic goes quiet everywhere, including on segments where it matters. The second is a threshold set too high for slow activity. A Suricata threshold that counts events per source over a window can be tuned until a low-and-slow scan, beaconing or repeated credential attempt never crosses the line. The third is a Sigma filter that drops events analysts need. ElastAlert filters applied to a noisy log source can also remove the fields that a later investigation depends on, so the alert stops firing and the evidence trail thins at the same time.

Before changing any rule, confirm the scope of each change in the Detections interface and check which sensors and log sources it touches. Then test the change against traffic from a segment where the rule should still fire. For each suppression, threshold or Sigma filter, record the reason, the owner, the sensors and rules affected, and the date of the change, so a later analyst can tell a deliberate tuning decision from a forgotten workaround. Schedule a review of every suppression on a fixed cadence that your team sets, and retire any whose original cause no longer exists. Document the review process as part of your detection standards, because a suppression that nobody remembers adding is the one most likely to hide an intrusion. Consult the Security Onion detections documentation for the exact modify, suppress and threshold options in your version.

What drives detection engineering effort and how to keep it down

This table lists the main drivers of Security Onion detection engineering effort across Suricata, Sigma and YARA, with a practical way to reduce each one. Read each row as a lever: the driver explains why effort grows, and the reduction names where to start. The main takeaway is that tuning the noisiest rules first and testing on a matching non-production grid usually removes the most work for the least change risk.

DriverWhy it changes effortHow to keep it down
Suricata rule countEach enabled NIDS rule can generate alerts that need review, suppression or threshold tuning in the Detections interface.Enable only rule sets that match your protocols and assets, then tune the noisiest rules first using alert volume.
Number of sensors and traffic volumeMore sensors and higher link speeds multiply alert volume and make tuning results differ by network segment.Tune per sensor or segment, and confirm sensor placement so each rule is validated against the traffic it sees.
Sigma log source coverageEach Sigma rule depends on specific log sources being ingested and normalized, so new sources add rules to validate and maintain.Map rules to log sources you actually collect, and disable or defer rules whose sources are not yet onboarded.
Custom Sigma filtersFilters added to suppress false positives must be reviewed when rules or log formats change.Keep filters narrow and documented, and review them after each rule or component update.
YARA file types and sample setsEach file type needs rules validated against benign and malicious samples, and sample sets must be curated and kept current.Start with the file types your environment actually transfers, and maintain a labeled benign sample set to test false positives.
Change control requirementsRegulated environments often require approval records, peer review and evidence for each rule change, which adds steps per change.Batch related changes into scheduled reviews, and record the rule ID, reason, owner and test result in one place.
Number of environments for testingEach change must be validated on a non-production grid before promotion, so more environments mean more deployment and test cycles.Keep a test grid that matches production versions and sensor types, so most tuning is proven before it reaches production.
Analyst feedback loopAlerts that analysts close as benign drive suppressions and threshold changes, which need ongoing review.Route analyst dispositions into a regular tuning cycle and ask the vendor or partner to confirm the tuning workflow in your version.

How alerts move from each engine to the analyst

The flow starts with network traffic reaching Suricata on sensor nodes and log events reaching ElastAlert through the search nodes, while extracted files go to Strelka. Each engine's alerts land in the Console for triage. The Detections interface sends rule and suppression changes back to each engine, and the manager is where that rule configuration is distributed across the grid. Check that each sensor and search node is receiving updated rules, because search nodes stop indexing if they cannot reach the manager.

Alert paths from each engine to the Console, with rule changes distributed from the manager.

How to prove a detection fires and stays quiet when it should

Every change to a detection, whether a new Suricata NIDS rule, a Sigma rule loaded into ElastAlert, or a YARA rule loaded into Strelka, needs two proofs before it reaches production: it fires on a known-positive sample, and it stays silent on a known-negative sample. Build a small test set for each engine and keep it under version control next to the rules. For Suricata, replay a captured pcap of the malicious behavior and a pcap of normal traffic that resembles it, then confirm the expected sid appears in the alerts for the first and not the second. For Sigma, use matching log events (exported from the same Elastic Fleet integration your production data uses) so the rule is tested against the field names it will really see. For YARA, keep a sample file that should match and a benign file that should not, and run the rule against both before and after each edit.

Suppressions and thresholds need a different check, because a quiet alert queue can hide a rule that has stopped working. Verify each suppression or threshold against two measures: the alert count for the production-like traffic, which should drop, and the continued firing of the known-positive test case, which must not change. If the known-positive stops alerting after a suppression is added, the suppression is too broad, even though the queue looks better. Record the expected count and the expected result for each test case in the change record so a later reviewer can see what the tuning was supposed to preserve.

Confirm with your team which replay tools, sample sets and log exports your environment can legally and safely use, especially where captured traffic contains regulated data. Before relying on this process, check the exact rule-loading and test workflow in the Security Onion detections documentation for your version, because the Console behavior for modifying, suppressing and thresholding NIDS rules and adding Sigma custom filters can differ between releases. Plan time in each change window for these tests, and treat a failed known-positive as a blocking defect, not a tuning note.

Common questions about Security Onion detection engineering

How long does detection tuning take in Security Onion?

Tuning time depends on how much traffic and log data your sensors and search nodes see, how many rules are enabled, and how many alerts your analysts can review each week. Start by listing the rules that fire most often, then decide for each one whether it needs a modification, a suppression, a threshold, or a custom filter. Noisy rules tied to known benign software usually take the least effort, while detections that need new logic, a tested sample of malicious traffic, and sign-off from several teams take longer. Ask any partner to base its estimate on a sample of your real alert volume and a written list of rules in scope, not on a generic number.

Can our internal team tune Security Onion detections without a partner?

Yes, a capable internal team can tune detections with the Security Onion Console Detections interface, which manages Suricata NIDS rules, Sigma rules loaded into ElastAlert, and YARA rules loaded into Strelka. The free edition supports this work. The skills that matter most are a working knowledge of Suricata signatures, Sigma rule structure, and how your analysts triage alerts, plus a test process so changes do not hide real activity. Teams often bring in a partner for an initial baseline, for custom detections that need attack simulation, or for review of suppressions that carry risk. Confirm internal capacity before committing to a schedule.

What does the detection work need from our side?

The work needs access to the sensors and search nodes that see the traffic you want to tune, along with read access to the alert and event data they produce. Sample data is important: representative pcaps or logs from the networks and hosts in scope let the tuning team separate benign noise from suspicious activity without guessing. You also need a named owner for change approval, a process for deciding which suppressions are acceptable, and a test or staging grid where modified rules can be checked before they reach production. Agree on these items in the written scope so delays do not come from access requests later.

Does Security Onion Pro support change the detection work?

Security Onion Pro includes professional support from Security Onion Solutions, which is a vendor support relationship and is separate from the detection engineering work itself. Pro also adds features such as OIDC single sign-on, the Security Onion API, and the Onion AI assistant, but the Security Onion Pro page does not describe those features as changing how detections are written or tuned. Your detection scope, testing, and approval steps remain the same. Ask the vendor exactly what its support covers, and confirm whether any tuning help is part of that support or billed separately.

How are rules updated in an airgapped Security Onion environment?

Airgapped installs receive rule content through new ISO media rather than from the internet. Security Onion's airgap documentation states that the ISO carries packages and NIDS, YARA and Sigma rules, and that the soup update tool can update from newer ISO media in airgap mode. Your process should therefore include a regular step to obtain a newer ISO, verify its integrity, move it across your transfer boundary under your change control, and run the update on a test grid first. Record which rule versions are active after each update so you can explain alert changes to analysts. Confirm the exact media and transfer steps with the vendor documentation for your release.

Which Suricata, Sigma and YARA rules should we tune first?

Start with the rules that generate the most alerts and the lowest analyst value, because they consume the most review time and can hide real findings. Next, review rules that map to the assets and protocols you care about most, such as internet-facing services, administrative protocols, and cloud or identity activity. Rules that fire on known internal scanners, backup jobs, or software updates are usually good first candidates for suppressions, provided each suppression is scoped to a specific source, destination, or signature. Document the reason for every change so that later reviewers can confirm each decision.

What risks come with suppressing or thresholding alerts?

The main risk is that a suppression or threshold hides malicious activity that resembles the benign pattern it was built to silence. A broad suppression on a common signature can remove detections for the whole network, while a threshold set too high can delay or prevent alerting on slow or distributed attacks. Limit suppressions to specific hosts, networks, or conditions, set a review date for each one, and test changes against known malicious samples and recent benign traffic. Keep an audit trail of who approved each change, because detection coverage is a control that auditors and incident responders may later ask you to explain.

How DeployOpen works on this

DeployOpen plans and implements self-hosted open-source platforms inside the client's own infrastructure, and detection work follows the same pattern. We start from the written scope, build and test Suricata, Sigma and YARA content in the Security Onion Console Detections interface, then document and hand over the tuning so your analysts can run it.

How we scope

  • The written scope lists which Suricata NIDS, Sigma and YARA detections are in and which log sources they depend on.
  • We confirm which Security Onion deployment type and node roles the detections will run on before writing rules.
  • Engagements are fixed-scope, so deliverables, timelines and acceptance tests are agreed in writing before work starts.
  • Quotes follow from the written scope, and we ask you to confirm the alert volume and analyst capacity you expect.

How we build

  • Suricata rules are written or modified in the Detections interface, with suppressions and thresholds set to match your traffic.
  • Sigma rules are loaded into ElastAlert with custom filters where a rule needs environment-specific exclusions.
  • YARA rules for Strelka are tested against known benign and sample files from your environment before they go live.
  • Each change is validated on a test grid that matches your production layout before it reaches the live system.

How we hand over

  • You receive a record of every rule change, the reason for each suppression and threshold, and the test results behind it.
  • Runbooks explain how analysts triage each detection, what a false positive looks like and who approves tuning changes.
  • We walk your security operations team through the Detections interface so they can make routine tuning changes themselves.
  • Handover covers the rule update process, so your team knows which changes need review before they are applied.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial engagement ends.
  • Retainer work can cover periodic review of noisy detections and rule updates as Security Onion releases change.
  • Ask in the quote which support tasks are included, how requests are logged and how urgent tuning issues are handled.
  • Security testing of the detection stack, including AI and agent components, can be scoped as a separate written engagement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.