Snort mailing list archives

Re: http_header usage


From: Cagri Ersen <cagri.ersen () gmail com>
Date: Tue, 22 Apr 2014 10:32:38 +0300

Hi again,

On Tue, Apr 22, 2014 at 3:35 AM, lists () packetmail net
<lists () packetmail net>wrote:


Without seeing your snort.conf, I believe the below should fire on every
HTTP
request:

alert tcp $HOME_NET any -> $EXTERNAL_NET $HTTP_PORTS (msg:"Test rule";
flow:to_server; content:"GET"; http_method; sid:1;)


No, I tried it too and it didn't work. Actually none of the http_keywords
work.

Here is the http_inspect section from snort.conf

preprocessor http_inspect: global iis_unicode_map unicode.map 1252
compress_depth 65535 decompress_depth 65535
preprocessor http_inspect_server: server default \
    http_methods { GET POST PUT SEARCH MKCOL COPY MOVE LOCK UNLOCK NOTIFY
POLL BCOPY BDELETE BMOVE LINK UNLINK OPTIONS HEAD DELETE TRACE TRACK
CONNECT SOURCE SUBSCRIBE UNSUBSCRIBE PROPFIND PROPPATCH BPROP
FIND BPROPPATCH RPC_CONNECT PROXY_SUCCESS BITS_POST CCM_POST SMS_POST
RPC_IN_DATA RPC_OUT_DATA RPC_ECHO_DATA } \
    chunk_length 500000 \
    server_flow_depth 0 \
    client_flow_depth 0 \
    post_depth 65495 \
    oversize_dir_length 500 \
    max_header_length 0 \
    max_headers 0 \
    max_spaces 0 \
    small_chunk_length { 10 5 } \
    ports { 36 80 81 82 83 84 85 86 87 88 89 90 311 383 555 591 593 631 801
808 818 901 972 1158 1220 1414 1741 1830 2231 2301 2381 2809 3029 3037 3057
3128 3443 3702 4000 4343 4848 5117 5250 6080 6173 69
88 7000 7001 7071 7144 7145 7510 7770 7777 7779 8000 8008 8014 8028 8080
8081 8082 8085 8088 8090 8118 8123 8180 8181 8222 8243 8280 8300 8500 8509
8800 8888 8899 9000 9060 9080 9090 9091 9111 9443 9999 1
0000 11371 12601 15489 29991 33300 34412 34443 34444 41080 44449 50000
50002 51423 53331 55252 55555 56712 } \
    non_rfc_char { 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 } \
    enable_cookie \
    extended_response_inspection \
    inspect_gzip \
    normalize_utf \
    unlimited_decompress \
    normalize_javascript \
    apache_whitespace no \
    ascii yes \
    bare_byte no \
    directory no \
    double_decode no \
    iis_backslash no \
    iis_delimiter no \
    iis_unicode no \
    multi_slash no \
    utf_8 yes \
    u_encode yes \
    webroot no

Thanks in advence.

-- 
Cagri Ersen
http://www.syslogs.org
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Snort-sigs mailing list
Snort-sigs () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-sigs
http://www.snort.org


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

Current thread: