Snort mailing list archives

Re: negation of appid keyword


From: greg.mcnathansonsnuf003 () gmx-topmail de
Date: Wed, 3 Dec 2014 21:47:03 +0100



I tried several options:
 
"appid: !http"
 
no error message, but also not the desired outcome. Maybe that rule fires only in case of an app identifier that 
matches "!http"
 
"appid: ! http"
 
no error messages, but also not the desired outcome. This rule fires always no matter what app is involved.
 
"!appid: http"
 
error message

Unknown rule option: '!appid'.
 
"![appid: http]"
 
error message
Unknown rule option: '![appid'.
 

Any ideas what I forgot?


Greg
 
 

Gesendet: Mittwoch, 03. Dezember 2014 um 17:41 Uhr
Von: "Joel Esler (jesler)" <jesler () cisco com>
An: "greg.mcnathansonsnuf003 () gmx-topmail de" <greg.mcnathansonsnuf003 () gmx-topmail de>
Cc: "snort users" <snort-users () lists sourceforge net>
Betreff: Re: [Snort-users] negation of appid keyword

I haven’t tried this, but did you try “appid: !firefox”; 
 
 
--
Joel Esler
Open Source Manager
Threat Intelligence Team Lead
Talos
 

On Dec 3, 2014, at 8:14 AM, greg.mcnathansonsnuf003 () gmx-topmail de wrote: 
Hello to all snort experts,

I'm wondering if one can create a rule using a negated appid specification.

For example: Block non http traffic over known http ports

block tcp any any -> any $HTTP_PORTS (msg:”openappid: non http activity detected over http port”; !appid: http; 
sid:1000000; rev:1;)


or block any traffic except of a specific app:

block tcp any any -> any any (msg:”openappid: non firefox traffic detected”; !appid: firefox; sid:1000000; rev:1;)


Unfortunately this will result in an error message:

FATAL ERROR: /etc/snort/rules/custom.rules(1) Unknown rule option: '!appid'.


Any help would be appreciated.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: