Snort rule writing

blend ajazi via Snort-sigs <[email protected]>
Newsgroups gmane.comp.security.ids.snort.sigs
Message-ID <DU0P195MB1473224E5C5FCDD43B201073D7509@DU0P195MB1473.EURP195.PROD.OUTLOOK.COM>
Hello community,

I am wondering how to write snort rule which detects for example a ddos attack by analyzing the
"Source-to-destination packets per second"?
Here is an attempt for ddos attack on TCP (SYN flood)

alert tcp any any -> $HOME_NET 80 (flags: S; msg:"Possible DoS Attack Type : SYN
flood"; flow:stateless; sid:3; detection_filter:track by_dst, count 20, seconds 10;)


And which rule options do I use for defining the following?

Number of inbound connections per destination IP.
Number of inbound connections per source IP.
Maximum duration of aggregated records


Thank you so much

Best regards

Blend Ajazi

_______________________________________________
Snort-sigs mailing list
[email protected]
https://lists.snort.org/mailman/listinfo/snort-sigs

Please visit http://blog.snort.org for the latest news about Snort!

Please follow these rules: https://snort.org/faq/what-is-the-mailing-list-etiquette

Visit the Snort.org to subscribe to the official Snort ruleset, make sure to stay up to date to catch the most <a href=" https://snort.org/downloads/#rule-downloads">emerging threats</a>!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.