Advertisement
Guest User

Untitled

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