Advertisement
Guest User

Untitled

a guest
Jan 14th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.24 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.8
  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 185.31.79.146
  46.  
  47. # Set up the external network addresses. Leave as "any" in most situations
  48. ipvar EXTERNAL_NET any
  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]
  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. # 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: none
  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. config bpf_file: /etc/snort/ignore.bpf
  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 5 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/local/lib/snort_dynamicpreprocessor/
  249.  
  250. # path to base preprocessor engine
  251. dynamicengine /usr/local/lib/snort_dynamicengine/libsf_engine.so
  252.  
  253. # path to dynamic rules libraries
  254. dynamicdetection directory /usr/local/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 linux 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: log_asymmetric_traffic no, policy linux, \
  285. detect_anomalies, require_3whs 180, \
  286. overlap_limit 10, small_segments 3 bytes 150, timeout 180, \
  287. ports client 21 22 23 25 42 53 79 109 110 111 113 119 135 136 137 139 143 \
  288. 161 445 513 514 587 593 691 1433 1521 1741 2100 3306 6070 6665 6666 6667 6668 6669 \
  289. 7000 8181 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779, \
  290. ports both 80 81 311 383 443 465 563 591 593 636 901 989 992 993 994 995 1220 1414 1830 2301 2381 2809 3037 3128 3702 4343 4848 5250 6988 7907 7000 7001 7144 7145 7510 7802 7777 7779 \
  291. 7801 7900 7901 7902 7903 7904 7905 7906 7908 7909 7910 7911 7912 7913 7914 7915 7916 \
  292. 7917 7918 7919 7920 8000 8008 8014 8028 8080 8085 8088 8090 8118 8123 8180 8243 8280 8300 8800 8888 8899 9000 9060 9080 9090 9091 9443 9999 11371 34443 34444 41080 50002 55555
  293. preprocessor stream5_udp: timeout 180
  294.  
  295. # performance statistics. For more information, see the Snort Manual, Configuring Snort - Preprocessors - Performance Monitor
  296. # preprocessor perfmonitor: time 300 file /var/snort/snort.stats pktcnt 10000
  297.  
  298. # HTTP normalization and anomaly detection. For more information, see README.http_inspect
  299. preprocessor http_inspect: global iis_unicode_map unicode.map 1252 compress_depth 65535 decompress_depth 65535
  300. preprocessor http_inspect_server: server default \
  301. 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 } \
  302. chunk_length 500000 \
  303. server_flow_depth 0 \
  304. client_flow_depth 0 \
  305. post_depth 65495 \
  306. oversize_dir_length 500 \
  307. max_header_length 750 \
  308. max_headers 100 \
  309. max_spaces 200 \
  310. small_chunk_length { 10 5 } \
  311. ports { 80 81 311 383 591 593 901 1220 1414 1741 1830 2301 2381 2809 3037 3128 3702 4343 4848 5250 6988 7000 7001 7144 7145 7510 7777 7779 8000 8008 8014 8028 8080 8085 8088 8090 8118 8123 8180 8181 8243 8280 8300 8800 8888 8899 9000 9060 9080 9090 9091 9443 9999 11371 34443 34444 41080 50002 55555 } \
  312. non_rfc_char { 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 } \
  313. enable_cookie \
  314. extended_response_inspection \
  315. inspect_gzip \
  316. normalize_utf \
  317. unlimited_decompress \
  318. normalize_javascript \
  319. apache_whitespace no \
  320. ascii no \
  321. bare_byte no \
  322. directory no \
  323. double_decode no \
  324. iis_backslash no \
  325. iis_delimiter no \
  326. iis_unicode no \
  327. multi_slash no \
  328. utf_8 no \
  329. u_encode yes \
  330. webroot no \
  331. enable_xff
  332.  
  333. # ONC-RPC normalization and anomaly detection. For more information, see the Snort Manual, Configuring Snort - Preprocessors - RPC Decode
  334. 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
  335.  
  336. # Back Orifice detection.
  337. #preprocessor bo
  338.  
  339. # FTP / Telnet normalization and anomaly detection. For more information, see README.ftptelnet
  340. preprocessor ftp_telnet: global inspection_type stateful encrypted_traffic no check_encrypted
  341. preprocessor ftp_telnet_protocol: telnet \
  342. ayt_attack_thresh 20 \
  343. normalize ports { 23 } \
  344. detect_anomalies
  345. preprocessor ftp_telnet_protocol: ftp server default \
  346. def_max_param_len 100 \
  347. ports { 21 2100 3535 } \
  348. telnet_cmds yes \
  349. ignore_telnet_erase_cmds yes \
  350. ftp_cmds { ABOR ACCT ADAT ALLO APPE AUTH CCC CDUP } \
  351. ftp_cmds { CEL CLNT CMD CONF CWD DELE ENC EPRT } \
  352. ftp_cmds { EPSV ESTA ESTP FEAT HELP LANG LIST LPRT } \
  353. ftp_cmds { LPSV MACB MAIL MDTM MIC MKD MLSD MLST } \
  354. ftp_cmds { MODE NLST NOOP OPTS PASS PASV PBSZ PORT } \
  355. ftp_cmds { PROT PWD QUIT REIN REST RETR RMD RNFR } \
  356. ftp_cmds { RNTO SDUP SITE SIZE SMNT STAT STOR STOU } \
  357. ftp_cmds { STRU SYST TEST TYPE USER XCUP XCRC XCWD } \
  358. ftp_cmds { XMAS XMD5 XMKD XPWD XRCP XRMD XRSQ XSEM } \
  359. ftp_cmds { XSEN XSHA1 XSHA256 } \
  360. alt_max_param_len 0 { ABOR CCC CDUP ESTA FEAT LPSV NOOP PASV PWD QUIT REIN STOU SYST XCUP XPWD } \
  361. alt_max_param_len 200 { ALLO APPE CMD HELP NLST RETR RNFR STOR STOU XMKD } \
  362. alt_max_param_len 256 { CWD RNTO } \
  363. alt_max_param_len 400 { PORT } \
  364. alt_max_param_len 512 { SIZE } \
  365. chk_str_fmt { ACCT ADAT ALLO APPE AUTH CEL CLNT CMD } \
  366. chk_str_fmt { CONF CWD DELE ENC EPRT EPSV ESTP HELP } \
  367. chk_str_fmt { LANG LIST LPRT MACB MAIL MDTM MIC MKD } \
  368. chk_str_fmt { MLSD MLST MODE NLST OPTS PASS PBSZ PORT } \
  369. chk_str_fmt { PROT REST RETR RMD RNFR RNTO SDUP SITE } \
  370. chk_str_fmt { SIZE SMNT STAT STOR STRU TEST TYPE USER } \
  371. chk_str_fmt { XCRC XCWD XMAS XMD5 XMKD XRCP XRMD XRSQ } \
  372. chk_str_fmt { XSEM XSEN XSHA1 XSHA256 } \
  373. cmd_validity ALLO < int [ char R int ] > \
  374. cmd_validity EPSV < [ { char 12 | char A char L char L } ] > \
  375. cmd_validity MACB < string > \
  376. cmd_validity MDTM < [ date nnnnnnnnnnnnnn[.n[n[n]]] ] string > \
  377. cmd_validity MODE < char ASBCZ > \
  378. cmd_validity PORT < host_port > \
  379. cmd_validity PROT < char CSEP > \
  380. cmd_validity STRU < char FRPO [ string ] > \
  381. cmd_validity TYPE < { char AE [ char NTC ] | char I | char L [ number ] } >
  382. preprocessor ftp_telnet_protocol: ftp client default \
  383. max_resp_len 256 \
  384. bounce yes \
  385. ignore_telnet_erase_cmds yes \
  386. telnet_cmds yes
  387.  
  388.  
  389. # SMTP normalization and anomaly detection. For more information, see README.SMTP
  390. preprocessor smtp: ports { 25 465 587 691 } \
  391. inspection_type stateful \
  392. b64_decode_depth 0 \
  393. qp_decode_depth 0 \
  394. bitenc_decode_depth 0 \
  395. uu_decode_depth 0 \
  396. log_mailfrom \
  397. log_rcptto \
  398. log_filename \
  399. log_email_hdrs \
  400. normalize cmds \
  401. normalize_cmds { ATRN AUTH BDAT CHUNKING DATA DEBUG EHLO EMAL ESAM ESND ESOM ETRN EVFY } \
  402. normalize_cmds { EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT RCPT RSET SAML SEND SOML } \
  403. normalize_cmds { STARTTLS TICK TIME TURN TURNME VERB VRFY X-ADAT X-DRCP X-ERCP X-EXCH50 } \
  404. normalize_cmds { X-EXPS X-LINK2STATE XADR XAUTH XCIR XEXCH50 XGEN XLICENSE XQUE XSTA XTRN XUSR } \
  405. max_command_line_len 512 \
  406. max_header_line_len 1000 \
  407. max_response_line_len 512 \
  408. alt_max_command_line_len 260 { MAIL } \
  409. alt_max_command_line_len 300 { RCPT } \
  410. alt_max_command_line_len 500 { HELP HELO ETRN EHLO } \
  411. alt_max_command_line_len 255 { EXPN VRFY ATRN SIZE BDAT DEBUG EMAL ESAM ESND ESOM EVFY IDENT NOOP RSET } \
  412. 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 } \
  413. valid_cmds { ATRN AUTH BDAT CHUNKING DATA DEBUG EHLO EMAL ESAM ESND ESOM ETRN EVFY } \
  414. valid_cmds { EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT RCPT RSET SAML SEND SOML } \
  415. valid_cmds { STARTTLS TICK TIME TURN TURNME VERB VRFY X-ADAT X-DRCP X-ERCP X-EXCH50 } \
  416. valid_cmds { X-EXPS X-LINK2STATE XADR XAUTH XCIR XEXCH50 XGEN XLICENSE XQUE XSTA XTRN XUSR } \
  417. xlink2state { enabled }
  418.  
  419. # Portscan detection. For more information, see README.sfportscan
  420. # preprocessor sfportscan: proto { all } memcap { 10000000 } sense_level { low }
  421. preprocessor sfportscan: proto { all } memcap { 10000000 } sense_level { medium } logfile { /var/log/snort/portscan.log }
  422.  
  423. # ARP spoof detection. For more information, see the Snort Manual - Configuring Snort - Preprocessors - ARP Spoof Preprocessor
  424. # preprocessor arpspoof
  425. # preprocessor arpspoof_detect_host: 192.168.40.1 f0:0f:00:f0:0f:00
  426.  
  427. # SSH anomaly detection. For more information, see README.ssh
  428. preprocessor ssh: server_ports { 22 } \
  429. autodetect \
  430. max_client_bytes 19600 \
  431. max_encrypted_packets 20 \
  432. max_server_version_len 100 \
  433. enable_respoverflow enable_ssh1crc32 \
  434. enable_srvoverflow enable_protomismatch
  435.  
  436. # SMB / DCE-RPC normalization and anomaly detection. For more information, see README.dcerpc2
  437. preprocessor dcerpc2: memcap 102400, events none
  438. preprocessor dcerpc2_server: default, policy WinXP, \
  439. detect [smb [139,445], tcp 135, udp 135, rpc-over-http-server 593], \
  440. autodetect [tcp 1025:, udp 1025:, rpc-over-http-server 1025:], \
  441. smb_max_chain 3, smb_invalid_shares ["C$", "D$", "ADMIN$"]
  442.  
  443. # DNS anomaly detection. For more information, see README.dns
  444. preprocessor dns: ports { 53 } enable_rdata_overflow
  445.  
  446. # SSL anomaly detection and traffic bypass. For more information, see README.ssl
  447. 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
  448.  
  449. # SDF sensitive data preprocessor. For more information see README.sensitive_data
  450. preprocessor sensitive_data: alert_threshold 25
  451.  
  452. # SIP Session Initiation Protocol preprocessor. For more information see README.sip
  453. preprocessor sip: disabled
  454.  
  455. # IMAP preprocessor. For more information see README.imap
  456. preprocessor imap: \
  457. ports { 143 } \
  458. b64_decode_depth 0 \
  459. qp_decode_depth 0 \
  460. bitenc_decode_depth 0 \
  461. uu_decode_depth 0
  462.  
  463. # POP preprocessor. For more information see README.pop
  464. preprocessor pop: \
  465. ports { 110 } \
  466. b64_decode_depth 0 \
  467. qp_decode_depth 0 \
  468. bitenc_decode_depth 0 \
  469. uu_decode_depth 0
  470.  
  471. # Modbus preprocessor. For more information see README.modbus
  472. preprocessor modbus: ports { 502 }
  473.  
  474. # DNP3 preprocessor. For more information see README.dnp3
  475. #preprocessor dnp3: ports { 20000 } \
  476. # memcap 262144 \
  477. # check_crc
  478.  
  479. # Reputation preprocessor. For more information see README.reputation
  480. preprocessor reputation: \
  481. memcap 500, \
  482. priority whitelist, \
  483. nested_ip inner, \
  484. whitelist $WHITE_LIST_PATH/white_list.rules, \
  485. blacklist $BLACK_LIST_PATH/black_list.rules
  486.  
  487. ###################################################
  488. # Step #6: Configure output plugins
  489. # For more information, see Snort Manual, Configuring Snort - Output Modules
  490. ###################################################
  491.  
  492. # unified2
  493. # Recommended for most installs
  494. # output unified2: filename merged.log, limit 128, nostamp, mpls_event_types, vlan_event_types
  495.  
  496. # Additional configuration for specific types of installs
  497. # output alert_unified2: filename snort.alert, limit 128, nostamp
  498. # output log_unified2: filename snort.log, limit 128, nostamp
  499. output unified2: filename snort.u2, limit 128
  500.  
  501. # syslog
  502. # output alert_syslog: LOG_AUTH LOG_ALERT
  503.  
  504. # pcap
  505. output log_tcpdump: snort.pcap
  506.  
  507. # metadata reference data. do not modify these lines
  508. include classification.config
  509. include reference.config
  510.  
  511.  
  512. ###################################################
  513. # Step #7: Customize your rule set
  514. # For more information, see Snort Manual, Writing Snort Rules
  515. #
  516. # NOTE: All categories are enabled in this conf file
  517. ###################################################
  518.  
  519. # site specific rules
  520. include $RULE_PATH/local.rules
  521.  
  522. # community rules
  523. #include $RULE_PATH/community.rules
  524.  
  525. #include $RULE_PATH/app-detect.rules
  526. #include $RULE_PATH/attack-responses.rules
  527. #include $RULE_PATH/backdoor.rules
  528. #include $RULE_PATH/bad-traffic.rules
  529. #include $RULE_PATH/blacklist.rules
  530. #include $RULE_PATH/botnet-cnc.rules
  531. #include $RULE_PATH/browser-chrome.rules
  532. #include $RULE_PATH/browser-firefox.rules
  533. #include $RULE_PATH/browser-ie.rules
  534. #include $RULE_PATH/browser-other.rules
  535. #include $RULE_PATH/browser-plugins.rules
  536. #include $RULE_PATH/browser-webkit.rules
  537. #include $RULE_PATH/chat.rules
  538. #include $RULE_PATH/content-replace.rules
  539. #include $RULE_PATH/ddos.rules
  540. #include $RULE_PATH/dns.rules
  541. #include $RULE_PATH/dos.rules
  542. #include $RULE_PATH/experimental.rules
  543. #include $RULE_PATH/exploit-kit.rules
  544. #include $RULE_PATH/exploit.rules
  545. #include $RULE_PATH/file-executable.rules
  546. #include $RULE_PATH/file-flash.rules
  547. #include $RULE_PATH/file-identify.rules
  548. #include $RULE_PATH/file-image.rules
  549. #include $RULE_PATH/file-multimedia.rules
  550. #include $RULE_PATH/file-office.rules
  551. #include $RULE_PATH/file-other.rules
  552. #include $RULE_PATH/file-pdf.rules
  553. #include $RULE_PATH/finger.rules
  554. #include $RULE_PATH/ftp.rules
  555. #include $RULE_PATH/icmp-info.rules
  556. #include $RULE_PATH/icmp.rules
  557. #include $RULE_PATH/imap.rules
  558. #include $RULE_PATH/indicator-compromise.rules
  559. #include $RULE_PATH/indicator-obfuscation.rules
  560. #include $RULE_PATH/indicator-shellcode.rules
  561. #include $RULE_PATH/info.rules
  562. #include $RULE_PATH/malware-backdoor.rules
  563. #include $RULE_PATH/malware-cnc.rules
  564. #include $RULE_PATH/malware-other.rules
  565. #include $RULE_PATH/malware-tools.rules
  566. #include $RULE_PATH/misc.rules
  567. #include $RULE_PATH/multimedia.rules
  568. #include $RULE_PATH/mysql.rules
  569. #include $RULE_PATH/netbios.rules
  570. #include $RULE_PATH/nntp.rules
  571. ##include $RULE_PATH/oracle.rules
  572. #include $RULE_PATH/os-linux.rules
  573. #include $RULE_PATH/os-other.rules
  574. #include $RULE_PATH/os-solaris.rules
  575. ##include $RULE_PATH/os-windows.rules
  576. #include $RULE_PATH/other-ids.rules
  577. #include $RULE_PATH/p2p.rules
  578. #include $RULE_PATH/phishing-spam.rules
  579. #include $RULE_PATH/policy-multimedia.rules
  580. #include $RULE_PATH/policy-other.rules
  581. #include $RULE_PATH/policy.rules
  582. #include $RULE_PATH/policy-social.rules
  583. #include $RULE_PATH/policy-spam.rules
  584. #include $RULE_PATH/pop2.rules
  585. #include $RULE_PATH/pop3.rules
  586. #include $RULE_PATH/protocol-finger.rules
  587. #include $RULE_PATH/protocol-ftp.rules
  588. #include $RULE_PATH/protocol-icmp.rules
  589. #include $RULE_PATH/protocol-imap.rules
  590. #include $RULE_PATH/protocol-pop.rules
  591. #include $RULE_PATH/protocol-services.rules
  592. #include $RULE_PATH/protocol-voip.rules
  593. #include $RULE_PATH/pua-adware.rules
  594. #include $RULE_PATH/pua-other.rules
  595. #include $RULE_PATH/pua-p2p.rules
  596. #include $RULE_PATH/pua-toolbars.rules
  597. #include $RULE_PATH/rpc.rules
  598. #include $RULE_PATH/rservices.rules
  599. #include $RULE_PATH/scada.rules
  600. #include $RULE_PATH/scan.rules
  601. #include $RULE_PATH/server-apache.rules
  602. ##include $RULE_PATH/server-iis.rules
  603. #include $RULE_PATH/server-mail.rules
  604. ##include $RULE_PATH/server-mssql.rules
  605. #include $RULE_PATH/server-mysql.rules
  606. ##include $RULE_PATH/server-oracle.rules
  607. #include $RULE_PATH/server-other.rules
  608. #include $RULE_PATH/server-webapp.rules
  609. #include $RULE_PATH/shellcode.rules
  610. #include $RULE_PATH/smtp.rules
  611. #include $RULE_PATH/snmp.rules
  612. #include $RULE_PATH/specific-threats.rules
  613. #include $RULE_PATH/spyware-put.rules
  614. #include $RULE_PATH/sql.rules
  615. #include $RULE_PATH/telnet.rules
  616. #include $RULE_PATH/tftp.rules
  617. #include $RULE_PATH/virus.rules
  618. ##include $RULE_PATH/voip.rules
  619. #include $RULE_PATH/web-activex.rules
  620. #include $RULE_PATH/web-attacks.rules
  621. #include $RULE_PATH/web-cgi.rules
  622. #include $RULE_PATH/web-client.rules
  623. #include $RULE_PATH/web-coldfusion.rules
  624. #include $RULE_PATH/web-frontpage.rules
  625. #include $RULE_PATH/web-iis.rules
  626. #include $RULE_PATH/web-misc.rules
  627. #include $RULE_PATH/web-php.rules
  628. #include $RULE_PATH/x11.rules
  629.  
  630. ###################################################
  631. # Step #8: Customize your preprocessor and decoder alerts
  632. # For more information, see README.decoder_preproc_rules
  633. ###################################################
  634.  
  635. # decoder and preprocessor event rules
  636. # include $PREPROC_RULE_PATH/preprocessor.rules
  637. # include $PREPROC_RULE_PATH/decoder.rules
  638. #include $PREPROC_RULE_PATH/sensitive-data.rules
  639.  
  640. ###################################################
  641. # Step #9: Customize your Shared Object Snort Rules
  642. # For more information, see http://vrt-blog.snort.org/2009/01/using-vrt-certified-shared-object-rules.html
  643. ###################################################
  644.  
  645. # dynamic library rules
  646. #include $SO_RULE_PATH/bad-traffic.rules
  647. #include $SO_RULE_PATH/chat.rules
  648. #include $SO_RULE_PATH/dos.rules
  649. #include $SO_RULE_PATH/exploit.rules
  650. #include $SO_RULE_PATH/icmp.rules
  651. #include $SO_RULE_PATH/imap.rules
  652. #include $SO_RULE_PATH/misc.rules
  653. #include $SO_RULE_PATH/multimedia.rules
  654. #include $SO_RULE_PATH/netbios.rules
  655. #include $SO_RULE_PATH/nntp.rules
  656. #include $SO_RULE_PATH/p2p.rules
  657. #include $SO_RULE_PATH/smtp.rules
  658. #include $SO_RULE_PATH/snmp.rules
  659. #include $SO_RULE_PATH/specific-threats.rules
  660. #include $SO_RULE_PATH/web-activex.rules
  661. #include $SO_RULE_PATH/web-client.rules
  662. #include $SO_RULE_PATH/web-iis.rules
  663. #include $SO_RULE_PATH/web-misc.rules
  664.  
  665. # Event thresholding or suppression commands. See threshold.conf
  666. include threshold.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement