Tuning Sigma detections with custom filters in Security Onion

Security Onion lets you exclude known-good activity from Sigma rules with custom filters, such as a vulnerability scanner's IP range, without editing the upstream rule. This page covers how the filter wraps the original condition, when to use it, and what to verify.

On this page

Why Sigma custom filters matter for Security Onion tuning

A Sigma rule that fires again and again on the same scanner, backup job or admin tool is a common problem in Security Onion. The fix is a custom filter in the Detections interface, which excludes that known-good activity from the rule while leaving the rule's original logic in place. Teams should use this when the rule is correct and the activity is expected, and they need the noise gone without turning the rule off. Security Onion's Detections interface manages Sigma rules loaded into ElastAlert, and for Sigma it offers custom filters, not the suppress and threshold overrides it provides for NIDS rules in Suricata. Those two mechanisms work differently, so an analyst should not expect a Suricata suppression to behave the same way on a Sigma alert.

Before adding a filter, decide whether the noise belongs to the rule or the data. If the log source is sending fields that make the rule misfire, or a rule's logic is too broad for your environment, fixing the source or the rule is the better long-term change, and a filter becomes a record of a known gap rather than a permanent patch. A filter is the right tool when the activity is legitimate, its source is stable (for example, a vulnerability scanner at a known address), and the team accepts that anything matching the exclusion will no longer alert from that rule. Scope the filter as narrowly as the business reason allows, and write down who approved it and why. Security Onion is source-available under the Elastic License 2.0, not OSI open source, so confirm that license terms fit your use case before you build internal processes around it.

Filter options and when each fits

This table compares the three ways to tune a Sigma detection in the Security Onion Detections interface: adding a custom filter, editing or disabling the rule, and changing the log source or upstream rule package. Read each row as a decision point, and use the risk and record columns to decide what to write down before you change anything. Confirm exact field names and behavior in the Sigma documentation before applying changes.

OptionWhen it fitsWhat it risksWhat to record
Custom filter on the Sigma ruleKnown-good activity from a specific source, such as an authorized scanner IP range, matches the rule and you want the rule kept for everything elseA filter that is too broad can hide real activity from the same source; filters that match on the wrong field silently do nothingThe rule name, the filter identifier and its exact match criteria, the owner, the date, and the reason the activity is expected
Edit the rule logicThe rule's detection condition is wrong for your environment in a way a filter cannot express, or it needs a field change for your logsEdits drift from upstream and can be lost or conflict when packages update; a bad edit can widen or narrow coverage without noticeThe original condition, the changed condition, the test data used to validate it, and who approved the change
Disable the ruleThe rule covers a technology or log source you do not have, or the detection is not relevant to your environment after reviewDisabling removes coverage entirely, and the gap is easy to forget during later reviewsThe rule identifier, the reason it is not applicable, the compensating control if one exists, and a review date
Change the log source or upstream packageEvents arrive under different product or category fields than the rule expects, or you want to enable or remove a whole rule packageMismatched log sources make rules silent rather than noisy; package changes affect many rules at onceThe log source mapping, the package and rule set enabled, and the validation results showing the rule fires on expected events
Leave the rule as is and handle the alert in triageVolume is manageable, the alert is rare, or the cause is not yet understoodAnalyst fatigue and repeated manual closure; the same noise keeps consuming review timeTriage notes that show the recurring cause, so the team can choose a durable tuning option later

Steps to add and verify a Sigma custom filter

