Advertisement
Guest User

Snort configuration

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