Security Onion file analysis with Strelka and YARA

Strelka and YARA in Security Onion extract and scan files seen in network traffic. This page explains what gets extracted, how to tune rules, and where encrypted traffic stops the analysis.

On this page

How Security Onion file analysis with Strelka and YARA fits threat hunting

When an analyst asks whether a file that crossed the network carries malware or sensitive content, network alerts alone rarely answer the question. Security Onion addresses this with Strelka, which extracts files from network traffic, and YARA rules, which match patterns in those files. The results surface in the Security Onion Console, where the Detections interface manages YARA rules loaded into Strelka alongside the NIDS rules loaded into Suricata and the Sigma rules loaded into ElastAlert. File analysis therefore sits inside the same detection and hunting workflow analysts already use, rather than in a separate tool.

Teams usually need this when they must review what was transferred, not only which hosts talked. Typical cases include investigating a suspicious download, checking whether documents leaving the network contain material that should not leave, or hunting for a known file pattern across past traffic. Before relying on it, confirm which protocols and file types your sensors actually extract in your version of Security Onion, since extraction coverage depends on the protocols Zeek and Suricata parse and on how traffic reaches the sensors. Also confirm how your sensors see traffic: encrypted sessions that are not decrypted upstream will not expose file contents to Strelka, so a clean result there does not prove a file is clean.

Plan the rule set and the evidence trail together. Ask who owns YARA rule changes, how new rules are tested against known-good samples before they alert, and where matched files and their metadata are kept for investigation. Check the Security Onion detections documentation for how YARA rules are loaded and tuned in the Console, and confirm with your own environment's traffic profile how much storage extracted files will consume before you set retention.

Which files Strelka extracts from network traffic

Strelka only scans files that the network sensors first extract from traffic, so what reaches it depends on Suricata and Zeek visibility at each sensor. The cards below cover the parts of that chain you need to confirm in your own Security Onion version before you plan storage and YARA tuning.

Sensor visibility sets the file list

Strelka receives files that the sensors pull out of the traffic they can see, so a file never crosses a monitored link is never scanned. Map each sensor to the network segments and paths it actually observes, including whether it sees north-south, east-west or both. Confirm which file-carrying protocols the extraction components handle in your Security Onion version before you assume coverage.

Architecture docs

Confirm the supported file types

Do not assume a file type list from memory or from older releases. Ask your vendor or check the current documentation for the exact file types and protocols Strelka extracts and scans in your release, and record the answer in your deployment design. Test with known benign samples of each type you care about to confirm they appear in Strelka logs.

Encrypted traffic limits extraction

Files carried inside TLS sessions are not visible to the sensor unless you have a supported decryption method in place, which is a separate design decision. Plan for files that arrive over encrypted channels to go unscanned by default, and document that gap for your analysts. Also check how file transfers inside other encrypted or tunneled protocols appear in your sensor logs.

Dependence on Zeek and Suricata output

File extraction depends on how the Zeek and Suricata components parse each session, so a protocol parsing gap or a truncated transfer can mean no file reaches Strelka. Review sensor logs during a test transfer to see which stage stops the file. Packet loss on a busy sensor can also cause incomplete files, which tends to surface as scan gaps rather than errors.

Size and type limits on extracted files

Extraction and scanning settings can cap the size of files and the types passed on, which affects large installers, archives and media. Ask which limits apply by default in your version, where they are set, and whether a change needs a grid-wide update. Set these limits deliberately, because a limit that is too low hides exactly the large payloads you may need to see.

Options for tuning YARA rules, deduplication and storage

This table compares the main configuration choices for Strelka and YARA in Security Onion: default rules, custom rules, suppression, deduplication and retention of extracted files. Read each row for when the option fits and what it costs in analyst time or disk. The main takeaway is that every rule change and every retained file adds either review effort or storage, so start narrow and widen only where investigations need it.

