Solved

Testing snort rules

Posted on 2010-11-16
1
1,001 Views
Last Modified: 2013-11-29
When designing a packet to test snort rules, does that packet need to contain all the content listed in the rule. For example a rule that has content:"|C8 4F 32 4B 70 16 D3 01 12 78 5A 47 BF 6E E1 88|"; content:"|00 2E 00 2E 00 5C 00 2E 00 2E 00 5C|"; flags:A+; etc.....?

Thanks
0
Comment
Question by:progjm
1 Comment
 
LVL 62

Accepted Solution

by:
btan earned 500 total points
ID: 34152965
check out 2.3.9  Content

@ http://ebook.security-portal.cz/book/snort/writing_rules/chap2.html

Whenever a content option pattern match is performed, the Boyer-Moore pattern match function is called and the (rather computationally expensive) test is performed against the packet contents. If data exactly matching the argument data string is contained anywhere within the packet's payload, the test is successful and the remainder of the rule option tests are performed. Be aware that this test is case sensitive.

Also note option such as 2.3.10  Offset, 2.3.11  Depth and 2.3.12  Nocase that would impact the content matching. 2.3.23  Content-list would be of interest as well as it allows multiple content strings to be specified in the place of a single content option
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are the five steps I suggest to every sysadmin to fix the fall-out from a security breach.
Data breaches are on the rise, and companies are preparing by boosting their cybersecurity budgets. According to the Cybersecurity Market Report (http://www.cybersecurityventures.com/cybersecurity-market-report), worldwide spending on cybersecurity …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question