This sequence takes one noisy Sigma alert from observation to a verified exclusion for known-good activity, such as a scanner source address, while the rule keeps firing for everything else. Each step ends with a check that you can record in your change log.

  1. Confirm the noisy alert and its source fields

    Open the alert in the Security Onion Console Detections interface and note the rule title, its Sigma logsource, and the event that triggered it. Review the raw event in Hunt and record the exact field names and values the rule matched on, such as the source IP field. Done means you can state, for each alert in the batch, the field and value that produced it, and that the pattern repeats rather than being a one-off.

  2. Identify the known-good value to exclude

    Work with the team that owns the activity, such as the vulnerability scanning or asset management group, to confirm which source addresses or hosts are authorized to generate this behavior. Confirm the address ranges are owned or managed by your organization and document who approved them and why. Done means you have a short, specific list of values, and a named owner who can confirm they are still in use. Broad ranges should be questioned before they go into a filter.

  3. Write the filter as a search identifier

    Add a custom filter for the rule in Detections and define it as a Sigma search identifier that uses the field and modifier you confirmed, for example src_ip|cidr with the approved range. Keep the filter name clear about its purpose, such as sofilter_scanner_ranges, so other analysts can read it. Done means the filter validates and the Console shows it attached to the rule without errors.

  4. Apply the filter as an exclusion around the original condition

    Check that the rule's condition is written so the filter is applied as an exclusion alongside the original logic, which Security Onion expresses as the original condition combined with not 1 of the sofilter identifiers. Do not replace the original detection logic. Done means the effective condition in the rule view still contains the full original detection, and the filter appears only as a negated term.

  5. Test that the rule still fires on a non-excluded source

    Run a test against recent or imported events that match the rule's detection but come from a source outside the excluded list. Use an event from a host that is not in the approved list, or a test event that is clearly labeled as a test if you can generate one safely. Done means the rule produces an alert for that event, which shows the filter has not suppressed legitimate coverage.

  6. Confirm excluded events drop out of alerts

    Using the same time window, confirm that events from the approved source values no longer generate alerts for this rule, while the raw events remain searchable in Hunt. Compare alert counts before and after the change for the window. Done means the approved sources produce no new alerts and the non-excluded sources still do, with both results recorded.

  7. Record the change and review it on a schedule

    Write a change record that names the rule, the filter, the excluded values, the owner who approved them, the test results, and the date of the change. Store it with your detection content so it survives rebuilds and migrations. Done means a second analyst can read the record and understand why the exclusion exists, and you have set a review point to confirm the excluded sources are still authorized.

Security risks of excluding activity from Sigma rules

A Sigma custom filter removes matching events before the rule can alert, so every exclusion is a deliberate reduction in visibility. The cards below describe the risks that come from scoping those exclusions, keeping them current, and recording why they exist across the grid.

Over-broad CIDR ranges hide attacker traffic

A filter that matches a whole subnet with src_ip|cidr removes every event from every host in that range, not only the scanner. For example, an illustrative filter for a vulnerability scanner at one /32 address would silently cover an entire /24 if the range was written too wide. Check each CIDR against the scanner's documented addresses and prefer the narrowest range that matches.

Exclusions outlive the scanner

Scanner IPs change when vendors move hosts, when cloud instances are replaced, or when a team retires a tool. A filter written for that scanner keeps suppressing matches long after the address belongs to someone else. Record an owner and a review date for each filter and confirm the address still belongs to the scanner before renewing it.

Source addresses can be spoofed or shared

A source IP is weak evidence of who generated an event, especially on segments where NAT, proxies or shared jump hosts put many users behind one address. An attacker who learns that a scanner address is excluded can move laterally from that address or spoof it in some paths. Pair address-based filters with a second condition, such as a specific user agent or target port, where the log source provides one.

Lost audit trail for each filter

Six months later, nobody may remember why a filter exists or which alert it was meant to quiet. Without a change record, analysts cannot tell whether a silent rule is working as designed or was disabled by an old exclusion. Keep a ticket or commit that states the scanner, the reason, the approver and the rule each filter touches.

Filters drift across nodes and repositories

A filter added in the Detections interface on one deployment may not exist in the Sigma repository that another environment syncs from, or the reverse. Over time, the same rule can alert in one grid and stay silent in another. Compare rule content and overrides across environments after each change, and keep the authoritative copy in version control.

Scanner range changes need review

When a security team adds a new scanner, changes its egress IPs or moves scanning to a different network, existing filters may stop matching or start matching the wrong traffic. Make the scanner's address range part of the change process, so a network change triggers a review of every filter that names it. Test the updated filter against imported PCAP or recent events before relying on it.

Sigma docs

How a Sigma event passes through a custom filter

The diagram starts with a log event that matches a Sigma rule's original condition. Before an alert is raised, the custom filter checks whether the source is a known-good address such as a scanner range. Matching events are excluded, and everything else continues to ElastAlert and the Console. Check that the filter's source field matches the field the log source actually populates, because a mismatch silently leaves the exclusion inactive.