OptionWhat it involvesWhen it fitsCost in analyst time or disk
Default YARA rulesetsUse the YARA rules that ship with the Security Onion ISO and update through the standard update processEarly deployments where the team is learning which file types arrive on the networkLow setup effort, but matches can include noise the team must triage until it learns the baseline
Custom YARA rules via DetectionsLoad your own YARA rules into Strelka through the Console Detections interfaceKnown malware families, internal document markers or data patterns your organization tracksAnalyst time to write, test and maintain rules; a broad rule can flood the Alerts queue
Suppression and tuningSuppress or adjust detections that fire on known-benign files from your own software or business applicationsRecurring false positives from internal installers, updaters or templatesEach suppression hides future matches too, so review suppressions on a set schedule
Deduplication of repeated filesReduce repeated scans or stored copies of the same file hash seen across many sessionsNetworks where the same installers, images or email attachments cross the sensor many timesConfirm with your deployment how duplicates are handled; a duplicate still generated for each session costs processing and index space
Limited retention of extracted contentKeep extracted file content only for a defined period or only for files that matched a ruleSensors with constrained disk or where legal review limits how long file content may be keptShorter retention means evidence may be gone before an investigation starts; set the window with incident response in mind
Broad retention of extracted contentKeep extracted content for longer periods across all file typesInvestigations that routinely need original payloads days or weeks laterDisk grows with traffic volume; confirm sizing with your deployment before enabling it on busy sensors

Tuning YARA rules without flooding analysts

YARA rules in Security Onion are managed from the Detections interface in the Security Onion Console, which loads them into Strelka, the file analysis component that scans files extracted from traffic. The practical first step is to inventory which YARA rulesets are already loaded from the ISO or updates, then decide which of them your analysts will actually act on. Treat every new rule as a change with an owner, a reason and a rollback plan. Record the rule name, the file types it targets and the expected detection volume before enabling it for the whole grid. Confirm in your own console exactly where enable and disable controls sit for YARA rules, because the documented tuning workflow is described for NIDS rules, and your version may present YARA rules differently.

Test new YARA rules before they reach the full analyst queue. A sound approach is to enable a rule on a limited set of sensors or against a known sample set, review the matches for a defined period, and only then widen its scope. Write the test criteria down: which file types, which sources, and how many matches per day your team can review without losing time on triage. If your own rule authors write custom rules, require that each rule carries a description and a documented false positive profile, so the reviewer knows what a benign match looks like. Ask your Security Onion contact or the documentation which tuning controls exist for YARA specifically, such as per-rule disabling, per-source exclusion or match thresholds, and whether they are applied through the console or through configuration files that Salt manages.

False positives need a documented path, not ad hoc exceptions. When a benign file repeatedly triggers a rule, the analyst should note the file hash, the source and the rule, then the detection owner decides whether to refine the rule, narrow its scope or disable it for that case. Keep these decisions in a change log so an auditor or a later analyst can see why a rule behaves as it does. Because NIDS suppression and threshold tuning are documented for Suricata, do not assume the same mechanisms exist for YARA. Confirm the equivalent controls before you write a runbook around them, and test any suppression on a non-production grid first so that a poorly scoped exception does not hide a genuine malicious file.

How to set up Strelka and YARA scanning step by step

This sequence takes a Security Onion deployment from confirming where the sensor sits to seeing a YARA match from known test traffic appear as an alert in the Console. Each step ends with a check so the team knows whether to move on.

  1. Confirm deployment type and sensor placement

    The network or platform engineer confirms that the deployment is Distributed, Standalone or another type that includes a sensor, and that the sensor sees the traffic that carries the files you care about. Security Onion lists Import, Evaluation, Standalone and Distributed as deployment types, and Distributed with a manager, sensors and search nodes is the recommended production design. Record which network segments the sensor mirrors, because files crossing an unmirrored link will never reach Strelka. Done when the sensor's monitored interfaces are documented and the team agrees the placement covers the traffic under review.

  2. Verify Strelka is active on the sensor

    The Security Onion administrator checks that the Strelka service is running on the sensor node and that the Console shows the sensor as healthy. Confirm the service state from the node itself before you change any rules, so a silent failure is not mistaken for a clean scan. Review the service status and recent logs for file extraction errors. Done when the service reports running on every sensor in scope and no recent errors appear in its logs.

  3. Load YARA rules from the ruleset

    The detection engineer loads YARA rules into Strelka using the ruleset the organization approves, either the default rules shipped with the platform or the team's own rules that have been reviewed. The Console's Detections interface manages YARA rules loaded into Strelka, so make changes there rather than editing files on the node by hand, which can be overwritten. Confirm the rules you intend to use are the ones that appear in Detections. Done when the rule count in Detections matches the set you approved and the rules are enabled.

  4. Use the airgap ISO for offline rule sets

    If the deployment has no internet access, the team uses the rules carried in the Security Onion ISO rather than pulling updates over the network. The airgap documentation states that the ISO carries YARA rules alongside NIDS and Sigma rules, and that updates arrive through the soup tool from newer ISO media. Confirm the rule version on the ISO matches what your change process approved before loading it. Done when the offline rules load into Detections and the version recorded in your change log matches the media.

  5. Test with known traffic

    The security engineer sends a controlled test file across a monitored path, using a sample that is known to match a loaded YARA rule and is safe to transfer in your environment. Use a benign test sample designed for detection testing, not live malware. Record the time, source, destination and file hash so you can trace the result. Done when the file is extracted, Strelka scans it, and the expected rule fires. If nothing appears, check that the transfer crossed a mirrored interface and that the protocol is one the sensor can parse.

  6. Confirm alerts reach the Console

    The SOC lead checks that the YARA match created in the test appears in the Console's Alerts view, with the file metadata and the rule name that fired. Compare the alert details against the test record from the previous step. Confirm the alert is visible to the analysts who will triage it, and that the event is searchable in Hunt. Done when the test alert shows in the Console with the correct rule, file hash and timestamps, and an analyst can open it from the normal triage workflow.

  7. Record the baseline and hand off

    The platform owner records the configuration that passed: the deployment type, sensor interfaces, rule set and version, and the test results. Store this record with the change ticket so later rule updates and upgrades can be compared against a known state. Confirm with the SOC which rules are in production and who approves future changes. Done when the baseline is filed, the on-call team knows the scanning scope, and the first live review of extracted-file alerts is scheduled.

