SHARE
TWEET

snort.conf

a guest Nov 30th, 2015 785 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #--------------------------------------------------
  2. #   VRT Rule Packages Snort.conf
  3. # #   For more information visit us at:
  4. #     http://www.snort.org                   Snort Website
  5. #     http://vrt-blog.snort.org/    Sourcefire VRT Blog
  6. #
  7. #     Mailing list Contact:      snort-sigs@lists.sourceforge.net
  8. #     False Positive reports:    fp@sourcefire.com
  9. #     Snort bugs:                bugs@snort.org #
  10. #     Compatible with Snort Versions:
  11. #     VERSIONS : 2.9.7.2
  12. #
  13. #     Snort build options:
  14. #     OPTIONS : --enable-gre --enable-mpls --enable-targetbased --enable-ppm --enable-perfprofiling --enable-zlib --enable-active-response --enable-normalizer --enable-reload --enable-react --enable-flexresp3
  15. #
  16. #     Additional information:
  17. #     This configuration file enables active response, to run snort in
  18. #     test mode -T you are required to supply an interface -i <interface>
  19. #     or test mode will fail to fully validate the configuration and
  20. #     exit with a FATAL error
  21. #--------------------------------------------------
  22.  
  23. ###################################################
  24. # This file contains a sample snort configuration.
  25. # You should take the following steps to create your own custom configuration:
  26. #
  27. #  1) Set the network variables.
  28. #  2) Configure the decoder
  29. #  3) Configure the base detection engine
  30. #  4) Configure dynamic loaded libraries
  31. #  5) Configure preprocessors
  32. #  6) Configure output plugins
  33. #  7) Customize your rule set
  34. #  8) Customize preprocessor and decoder rule set
  35. #  9) Customize shared object rule set
  36. ###################################################
  37.  
  38. ###################################################
  39. # Step #1: Set the network variables.  For more information, see README.variables
  40. ###################################################
  41.  
  42. # Setup the network addresses you are protecting
  43. #ipvar HOME_NET [192.168.1.0/24,10.8.0.0/24]
  44. ipvar HOME_NET [10.8.0.0/24,192.168.1.0/24]
  45.  
  46. # Set up the external network addresses. Leave as "any" in most situations
  47. ipvar EXTERNAL_NET any
  48.  
  49. # List of DNS servers on your network
  50. ipvar DNS_SERVERS $HOME_NET
  51.  
  52. # List of SMTP servers on your network
  53. ipvar SMTP_SERVERS $HOME_NET
  54.  
  55. # List of web servers on your network
  56. ipvar HTTP_SERVERS $HOME_NET
  57.  
  58. # List of sql servers on your network
  59. ipvar SQL_SERVERS $HOME_NET
  60.  
  61. # List of telnet servers on your network
  62. ipvar TELNET_SERVERS $HOME_NET
  63.  
  64. # List of ssh servers on your network
  65. ipvar SSH_SERVERS $HOME_NET
  66.  
  67. # List of ftp servers on your network
  68. ipvar FTP_SERVERS $HOME_NET
  69.  
  70. # List of sip servers on your network
  71. ipvar SIP_SERVERS $HOME_NET
  72.  
  73. # List of ports you run web servers on
  74. portvar HTTP_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,1533,1741,1830,1942,2231,2301,2381,2578,2809,2980,3029,3037,3057,3128,3443,3702,4000,4343,4848,5000,5117,5250,5600,5814,6080,6173,6988,7000,7001,7005,7071,7144,7145,7510,7770,7777,7778,7779,8000,8001,8008,8014,8015,8020,8028,8040,8080,8081,8082,8085,8088,8090,8118,8123,8180,8181,8182,8222,8243,8280,8300,8333,8344,8400,8443,8500,8509,8787,8800,8888,8899,8983,9000,9002,9060,9080,9090,9091,9111,9290,9443,9447,9710,9788,9999,10000,11371,12601,13014,15489,19980,29991,33300,34412,34443,34444,40007,41080,44449,50000,50002,51423,53331,55252,55555,56712]
  75.  
  76. # List of ports you want to look for SHELLCODE on.
  77. portvar SHELLCODE_PORTS !80
  78.  
  79. # List of ports you might see oracle attacks on
  80. portvar ORACLE_PORTS 1024:
  81.  
  82. # List of ports you want to look for SSH connections on:
  83. portvar SSH_PORTS 22
  84.  
  85. # List of ports you run ftp servers on
  86. portvar FTP_PORTS [21,2100,3535]
  87.  
  88. # List of ports you run SIP servers on
  89. portvar SIP_PORTS [5060,5061,5600]
  90.  
  91. # List of file data ports for file inspection
  92. portvar FILE_DATA_PORTS [$HTTP_PORTS,110,143]
  93.  
  94. # List of GTP ports for GTP preprocessor
  95. portvar GTP_PORTS [2123,2152,3386]
  96.  
  97. # other variables, these should not be modified
  98. ipvar AIM_SERVERS [64.12.24.0/23,64.12.28.0/23,64.12.161.0/24,64.12.163.0/24,64.12.200.0/24,205.188.3.0/24,205.188.5.0/24,205.188.7.0/24,205.188.9.0/24,205.188.153.0/24,205.188.179.0/24,205.188.248.0/24]
  99.  
  100. # Path to your rules files (this can be a relative path)
  101. # Note for Windows users:  You are advised to make this an absolute path,
  102. # such as:  c:\snort\rules
  103. var RULE_PATH /etc/snort/rules
  104. var SO_RULE_PATH ../so_rules
  105. var PREPROC_RULE_PATH ../preproc_rules
  106.  
  107. # If you are using reputation preprocessor set these
  108. var WHITE_LIST_PATH /etc/snort/rules
  109. var BLACK_LIST_PATH /etc/snort/rules
  110.  
  111. ###################################################
  112. # Step #2: Configure the decoder.  For more information, see README.decode
  113. ###################################################
  114.  
  115. # Stop generic decode events:
  116. config disable_decode_alerts
  117.  
  118. # Stop Alerts on experimental TCP options
  119. config disable_tcpopt_experimental_alerts
  120.  
  121. # Stop Alerts on obsolete TCP options
  122. config disable_tcpopt_obsolete_alerts
  123.  
  124. # Stop Alerts on T/TCP alerts
  125. config disable_tcpopt_ttcp_alerts
  126.  
  127. # Stop Alerts on all other TCPOption type events:
  128. config disable_tcpopt_alerts
  129.  
  130. # Stop Alerts on invalid ip options
  131. config disable_ipopt_alerts
  132.  
  133. # Alert if value in length field (IP, TCP, UDP) is greater th elength of the packet
  134. # config enable_decode_oversized_alerts
  135.  
  136. # Same as above, but drop packet if in Inline mode (requires enable_decode_oversized_alerts)
  137. # config enable_decode_oversized_drops
  138.  
  139. # Configure IP / TCP checksum mode
  140. config checksum_mode: all
  141.  
  142. # Configure maximum number of flowbit references.  For more information, see README.flowbits
  143. # config flowbits_size: 64
  144.  
  145. # Configure ports to ignore
  146. # config ignore_ports: tcp 21 6667:6671 1356
  147. # config ignore_ports: udp 1:17 53
  148. config ignore_ports: udp 51413 65535 49152 55903 36573 52887
  149. config ignore_ports: tcp 51413 65535 49152 55903 36573 52887
  150.  
  151. # Configure active response for non inline operation. For more information, see REAMDE.active
  152. # config response: eth0 attempts 2
  153.  
  154. # Configure DAQ related options for inline operation. For more information, see README.daq
  155. #
  156. # config daq: <type>
  157. # config daq_dir: <dir>
  158. # config daq_mode: <mode>
  159. # config daq_var: <var>
  160. #
  161. # <type> ::= pcap | afpacket | dump | nfq | ipq | ipfw
  162. # <mode> ::= read-file | passive | inline
  163. # <var> ::= arbitrary <name>=<value passed to DAQ
  164. # <dir> ::= path as to where to look for DAQ module so's
  165.  
  166. # Configure specific UID and GID to run snort as after dropping privs. For more information see snort -h command line options
  167. #
  168. # config set_gid:
  169. # config set_uid:
  170.  
  171. # Configure default snaplen. Snort defaults to MTU of in use interface. For more information see README
  172. #
  173. # config snaplen:
  174. #
  175.  
  176. # Configure default bpf_file to use for filtering what traffic reaches snort. For more information see snort -h command line options (-F)
  177. #
  178. # config bpf_file:
  179. #
  180.  
  181. # Configure default log directory for snort to log to.  For more information see snort -h command line options (-l)
  182. #
  183. # config logdir:
  184.  
  185.  
  186. ###################################################
  187. # Step #3: Configure the base detection engine.  For more information, see  README.decode
  188. ###################################################
  189.  
  190. # Configure PCRE match limitations
  191. config pcre_match_limit: 3500
  192. config pcre_match_limit_recursion: 1500
  193.  
  194. # Configure the detection engine  See the Snort Manual, Configuring Snort - Includes - Config
  195. config detection: search-method ac-split search-optimize max-pattern-len 20
  196.  
  197. # Configure the event queue.  For more information, see README.event_queue
  198. config event_queue: max_queue 8 log 5 order_events content_length
  199.  
  200. ###################################################
  201. ## Configure GTP if it is to be used.
  202. ## For more information, see README.GTP
  203. ####################################################
  204.  
  205. # config enable_gtp
  206.  
  207. ###################################################
  208. # Per packet and rule latency enforcement
  209. # For more information see README.ppm
  210. ###################################################
  211.  
  212. # Per Packet latency configuration
  213. #config ppm: max-pkt-time 250, \
  214. #   fastpath-expensive-packets, \
  215. #   pkt-log
  216.  
  217. # Per Rule latency configuration
  218. #config ppm: max-rule-time 200, \
  219. #   threshold 3, \
  220. #   suspend-expensive-rules, \
  221. #   suspend-timeout 20, \
  222. #   rule-log alert
  223.  
  224. ###################################################
  225. # Configure Perf Profiling for debugging
  226. # For more information see README.PerfProfiling
  227. ###################################################
  228.  
  229. #config profile_rules: print all, sort avg_ticks
  230. #config profile_preprocs: print all, sort avg_ticks
  231.  
  232. ###################################################
  233. # Configure protocol aware flushing
  234. # For more information see README.stream5
  235. ###################################################
  236. config paf_max: 16000
  237.  
  238. ###################################################
  239. # Step #4: Configure dynamic loaded libraries.  
  240. # For more information, see Snort Manual, Configuring Snort - Dynamic Modules
  241. ###################################################
  242.  
  243. # path to dynamic preprocessor libraries
  244. dynamicpreprocessor directory /usr/lib/snort_dynamicpreprocessor/
  245.  
  246. # path to base preprocessor engine
  247. dynamicengine /usr/lib/snort_dynamicengine/libsf_engine.so
  248.  
  249. # path to dynamic rules libraries
  250. dynamicdetection directory /usr/lib/snort_dynamicrules
  251.  
  252. ###################################################
  253. # Step #5: Configure preprocessors
  254. # For more information, see the Snort Manual, Configuring Snort - Preprocessors
  255. ###################################################
  256.  
  257. # GTP Control Channle Preprocessor. For more information, see README.GTP
  258. # preprocessor gtp: ports { 2123 3386 2152 }
  259.  
  260. # Inline packet normalization. For more information, see README.normalize
  261. # Does nothing in IDS mode
  262. #preprocessor normalize_ip4
  263. #preprocessor normalize_tcp: block, rsv, pad, urp, req_urg, req_pay, req_urp, ips, ecn stream
  264. #preprocessor normalize_icmp4
  265. #preprocessor normalize_ip6
  266. #preprocessor normalize_icmp6
  267.  
  268. # Target-based IP defragmentation.  For more inforation, see README.frag3
  269. preprocessor frag3_global: max_frags 65536
  270. preprocessor frag3_engine: policy windows detect_anomalies overlap_limit 10 min_fragment_length 100 timeout 180
  271.  
  272. # Target-Based stateful inspection/stream reassembly.  For more inforation, see README.stream5
  273. preprocessor stream5_global: track_tcp yes, \
  274.    track_udp yes, \
  275.    track_icmp no, \
  276.    max_tcp 262144, \
  277.    max_udp 131072, \
  278.    max_active_responses 2, \
  279.    min_response_seconds 5
  280. preprocessor stream5_tcp: policy windows, detect_anomalies, require_3whs 180, \
  281.    overlap_limit 10, small_segments 3 bytes 150, timeout 180, \
  282.     ports client 21 22 23 25 42 53 70 79 109 110 111 113 119 135 136 137 139 143 \
  283.         161 445 513 514 587 593 691 1433 1521 1741 2100 3306 6070 6665 6666 6667 6668 6669 \
  284.         7000 8181 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779, \
  285.     ports both 36 80 81 82 83 84 85 86 87 88 89 90 110 311 383 443 465 563 555 591 593 631 636 801 808 818 901 972 989 992 993 994 995 1158 1220 1414 1533 1741 1830 1942 2231 2301 2381 2578 2809 2980 3029 3037 3057 3128 3443 3702 4000 4343 4848 5000 5117 5250 5600 5814 6080 6173 6988 7907 7000 7001 7005 7071 7144 7145 7510 7802 7770 7777 7778 7779 \
  286.         7801 7900 7901 7902 7903 7904 7905 7906 7908 7909 7910 7911 7912 7913 7914 7915 7916 \
  287.         7917 7918 7919 7920 8000 8001 8008 8014 8015 8020 8028 8040 8080 8081 8082 8085 8088 8090 8118 8123 8180 8181 8182 8222 8243 8280 8300 8333 8344 8400 8443 8500 8509 8787 8800 8888 8899 8983 9000 9002 9060 9080 9090 9091 9111 9290 9443 9447 9710 9788 9999 10000 11371 12601 13014 15489 19980 29991 33300 34412 34443 34444 40007 41080 44449 50000 50002 51423 53331 55252 55555 56712
  288. preprocessor stream5_udp: timeout 180
  289.  
  290. # performance statistics.  For more information, see the Snort Manual, Configuring Snort - Preprocessors - Performance Monitor
  291. preprocessor perfmonitor: time 300 file /etc/snort/snort.stats pktcnt 10000
  292.  
  293. # HTTP normalization and anomaly detection.  For more information, see README.http_inspect
  294. preprocessor http_inspect: global iis_unicode_map unicode.map 1252 compress_depth 65535 decompress_depth 65535
  295. preprocessor http_inspect_server: server default \
  296.     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 } \
  297.     chunk_length 500000 \
  298.     server_flow_depth 0 \
  299.     client_flow_depth 0 \
  300.     post_depth 65495 \
  301.     oversize_dir_length 500 \
  302.     max_header_length 750 \
  303.     max_headers 100 \
  304.     max_spaces 200 \
  305.     small_chunk_length { 10 5 } \
  306.     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 1533 1741 1830 1942 2231 2301 2381 2578 2809 2980 3029 3037 3057 3128 3443 3702 4000 4343 4848 5000 5117 5250 5600 5814 6080 6173 6988 7000 7001 7005 7071 7144 7145 7510 7770 7777 7778 7779 8000 8001 8008 8014 8015 8020 8028 8040 8080 8081 8082 8085 8088 8090 8118 8123 8180 8181 8182 8222 8243 8280 8300 8333 8344 8400 8443 8500 8509 8787 8800 8888 8899 8983 9000 9002 9060 9080 9090 9091 9111 9290 9443 9447 9710 9788 9999 10000 11371 12601 13014 15489 19980 29991 33300 34412 34443 34444 40007 41080 44449 50000 50002 51423 53331 55252 55555 56712 } \
  307. #    non_rfc_char { 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 } \
  308.     enable_cookie \
  309.     extended_response_inspection \
  310.     inspect_gzip \
  311.     normalize_utf \
  312.     unlimited_decompress \
  313.     normalize_javascript \
  314.     apache_whitespace no \
  315.     ascii no \
  316.     bare_byte no \
  317.     directory no \
  318.     double_decode no \
  319.     iis_backslash no \
  320.     iis_delimiter no \
  321.     iis_unicode no \
  322.     multi_slash no \
  323.     utf_8 no \
  324.     u_encode yes \
  325.     webroot no
  326.  
  327. # ONC-RPC normalization and anomaly detection.  For more information, see the Snort Manual, Configuring Snort - Preprocessors - RPC Decode
  328. #preprocessor rpc_decode: 111 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779 no_alert_multiple_requests no_alert_large_fragments no_alert_incomplete
  329.  
  330. # Back Orifice detection.
  331. preprocessor bo
  332.  
  333. # FTP / Telnet normalization and anomaly detection.  For more information, see README.ftptelnet
  334. preprocessor ftp_telnet: global inspection_type stateful encrypted_traffic no check_encrypted
  335. preprocessor ftp_telnet_protocol: telnet \
  336.     ayt_attack_thresh 20 \
  337.     normalize ports { 23 } \
  338.     detect_anomalies
  339. preprocessor ftp_telnet_protocol: ftp server default \
  340.     def_max_param_len 100 \
  341.     ports { 21 2100 3535 } \
  342.     telnet_cmds yes \
  343.     ignore_telnet_erase_cmds yes \
  344.     ftp_cmds { ABOR ACCT ADAT ALLO APPE AUTH CCC CDUP } \
  345.     ftp_cmds { CEL CLNT CMD CONF CWD DELE ENC EPRT } \
  346.     ftp_cmds { EPSV ESTA ESTP FEAT HELP LANG LIST LPRT } \
  347.     ftp_cmds { LPSV MACB MAIL MDTM MIC MKD MLSD MLST } \
  348.     ftp_cmds { MODE NLST NOOP OPTS PASS PASV PBSZ PORT } \
  349.     ftp_cmds { PROT PWD QUIT REIN REST RETR RMD RNFR } \
  350.     ftp_cmds { RNTO SDUP SITE SIZE SMNT STAT STOR STOU } \
  351.     ftp_cmds { STRU SYST TEST TYPE USER XCUP XCRC XCWD } \
  352.     ftp_cmds { XMAS XMD5 XMKD XPWD XRCP XRMD XRSQ XSEM } \
  353.     ftp_cmds { XSEN XSHA1 XSHA256 } \
  354.     alt_max_param_len 0 { ABOR CCC CDUP ESTA FEAT LPSV NOOP PASV PWD QUIT REIN STOU SYST XCUP XPWD } \
  355.     alt_max_param_len 200 { ALLO APPE CMD HELP NLST RETR RNFR STOR STOU XMKD } \
  356.     alt_max_param_len 256 { CWD RNTO } \
  357.     alt_max_param_len 400 { PORT } \
  358.     alt_max_param_len 512 { SIZE } \
  359.     chk_str_fmt { ACCT ADAT ALLO APPE AUTH CEL CLNT CMD } \
  360.     chk_str_fmt { CONF CWD DELE ENC EPRT EPSV ESTP HELP } \
  361.     chk_str_fmt { LANG LIST LPRT MACB MAIL MDTM MIC MKD } \
  362.     chk_str_fmt { MLSD MLST MODE NLST OPTS PASS PBSZ PORT } \
  363.     chk_str_fmt { PROT REST RETR RMD RNFR RNTO SDUP SITE } \
  364.     chk_str_fmt { SIZE SMNT STAT STOR STRU TEST TYPE USER } \
  365.     chk_str_fmt { XCRC XCWD XMAS XMD5 XMKD XRCP XRMD XRSQ } \
  366.     chk_str_fmt { XSEM XSEN XSHA1 XSHA256 } \
  367.     cmd_validity ALLO < int [ char R int ] > \    
  368.     cmd_validity EPSV < [ { char 12 | char A char L char L } ] > \
  369.     cmd_validity MACB < string > \
  370.     cmd_validity MDTM < [ date nnnnnnnnnnnnnn[.n[n[n]]] ] string > \
  371.     cmd_validity MODE < char ASBCZ > \
  372.     cmd_validity PORT < host_port > \
  373.     cmd_validity PROT < char CSEP > \
  374.     cmd_validity STRU < char FRPO [ string ] > \    
  375.     cmd_validity TYPE < { char AE [ char NTC ] | char I | char L [ number ] } >
  376. preprocessor ftp_telnet_protocol: ftp client default \
  377.     max_resp_len 256 \
  378.     bounce yes \
  379.     ignore_telnet_erase_cmds yes \
  380.     telnet_cmds yes
  381.  
  382.  
  383. # SMTP normalization and anomaly detection.  For more information, see README.SMTP
  384. preprocessor smtp: ports { 25 465 587 691 } \
  385.     inspection_type stateful \
  386.     b64_decode_depth 0 \
  387.     qp_decode_depth 0 \
  388.     bitenc_decode_depth 0 \
  389.     uu_decode_depth 0 \
  390.     log_mailfrom \
  391.     log_rcptto \
  392.     log_filename \
  393.     log_email_hdrs \
  394.     normalize cmds \
  395.     normalize_cmds { ATRN AUTH BDAT CHUNKING DATA DEBUG EHLO EMAL ESAM ESND ESOM ETRN EVFY } \
  396.     normalize_cmds { EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT RCPT RSET SAML SEND SOML } \
  397.     normalize_cmds { STARTTLS TICK TIME TURN TURNME VERB VRFY X-ADAT X-DRCP X-ERCP X-EXCH50 } \
  398.     normalize_cmds { X-EXPS X-LINK2STATE XADR XAUTH XCIR XEXCH50 XGEN XLICENSE XQUE XSTA XTRN XUSR } \
  399.     max_command_line_len 512 \
  400.     max_header_line_len 1000 \
  401.     max_response_line_len 512 \
  402.     alt_max_command_line_len 260 { MAIL } \
  403.     alt_max_command_line_len 300 { RCPT } \
  404.     alt_max_command_line_len 500 { HELP HELO ETRN EHLO } \
  405.     alt_max_command_line_len 255 { EXPN VRFY ATRN SIZE BDAT DEBUG EMAL ESAM ESND ESOM EVFY IDENT NOOP RSET } \
  406.     alt_max_command_line_len 246 { SEND SAML SOML AUTH TURN ETRN DATA RSET QUIT ONEX QUEU STARTTLS TICK TIME TURNME VERB X-EXPS X-LINK2STATE XADR XAUTH XCIR XEXCH50 XGEN XLICENSE XQUE XSTA XTRN XUSR } \
  407.     valid_cmds { ATRN AUTH BDAT CHUNKING DATA DEBUG EHLO EMAL ESAM ESND ESOM ETRN EVFY } \
  408.     valid_cmds { EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT RCPT RSET SAML SEND SOML } \
  409.     valid_cmds { STARTTLS TICK TIME TURN TURNME VERB VRFY X-ADAT X-DRCP X-ERCP X-EXCH50 } \
  410.     valid_cmds { X-EXPS X-LINK2STATE XADR XAUTH XCIR XEXCH50 XGEN XLICENSE XQUE XSTA XTRN XUSR } \
  411.     xlink2state { enabled }
  412.  
  413. # Portscan detection.  For more information, see README.sfportscan
  414. preprocessor sfportscan: proto  { all } memcap { 10000000 } sense_level { low }
  415.  
  416. # ARP spoof detection.  For more information, see the Snort Manual - Configuring Snort - Preprocessors - ARP Spoof Preprocessor
  417. # preprocessor arpspoof
  418. # preprocessor arpspoof_detect_host: 192.168.40.1 f0:0f:00:f0:0f:00
  419.  
  420. # SSH anomaly detection.  For more information, see README.ssh
  421. preprocessor ssh: server_ports { 22 } \
  422.                   autodetect \
  423.                   max_client_bytes 19600 \
  424.                   max_encrypted_packets 20 \
  425.                   max_server_version_len 100 \
  426.                   enable_respoverflow enable_ssh1crc32 \
  427.                   enable_srvoverflow enable_protomismatch
  428.  
  429. # SMB / DCE-RPC normalization and anomaly detection.  For more information, see README.dcerpc2
  430. preprocessor dcerpc2: memcap 102400, events [co ]
  431. preprocessor dcerpc2_server: default, policy WinXP, \
  432.     detect [smb [139,445], tcp 135, udp 135, rpc-over-http-server 593], \
  433.     autodetect [tcp 1025:, udp 1025:, rpc-over-http-server 1025:], \
  434.     smb_max_chain 3, smb_invalid_shares ["C$", "D$", "ADMIN$"]
  435.  
  436. # DNS anomaly detection.  For more information, see README.dns
  437. preprocessor dns: ports { 53 } enable_rdata_overflow
  438.  
  439. # SSL anomaly detection and traffic bypass.  For more information, see README.ssl
  440. preprocessor ssl: ports { 443 465 563 636 989 992 993 994 995 5061 7801 7802 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 }, trustservers, noinspect_encrypted
  441.  
  442. ## SDF sensitive data preprocessor.  For more information see README.sensitive_data
  443. #preprocessor sensitive_data: alert_threshold 1
  444.  
  445. # SIP Session Initiation Protocol preprocessor.  For more information see README.sip
  446. preprocessor sip: max_sessions 40000, \
  447.    ports { 5060 5061 5600 }, \
  448.    methods { invite \
  449.              cancel \
  450.              ack \
  451.              bye \
  452.              register \
  453.              options \
  454.              refer \
  455.              subscribe \
  456.              update \
  457.              join \
  458.              info \
  459.              message \
  460.              notify \
  461.              benotify \
  462.              do \
  463.              qauth \
  464.              sprack \
  465.              publish \
  466.              service \
  467.              unsubscribe \
  468.              prack }, \
  469.    max_uri_len 512, \
  470.    max_call_id_len 80, \
  471.    max_requestName_len 20, \
  472.    max_from_len 256, \
  473.    max_to_len 256, \
  474.    max_via_len 1024, \
  475.    max_contact_len 512, \
  476.    max_content_len 2048
  477.  
  478. # IMAP preprocessor.  For more information see README.imap
  479. preprocessor imap: \
  480.    ports { 143 } \
  481.    b64_decode_depth 0 \
  482.    qp_decode_depth 0 \
  483.    bitenc_decode_depth 0 \
  484.    uu_decode_depth 0
  485.  
  486. # POP preprocessor. For more information see README.pop
  487. preprocessor pop: \
  488.    ports { 110 } \
  489.    b64_decode_depth 0 \
  490.    qp_decode_depth 0 \
  491.    bitenc_decode_depth 0 \
  492.    uu_decode_depth 0
  493.  
  494. # Modbus preprocessor. For more information see README.modbus
  495. preprocessor modbus: ports { 502 }
  496.  
  497. # DNP3 preprocessor. For more information see README.dnp3
  498. preprocessor dnp3: ports { 20000 } \
  499.    memcap 262144 \
  500.    check_crc
  501.  
  502. # Reputation preprocessor. For more information see README.reputation
  503. preprocessor reputation: \
  504.    memcap 500, \
  505.    priority whitelist, \
  506.    nested_ip inner, \
  507.    whitelist $WHITE_LIST_PATH/white_list.rules, \
  508.    blacklist $BLACK_LIST_PATH/black_list.rules
  509.  
  510. ###################################################
  511. # Step #6: Configure output plugins
  512. # For more information, see Snort Manual, Configuring Snort - Output Modules
  513. ###################################################
  514.  
  515. # unified2
  516. # Recommended for most installs
  517. output unified2: filename merged.log, limit 128, nostamp, mpls_event_types, vlan_event_types
  518.  
  519. # Additional configuration for specific types of installs
  520. # output alert_unified2: filename snort.alert, limit 128, nostamp
  521. # output log_unified2: filename snort.log, limit 128, nostamp
  522.  
  523. # syslog
  524. # output alert_syslog: LOG_AUTH LOG_ALERT
  525.  
  526. # pcap
  527. # output log_tcpdump: tcpdump.log
  528.  
  529. # metadata reference data.  do not modify these lines
  530. include classification.config
  531. include reference.config
  532.  
  533.  
  534. ###################################################
  535. # Step #7: Customize your rule set
  536. # For more information, see Snort Manual, Writing Snort Rules
  537. #
  538. # NOTE: All categories are enabled in this conf file
  539. ###################################################
  540.  
  541. # site specific rules
  542. #include $RULE_PATH/x11.rules
  543.  
  544. ###################################################
  545. # Step #8: Customize your preprocessor and decoder alerts
  546. # For more information, see README.decoder_preproc_rules
  547. ###################################################
  548.  
  549. # decoder and preprocessor event rules
  550. # include $PREPROC_RULE_PATH/preprocessor.rules
  551. # include $PREPROC_RULE_PATH/decoder.rules
  552. # include $PREPROC_RULE_PATH/sensitive-data.rules
  553.  
  554. ###################################################
  555. # Step #9: Customize your Shared Object Snort Rules
  556. # For more information, see http://vrt-blog.snort.org/2009/01/using-vrt-certified-shared-object-rules.html
  557. ###################################################
  558.  
  559. # dynamic library rules
  560. # include $SO_RULE_PATH/browser-ie.rules
  561. # include $SO_RULE_PATH/browser-other.rules
  562. # include $SO_RULE_PATH/exploit-kit.rules
  563. # include $SO_RULE_PATH/file-flash.rules
  564. # include $SO_RULE_PATH/file-image.rules
  565. # include $SO_RULE_PATH/file-java.rules
  566. # include $SO_RULE_PATH/file-multimedia.rules
  567. # include $SO_RULE_PATH/file-office.rules
  568. # include $SO_RULE_PATH/file-other.rules
  569. # include $SO_RULE_PATH/file-pdf.rules
  570. # include $SO_RULE_PATH/indicator-shellcode.rules
  571. # include $SO_RULE_PATH/malware-cnc.rules
  572. # include $SO_RULE_PATH/malware-other.rules
  573. # include $SO_RULE_PATH/netbios.rules
  574. # include $SO_RULE_PATH/os-linux.rules
  575. # include $SO_RULE_PATH/os-other.rules
  576. # include $SO_RULE_PATH/os-windows.rules
  577. # include $SO_RULE_PATH/policy-social.rules
  578. # include $SO_RULE_PATH/protocol-dns.rules
  579. # include $SO_RULE_PATH/protocol-nntp.rules
  580. # include $SO_RULE_PATH/protocol-other.rules
  581. # include $SO_RULE_PATH/protocol-snmp.rules
  582. # include $SO_RULE_PATH/protocol-voip.rules
  583. # include $SO_RULE_PATH/pua-p2p.rules
  584. # include $SO_RULE_PATH/server-apache.rules
  585. # include $SO_RULE_PATH/server-iis.rules
  586. # include $SO_RULE_PATH/server-mail.rules
  587. # include $SO_RULE_PATH/server-mysql.rules
  588. # include $SO_RULE_PATH/server-oracle.rules
  589. # include $SO_RULE_PATH/server-other.rules
  590. # include $SO_RULE_PATH/server-webapp.rules
  591.  
  592. # legacy dynamic library rule files
  593. # include $SO_RULE_PATH/bad-traffic.rules
  594. # include $SO_RULE_PATH/browser-ie.rules
  595. # include $SO_RULE_PATH/chat.rules
  596. # include $SO_RULE_PATH/dos.rules
  597. # include $SO_RULE_PATH/exploit.rules
  598. # include $SO_RULE_PATH/file-flash.rules
  599. # include $SO_RULE_PATH/icmp.rules
  600. # include $SO_RULE_PATH/imap.rules
  601. # include $SO_RULE_PATH/misc.rules
  602. # include $SO_RULE_PATH/multimedia.rules
  603. # include $SO_RULE_PATH/netbios.rules
  604. # include $SO_RULE_PATH/nntp.rules
  605. # include $SO_RULE_PATH/p2p.rules
  606. # include $SO_RULE_PATH/smtp.rules
  607. # include $SO_RULE_PATH/snmp.rules
  608. # include $SO_RULE_PATH/specific-threats.rules
  609. # include $SO_RULE_PATH/web-activex.rules
  610. # include $SO_RULE_PATH/web-client.rules
  611. # include $SO_RULE_PATH/web-iis.rules
  612. # include $SO_RULE_PATH/web-misc.rules
  613.  
  614. # Event thresholding or suppression commands. See threshold.conf
  615. include threshold.conf
  616. include $RULE_PATH/snort.rules
  617. include $RULE_PATH/emerging.conf
  618.  
  619.  
  620. config policy_mode:inline
  621.  
  622. config daq: afpacket
  623. config daq_mode: inline
  624. config daq_var:  buffer_size_mb=1024
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top