A simplified view of how the custom filter wraps the original Sigma condition.

Questions teams ask before tuning Sigma rules

How much effort does Sigma filter tuning take in Security Onion?

Effort depends on how many rules are noisy, how clean the log data is, and how much representative test data you can replay. Each noisy rule needs its matching events reviewed, a filter written against the specific field that causes the false positive, and a check that the filter does not hide real activity. A few rules firing on one known scanner is a small job. Dozens of rules across several log sources, with inconsistent field names, takes longer because each source needs its own investigation first. Ask any partner to break the estimate down by rule, log source and test approach, and to show what is assumed about your data volume.

Can our internal team tune Sigma filters, or do we need a partner?

An internal team with analyst experience and access to the Security Onion Console can usually tune a small set of rules, provided it understands the Sigma condition syntax and the fields in its logs. A partner helps most when the rule count is high, when the team lacks time to test changes against live traffic, or when the work must be documented for an audit. Consider whether your analysts have the hours to review false positives over several weeks, and whether someone will own filters after the project ends. Ask a partner to show how it would hand over filter logic and test evidence to your staff.

What do we need to provide for Sigma filter tuning?

The work needs access to the alerts and the raw events behind them, an inventory of approved scanners and vulnerability assessment sources, and a named approver for changes. Scanner IPs should come from the people who run the scans, not from guesses in the alert data. You also need a place to test: a non-production search node or a copy of recent events is safer than editing filters directly on live detection. Plan a change approval step so each filter has a reason, an owner, and a review date. Without those inputs, filters tend to become broad exclusions that hide attacker activity.

Do custom filters replace fixing a Sigma rule?

No. A filter suppresses matches for known-good activity without changing the rule, which is useful when the rule logic is sound but a specific source is expected. If a rule is poorly written, matches too broadly, or relies on a field your log source does not populate reliably, a filter only hides the symptom. Rule fixes belong in the detection content itself, often in your own repository, and should be tested and versioned. Use filters for stable, narrowly defined exclusions such as an approved scanner, and fix the rule when the noise comes from its design.

How do we keep Sigma filters current as scanners and networks change?

Treat every filter as a record with an owner, a reason, the scanner or range it covers, and a review date. Scanner IPs change when vendors move infrastructure, when cloud ranges shift, or when a team retires a tool, so filters that match a fixed address can go stale without anyone noticing. Review filters on a schedule, check whether they still match real events, and remove any that no longer apply. Keep filter definitions in version control alongside other detection content so changes are reviewed and can be rolled back. Ask a partner how it would track filter ownership and retest after platform upgrades.

Does log source quality affect how hard Sigma tuning is?

Yes. Sigma rules depend on field names that must be present and consistent in the events. When a log source uses different field names, omits fields, or normalizes values inconsistently, the same rule can fire in unexpected ways, and filters written against those fields may miss variants. Before tuning, confirm that each relevant log source produces the fields the rule expects, and check how timestamps and IP addresses appear. Problems found here often require fixing the ingestion path, which adds work beyond the filter itself.

How do we test a Sigma filter before it goes live?

Test against events that represent both the noise you want to remove and the activity the rule must still catch. Replaying historical events from a known period, or a labeled sample, shows whether the filter removes the expected scanner traffic without removing matches for other hosts. Confirm that the filter still allows a test event from an unapproved source to alert. Record the before and after alert counts and the reviewer's sign-off. Testing data is often the largest hidden cost, because building a representative set requires access to logs and time from people who know the environment.

When to tune with filters instead of changing the rule

Use a custom filter when the noise comes from a source you can identify and that is known to be good and stable, such as a vulnerability scanner or a patch management server with a fixed address. In the Security Onion Console, the Detections interface gives Sigma rules custom filters rather than the modify, suppress and threshold controls it offers for NIDS rules, so the filter is the tool for carving out a known source while leaving the rule's logic intact. Before writing one, confirm that the source is documented, that its address or host identity will not change without notice, and that the exclusion needs to cover only the specific detection that is firing. A filter that is narrow, tied to a named owner and recorded with the reason for the change is far easier to review later than a broad allowance.

