|
Re: False Positive: msg#00123security.ids.snort.sigs
At 04:42 PM 10/15/2004, nnposter@xxxxxxxxxxxxxxxxxxxxx wrote: This would be vulnerable to a false negative. Any larger ASN.1 sequence Hmm, what about going with a regex: pcre:"/.{5}[^\x04]{0,15}\x04\x00/" Broken up: .{5} - ignore first 5 bytes.. don't care what they are. [^\x04]{0,15} - 0-15 bytes of any byte except 0x04 \x04\x00 -followed by 0x04 0x00. This will basically find the first ASN.1 "Octet string" after the first 5 bytes in the packet, but before the 20th byte, and make sure it's not zero in length. Any following octet strings are ignored. This would fix the original poster's problem, but the question I'd have is "Is the first octet string always the community string? or can it appear elsewhere?" ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: False Positive: 00123, nnposter |
|---|---|
| Next by Date: | Colin Slevin/TRANSWARE/IE is out of the office.: 00123, Colin . Slevin |
| Previous by Thread: | Re: False Positivei: 00123, nnposter |
| Next by Thread: | Re: False Positive: 00123, Matt Kettler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |