Advertisement
rowelld

Example snort.conf

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