Snort regole uricontent

0

Sto riscontrando dei problemi che regolano le regole che controllerebbero il comportamento HTTP dell'utente (indirizzo della pagina, parametri POST / GET ..).

alert tcp any any -> any any (msg:"Alfa in uri"; flow:to_server,established; uricontent:"/alfa.html"; nocase; classtype:web-application-activity; sid:1000001;)

Ho pensato che questa regola avrebbe dovuto attivare un avviso quando l'utente accede al link Tuttavia non viene mai mostrato nel registro degli avvisi e Snort non stampa avvertendo che la regola non è stata corretta.

Sto interpretando erroneamente il significato di uricontent o richiede impostazioni aggiuntive?

EDIT: http_inspect configurazione da /etc/snort/snort.conf

# HTTP normalization and anomaly detection.  For more information, see README.http_inspect
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 BPROPFIND 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 750 \
    max_headers 100 \
    max_spaces 0 \
    small_chunk_length { 10 5 } \
    ports { 80 81 311 591 593 901 1220 1414 1830 2301 2381 2809 3128 3702 4343 5250 7001 7145 7510 7777 7779 8000 8008 8014 8028 8080 8088 8118 8123 8180 8181 8243 8280 8800 8888 8899 9080 9090 9091 9443 9999 11371 55555 } \
    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 no \
    bare_byte no \
    directory no \
    double_decode no \
    iis_backslash no \
    iis_delimiter no \
    iis_unicode no \
    multi_slash no \
    utf_8 no \
    u_encode yes \
    webroot no
    
posta Wolfer 10.06.2017 - 21:30
fonte

0 risposte

Leggi altre domande sui tag