Adding custom Sigma and YARA rule repositories to Security Onion starts with a clear content source
Teams that want their own detection content managed as code alongside the built-in rules add custom Sigma and YARA rule repositories through the rulesRepos setting. In Security Onion, Sigma rules are run by ElastAlert and are configured under the elastalertengine settings, while YARA rules are loaded into Strelka and configured under strelkaengine. Each engine takes its own rulesRepos list, and each entry can point to an HTTPS location or a local path such as file:///nsm/rules/detect-yara/repos/. The result is that your own rule repositories sit next to the rules that ship with the platform, rather than in a separate tool that analysts must check by hand.
The Console Detections interface remains the right place for day-to-day work. It manages NIDS rules loaded into Suricata, Sigma rules loaded into ElastAlert, and YARA rules loaded into Strelka, and it is where modify, suppress and threshold changes for NIDS rules and custom filters for Sigma are made. Repositories become the better choice when detection content must be reviewed, versioned and promoted the same way as other infrastructure code, when the same rules must be applied across more than one Security Onion environment, or when a team wants a clear record of who changed a rule and why. Confirm with your own team whether analysts will edit rules in the Console or only through the repository, because mixing both paths for the same content makes changes hard to trace.
Before you wire a repository in, decide who owns it, where it is hosted, and how changes reach each environment. Check the Sigma and YARA documentation for the exact settings your release expects, and test a repository on a non-production grid first, confirming that the rules load and that the engines report no errors. Plan for the local path option in airgapped networks, where an HTTPS source may not be reachable, and confirm how your chosen update approach behaves on your version, since the documentation sets out the configuration but the timing of updates should be verified in your own environment.
Choosing between HTTPS and local path repositories
On a connected grid, an HTTPS-hosted repository is the most direct option. The manager pulls Sigma and YARA content from a Git host or web server that your team controls, so updates reach the grid without someone carrying media across a boundary. The trade-off is that every pull is a network dependency and an outbound path that your security team must allow and monitor. The repository host also becomes a trust point: anyone with write access to that host can change the rules your analysts depend on.
- Access control: Restrict write access to the repository to named maintainers and require authenticated, read-only access from the manager.
- Change review: Use merge requests or pull requests with a second reviewer, so every rule change has a recorded approver.
- Network dependency: Confirm the outbound rule from the manager to the host, and decide what happens to detections if the host is unreachable.
- Update timing: Choose an update interval that matches how often your team reviews changes, not how often the repository changes.
- Credentials: Store any repository token outside the configuration you commit, and rotate it on a schedule.
Before you choose HTTPS for a connected grid, confirm with your network team which route the manager uses to reach the host, whether a proxy sits in between, and whether that route is permitted by your segmentation policy.
On an airgapped network, the manager cannot reach an HTTPS host, so content must arrive by a local path. Security Onion's airgap install carries NIDS, YARA and Sigma rules on the ISO, and the soup tool updates from newer ISO media in airgap mode. Custom repositories follow the same logic: your content is copied onto the manager's disk, typically under the path shown in the example, and referenced with a file URL. Your review point moves from the repository host to the transfer process.
- Local path: Reference the directory with a
file:///URL, for examplefile:///nsm/rules/detect-yara/repos/, and confirm the exact path on your version. - Transfer control: Record who imports each media set, what hash or signature you verify, and where the copy is kept.
- Change review: Review the diff between the previous and new content before it is placed in the repository directory.
- Access control: Limit write access to the directory on the manager to the account that performs imports.
- Rollback: Keep the previous content set so a bad import can be reverted without waiting for a new transfer.
Confirm with your platform team how content reaches the manager and whether a file path is the only supported source in your deployment before you design the transfer procedure.
Many organizations build detection content in a pipeline that is separate from the grid. Rules are written, tested and approved in a controlled environment, then published to a staging location. From there, the grid consumes them either over HTTPS from an internal artifact store or from a local path that a deployment job populates. This pattern keeps the grid simple and places review and testing in the pipeline, where the rest of your content governance already lives.
- Single source of truth: Keep one canonical repository and let every grid consume it, so environments do not drift.
- Promotion stages: Define how a rule moves from test to production, and which stage the manager reads.
- Environment differences: Use the same repository structure everywhere and vary only the source URL or path per environment.
- Pipeline checks: Run your own validation on each change before publication, including checks that rules load on a test node.
- Ownership: Name the team that approves changes to production content and the team that operates the manager.
Before you adopt a pipeline, confirm whether the manager reads one source or several, since mixing HTTPS and local sources in one configuration increases what you must review and monitor.
The choice rarely comes down to one factor. HTTPS favors speed and simple updates but adds a live dependency and a host to secure. Local paths favor control and suit airgapped networks, but they shift the work to transfer, verification and manual rollback. Neither option removes the need for review, and both need a record of which content version each manager loaded.
- Access control: HTTPS relies on host authentication, while local paths rely on file permissions and the import process.
- Change review: Both need a reviewer and a diff. Only the place where that review happens differs.
- Network dependency: HTTPS requires a route and an allow rule. Local paths require none beyond the transfer.
- Airgap fit: Local paths are the only option that works without outbound access, which is why airgap installs use them.
- Recovery: Keep the last known-good content so you can restore it quickly, whichever source you use.
Ask your network and security teams to confirm, in writing, how the manager reaches each source, and document the answer alongside your repository configuration.
How to add a rule repository to the grid
This sequence takes a Sigma or YARA repository from a defined folder layout to rules visible in the Console and loaded by the engines that run them. Each step ends with a check so you know the repository is wired in before you depend on it.
Define the repository layout before you connect it
Decide how your Sigma or YARA content is organized in a Git repository or local folder, using the directory structure the Security Onion docs expect for each engine. Sigma rules and YARA rules are read differently, so keep them in separate repositories. Confirm the expected layout for your installed version in the Sigma and YARA documentation. Done when a colleague can clone or read the repository and find every rule file where the docs say it belongs, with no stray files outside that structure.
Choose the source type for each repository
Pick an HTTPS URL when the manager can reach your Git host, or a local path such as file:///nsm/rules/detect-yara/repos/ when the content is copied onto the manager. Local paths suit airgapped grids, where you move content in on approved media. Record who owns the repository, where it is hosted, and how changes are reviewed. Done when you have one source type and one owner recorded for each repository, and you have confirmed the manager can read that location.
Add the entry under rulesRepos in the engine settings
Add the repository under the rulesRepos key in the elastalertengine settings for Sigma, or in the strelkaengine settings for YARA, using the key names from the current docs for your version. Keep the repository name unique so later updates do not overwrite other content. Set the update interval only as the docs allow for your version. Done when the settings file parses cleanly and each repository entry has a unique name and a source that resolves.
Apply the configuration on the manager
Apply the changed configuration on the manager node using the Security Onion procedure for your version so that the engines pick up the new repository settings. Review the output for errors about the repository location or rule syntax. Done when the apply completes without errors and the manager logs show the repository was fetched or read, not skipped.
Verify rules appear in the Console Detections interface
Open Detections in the Security Onion Console and filter to the Sigma or YARA rules from your repository. Check that rule titles, levels and identifiers match what you committed. Open a sample rule and confirm its content is the version in Git. Done when your rules are listed under the expected type and a rule edited in the repository shows the change after the next update.
Confirm sensors and Strelka nodes load the rules
Check that the Sigma content is loaded by the alerting engine and that YARA rules are loaded by Strelka on the nodes that scan files. Use the grid status and logs described in the docs for your version to confirm each node reports the new rules. Test with a benign sample that should match a rule you added. Done when the test sample produces the expected alert or match on the node that scans it, and you have recorded the results.
Confirm exact key names and file locations for your version
Before you change production settings, compare every key name, path and interval in this procedure with the Sigma and YARA documentation for the Security Onion version you run, since names can change between releases. Note the version and documentation date in your change record. Done when the change record shows the version checked and the settings you applied match the documented keys for that version.
Managing rule content as code across environments
Once Sigma and YARA content comes from repositories, the rules become code that needs the same discipline as any other. The practices below describe how a team can keep one source of truth, promote tested content through environments and keep an audit trail. The repository layout is the team's choice; Security Onion only consumes the paths you configure in rulesRepos.
One Git source of truth
Keep every custom Sigma and YARA rule in one version-controlled repository that the team owns, and treat deployed copies on managers and sensors as derived output. Work from a single history so you can answer which commit a running rule came from. Confirm where each environment's rulesRepos entry points, because a rule that exists only on one manager is invisible to the rest of the grid's review process.
Sigma docsSeparate lab, staging and production
Decide whether environments use separate repositories or branches of one repository, and document the choice before the first rule lands. Lab content can change freely, while production should only receive rules that have passed testing in staging. Confirm that each environment's configured path matches the branch or repository you intend it to read, since a path mismatch can silently serve older content.
Peer review before merge
Require a second reviewer for every rule change, including filter and threshold edits that reduce alerting. Reviewers should check the detection logic, the log source it depends on and whether the change narrows coverage more than intended. A short review checklist keeps reviews consistent across authors and makes it easier to spot a filter that quietly hides an entire technique.
Promote tested content
Move a rule forward only after it has fired as expected against representative data in a lower environment. Record the test evidence next to the merge, such as the sample events or imported PCAP used, so promotion is a decision rather than a copy. Confirm how long rules stay in staging before production and who can approve the promotion.
Record why each rule changed
Write a commit message or linked ticket for every change that states the threat or false positive addressed, the author and the expected effect on alert volume. Future reviewers rely on this history when deciding whether a filter is still justified after a log source changes. Without this record, tuning work becomes a set of unexplained exceptions that is hard to audit or retire.
Sync airgapped copies from a controlled source
On networks without internet access, mirror repositories from one controlled source into the enclave rather than pulling from public locations. Use local file paths such as file:///nsm/rules/detect-yara/repos/ for synced copies, and verify checksums or commit identifiers after each transfer. Confirm with your change board how transfers are approved, since the airgap copy is only as trustworthy as the process that fills it.
Configuration options and when each fits
This table compares the four ways to source custom Sigma and YARA content in Security Onion, plus the decision to keep custom content apart from built-in packages. Read each row for the fit, the dependency it creates, and what to confirm in your own environment before choosing.
| Option | Best fit | Operational dependency | Confirm in your environment |
|---|---|---|---|
| Sigma repository over HTTPS | Central team publishes detections to a Git host or web endpoint that all sensors can reach | Grid nodes must reach the repository host, and changes flow in on the sync behavior of your version | Outbound access from the manager, proxy settings, and whether the URL needs credentials |
| Sigma repository via local path | Air-gapped or tightly outbound-restricted grids that copy rules in through approved media | Someone must copy the rules onto the manager at the same path on every change | Path under the manager's file system, file ownership, and how updates are staged and reviewed |
| YARA repository over HTTPS | Teams that maintain file-scanning rules in a shared repository and want one source of truth | Strelka file analysis depends on the rules being fetched and valid; a broken rule file can affect scanning | Repository reachability, rule syntax checks before merge, and how Strelka reports a rule load failure |
| YARA repository via local path | Offline environments or rules written in-house that never leave the network | Manual copy steps and version tracking; no remote history unless you keep one | Directory location used by rulesRepos, permissions for the service, and how you roll back a bad rule set |
| Custom content kept separate from built-in packages | Organizations that need to tell their own detections apart from vendor or community content during review and audit | Two sources to track and test, and possible naming overlap with bundled rules | Unique rule names and IDs, whether tuning from the Detections interface still applies to custom sources, and what your version does on conflicts |
How the manager, sensors and search nodes keep rules in sync
The manager is the coordination point for a distributed Security Onion grid, so custom Sigma and YARA content depends on it reaching the right nodes. The architecture docs describe the manager as the node that coordinates the grid, and they note that if the manager goes down, search nodes stop indexing because they cannot reach Redis. For detection content, that means a repository change can be correct on paper and still fail to take effect if the path from the manager to the node that runs the rule is interrupted. Treat the manager as a shared dependency for both rule distribution and event ingestion, not as a standalone administrative server.
Confirm, in your own environment, which node types load each rule type before you set rulesRepos for either engine. Sigma rules are loaded into ElastAlert and YARA rules are loaded into Strelka, and the Detections interface manages each of these alongside NIDS rules in Suricata. Check the Security Onion Sigma documentation and the Security Onion YARA documentation for the current placement of each engine, then verify on a test grid that a newly synced rule appears on the node that evaluates it. Record the answer per node type so that a later change does not assume the wrong component.
Plan maintenance windows around this dependency. Any change to the manager, including upgrades or repository syncs that require a manager restart, should be scheduled when a gap in indexing on search nodes is acceptable, and the outage should be measured from your own grid rather than assumed. Ask your team or vendor to document the expected recovery sequence after the manager returns, and confirm that rule content is present on every node that should load it before you close the window. Receiver nodes can add pipeline redundancy and load balancing, so confirm with the architecture docs whether that design fits your planned failure tolerance.
How custom rule repositories reach detection engines
The path starts with a rule repository, either an HTTPS source or a local directory such as file:///nsm/rules/detect-yara/repos/, and ends in the detection engines. The manager's rulesRepos settings sit in the middle: the elastalertengine block feeds Sigma rules to ElastAlert, and the strelkaengine block feeds YARA rules to Strelka. Both engines show their results in the Console Detections interface, which is where analysts review and tune them. Check that the trust boundary sits where you expect, and that every repository you add is one your team controls or has reviewed.
Rule repositories flow through the manager into the Sigma and YARA engines and the Console.
Security risks in custom detection content
Custom Sigma and YARA repositories give your team control over detection logic, but they also let untrusted content, stored credentials and unreviewed edits change what the platform alerts on. The cards below cover the risks that connect rule repositories to your alert coverage and the controls that keep them manageable.
Unreviewed rule content
A repository is only as trustworthy as the people who can push to it. A Sigma or YARA rule that loads without review can add noisy logic, broken matches or content nobody on your team has read. Before adding a repository, decide who approves changes, require review on the source branch, and check each new rule against a test log before it reaches production sensors.
Sigma docsCredentials in HTTPS URLs
If a repository requires authentication, the easiest-looking option is to embed a username and token in the rulesRepos URL. That value then sits in configuration files and can appear in logs or shared exports. Use a read-only token scoped to the rule repository, store it through your normal secrets process, and confirm with the platform documentation how the value is handled in your version.
Write access to local paths
Local repository paths such as file:///nsm/rules/detect-yara/repos/ are read from the manager filesystem. Any account or process that can write there can change detection content without going through your repository workflow. Restrict write permissions to the deployment account, keep the directory out of general user access, and compare file hashes after maintenance windows.
Silent suppression of detections
A rule that is accidentally disabled, filtered too broadly or shadowed by a same-named rule can stop alerting without any error. Coverage then drops while dashboards look healthy. After each sync, compare the enabled rule count and the list of rules expected to fire against a known test dataset, and treat unexplained drops as incidents.
False positives from rushed changes
Pushing a change straight to a live sensor can flood analysts with alerts from one overly broad pattern. Stage repository updates in a lab or non-production grid first, read the alert volume produced by each new rule, and roll changes forward only when the noise level is acceptable. Keep a rollback path to the previous commit.
Audit trail for rule changes
When an alert disappears or a new one appears, you need to know which commit changed it, who approved it and when it reached each environment. Keep the repository history as the record of changes, tag the commit deployed to each environment, and record the reason for every suppression or exclusion so a later review can reconstruct the decision.
Questions teams ask before adding custom Sigma and YARA repositories
Can our team add custom Sigma and YARA repositories to Security Onion without outside help?
Yes, if your analysts or engineers already run Security Onion and can edit its configuration, but the work is more than a config change. Repositories are declared under rulesRepos in the elastalertengine (Sigma) and strelkaengine (YARA) settings, so the mechanics are small. The effort sits in deciding what content goes in, who reviews it, and whether each rule behaves as expected on your traffic and files. Teams with a detection engineer and a test PCAP or sample file set usually find the mechanics manageable. Teams without that capacity should plan for review time, not only setup time.
What drives the effort of adding custom detection repositories?
The main drivers are how many repositories you add, where they come from, and how much content each one carries. A single internal repository of a few rules is a small task. Several third-party or vendor feeds with overlapping rules take longer because each one needs a review for duplicates, noisy logic and log sources your grid does not collect. Rule format matters too: Sigma rules depend on the log sources you ingest, and YARA rules depend on what Strelka actually receives. Ask any provider to scope the number of repositories, the rule count and the validation steps before agreeing on effort.
What does our team need to provide for a repository rollout?
Three things matter most: a named owner for each repository, a written review process for changes, and a test import plan. The owner decides which content is approved and when it is updated. The review process covers how a new or changed rule is checked before it reaches production sensors and search nodes. Test imports mean loading rules against known sample logs, imported PCAP or sample files in a non-production grid before rollout. Without these, rule updates arrive on a timer and the first sign of a broken rule is usually a missing or flooding alert.
When should we bring in an outside partner for this work?
Consider a partner when your team lacks time to review rules, when you are moving many repositories at once, or when the grid is part of a compliance or audit scope that needs documented change control. A partner can also help set up a repository layout that can be promoted across environments. DeployOpen plans, implements, documents and supports self-hosted open-source platforms in infrastructure you control, so the work can cover Security Onion configuration and the repository workflow. Whichever route you choose, confirm who maintains the repositories after the project ends.
How long does adding custom Sigma and YARA repositories take?
Duration depends on scope, not on a fixed number. A small change with one internal repository on a standalone node takes far less time than a rollout across a distributed grid with several feeds, a review workflow and a test environment. The Security Onion documentation covers the configuration for both rule types, but it does not give a standard duration for your environment. Ask for a timeline tied to a written scope that lists repositories, environments, sensors and the test plan, and check whether the timeline includes review time for each rule source.
What changes when the grid runs on an airgapped network?
Repositories that use HTTPS will not update on an airgapped grid, so you need a local path instead. Security Onion documents local repository paths such as file:///nsm/rules/detect-yara/repos/ for YARA. Your team must copy approved rule content onto the grid through your own transfer process, and the Security Onion airgap documentation says the ISO carries NIDS, YARA and Sigma rules, with soup updating from newer ISO media in airgap mode. Plan the transfer path, the approval step and the record of what was imported and when.
What does a fixed-scope quote for this work cover?
A fixed-scope quote should list the deliverables, the repositories and rule types in scope, the environments involved, the test imports, the handover documentation and any retest or review period. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask the provider to state what is excluded, such as rule authoring, rule tuning after go-live or ongoing repository maintenance. Ongoing support and continuous updates are a separate retainer, so confirm whether the quote is one-time work, recurring work, or both.
How DeployOpen scopes and supports custom detection content
DeployOpen plans, builds and documents custom Sigma and YARA rule repositories for Security Onion inside your own infrastructure. We start from a written scope that names your rule sources, update path and the environments that must stay in sync, then hand over a repository layout your team can maintain without us.
How we scope
- Inventory the rule sources you own, the HTTPS or local paths they live on, and who approves changes to them.
- Confirm which Security Onion deployment types and nodes will load the repositories, including the manager and each search node.
- Agree the scope, deliverables and timeline in writing before work starts, with an itemized quote that follows from that scope.
How we build
- Configure rulesRepos for Sigma and YARA under the elastalertengine and strelkaengine settings, using the paths your environment requires.
- Set update intervals and test a rule change end to end in a non-production grid before it reaches production sensors.
- Check that repository content loads in the Console Detections interface and that rule matches appear as expected against sample data.
How we hand over
- Document the repository layout, the update workflow, the promotion steps across environments and the rollback procedure.
- Deliver a configuration record covering each repository, its source, its owner and the nodes it applies to.
- Walk your detection and operations staff through routine updates, troubleshooting and how to confirm sync status after changes.
How we support
- Ongoing support, upgrades and continuous testing of detection content are available as a retainer after handover.
- Re-test repository loading after Security Onion upgrades, including changes between 2.x and 3.x releases, before rules go live.
- Review repository changes on request so your rule content stays consistent across sites and does not drift between environments.

