annotate example.conf @ 61:8b33436dd18b

Update example configuration and documentation.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 17 Aug 2009 08:22:38 +0300
parents 19dace24ad46
children d2e2b82dd2f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
1 #############################################################################
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
2 ### Maltfilter configuration file.
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
3 ### PLEASE READ THROUGH THIS FILE VERY CAREFULLY!
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4
11
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
5 #############################################################################
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
6 ### General settings
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
7 #############################################################################
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 # Verbosity level (0 = quiet, bigger values add noise. valid range 0 - 4)
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 VERBOSITY = 4
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 # Dry-run: 1 = disables daemonization/forking to background, disables
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 # modification of netfilter/iptables, printing the iptables commands to
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 # stdout instead.
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 # NOTICE! IF YOU DON'T CHANGE THIS TO 0, MALTFILTER WILL NOT DAEMONIZE!
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 DRY_RUN = 1
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
61
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
17 # Full path to iptables binary
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
18 IPTABLES = "/sbin/iptables"
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
19
11
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
20 # Maltfilter logfile path and name (set empty "" if you don't want logging)
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
21 LOGFILE = "/var/log/maltfilter"
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22
44
471731c79bb3 Add configuration setting for PASSWD file.
Matti Hamalainen <ccr@tnsp.org>
parents: 41
diff changeset
23 # System passwd file location (default is /etc/passwd), this file
471731c79bb3 Add configuration setting for PASSWD file.
Matti Hamalainen <ccr@tnsp.org>
parents: 41
diff changeset
24 # is checked to figure out system account names. See also SYSACCT_
471731c79bb3 Add configuration setting for PASSWD file.
Matti Hamalainen <ccr@tnsp.org>
parents: 41
diff changeset
25 # settings below.
471731c79bb3 Add configuration setting for PASSWD file.
Matti Hamalainen <ccr@tnsp.org>
parents: 41
diff changeset
26 #PASSWD = "/etc/passwd"
471731c79bb3 Add configuration setting for PASSWD file.
Matti Hamalainen <ccr@tnsp.org>
parents: 41
diff changeset
27
471731c79bb3 Add configuration setting for PASSWD file.
Matti Hamalainen <ccr@tnsp.org>
parents: 41
diff changeset
28 ## Set range of system account UIDs here, default is 1-100.
471731c79bb3 Add configuration setting for PASSWD file.
Matti Hamalainen <ccr@tnsp.org>
parents: 41
diff changeset
29 ## Root account is handled by CHK_ROOT_SSH_PWD check.
471731c79bb3 Add configuration setting for PASSWD file.
Matti Hamalainen <ccr@tnsp.org>
parents: 41
diff changeset
30 #SYSACCT_MIN_UID = 1
471731c79bb3 Add configuration setting for PASSWD file.
Matti Hamalainen <ccr@tnsp.org>
parents: 41
diff changeset
31 #SYSACCT_MAX_UID = 100
471731c79bb3 Add configuration setting for PASSWD file.
Matti Hamalainen <ccr@tnsp.org>
parents: 41
diff changeset
32
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33
11
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
34 #############################################################################
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
35 ### Actions, etc. settings
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
36 #############################################################################
26
61b6d742c49c Separate WEEDPERIOD into WEED_BLOCK and WEED_GLOBAL settings.
Matti Hamalainen <ccr@tnsp.org>
parents: 17
diff changeset
37 ## Weeding treshold in hours. Entries older than this will be removed
61b6d742c49c Separate WEEDPERIOD into WEED_BLOCK and WEED_GLOBAL settings.
Matti Hamalainen <ccr@tnsp.org>
parents: 17
diff changeset
38 ## off from current netfilter settings (e.g. they become unblocked again.)
61b6d742c49c Separate WEEDPERIOD into WEED_BLOCK and WEED_GLOBAL settings.
Matti Hamalainen <ccr@tnsp.org>
parents: 17
diff changeset
39 #WEED_BLOCK = 168
61b6d742c49c Separate WEEDPERIOD into WEED_BLOCK and WEED_GLOBAL settings.
Matti Hamalainen <ccr@tnsp.org>
parents: 17
diff changeset
40
61b6d742c49c Separate WEEDPERIOD into WEED_BLOCK and WEED_GLOBAL settings.
Matti Hamalainen <ccr@tnsp.org>
parents: 17
diff changeset
41 ## For how many hours to keep general information about IP. Affects from
61b6d742c49c Separate WEEDPERIOD into WEED_BLOCK and WEED_GLOBAL settings.
Matti Hamalainen <ccr@tnsp.org>
parents: 17
diff changeset
42 ## how long period statistics dump shows data. Also hitcount tresholds
61b6d742c49c Separate WEEDPERIOD into WEED_BLOCK and WEED_GLOBAL settings.
Matti Hamalainen <ccr@tnsp.org>
parents: 17
diff changeset
43 ## take the old data into account, meaning that if WEED_BLOCK < WEED_GLOBAL
61b6d742c49c Separate WEEDPERIOD into WEED_BLOCK and WEED_GLOBAL settings.
Matti Hamalainen <ccr@tnsp.org>
parents: 17
diff changeset
44 ## hit data older than WEED_BLOCK will be counted towards THRESHOLD.
61b6d742c49c Separate WEEDPERIOD into WEED_BLOCK and WEED_GLOBAL settings.
Matti Hamalainen <ccr@tnsp.org>
parents: 17
diff changeset
45 #WEED_GLOBAL = 336
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46
12
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
47 ## How many "hits" the IP needs until it is eligible to be blocked.
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
48 ## (the "hits" can be from any "source", e.g. sshd crack, httpd, etc.)
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
49 #TRESHOLD = 3
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50
12
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
51 ## Target iptables action for added entries, default is DROP, but you
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
52 ## can use whatever rule chain name you want to here.
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
53 #ACTION = "DROP"
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
54
12
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
55 ## IP addresses that should NOT be blocked under any circumstances. You should
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
56 ## set this if you wish to have a surefire open channel from some host, even in
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
57 ## the case someone tries to spoof IPs for denial of service.
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
58 ##
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
59 ## NOTICE! This setting supports only IPv4 addresses, no IPv6 or DNS names.
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
60 ## You can have any number of NOBLOCK_IPS settings.
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
61 #NOBLOCK_IPS = "192.121.86.15"
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
62 #NOBLOCK_IPS = "74.125.45.100"
11
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
63
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
64
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
65 #############################################################################
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
66 ### Logfiles
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
67 #############################################################################
12
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
68 ## Define system log files to scan. Only auth.log and Apache errorlog /
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
69 ## common log format files are supported for now. You can have as many
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
70 ## of SCANFILE settings as you wish.
11
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
71 SCANFILE = "/var/log/auth.log"
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
72 SCANFILE = "/var/log/httpd/error.log"
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
73 SCANFILE = "/var/log/httpd/access.log"
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
74
54
19dace24ad46 Remove default scanfiles; Clean up update_entry() code; Add "SCANFILE_ONCE"
Matti Hamalainen <ccr@tnsp.org>
parents: 44
diff changeset
75 ## SCANFILE_ONCE is like SCANFILE setting, but these files are only
19dace24ad46 Remove default scanfiles; Clean up update_entry() code; Add "SCANFILE_ONCE"
Matti Hamalainen <ccr@tnsp.org>
parents: 44
diff changeset
76 ## parsed through once, and are NOT followed for changes in "tail -f"
19dace24ad46 Remove default scanfiles; Clean up update_entry() code; Add "SCANFILE_ONCE"
Matti Hamalainen <ccr@tnsp.org>
parents: 44
diff changeset
77 ## style as SCANFILEs are. This is useful if you want to include data
19dace24ad46 Remove default scanfiles; Clean up update_entry() code; Add "SCANFILE_ONCE"
Matti Hamalainen <ccr@tnsp.org>
parents: 44
diff changeset
78 ## from logrotated files. (Notice that gzip compressed files are not supported.)
19dace24ad46 Remove default scanfiles; Clean up update_entry() code; Add "SCANFILE_ONCE"
Matti Hamalainen <ccr@tnsp.org>
parents: 44
diff changeset
79 SCANFILE_ONCE = "/var/log/auth.log.1"
19dace24ad46 Remove default scanfiles; Clean up update_entry() code; Add "SCANFILE_ONCE"
Matti Hamalainen <ccr@tnsp.org>
parents: 44
diff changeset
80
11
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
81
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
82 #############################################################################
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
83 ### Checks / tests
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
84 #############################################################################
12
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
85 ## Enabled checks (1 = enabled, 0 = disabled). Please read the test
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
86 ## descriptions from "check_log_line" function in the maltfilter script.
40
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
87
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
88 # (1) SSHD scans
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
89 ## (1.1) Generic login scan attempts.
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
90 ## Bruteforce attempts of login/password combinations leads to lots of
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
91 ## "Failed password for invalid user" errors. This check catches them.
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
92 CHK_SSHD = 1
40
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
93
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
94 ## (1.2) Root account SSH login password bruteforcing attempts.
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
95 ## This check catches failed password logins for root account.
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
96 ##
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
97 ## NOTICE! Do not enable this setting, if you allow SSH root logins via
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
98 ## password authentication! Mistyping password may get you blocked unless
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
99 ## your host IP is defined in NOBLOCK_IPS. If you wish to enable this
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
100 ## check, you should set "PermitRootLogin" to "without-password" or "no"
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
101 ## in your sshd_config.
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
102 CHK_ROOT_SSH_PWD = 0
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
103
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
104 ## (1.3) System account SSH login password bruteforcing attempts.
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
105 ## Catches failed password logins for system accounts.
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
106 ##
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
107 ## NOTICE! If you enable this setting, make sure have defined safe
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
108 ## host IPs in NOBLOCK_IPS, and that your system DOES NOT have passwords
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
109 ## for system accounts .. which would be stupid anyway.
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
110 CHK_SYSACCT_SSH_PWD = 0
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
111
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
112
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
113
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
114 # (2) Common/known vulnerable CGI/PHP software scans (like phpMyAdmin)
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
115 # NOTICE! This matches ERRORLOG, thus it only works if you DO NOT have
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
116 # any or some of these installed. Preferably none, or use uncommon
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
117 # paths and prefixes.
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
118 CHK_KNOWN_CGI = 1
40
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
119
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
120
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
121 # (3) pache common logging format checks
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
122 ## With CHK_GOOD_HOSTS setting you can define hostnames and IPs
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
123 ## which do not cause section (3) checks to trigger. For example
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
124 ## if your website uses local URL pointers, you should define
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
125 ## the hostname(s) and IPs here.
12
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
126 #CHK_GOOD_HOSTS = "example.org|google.com|74.125.45.100"
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
127
40
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
128 ## (3.1) Simple match for generic PHP XSS vulnerability scans
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
129 ##
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
130 ## NOTICE! If your site genuinely uses (checked) PHP parameters with
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
131 ## URIs, you should set CHK_GOOD_HOSTS to match your hostname(s)/IP(s)
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
132 ## used in the URIs.
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
133 CHK_PHP_XSS = 1
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
134
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
135 ## (3.2) Try to match proxy scanning attempts
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
136 ## Certain attempts to find open HTTP proxies are caught by this check.
24babaa1e331 Many cleanups and fixes; Example configuration updated.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
137 CHK_PROXY_SCAN = 1
4
b2c7c76b3529 Added scanning feature for SSH root login attempts with failed passwords.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
138
0
fec14263801d Initial import of maltfilter development version.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
139
11
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
140 #############################################################################
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
141 ### Reports
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
142 #############################################################################
12
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
143 ## Define files for periodically updated status reports (refreshed once
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
144 ## every few minutes.) Leave empty ("") or commented if you do not want
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
145 ## status reports.
11
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
146
12
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
147 ## Plain ASCII text file rerpot
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
148 #STATUS_FILE_PLAIN = "/var/www/maltstatus.txt"
11
26c2cc5077aa Added reporting functionality.
Matti Hamalainen <ccr@tnsp.org>
parents: 10
diff changeset
149
12
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
150 ## HTML file and optional CSS stylesheet URL for the HTML
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
151 ## (if left empty, CSS is not used.)
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
152 #STATUS_FILE_HTML = "/var/www/maltstatus.html"
d6da1a6567f8 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 11
diff changeset
153 #STATUS_FILE_CSS = "cool.css"
17
fe220b5a975a Cleanups, add configuration for WHOIS linking.
Matti Hamalainen <ccr@tnsp.org>
parents: 14
diff changeset
154
fe220b5a975a Cleanups, add configuration for WHOIS linking.
Matti Hamalainen <ccr@tnsp.org>
parents: 14
diff changeset
155 ## URL for a web-based WHOIS service. This URL will be used for creating
fe220b5a975a Cleanups, add configuration for WHOIS linking.
Matti Hamalainen <ccr@tnsp.org>
parents: 14
diff changeset
156 ## href links of the IP addresses. Default is whois.domaintools.com. Set
fe220b5a975a Cleanups, add configuration for WHOIS linking.
Matti Hamalainen <ccr@tnsp.org>
parents: 14
diff changeset
157 ## empty if you don't want links.
fe220b5a975a Cleanups, add configuration for WHOIS linking.
Matti Hamalainen <ccr@tnsp.org>
parents: 14
diff changeset
158 #WHOIS_URL = "http://whois.domaintools.com/"
41
b11a56e256a9 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 40
diff changeset
159
b11a56e256a9 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 40
diff changeset
160
b11a56e256a9 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 40
diff changeset
161 ## If disabled (0), instead of full timestamps, first/last hit times
b11a56e256a9 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 40
diff changeset
162 ## will be printed as "W weeks, D days, H hours ago." etc.
b11a56e256a9 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 40
diff changeset
163 #FULL_TIME = 1
61
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
164
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
165
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
166 #############################################################################
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
167 ### Evidence gathering
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
168 #############################################################################
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
169 ## By enabling EVIDENCE=1 and setting EVIDENCE_DIR to existing directory
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
170 ## writable by the effective UID which Maltfilter runs as, it will be
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
171 ## populated by *.data and *.hosts files. If succesfully retrieved, .data
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
172 ## files will have contents of the attempted XSS URI. *.hosts files
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
173 ## list which hosts have attempted to exploit this specific URI.
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
174
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
175 #EVIDENCE = 0
8b33436dd18b Update example configuration and documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
176 #EVIDENCE_DIR = "/var/run/malt-evidence"