Snort mailing list archives
Re: Question about searching in packet headers
From: Fedor Niskov via Snort-sigs <snort-sigs () lists snort org>
Date: Mon, 19 Oct 2020 15:17:09 +0300
Thank you for your advice; it seems to be a good idea, but unfortunately, when I try to do it, it doesn't work - 'content' in an IP rule doesn't see bytes in TCP header. What version of Snort do you use (mine is 2.9.7.0)? Maybe some additional rule options are required? 18.10.2020 18:56, Santosh Subramanya пишет:
Hi Fedor, To search in TCP header, you can use alert ip $EXTERNAL_NET instead of alert tcp EXTERNAL_NET. By using ip instead of tcp, snort starts searching patterns mention in signature from ip header. I hope this helps. Regards, Santosh Get Outlook for Android <https://aka.ms/ghei36> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ *From:* Snort-sigs <snort-sigs-bounces () lists snort org> on behalf of Fedor Niskov via Snort-sigs <snort-sigs () lists snort org> *Sent:* Sunday, October 18, 2020 12:16:24 AM *To:* snort-sigs () lists snort org <snort-sigs () lists snort org> *Subject:* [Snort-sigs] Question about searching in packet headers Hello, excuse me, I have a question about Snort rules: can I do search in packet headers? I know about the 'content' option, but it performs searching only in payload; however, I'd like to check presence of some byte sequences in headers. It would be useful to search in headers; for instance, I need to check some TCP options, but Snort non-payload rule options don't support it; if I could search for specific bytes in TCP header, I would be able to perform these checks. (Fedor Niskov) _______________________________________________ Snort-sigs mailing list Snort-sigs () lists snort org https://lists.snort.org/mailman/listinfo/snort-sigs <https://lists.snort.org/mailman/listinfo/snort-sigs> Please visit http://blog.snort.org <http://blog.snort.org> for the latest news about Snort! Please follow these rules: https://snort.org/faq/what-is-the-mailing-list-etiquette <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 <https://snort.org/downloads/#rule-downloads">emerging> threats</a>! ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Sophos Technologies Private Limited Regd. Office: Sophos House, Saigulshan Complex, Beside White House, Panchvati Cross Road, Ahmedabad - 380006, Gujarat, India CIN: U72200GJ2006PTC047857 Sophos Ltd, a company registered in England and Wales number 2096520, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United Kingdom.
_______________________________________________ Snort-sigs mailing list Snort-sigs () lists snort org 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>!
Current thread:
- Question about searching in packet headers Fedor Niskov via Snort-sigs (Oct 18)
- Re: Question about searching in packet headers Santosh Subramanya via Snort-sigs (Oct 18)
- Re: Question about searching in packet headers Fedor Niskov via Snort-sigs (Oct 19)
- Re: Question about searching in packet headers Santosh Subramanya via Snort-sigs (Oct 20)
- Re: Question about searching in packet headers Fedor Niskov via Snort-sigs (Oct 19)
- Re: Question about searching in packet headers Joel Esler (jesler) via Snort-sigs (Oct 20)
- Re: Question about searching in packet headers Santosh Subramanya via Snort-sigs (Oct 18)