Skip to main content

Best Practices

Snort vs Suricata: Snort 3 and Suricata 8 Compared for a SOC

Snort 3.13 vs Suricata 8.0, from each project's docs: threading, rule keywords that change meaning, EVE JSON vs alert_json in a SIEM, rulesets and IPS.

Two streams of grey particles pass through two different lattice gates on a near-black background; a few caught particles glow amber
On this page

Snort vs Suricata is no longer a choice between one thread and many: Snort 3.13.2.0 and Suricata 8.0.8 both spread packets across threads, both are GPLv2 and their rules are close cousins. For a SOC the differences are the logs each one writes, the rulesets you can buy, and keywords that mean different things in each engine.

Most comparisons that rank for this query still describe Snort 2.9, including the "Differences From Snort" page in Suricata's own documentation, which says its references to Snort are to the 2.9 branch. This guide compares the two current versions using the documentation and source code each project publishes, and it is written for the person who reads the alerts, writes the occasional local rule, and has to get the output into a SIEM.

Snort 3 vs Suricata 8 at a glance

Snort 3Suricata 8
Version checked3.13.2.0, released November 5, 20268.0.8, released October 29, 2026
LicenseGPLv2GPLv2
ThreadingMultiple packet threads (-z, --max-packet-threads)Multithreaded runmodes: workers, autofp, single
ConfigurationLua (snort.lua)YAML (suricata.yaml)
Rule headerFull header, or a service rule such as alert http (...) with no addresses or portsFull header with protocol, addresses, ports and direction
BuffersAll buffers are sticky (http_uri; before content)Sticky buffers with dotted names (http.uri;); legacy modifiers still documented
Protocol keywords in rulesDeep HTTP set (http_param, http_header:field user-agent), js_data, vba_data, ssl_stateHTTP, DNS, TLS, JA3/JA4, SMB, Kerberos, LDAP, SIP and more as sticky buffers
Alert outputalert_json, alert_fast, unified2 and othersEVE JSON with alert, protocol, file and flow events
Main rulesetsTalos Community, Registered, Subscriber; ET Open in Snort 2 syntaxET Open (default in suricata-update), ET Pro, other sources
Inline IPSDAQ modules such as afpacket in inline modeNFQUEUE, AF_PACKET IPS mode, DPDK, Netmap; separate firewall mode (still changing)

Sources for every row are linked in the sections below.

What this comparison is based on

Versions were checked on November 26, 2026: Suricata 8.0.8 on its GitHub release page (October 29, 2026) and Snort 3.13.2.0 on snort.org/downloads and its GitHub release (November 5, 2026). The latest Talos rule update listed was the one from November 25. Suricata's "latest" documentation already points at the 9.0 development branch, so every Suricata link here goes to the 8.0.8 documentation instead. Snort links go to the Snort 3 Rule Writing Guide and to the 3.13.2.0 source tree.

Two limits. No rule or log line in this guide was run on either engine: they are built from each project's documented syntax and formats. And there are no throughput numbers: figures in other comparisons, such as Suricata at 10 Gbps on commodity hardware, come without a setup you could reproduce.

Both engines are multithreaded now

Some of the comparisons ranking for this query still say Suricata wins because Snort processes packets on one thread. That was true of Snort 2. The first feature in the Snort 3 README is "Support multiple packet processing threads", and the usage examples show --max-packet-threads 8 for reading a directory of pcaps and -z 2 for two interfaces.

Suricata's runmodes page says the engine is multithreaded and lists three modes: single, workers and autofp. It says workers generally performs best, with the NIC or driver balancing packets across threads that each run the whole pipeline, while autofp suits pcap files and some IPS setups.

So performance is a tuning question for both, decided by how packets are captured and which rules are loaded. If someone quotes you a winner, ask what traffic and hardware produced the number.

The configuration languages differ more than the threading does. Snort 3 reads Lua, so snort.lua can hold variables and logic. Suricata reads YAML. If your team keeps sensor configuration in Ansible or Git, both work; the Suricata file is easier to diff and template.

Rule format: same skeleton, different details