How traffic becomes a scanned file alert

The flow starts with packets crossing a monitored link, which the sensor's Suricata and Zeek engines inspect. Zeek's file extraction hands file content to Strelka, which applies YARA rules and writes results to the grid's data store, where the Console surfaces them as alerts. The trust boundary sits between the sensor and the manager, so check what crosses it and what sensor-side logs and extracted files actually retain. Encrypted sessions stop at the point where no plaintext reaches the extractor, so plan visibility around that limit.

Traffic flows from sensor extraction through Strelka and YARA into the Console.

Where encrypted traffic limits file analysis

Passive sensors see only what crosses the wire, and most modern sessions wrap files in encryption before they reach a sensor. The cards below cover the questions to settle before you count on Strelka and YARA for files moving over encrypted channels, including where decryption is possible and whether it is lawful to do it.

Encrypted sessions hide file content

A passive Suricata or Zeek sensor sees TLS record data, not the plaintext of a file inside an HTTPS download. Strelka can only scan files that the sensor has reassembled from readable traffic, so files carried over TLS may never reach a YARA rule. Confirm, for each protocol in your environment, whether the sensor sees readable file content or only metadata such as certificates, sizes and hostnames.

Architecture docs

Decryption point must be chosen

If files must be inspected inside TLS, the traffic has to be decrypted before the sensor sees it, usually at a forward proxy or TLS-inspecting gateway that re-encrypts it. Decrypting moves the trust boundary to that device, so its certificate handling, key storage and logging become part of your file analysis design. Decide the decryption point first, then confirm the sensor can see the decrypted stream.

Legal and policy review before decryption

Decrypting employee or customer traffic can conflict with privacy law, labor agreements, sector rules and your own acceptable use policy. Set the scope in writing: which destinations, user groups and data classes are inspected, how long decrypted content is kept, and who can access it. Have legal and the data protection owner sign off before you enable any inspection point.

Bypass lists and pinned traffic

Some applications pin certificates or refuse connections through inspection devices, so decryption breaks them or silently skips them. Banking, update and certain SaaS traffic often falls into this group. Ask which destinations are excluded from decryption, record each exclusion with a reason, and check whether excluded flows are reviewed in some other way.

Verify coverage with test files

Before relying on file extraction, send known test files through each path you expect to inspect: plain HTTP, HTTPS through the decryption point, and any bypassed destination. Confirm that Strelka receives the file, that the YARA rule matches, and that the bypass is logged. Keep the results so you can show auditors which paths were covered and which were not.

Questions teams ask about Strelka file analysis and YARA

What drives the cost of running Strelka file analysis and YARA in Security Onion?

The main drivers are the number of rules you need to tune, the volume of files your sensors extract, the storage you keep for them, and whether your own staff or an outside partner does the work. Tuning effort depends on how many YARA rules you load and how many false positives your environment produces. Storage grows with extraction scope and retention, which is why extracted file retention should be decided before rollout. Ask any quote to separate one-time build work (sizing, installation, initial rule review) from recurring work (rule updates, review of new matches, retention checks) and to state who is paid for each part.

How long does it take to get the first useful file alert from Strelka?