Do not reach for a filter when the noise is a symptom of a rule that is too broad or a log source that is parsed incorrectly. If a field the rule depends on is mapped to the wrong value, or a rule matches on a generic string that many benign processes share, excluding one more source only hides the defect and leaves the rule misfiring for everyone else. In those cases, the right step is to correct the field mapping in the log pipeline, narrow the detection logic, or retire a rule that does not fit your environment. Ask whether the same false positive would appear with a different legitimate host. If it would, the problem belongs to the rule, not the exclusion list.

Escalate instead of filtering when the proposed exclusion would also hide activity an attacker could use. A scanner address is a good candidate only if nothing else can impersonate it, so review whether the source could be spoofed, compromised or reachable from a segment where unauthorized hosts sit. Involve the detection owner and the incident response lead before adding any filter that touches authentication, lateral movement or credential access rules. Record the decision, the residual risk and the review date so that the exclusion is revisited when the scanner, its network or the rule changes.

What DeployOpen reviews in a Sigma tuning engagement

A Sigma tuning engagement covers the path from a noisy alert to a documented filter that stays in place. The cards below separate the review, drafting, testing and record-keeping steps so you can see what your team keeps and what a partner takes on.

Noisy alert review

DeployOpen starts by sorting Sigma alerts in the Detections interface by rule and by source, so the rules producing the most false positives are visible first. For each rule, the review records which field values trigger it, which hosts or addresses generate them, and whether the activity is expected, such as an internal vulnerability scanner. Check that every rule being reviewed still matches a log source you actually collect, because a rule with no matching events cannot be tuned meaningfully.

Sigma docs

Filter drafting with your team

Filters are written together with the people who know the environment, such as the network team that owns the scanner and the admins who run backup jobs. A typical filter is a Sigma search identifier that matches a known source address with src_ip|cidr, combined with the original condition so only the known-good activity is excluded. Agree on the narrowest field that identifies the activity, since a broad filter can hide real intrusions on the same rule.

Testing against representative events

Each draft filter is run against events pulled from the period when the alert fired, plus events where the rule should still fire. The test shows whether the known-good activity drops out and whether a deliberately suspicious sample still alerts. Ask for both results before accepting a filter. Where your environment cannot supply representative events, the engagement scope should say so, because the test then proves less.

Change record and handover

Every accepted filter is documented with the rule name, the reason for the exclusion, the owner who approved it and the date of the test. This record lets your analysts answer why an alert went quiet during a later investigation. DeployOpen hands over the record and the filter text so your team can maintain them, and it does not issue audit reports or attestations based on this work.

Written scope and boundaries

Scope, deliverables and the rules in scope are agreed in writing before work starts, and the agreement names which Sigma rules and log sources are included. Confirm in the scope whether the work covers only Sigma rules or also Suricata suppressions, and who approves changes to production. Ask how filters move to the grid and how they are retested after a Security Onion upgrade.

How DeployOpen scopes and supports Sigma tuning

DeployOpen plans, implements and documents self-hosted Security Onion work inside your own infrastructure, including detection tuning. For Sigma custom filters, we start from the rules and log sources your analysts rely on, write each exclusion against a documented reason, and hand over the filters with tests and notes your team can maintain.

How we scope

  • Engagements are fixed-scope, with the Sigma rules, log sources and filters agreed in writing before work starts.
  • Scope lists which alerts are in tuning scope, such as known scanner IP ranges you own or operate.
  • Scope states who approves each exclusion and what evidence is needed before a filter goes live.

How we build

  • Filters are written as Sigma search identifiers that wrap the original rule condition, so the base logic stays intact.
  • Each exclusion is tested against imported PCAP or logged events to confirm it removes only the intended activity.
  • Changes are made in the Security Onion Console Detections interface or your rule repository, under version control.

How we hand over

  • Deliverables include the filter definitions, a record of each exclusion with its reason and owner, and test results.
  • Your team receives a walkthrough of how the filters interact with the original condition and how to add new ones.
  • Documentation covers how to back up detection overrides before a manager rebuild or migration.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover periodic review of filters as scanner ranges change and as Security Onion releases update rules.
  • Ask for the support scope, response arrangements and upgrade handling in writing before you sign.

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.