# Rules

**URL:** https://forum.suricata.io/c/rules/9.md

[Latest](https://forum.suricata.io/latest.md) · [Categories](https://forum.suricata.io/categories.md) · [Tags](https://forum.suricata.io/tags.md)

---

## [About the Rules category](https://forum.suricata.io/t/about-the-rules-category/24)

<div class="topic-metadata">

**Author:** [@vjulien](https://forum.suricata.io/u/vjulien)\
**Replies:** 0\
**Last updated:** [March 16, 2020, 3:23pm UTC](https://forum.suricata.io/t/about-the-rules-category/24 "2020-03-16T15:23:51Z")

</div>

Discussion of Suricata Rules/Signatures. To report an issue with the Emerging Threats rulesets, please go to: https://feedback.emergingthreats.net/ For Emerging Threats specific rule discussion please go to: https://…

---

## [Suricata 8.0.7 "unknown rule keyword 'file.magic'](https://forum.suricata.io/t/suricata-8-0-7-unknown-rule-keyword-file-magic/6479)

<div class="topic-metadata">

**Author:** [@miltsiem](https://forum.suricata.io/u/miltsiem)\
**Replies:** 2\
**Last updated:** [October 4, 2026, 7:56pm UTC](https://forum.suricata.io/t/suricata-8-0-7-unknown-rule-keyword-file-magic/6479 "2026-10-04T19:56:42Z")

</div>

Hi there! Please help. I am new to Suricata and I installed Suricata 8.0.7 from source on Debian Trixie 13 and all folders are under /usr/local/… I RTFM, actually sections of it to get Suricata installed and basically …

---

## [How i can use byte\_math only with variable](https://forum.suricata.io/t/how-i-can-use-byte-math-only-with-variable/6021)

<div class="topic-metadata">

**Author:** [@SamFreeman](https://forum.suricata.io/u/SamFreeman)\
**Replies:** 16\
**Last updated:** [August 21, 2026, 1:01pm UTC](https://forum.suricata.io/t/how-i-can-use-byte-math-only-with-variable/6021 "2026-08-21T13:01:07Z")

</div>

I want extract 1 byte with byte\_extract. Then variable from byte\_extract use in byte\_math for calculate. But in documentation says that: byte\_math:bytes | , offset , oper , rvalue , \\ result \<result\_var\> \[, relative…

---

## [Why ET rules used hex bytes instead of the original characters?](https://forum.suricata.io/t/why-et-rules-used-hex-bytes-instead-of-the-original-characters/6438)

<div class="topic-metadata">

**Author:** [@SamFreeman](https://forum.suricata.io/u/SamFreeman)\
**Replies:** 3\
**Last updated:** [August 20, 2026, 8:50am UTC](https://forum.suricata.io/t/why-et-rules-used-hex-bytes-instead-of-the-original-characters/6438 "2026-08-20T08:50:56Z")

</div>

Hello everyone! While studying the rules from Emerging Threats, I noticed one peculiarity. In the rules, instead of the original symbols (for example, “.”) their hexadecimal byte values are used. Example Rules: alert…

---

## [Suricata update rules on Windows](https://forum.suricata.io/t/suricata-update-rules-on-windows/3655)

<div class="topic-metadata">

**Author:** [@azazaza.over90000](https://forum.suricata.io/u/azazaza.over90000)\
**Replies:** 3\
**Last updated:** [August 11, 2026, 12:33pm UTC](https://forum.suricata.io/t/suricata-update-rules-on-windows/3655 "2026-08-11T12:33:47Z")

</div>

Hello everyone! Tell me, please, how can I set the automatic update of the rules for Suricata on the Windows OS? On Linux, you can use suricata-update, but what about Windows?

---

## [Rule counters profiling](https://forum.suricata.io/t/rule-counters-profiling/6378)

<div class="topic-metadata">

**Author:** [@user555](https://forum.suricata.io/u/user555)\
**Replies:** 0\
**Last updated:** [June 29, 2026, 7:36pm UTC](https://forum.suricata.io/t/rule-counters-profiling/6378 "2026-06-29T19:36:12Z")

</div>

Hello. Are there any ways to access these counters while Suricata is running? For example, via suricatasc. I didn’t find any information about this in the documentation, although it is assumed that the counters exist.

---

## [How to detect HTTPS traffic without decryption?](https://forum.suricata.io/t/how-to-detect-https-traffic-without-decryption/6353)

<div class="topic-metadata">

**Author:** [@Jacob\_Fang](https://forum.suricata.io/u/Jacob_Fang)\
**Replies:** 2\
**Last updated:** [June 7, 2026, 7:48am UTC](https://forum.suricata.io/t/how-to-detect-https-traffic-without-decryption/6353 "2026-06-07T07:48:49Z")

</div>

How can I use Suricata to detect and generate alerts for HTTPS traffic without decrypting it? 1. Do not use certificates.

---

## [Pcre vs content](https://forum.suricata.io/t/pcre-vs-content/6346)

<div class="topic-metadata">

**Author:** [@user555](https://forum.suricata.io/u/user555)\
**Replies:** 0\
**Last updated:** [May 26, 2026, 9:24pm UTC](https://forum.suricata.io/t/pcre-vs-content/6346 "2026-05-26T21:24:28Z")

</div>

Hello again! Sorry for being a nuisance, but I have another question. The documentation states that regular expressions are executed last, after content matches: https://docs.suricata.io/en/latest/rules/payload-keywords.…

---

## [Fast\_pattern field](https://forum.suricata.io/t/fast-pattern-field/6336)

<div class="topic-metadata">

**Author:** [@user555](https://forum.suricata.io/u/user555)\
**Replies:** 4\
**Last updated:** [May 26, 2026, 8:02pm UTC](https://forum.suricata.io/t/fast-pattern-field/6336 "2026-05-26T20:02:20Z")

</div>

Good afternoon, dear colleagues. Please explain why some signatures do not contain an explicitly specified fast\_pattern field?

---

## [High computational load due to poor choice of fast\_pattern](https://forum.suricata.io/t/high-computational-load-due-to-poor-choice-of-fast-pattern/6342)

<div class="topic-metadata">

**Author:** [@user555](https://forum.suricata.io/u/user555)\
**Replies:** 0\
**Last updated:** [May 23, 2026, 10:22pm UTC](https://forum.suricata.io/t/high-computational-load-due-to-poor-choice-of-fast-pattern/6342 "2026-05-23T22:22:55Z")

</div>

Hello, dear colleagues. While researching suricata rules profiling, I encountered a question that I cannot clarify without your experience and knowledge. Only one rule is loaded. alert tcp any any \<\> any any (flow:esta…

---

## [Alert limit and detection failure in Suricata](https://forum.suricata.io/t/alert-limit-and-detection-failure-in-suricata/6337)

<div class="topic-metadata">

**Author:** [@user555](https://forum.suricata.io/u/user555)\
**Replies:** 0\
**Last updated:** [May 23, 2026, 8:44am UTC](https://forum.suricata.io/t/alert-limit-and-detection-failure-in-suricata/6337 "2026-05-23T08:44:41Z")

</div>

Hello dear colleagues, I am testing rule performance and have encountered several problems. Could you please help me figure out if I am doing something wrong? The essence of the problem: I generated signatures (file s…

---

## [Is there a way to know from which source a rule is coming from based on its SID?](https://forum.suricata.io/t/is-there-a-way-to-know-from-which-source-a-rule-is-coming-from-based-on-its-sid/6223)

<div class="topic-metadata">

**Author:** [@moins20](https://forum.suricata.io/u/moins20)\
**Replies:** 2\
**Last updated:** [March 20, 2026, 10:24am UTC](https://forum.suricata.io/t/is-there-a-way-to-know-from-which-source-a-rule-is-coming-from-based-on-its-sid/6223 "2026-03-20T10:24:23Z")

</div>

Hello all, Is have recently installed a new Suricata and I am getting a lot of FP/uninteresting alerts with the SID 3301xxx. The metadata in the alerts do not indicate the source of the rules. I would like to know if t…

---

## [Suricata rule for matching domains](https://forum.suricata.io/t/suricata-rule-for-matching-domains/6204)

<div class="topic-metadata">

**Author:** [@broland96](https://forum.suricata.io/u/broland96)\
**Replies:** 0\
**Last updated:** [February 18, 2026, 4:13pm UTC](https://forum.suricata.io/t/suricata-rule-for-matching-domains/6204 "2026-02-18T16:13:27Z")

</div>

Hey guys! I’m new in Suricata. But i want to implement into my infra. I have an nginx reverse proxy and a lot of domain with ssl termination. I also have a captcha server, if a domain got a little higher traffic, i wa…

---

## [Is 'within' affected by 'distance'?](https://forum.suricata.io/t/is-within-affected-by-distance/1688)

<div class="topic-metadata">

**Author:** [@shyang](https://forum.suricata.io/u/shyang)\
**Replies:** 6\
**Last updated:** [February 5, 2026, 6:40am UTC](https://forum.suricata.io/t/is-within-affected-by-distance/1688 "2026-02-05T06:40:01Z")

</div>

According to the manual, ‘within’ is not affected by ‘distance’. The position of ‘within’ is constant regardless of the value of ‘distance’. https://suricata.readthedocs.io/en/suricata-6.0.1/rules/payload-keywords.html…

---

## [Reinspecting established HTTP session?](https://forum.suricata.io/t/reinspecting-established-http-session/6186)

<div class="topic-metadata">

**Author:** [@devilkin](https://forum.suricata.io/u/devilkin)\
**Replies:** 0\
**Last updated:** [January 30, 2026, 1:13pm UTC](https://forum.suricata.io/t/reinspecting-established-http-session/6186 "2026-01-30T13:13:23Z")

</div>

Hi, We’re currently investigating using Suricata (actually AWS Network Firewall, which uses Suricata under the hood) to block our users from pushing data to random Github repos. Since everything on github is unfortunat…

---

## [Problems with krb5 parser](https://forum.suricata.io/t/problems-with-krb5-parser/6121)

<div class="topic-metadata">

**Author:** [@s1ncr](https://forum.suricata.io/u/s1ncr)\
**Replies:** 6\
**Last updated:** [December 5, 2025, 1:55pm UTC](https://forum.suricata.io/t/problems-with-krb5-parser/6121 "2025-12-05T13:55:43Z")

</div>

I have pcap file with preauth kerberoasting sname-test.pcap (4.4 KB) And signature like this alert krb5 any any -\> any any (msg:"Kerberoasting attack with non-preauth"; krb5\_msg\_type:10; krb5\_sname; content:!"krbtgt";…

---

## [TCP/IP Header Length Calculation Rules using byte\_math](https://forum.suricata.io/t/tcp-ip-header-length-calculation-rules-using-byte-math/6128)

<div class="topic-metadata">

**Author:** [@Flying\_Sheep](https://forum.suricata.io/u/Flying_Sheep)\
**Replies:** 1\
**Last updated:** [December 3, 2025, 6:06am UTC](https://forum.suricata.io/t/tcp-ip-header-length-calculation-rules-using-byte-math/6128 "2025-12-03T06:06:46Z")

</div>

Please include the following information with your help request: Suricata version:8.0.1 Operating system and/or Linux distribution:ubuntu 25.04 How you installed Suricata:from source Hi, I‘m using suricata to identi…

---

## [Inquiry regarding Suricata Rule Behavior for HTTP Inspection in AWS Network Firewall](https://forum.suricata.io/t/inquiry-regarding-suricata-rule-behavior-for-http-inspection-in-aws-network-firewall/6109)

<div class="topic-metadata">

**Author:** [@TAIKI\_IRIE](https://forum.suricata.io/u/TAIKI_IRIE)\
**Replies:** 0\
**Last updated:** [November 13, 2025, 3:18pm UTC](https://forum.suricata.io/t/inquiry-regarding-suricata-rule-behavior-for-http-inspection-in-aws-network-firewall/6109 "2025-11-13T15:18:12Z")

</div>

We are planning to implement HTTP traffic inspection using Suricata-compatible rules within AWS Network Firewall. We have drafted the following two Suricata rules and would like to seek your expert opinion on whether the…

---

## [Suricata not detecting attacks on synthetic dataset](https://forum.suricata.io/t/suricata-not-detecting-attacks-on-synthetic-dataset/6097)

<div class="topic-metadata">

**Author:** [@Karl0Ken](https://forum.suricata.io/u/Karl0Ken)\
**Replies:** 0\
**Last updated:** [November 4, 2025, 12:09pm UTC](https://forum.suricata.io/t/suricata-not-detecting-attacks-on-synthetic-dataset/6097 "2025-11-04T12:09:45Z")

</div>

I am currently working on my thesis, where I need a set of suricata alerts, labeled with event type (benign, attack). For this, I’ve been using the cic-ids2017 data set (https://www.unb.ca/cic/datasets/ids-2017.html). I …

---

## [Whether if possible extracting groups matched in pcre to msg field](https://forum.suricata.io/t/whether-if-possible-extracting-groups-matched-in-pcre-to-msg-field/6079)

<div class="topic-metadata">

**Author:** [@Flying\_Sheep](https://forum.suricata.io/u/Flying_Sheep)\
**Replies:** 2\
**Last updated:** [October 29, 2025, 3:51am UTC](https://forum.suricata.io/t/whether-if-possible-extracting-groups-matched-in-pcre-to-msg-field/6079 "2025-10-29T03:51:02Z")

</div>

Hello everyone, I’m fairly new to Suricata and am looking to use it for asset discovery by analyzing pcap dumps from network switches. I’m wondering if it’s possible to extract specific matched groups (e.g., version num…

---

## [Suricata-update will fail closed if a source cannot be connected to - Snort.org is down right now](https://forum.suricata.io/t/suricata-update-will-fail-closed-if-a-source-cannot-be-connected-to-snort-org-is-down-right-now/6070)

<div class="topic-metadata">

**Author:** [@jonny5](https://forum.suricata.io/u/jonny5)\
**Replies:** 3\
**Last updated:** [October 20, 2025, 6:45pm UTC](https://forum.suricata.io/t/suricata-update-will-fail-closed-if-a-source-cannot-be-connected-to-snort-org-is-down-right-now/6070 "2025-10-20T18:45:29Z")

</div>

One, thank you all for all you do here, love the product and the support!! Two, it seems that parts of snort.org are down and so my suricata-update is attempting to reach out and download the latest version of snort’s v…

---

## [Question about Suricata rule on AWS Network firewall](https://forum.suricata.io/t/question-about-suricata-rule-on-aws-network-firewall/6053)

<div class="topic-metadata">

**Author:** [@awskore](https://forum.suricata.io/u/awskore)\
**Replies:** 0\
**Last updated:** [October 10, 2025, 6:13am UTC](https://forum.suricata.io/t/question-about-suricata-rule-on-aws-network-firewall/6053 "2025-10-10T06:13:50Z")

</div>

I’m using suricata rule on AWS Network firewall which associated with Spoke VPC Endpoints. Network flow is from Spoke VPC EC2 to VPC Endpoint(Inspection) and finally outbound through Spoke VPC NATGW. HTTP/HTTPS outboun…

---

## [S7Comm traffic not triggering Suricata alerts even though parser is registered](https://forum.suricata.io/t/s7comm-traffic-not-triggering-suricata-alerts-even-though-parser-is-registered/6046)

<div class="topic-metadata">

**Author:** [@let4rgo](https://forum.suricata.io/u/let4rgo)\
**Replies:** 4\
**Last updated:** [October 6, 2025, 12:29pm UTC](https://forum.suricata.io/t/s7comm-traffic-not-triggering-suricata-alerts-even-though-parser-is-registered/6046 "2025-10-06T12:29:17Z")

</div>

Hello everyone, I’m currently testing Suricata 8.0.0 with Siemens S7Comm traffic (port 102/tcp), but I’m having trouble getting any alert to trigger — even though the Rust s7comm parser appears to be correctly registere…

---

## [Unable to find list of taggable events](https://forum.suricata.io/t/unable-to-find-list-of-taggable-events/6013)

<div class="topic-metadata">

**Author:** [@bbarnett](https://forum.suricata.io/u/bbarnett)\
**Replies:** 2\
**Last updated:** [September 17, 2025, 3:30pm UTC](https://forum.suricata.io/t/unable-to-find-list-of-taggable-events/6013 "2025-09-17T15:30:15Z")

</div>

Looking for some info which I cannot seem to find. Any pointers to where I can find it, would be quite helpful. I see the following rules in ssh-events.rules: alert ssh any any -\> any any (msg:"SURICATA SSH invalid ba…

---

## [I have a question regarding byte\_test](https://forum.suricata.io/t/i-have-a-question-regarding-byte-test/5998)

<div class="topic-metadata">

**Author:** [@trymp](https://forum.suricata.io/u/trymp)\
**Replies:** 3\
**Last updated:** [September 13, 2025, 1:18pm UTC](https://forum.suricata.io/t/i-have-a-question-regarding-byte-test/5998 "2025-09-13T13:18:17Z")

</div>

packet data(hex):01 02 03 04 05 06 07 aa ff 0a alert udp any any -\> any any (msg:"sig01"; sid:20; rev:3; byte\_test:1,=,0x0a,9, bitmask 0x0a;) alert udp any any -\> any any (msg:"sig01"; sid:20; rev:3; byte\_test:1,=,0x0a,…

---

## [Drop.conf not working](https://forum.suricata.io/t/drop-conf-not-working/6012)

<div class="topic-metadata">

**Author:** [@Pulasthi91](https://forum.suricata.io/u/Pulasthi91)\
**Replies:** 0\
**Last updated:** [September 11, 2025, 7:29pm UTC](https://forum.suricata.io/t/drop-conf-not-working/6012 "2025-09-11T19:29:51Z")

</div>

Hi, Following is my drop.conf #drop rules containing a specific message pattern metadata: signature\_severity Major metadata: tag Dshield metadata: tag TA\_Abused\_Online\_Service metadata: tag Exploit metadata: tag …

---

## [I have question about byte\_math](https://forum.suricata.io/t/i-have-question-about-byte-math/6007)

<div class="topic-metadata">

**Author:** [@trymp](https://forum.suricata.io/u/trymp)\
**Replies:** 0\
**Last updated:** [September 10, 2025, 8:41am UTC](https://forum.suricata.io/t/i-have-question-about-byte-math/6007 "2025-09-10T08:41:24Z")

</div>

payload /\* 01 02 03 04 05 06 07 aa ff 0a 31 32 33 34 35 36 37 0a \*/ byte\_math:bytes 1, offset 13, oper +, rvalue 0, result var, bitmask 0xf0; var is 0x30 or 0x03 ??

---

## [Suricata rule to alert on older versions of TLS](https://forum.suricata.io/t/suricata-rule-to-alert-on-older-versions-of-tls/3325)

<div class="topic-metadata">

**Author:** [@RobertM](https://forum.suricata.io/u/RobertM)\
**Replies:** 4\
**Last updated:** [September 3, 2025, 6:39am UTC](https://forum.suricata.io/t/suricata-rule-to-alert-on-older-versions-of-tls/3325 "2025-09-03T06:39:35Z")

</div>

Hi, I’m trying to write Suricata rule that could alert on older versions of TLS. I’d like to detect whether TLS older than 1.2 is used for any egress traffic from my network to the Internet. I’m using AWS Network Firewa…

---

## [Applayer and flowbits issues](https://forum.suricata.io/t/applayer-and-flowbits-issues/5912)

<div class="topic-metadata">

**Author:** [@s1ncr](https://forum.suricata.io/u/s1ncr)\
**Replies:** 6\
**Last updated:** [August 25, 2025, 2:37pm UTC](https://forum.suricata.io/t/applayer-and-flowbits-issues/5912 "2025-08-25T14:37:37Z")

</div>

Run Suricata via jasonish/suricata:8.0.0-arm64-profiling docker in pcap mode I encounter some interesting problem with app protos and flowbits, lets say i have rules like this alert dcerpc any any -\> any any (msg:"dcer…

---

## [Don't understand how work byte\_jump with variable from byte\_extract](https://forum.suricata.io/t/dont-understand-how-work-byte-jump-with-variable-from-byte-extract/5968)

<div class="topic-metadata">

**Author:** [@SamFreeman](https://forum.suricata.io/u/SamFreeman)\
**Replies:** 2\
**Last updated:** [August 22, 2025, 12:18pm UTC](https://forum.suricata.io/t/dont-understand-how-work-byte-jump-with-variable-from-byte-extract/5968 "2025-08-22T12:18:07Z")

</div>

Hi everybody. frame 8. I need to find |be 01| this is the OpenSecureChanel ID, namely 446. “SecurityPolicyUri” is shown in green at number 2. These data have different lengths. they can reach up to 4096 bytes. There are…

[Next page](https://forum.suricata.io/c/rules/9.md?page=1)