No researched duration is available for this, so treat any timeline as something to confirm with the work plan. The first useful alert depends on whether the sensor is already capturing the traffic you care about, whether the Strelka and YARA rules are already loaded, and how quickly someone can review early matches for false positives. A team with a working Security Onion grid and clear file-type priorities will usually reach a first result sooner than a team still deciding on sensor placement. Ask the partner to name the milestones, including the first day that files are scanned and the first day that matches are reviewed by an analyst.

Does the client's team need to provide anything before file analysis work starts?

Yes, the work depends on access and decisions that only your organization can provide. You will need a Security Onion deployment or a clear plan for one, sensors placed where file transfers are visible, and access to the Console Detections interface for YARA rule management. Your team should also agree which file types matter, how long extracted files may be kept, and who may open or download flagged files. Named analysts who will review matches and approve suppressions are needed early, because tuning cannot finish without them. Confirm these inputs in the written scope so that gaps are not discovered during testing.

Can a small security team run Strelka and YARA on its own?

A small team can run it alone if it already operates Security Onion, has analysts who can read YARA rules, and accepts a continuing tuning workload. The Console Detections interface gives you a single place to modify, suppress and manage YARA rules loaded into Strelka, so no separate tool is required for day-to-day rule work. The harder parts are sensor sizing, storage planning and reviewing matches with enough context to separate malicious files from ordinary business traffic. If your team lacks one of these skills, or cannot staff rule review each week, an outside partner can take on the build and the handover. Decide this based on your staffing, not on the tool alone.

What limits does encrypted traffic place on file extraction?

Files carried inside encrypted sessions cannot be inspected by Strelka unless the traffic is decrypted before it reaches the sensor, and that decryption is outside the scope of the Security Onion file pipeline itself. In practice, file analysis covers unencrypted protocols and any sessions where you have a legitimate decryption point. Teams should confirm which protocols are visible on each sensor, document the blind spots for auditors, and avoid assuming full coverage. Any decryption design needs legal, privacy and network review before it is built, and it should be recorded as a known limit in your risk register.

How do YARA rule tuning and deduplication affect storage and analyst workload?

Broad YARA rules generate more matches, which increases analyst review time, and repeated copies of the same file can inflate storage and duplicate alerts. Tuning narrows rules to the file types and patterns you care about, and suppressions stop known benign matches from reappearing. Deduplication reduces repeated storage of identical files, but you should confirm how your Security Onion version handles it before relying on it for capacity planning. Ask your partner to show the tuning log, the suppression list and the storage forecast together, so that each rule change can be traced to its effect on volume.

What should we check when a YARA rule update changes behavior after an upgrade?

Check the rule set version, the Strelka version and the list of suppressions before and after the upgrade, then replay a known set of test files through the pipeline. Security Onion 3.0.0 was released on March 31, 2026 and supports only Oracle Linux 9, so confirm your operating system and upgrade path before planning rule changes. Compare match counts for the same test set, and review any file type that changed classification. Keep a rollback plan and record who approved the change, since rule updates can alter alert volume without any visible error.

How DeployOpen scopes Strelka and YARA work

DeployOpen scopes Strelka and YARA work in writing before any sensor or rule changes begin. The written scope names the Security Onion deployment type, the sensors and interfaces where file extraction is enabled, the file types and protocols in scope, the YARA rule sources you approve, and who on your side owns the alert queue that file detections feed into. Because most engagements are fixed-scope, the deliverables and timeline are agreed on that document, and a quote follows from it. Ask for the scope to state which Strelka scanners are enabled and which are left off, since that choice drives storage and alert volume more than any other setting.

Before configuration, DeployOpen reviews where file-bearing traffic is visible to your sensors and how the Detections interface will be used for YARA rules, including who may modify, suppress or threshold them. The review also covers whether your environment can carry the extracted-file storage the agreed retention implies, and whether encrypted protocols limit what can be inspected. Confirm with your own network team which segments are mirrored to each sensor, because a sensor that never sees a file transfer cannot extract it, whatever rules are loaded. Any open question on storage or visibility should be resolved in the scope rather than discovered during tuning.

The handover includes the configuration as delivered, a record of the test files and transfers used to verify extraction and YARA matches, and notes on the tuning decisions taken, so your team can reproduce the results. DeployOpen does not promise a detection rate or a fixed number of findings, because those depend on your traffic and rule set. Ongoing support, rule review and upgrades can be taken on as a retainer, which is the usual route when your rule set changes often. Ask for the retainer terms in writing, including what is covered between Security Onion releases and how rule changes are approved.

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.