Both engines use the same shape: an action, a header, and options in brackets. The Suricata 8.0.8 rule format page describes a header with protocol, source and destination addresses, ports and a direction. Snort 3 accepts that too, and adds service rules: a header with only the action and the service, such as alert http (, which matches any traffic Snort identifies as HTTP on any port.

Here is one detection written for each engine from the documented syntax. It alerts on a POST to an admin upload script. It was written for this guide and not run on either engine.

# Snort 3
alert http (msg:"LOCAL POST to admin upload script"; flow:established,to_server; http_method; content:"POST"; http_uri; content:"/admin/upload.php",fast_pattern,nocase; classtype:web-application-attack; sid:1000101; rev:1;)
 
# Suricata 8
alert http any any -> $HOME_NET any (msg:"LOCAL POST to admin upload script"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/admin/upload.php"; fast_pattern; nocase; classtype:web-application-attack; sid:1000101; rev:1;)

The two versions differ in three places. Snort's service header drops the addresses. Snort writes content modifiers inside the content option, separated by commas (nocase and fast_pattern docs), while Suricata writes them as separate keywords. And the buffer names change: http_method and http_uri against http.method and http.uri.

The http_uri trap

The renamed buffers are where copied rules break. The Snort 3 HTTP options page says most HTTP options "are sticky buffers, as opposed to content-modifiers like they were in Snort 2", so http_uri; goes before the content it applies to.

The Suricata 8.0.8 rule format page documents http_uri the other way round: "The older style 'content modifiers' look back in the rule, e.g.:" followed by content:"index.php"; http_uri;, where the pattern before the keyword is moved to the URI buffer. The current sticky buffer in Suricata is http.uri.

Paste the Snort 3 rule above into Suricata 8.0.8 and it does not load: http_method; has no content before it to modify, and content:"...",fast_pattern,nocase; is Snort's comma syntax. The harder case is a Snort 3 rule that does load with another meaning. In content:"upload"; http_uri; content:"/admin/"; Snort 3 looks for upload in the packet data and /admin/ in the URI. Suricata's documented meaning moves upload into the URI and leaves /admin/ in the default payload. The fix is mechanical: never copy a Snort 3 rule into Suricata without renaming the buffers. Snort 2 rules, which put modifiers after the content, line up with Suricata's legacy modifiers; Snort 3 rules need every buffer renamed.

Keyword translation table (per the docs)

How common rule keywords map between the two engines, per the Snort 3 Rule Writing Guide and the 3.13.2.0 reference manual on one side and the Suricata 8.0.8 documentation on the other. "Not listed" means the option does not appear in that version's documentation, which is not proof the job is impossible: in Snort you can often match the same bytes with content in the packet data.

What you want to matchSnort 3.13Suricata 8.0.8Notes
Normalized URIhttp_uri; (sticky)http.uri; (sticky)Suricata's http_uri is a look-back modifier
Raw URIhttp_raw_uri;http.uri.raw;Snort 3 also offers URI selectors such as http_uri:path;
Request methodhttp_method;http.method;
One headerhttp_header:field user-agent;http.user_agent; and other per-header buffers
Request bodyhttp_client_body;http.request_body;
File or response bodyfile_data;file.data;
Buffer lengthbufferlenbsize, urilenSnort 3 replaced urilen with bufferlen
DNS query nameNot listeddns.query;, dns.queries.rrname;
TLS server name (SNI)Not listed; ssl_state:client_hello; plus contenttls.sni;Suricata renamed tls_sni to tls.sni
TLS client fingerprintNot listedja3.hash;, ja4.hash;Enabled when a loaded rule needs it, unless switched off
State across packetsflowbits:set,name;flowbits:set,name;Same keyword, same idea
Arithmetic on extracted bytesbyte_mathbyte_mathBoth also have byte_test, byte_jump, byte_extract
Content optionscontent:"x",nocase,fast_pattern;content:"x"; nocase; fast_pattern;Commas inside the option in Snort 3

The Snort column's "not listed" rows were checked against the full option list in the 3.13.2.0 reference manual, which has HTTP, SIP, DCE/RPC, SSL state and industrial protocol options but no DNS name or SNI buffer. For a SOC that is the biggest practical gap: domain IOCs are matched against DNS queries and TLS server names, and in Suricata each is one sticky buffer away.

Suricata rules: where to get them and how to write one

ET Open, the free Proofpoint ruleset, is where Suricata starts by default. The suricata-update documentation says running sudo suricata-update with no arguments downloads ET Open into /var/lib/suricata/rules/ and merges everything into one suricata.rules file. suricata-update list-sources shows the other sources it knows, including the paid ET Pro set, and enable.conf and disable.conf turn individual rules or groups on and off. ET Open's folders were last updated on November 25, 2026 when this was written.

Writing your own is the faster way to learn the syntax. A local rule that flags TLS connections to one domain:

alert tls $HOME_NET any -> $EXTERNAL_NET any (msg:"LOCAL TLS to suspicious update domain"; flow:established,to_server; tls.sni; content:"update-check.example"; endswith; nocase; classtype:trojan-activity; sid:1000201; rev:1;)

Read it left to right: action alert, application protocol tls, from your network to anywhere, client to server. tls.sni sets the buffer to the server name in the Client Hello, content with endswith matches the domain at the end of that name, and sid and rev identify the rule in every alert it produces.

To catch the lookup instead of the connection, write the same check against DNS. Leave flow:established out: the flow keywords page says that for UDP a flow only counts as established "after seeing traffic from both sides of the connection", and the query is the first packet.

alert dns $HOME_NET any -> any any (msg:"LOCAL DNS lookup of suspicious update domain"; dns.query; content:"update-check.example"; endswith; nocase; classtype:trojan-activity; sid:1000202; rev:1;)

Put local rules in their own file, add it under rule-files in suricata.yaml or pass it with -s, and run suricata -T, which the command line options page describes as "Test configuration", before you reload. -S loads a rules file exclusively, which is handy when you test one rule against a pcap.

If you came from Suricata 7, two notes from the 8.0 upgrade guide matter for rule writers. The same ruleset can produce more alerts in 8.0 if you use many stream or payload rules, because Suricata triggers TCP reassembly earlier. And a rule whose requires keyword names an unknown requirement is no longer loaded.

For detection logic you want to run in the SIEM instead of on the sensor, the Sigma rules guide covers the log-side equivalent.

Snort rules: Community, Registered and Subscriber

Talos publishes three Snort rule sets that differ in price and in how late the free ones arrive. From Talos's rule set FAQ and product page, checked on November 26, 2026:

SetCostDelayConditions
CommunityFree, no registrationNoneGPLv2, updated daily, a subset of Subscriber
RegisteredFree with a snort.org account30 days behind SubscriberFree for individuals and businesses; integrators may not use it
Subscriber, Personal$29.99 a yearNoneHome network or educational use only
Subscriber, Business$399 per sensor a yearNoneThe set Talos builds for Cisco's NGIPS customers

Talos says the Registered and Subscriber sets are generally updated on Tuesdays and Thursdays. The downloads page lists Snort 3 snapshots of both, next to the Snort 2.9 ones. ET Open is also published in Snort folders, but those rules use Snort 2 syntax (content:"/imc/login.jsf"; nocase; http_uri; in the snort-edge rules), so on Snort 3 they need converting before they load as written.

Talos writes for Snort, and the Registered and Subscriber sets come under the Snort Subscriber Rule Set License, not an open license. If you want Talos coverage on a Suricata sensor, read that license first.

What lands in your SIEM: EVE JSON vs alert_json

Suricata writes everything, alerts and protocol records, to EVE JSON. Snort 3 has several alert loggers; alert_json is the one you would point at a SIEM.

Below is the same alert, the POST rule from earlier, in each engine's documented format.

Simulated example generated by SOCSimulator Research. These lines follow the formats documented by each project and were not captured from a running sensor. Addresses come from documentation and private ranges.

Suricata 8 EVE alert:

{"timestamp":"2026-11-24T15:02:11.640218+0000","flow_id":894211503377415,"event_type":"alert","src_ip":"203.0.113.77","src_port":51832,"dest_ip":"10.40.2.18","dest_port":80,"proto":"TCP","pkt_src":"wire/pcap","tx_id":0,"alert":{"action":"allowed","gid":1,"signature_id":1000101,"rev":1,"signature":"LOCAL POST to admin upload script","category":"Web Application Attack","severity":1},"http":{"hostname":"intranet.corp.example","url":"/admin/upload.php","http_user_agent":"python-requests/2.32.3","http_method":"POST","protocol":"HTTP/1.1"},"app_proto":"http","direction":"to_server"}

Snort 3 alert_json with the default fields:

{ "timestamp" : "11/24-15:02:11.640218", "pkt_num" : 412, "proto" : "TCP", "pkt_gen" : "stream_tcp", "pkt_len" : 612, "dir" : "C2S", "src_ap" : "203.0.113.77:51832", "dst_ap" : "10.40.2.18:80", "rule" : "1:1000101:1", "action" : "allow" }

Field by field, this is what changes when you build the parser:

Question in triageSuricata EVESnort 3 alert_json (default)
Which rule fired?alert.signature_id and alert.signature (the message)rule as one gid:sid:rev string, no message
When?ISO 8601 with year and offsetMM/DD-HH:MM:SS.uuuuuu, local time, no year
Who talked to whom?Separate src_ip, src_port, dest_ip, dest_portsrc_ap and dst_ap as address:port
Was it blocked?alert.action: allowed or blockedaction: allow, drop, would_drop, block...
What was the request?http object in the same eventNot in the alert
What else happened in the session?Same flow_id on http, dns, tls, fileinfo, flow eventsNot linked by default

No message by default. The 3.13.2.0 reference manual gives the default alert_json.fields as timestamp pkt_num proto pkt_gen pkt_len dir src_ap dst_ap rule action. msg, class, priority, src_addr, src_port, service and about forty more are available, but only if you list them. A SIEM fed with the defaults shows analysts a rule number and nothing else.

A timestamp without a year. The timestamp code prints month, day and time in local time. output.show_year (or -y) adds a two-digit year and process.utc (or -U) switches to UTC. Without both, your SIEM guesses the year and the time zone, and every sensor in another region is hours off in a timeline.

would_drop is not a drop. The action strings include would_drop, which Snort logs when a drop rule fires but the sensor cannot enforce it, for example in passive mode. The alert logging guide shows exactly that for a drop rule run against a pcap. Suricata's allowed on a passive sensor has the same meaning: the alert tells you nothing about whether the attack worked. The IDS glossary entry walks through that field in a worked triage example.

Correlation. Suricata's flow_id links an alert to every other EVE record of the session, and the optional community-id field (off by default in the EVE output settings) gives you a flow hash that matches Zeek. If you upgrade from 7.0, re-test your DNS parser: the 8.0 upgrade guide says DNS logging changed to be consistent across requests, responses and alerts.

The legacy option is unified2, a binary format that needs a converter before any SIEM can read it; Snort 3 still has it, with a legacy_events switch for barnyard2. If you are choosing a SIEM to receive either feed, the open source SIEM tools comparison covers the stacks built around Suricata, such as Security Onion.

Running inline as an IPS

Neither engine blocks anything until it sits in the traffic path. Out of band, on a SPAN port or tap, both are intrusion detection systems; inline, they become intrusion prevention systems and drop rules start dropping.

  • Snort 3 gets packets through its DAQ library. The usage guide runs it inline with --daq afpacket -i "eth0:eth1", and the ips.mode setting takes tap, inline or inline-test. Inline-test is the safe rollout step: drop rules log would_drop instead of dropping.
  • Suricata 8 documents several inline paths on Linux: NFQUEUE, where iptables or nftables hand packets to Suricata started with -q 0, and layer 2 modes (AF_PACKET IPS, DPDK and Netmap) that copy packets between two interfaces with no firewall rules. The 8.0 upgrade notes add that AF_PACKET now defaults to defrag off for inline mode with cluster_flow.

Suricata 8 also documents a firewall mode: a separate ruleset with a default policy of drop and a new accept action, evaluated before the threat detection rules. The page itself warns that the feature's behavior is still subject to change, so treat it as something to try in a lab for now.

Whichever engine you run inline, a bad rule now drops production traffic. Enforce a small, high-confidence subset and leave the rest in alert mode.

Which one to choose

Pick by where you are starting from.

Your situationLean towardsWhy
Analysts triage network alerts in a SIEM and need contextSuricataEVE JSON carries HTTP, DNS, TLS and file records linked by flow_id
You want DNS, SNI or JA4 IOCs in rulesSuricatadns.query, tls.sni and ja4.hash are documented sticky buffers; Snort 3.13 lists none of them
You already pay for Talos rulesSnort 3Subscriber rules arrive first and are written for Snort
Your threats are web and document payloadsEither; compare the keyword pagesSnort 3 documents http_param, header field selectors, js_data and vba_data
You maintain a library of Snort 2 rulesSuricata, or Snort 3 after conversionSuricata's rule format page still documents the old modifier style; Snort 3 needs every buffer moved
You are building a home lab to learnSuricata first, Snort 3 secondET Open plus EVE gives you more to read; Snort teaches the Talos side

You can also run both. The same tap can feed both, and a network detection and response stack can pair an IDS for signatures with Zeek or flow data for everything the signatures miss. Either way, normalize both feeds to the same field names in the SIEM so one query covers both.

Practice the analyst side

Installing either engine in a home lab teaches you configuration and rule writing. The skill interviews probe is the next step: an alert fires, and you decide in a few minutes whether it is real. An IDS alert can be a false positive or an attempt that failed, and the alert triage guide covers the order of questions to ask.

When an alert points at a host, go to the packets. The Wireshark filters cheat sheet has the display filters for beaconing, DNS tunneling and exfiltration that confirm or kill an IDS hit, and the command and control traffic playbook covers what to pull next from proxy, DNS, firewall and endpoint process data. The SOC tools guide shows where the IDS sits next to the SIEM and EDR you will use on shift.

Practice the triage that follows an IDS alert

Work network and endpoint alerts across realistic SIEM, XDR and Firewall consoles and get scored on every call. The free tier includes all three.

Start training now

Frequently asked questions

Snort 3 vs Suricata: which one should I learn first?

Learn the one your target employer runs, and if you don't know, start with Suricata. Its EVE JSON alerts carry the HTTP, DNS and TLS details of the session, which is what you read during triage. The rule language is close enough that moving to the second engine is mostly renaming: the main things to relearn are the sticky buffer names (http_uri in Snort 3, http.uri in Suricata 8) and the output format.

What are some Suricata rules examples?

Two rules written for this guide from the documented syntax, not run on a sensor. One alerts on TLS connections to one domain: alert tls $HOME_NET any -> $EXTERNAL_NET any (msg:"LOCAL TLS to suspicious domain"; flow:established,to_server; tls.sni; content:"update-check.example"; endswith; nocase; sid:1000201; rev:1;). The other on an HTTP upload: alert http any any -> $HOME_NET any (msg:"LOCAL POST to admin upload script"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/admin/upload.php"; nocase; sid:1000101; rev:1;). For hundreds of real examples, read the ET Open rules that suricata-update downloads.

How do I write a Suricata rule?

Start with the action (alert, drop, pass, reject), then the header (protocol, source, ports, direction, destination), then options in brackets. Put a sticky buffer such as http.uri, dns.query or tls.sni before each content match, add flow:established,to_server for TCP client traffic (leave it off DNS rules over UDP: Suricata only treats a UDP flow as established after it has seen traffic from both sides), and give it a sid from your local range plus rev:1. Save it to a local.rules file listed in suricata.yaml and run suricata -T to check that the configuration and rules load before you restart.

What does a Suricata EVE JSON alert contain?

One JSON object per line with event_type alert, the five-tuple (src_ip, src_port, dest_ip, dest_port, proto), a flow_id, an alert object with action, gid, signature_id, rev, signature, category and severity, and the app-layer record of the session, such as an http object with hostname, url, method and status. The flow_id links the alert to the http, dns, fileinfo and flow events of the same session in the same file.

How do I run Suricata in IPS mode?

On Linux, either send traffic to Suricata through an iptables or nftables NFQUEUE rule and start it with -q 0, or run it at layer 2 with AF_PACKET in IPS copy mode between two dedicated interfaces, which needs no firewall rules. Then change the rules you want to enforce from alert to drop. A drop rule on a passive sensor only logs.

Are Snort community rules free?

Yes. Talos describes the Community Ruleset as GPLv2, updated daily, a subset of the Subscriber set, and downloadable without registering. The Registered set is also free after you create a snort.org account, but runs 30 days behind the paid Subscriber set, which costs $29.99 a year for personal use or $399 per sensor a year for business use.

NG

Written by

Nerea Guallar

Marketing, SOCSimulator

Nerea writes SOCSimulator's guides for people starting or growing a career in security operations: how Windows authentication shows up in the logs (NTLM vs Kerberos), and which tools a T1, T2 or T3 analyst opens first. Each guide is built around the questions a new analyst actually has on shift, with real event IDs and queries to practice on.

Field notes

New walkthroughs and detections, in your inbox

A short email when we publish something worth your time. No spam, unsubscribe in one click.

Community

Continue the conversation

Discuss this with analysts who are actively training and working in the field.

Join the community