buster.conf.j2 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356
  1. #
  2. # This is the main configuration file for Rootkit Hunter.
  3. #
  4. # You can modify this file directly, or you can create a local configuration
  5. # file. The local file must be named 'rkhunter.conf.local', and must reside
  6. # in the same directory as this file. Alternatively you can create a directory,
  7. # named 'rkhunter.d', which also must be in the same directory as this
  8. # configuration file. Within the 'rkhunter.d' directory you can place further
  9. # configuration files. There is no restriction on the file names used, other
  10. # than they must end in '.conf'.
  11. #
  12. # Please modify the configuration file(s) to your own requirements. It is
  13. # recommended that the command 'rkhunter -C' is run after any changes have
  14. # been made.
  15. #
  16. # Please review the documentation before posting bug reports or questions.
  17. # To report bugs, provide patches or comments, please go to:
  18. # http://rkhunter.sourceforge.net
  19. #
  20. # To ask questions about rkhunter, please use the 'rkhunter-users' mailing list.
  21. # Note that this is a moderated list, so please subscribe before posting.
  22. #
  23. # In the configuration files, lines beginning with a hash (#), and blank lines,
  24. # are ignored. Also, end-of-line comments are not supported.
  25. #
  26. # Any of the configuration options may appear more than once. However, several
  27. # options only take one value, and so the last one seen will be used. Some
  28. # options are allowed to appear more than once, and the text describing the
  29. # option will say if this is so. These configuration options will, in effect,
  30. # have their values concatenated together. To delete a previously specified
  31. # option list, specify the option with no value (that is, a null string).
  32. #
  33. # Some of the options are space-separated lists, others, typically those
  34. # specifying pathnames, are newline-separated lists. These must be entered
  35. # as one item per line. Quotes must not be used to surround the pathname.
  36. #
  37. # For example, to specify two pathnames, '/tmp/abc' and '/tmp/xyz', for an
  38. # option: XXX=/tmp/abc (correct)
  39. # XXX=/tmp/xyz
  40. #
  41. # XXX="/tmp/abc" (incorrect)
  42. # XXX="/tmp/xyz"
  43. #
  44. # XXX=/tmp/abc /tmp/xyz (incorrect)
  45. # or XXX="/tmp/abc /tmp/xyz" (incorrect)
  46. # or XXX="/tmp/abc" "/tmp/xyz" (incorrect)
  47. #
  48. # The last three examples are being configured as space-separated lists,
  49. # which is incorrect, generally, for options specifying pathnames. They
  50. # should be configured with one entry per line as in the first example.
  51. #
  52. # If wildcard characters (globbing) are allowed for an option, then the
  53. # text describing the option will say so. Any globbing character explicitly
  54. # required in a pathname should be escaped.
  55. #
  56. # Space-separated lists may be enclosed by quotes, although they are not
  57. # required. If they are used, then they must only appear at the start and
  58. # end of the list, not in the middle.
  59. #
  60. # For example: XXX=abc def gh (correct)
  61. # XXX="abc def gh" (correct)
  62. # XXX="abc" "def" "gh" (incorrect)
  63. #
  64. # Space-separated lists may also be entered simply as one entry per line.
  65. #
  66. # For example: XXX=abc (correct)
  67. # XXX=def
  68. # XXX="gh"
  69. #
  70. # If a configuration option is never set, then the program will assume a
  71. # default value. The text describing the option will state the default value.
  72. # If there is no default, then rkhunter will calculate a value or pathname
  73. # to use. If a value is set for a configuration option, then the default
  74. # value is ignored. If it is wished to keep the default value, as well as
  75. # any other set value, then the default must be explicitly set.
  76. #
  77. #
  78. # If this option is set to '1', it specifies that the mirrors file
  79. # ('mirrors.dat'), which is used when the '--update' and '--versioncheck'
  80. # options are used, is to be rotated. Rotating the entries in the file allows
  81. # a basic form of load-balancing between the mirror sites whenever the above
  82. # options are used.
  83. #
  84. # If the option is set to '0', then the mirrors will be treated as if in a
  85. # priority list. That is, the first mirror listed will always be used first.
  86. # The second mirror will only be used if the first mirror fails, the third
  87. # mirror will only be used if the second mirror fails, and so on.
  88. #
  89. # If the mirrors file is read-only, then the '--versioncheck' command-line
  90. # option can only be used if this option is set to '0'.
  91. #
  92. # The default value is '1'.
  93. #
  94. #ROTATE_MIRRORS=1
  95. #
  96. # If this option is set to '1', it specifies that when the '--update' option is
  97. # used, then the mirrors file is to be checked for updates as well. If the
  98. # current mirrors file contains any local mirrors, these will be prepended to
  99. # the updated file. If this option is set to '0', the mirrors file can only be
  100. # updated manually. This may be useful if only using local mirrors.
  101. #
  102. # The default value is '1'.
  103. #
  104. UPDATE_MIRRORS=0
  105. #
  106. # The MIRRORS_MODE option tells rkhunter which mirrors are to be used when
  107. # the '--update' or '--versioncheck' command-line options are given.
  108. # Possible values are:
  109. # 0 - use any mirror
  110. # 1 - only use local mirrors
  111. # 2 - only use remote mirrors
  112. #
  113. # Local and remote mirrors can be defined in the mirrors file by using the
  114. # 'local=' and 'remote=' keywords respectively.
  115. #
  116. # The default value is '0'.
  117. #
  118. MIRRORS_MODE=1
  119. #
  120. # Email a message to this address if a warning is found when the system is
  121. # being checked. Multiple addresses may be specified simply be separating
  122. # them with a space. To disable the option, simply set it to the null string
  123. # or comment it out.
  124. #
  125. # The option may be specified more than once.
  126. #
  127. # The default value is the null string.
  128. #
  129. # Also see the MAIL_CMD option.
  130. #
  131. #MAIL-ON-WARNING=root
  132. #
  133. # This option specifies the mail command to use if MAIL-ON-WARNING is set.
  134. #
  135. # NOTE: Double quotes are not required around the command, but are required
  136. # around the subject line if it contains spaces.
  137. #
  138. # The default is to use the 'mail' command, with a subject line
  139. # of '[rkhunter] Warnings found for ${HOST_NAME}'.
  140. #
  141. #MAIL_CMD=mail -s "[rkhunter] Warnings found for ${HOST_NAME}"
  142. #
  143. # This option specifies the directory to use for temporary files.
  144. #
  145. # NOTE: Do not use '/tmp' as your temporary directory. Some important files
  146. # will be written to this directory, so be sure that the directory permissions
  147. # are secure.
  148. #
  149. # The installer program will set the default directory. If this default is
  150. # subsequently commented out or removed, then the program will assume a
  151. # default directory beneath the installation directory.
  152. #
  153. TMPDIR=/var/lib/rkhunter/tmp
  154. #
  155. # This option specifies the database directory to use.
  156. #
  157. # The installer program will set the default directory. If this default is
  158. # subsequently commented out or removed, then the program will assume a
  159. # default directory beneath the installation directory.
  160. #
  161. DBDIR=/var/lib/rkhunter/db
  162. #
  163. # This option specifies the script directory to use.
  164. #
  165. # The installer program will set the default directory. If this default is
  166. # subsequently commented out or removed, then the program will not run.
  167. #
  168. SCRIPTDIR=/usr/share/rkhunter/scripts
  169. #
  170. # This option can be used to modify the command directory list used by rkhunter
  171. # to locate commands (that is, its PATH). By default this will be the root PATH,
  172. # and an internal list of some common command directories.
  173. #
  174. # Any directories specified here will, by default, be appended to the default
  175. # list. However, if a directory name begins with the '+' character, then that
  176. # directory will be prepended to the list (that is, it will be put at the start
  177. # of the list).
  178. #
  179. # This is a space-separated list of directory names. The option may be
  180. # specified more than once.
  181. #
  182. # The default value is based on the root account PATH environment variable.
  183. #
  184. #BINDIR=/bin /usr/bin /sbin /usr/sbin
  185. #BINDIR=+/usr/local/bin +/usr/local/sbin
  186. #
  187. # This option specifies the default language to use. This should be similar to
  188. # the ISO 639 language code.
  189. #
  190. # NOTE: Please ensure that the language you specify is supported.
  191. # For a list of supported languages use the following command:
  192. #
  193. # rkhunter --lang en --list languages
  194. #
  195. # The default language is 'en' (English).
  196. #
  197. #LANGUAGE=en
  198. #
  199. # This option is a space-separated list of the languages that are to be updated
  200. # when the '--update' option is used. If unset, then all the languages will be
  201. # updated. If none of the languages are to be updated, then set this option to
  202. # just 'en'.
  203. #
  204. # The default language, specified by the LANGUAGE option, and the English (en)
  205. # language file will always be updated regardless of this option.
  206. #
  207. # This option may be specified more than once.
  208. #
  209. # The default value is the null string, indicating that all the language files
  210. # will be updated.
  211. #
  212. UPDATE_LANG="en"
  213. #
  214. # This option specifies the log file pathname. The file will be created if it
  215. # does not initially exist. If the option is unset, then the program will
  216. # display a message each time it is run saying that the default value is being
  217. # used.
  218. #
  219. # The default value is '/var/log/rkhunter.log'.
  220. #
  221. LOGFILE=/var/log/rkhunter.log
  222. #
  223. # Set this option to '1' if the log file is to be appended to whenever rkhunter
  224. # is run. A value of '0' will cause a new log file to be created whenever the
  225. # program is run.
  226. #
  227. # The default value is '0'.
  228. #
  229. #APPEND_LOG=0
  230. #
  231. # Set the following option to '1' if the log file is to be copied when rkhunter
  232. # finishes and an error or warning has occurred. The copied log file name will
  233. # be appended with the current date and time (in YYYY-MM-DD_HH:MM:SS format).
  234. # For example: rkhunter.log.2009-04-21_00:57:51
  235. # If the option value is '0', then the log file will not be copied regardless
  236. # of whether any errors or warnings occurred.
  237. #
  238. # The default value is '0'.
  239. #
  240. #COPY_LOG_ON_ERROR=0
  241. #
  242. # Set the following option to enable the rkhunter check start and finish times
  243. # to be logged by syslog. Warning messages will also be logged. The value of
  244. # the option must be a standard syslog facility and priority, separated by a
  245. # dot. For example:
  246. #
  247. # USE_SYSLOG=authpriv.warning
  248. #
  249. # Setting the value to 'NONE', or just leaving the option commented out,
  250. # disables the use of syslog.
  251. #
  252. # The default value is not to use syslog.
  253. #
  254. USE_SYSLOG=authpriv.warning
  255. #
  256. # Set the following option to '1' if the second colour set is to be used. This
  257. # can be useful if your screen uses black characters on a white background
  258. # (for example, a PC instead of a server). A value of '0' will cause the default
  259. # colour set to be used.
  260. #
  261. # The default value is '0'.
  262. #
  263. #COLOR_SET2=0
  264. #
  265. # Set the following option to '0' if rkhunter should not detect if X is being
  266. # used. If X is detected as being used, then the second colour set will
  267. # automatically be used. If set to '1', then the use of X will be detected.
  268. #
  269. # The default value is '0'.
  270. #
  271. AUTO_X_DETECT=1
  272. #
  273. # Set the following option to '1' if it is wanted that any 'Whitelisted' results
  274. # are shown in white rather than green. For colour set 2 users, setting this
  275. # option will cause the result to be shown in black. Setting the option to '0'
  276. # causes whitelisted results to be displayed in green.
  277. #
  278. # The default value is '0'.
  279. #
  280. #WHITELISTED_IS_WHITE=0
  281. #
  282. # The following option is checked against the SSH configuration file
  283. # 'PermitRootLogin' option. A warning will be displayed if they do not match.
  284. # However, if a value has not been set in the SSH configuration file, then a
  285. # value here of 'unset' can be used to avoid warning messages.
  286. #
  287. # The default value is 'no'.
  288. #
  289. ALLOW_SSH_ROOT_USER=without-password
  290. #
  291. # Set this option to '1' to allow the use of the SSH-1 protocol, but note
  292. # that theoretically it is weaker, and therefore less secure, than the
  293. # SSH-2 protocol. Do not modify this option unless you have good reasons
  294. # to use the SSH-1 protocol (for instance for AFS token passing or Kerberos4
  295. # authentication). If the 'Protocol' option has not been set in the SSH
  296. # configuration file, then a value of '2' may be set here in order to
  297. # suppress a warning message. A value of '0' indicates that the use of
  298. # SSH-1 is not allowed.
  299. #
  300. # The default value is '0'.
  301. #
  302. ALLOW_SSH_PROT_V1=2
  303. #
  304. # This setting tells rkhunter the directory containing the SSH configuration
  305. # file. If unset, this setting will be worked out by rkhunter, and so should
  306. # not usually need to be set.
  307. #
  308. # This option has no default value.
  309. #
  310. #SSH_CONFIG_DIR=/etc/ssh
  311. #
  312. # These two options determine which tests are to be performed. The ENABLE_TESTS
  313. # option can use the word 'ALL' to refer to all of the available tests. The
  314. # DISABLE_TESTS option can use the word 'NONE' to mean that no tests are
  315. # disabled. The list of disabled tests is applied to the list of enabled tests.
  316. #
  317. # Both options are space-separated lists of test names, and both options may
  318. # be specified more than once. The currently available test names can be seen
  319. # by using the command 'rkhunter --list tests'.
  320. #
  321. # The supplied configuration file has some tests already disabled, and these
  322. # are tests that will be used only occasionally, can be considered 'advanced'
  323. # or that are prone to produce more than the average number of false-positives.
  324. #
  325. # Please read the README file for more details about enabling and disabling
  326. # tests, the test names, and how rkhunter behaves when these options are used.
  327. #
  328. # The default values are to enable all tests and to disable none. However, if
  329. # either of the options below are specified, then they will override the
  330. # program defaults.
  331. #
  332. ENABLE_TESTS=ALL
  333. DISABLE_TESTS=suspscan hidden_ports hidden_procs deleted_files packet_cap_apps apps
  334. #
  335. # The HASH_CMD option can be used to specify the command to use for the file
  336. # properties hash value check. It can be specified as just the command name or
  337. # the full pathname. If just the command name is given, and it is one of MD5,
  338. # SHA1, SHA224, SHA256, SHA384 or SHA512, then rkhunter will first look for the
  339. # relevant command, such as 'sha256sum', and then for 'sha256'. If neither of
  340. # these are found, it will then look to see if a perl module has been installed
  341. # which will support the relevant hash function. To see which perl modules have
  342. # been installed use the command 'rkhunter --list perl'.
  343. #
  344. # Systems using prelinking are restricted to using either the SHA1 or MD5
  345. # function.
  346. #
  347. # A value of 'NONE' (in uppercase) can be specified to indicate that no hash
  348. # function should be used. Rkhunter will detect this, and automatically disable
  349. # the file properties hash check test.
  350. #
  351. # Examples:
  352. # For Solaris 9 : HASH_CMD=gmd5sum
  353. # For Solaris 10: HASH_CMD=sha1sum
  354. # For AIX (>5.2): HASH_CMD="csum -hMD5"
  355. # For NetBSD : HASH_CMD="cksum -a sha512"
  356. #
  357. # NOTE: Whenever this option is changed 'rkhunter --propupd' must be run.
  358. #
  359. # The default value is the SHA256 function, unless prelinking is used in
  360. # which case it defaults to the SHA1 function.
  361. #
  362. # Also see the HASH_FLD_IDX option. In addition, note the comments under
  363. # the PKGMGR option relating to the use of HASH_CMD.
  364. #
  365. #HASH_CMD=SHA256
  366. #
  367. # The HASH_FLD_IDX option specifies which field from the HASH_CMD command
  368. # output contains the hash value. The fields are assumed to be space-separated.
  369. #
  370. # The option value must be an integer greater than zero.
  371. #
  372. # The default value is '1', but for *BSD users rkhunter will, by default, use a
  373. # value of '4' if the HASH_CMD option has not been set.
  374. #
  375. #HASH_FLD_IDX=4
  376. #
  377. # The PKGMGR option tells rkhunter to use the specified package manager to
  378. # obtain the file property information. This is used when updating the file
  379. # properties file ('rkhunter.dat'), and when running the file properties check.
  380. # For RedHat/RPM-based systems, 'RPM' can be used to get information from the
  381. # RPM database. For Debian-based systems 'DPKG' can be used, for *BSD systems
  382. # 'BSD' can be used, or for *BSD systems with the 'pkg' command 'BSDng' can be
  383. # used, and for Solaris systems 'SOLARIS' can be used. No value, or a value of
  384. # 'NONE', indicates that no package manager is to be used.
  385. #
  386. # The package managers obtain each file hash value using a hash function. The
  387. # Solaris package manager includes a 16-bit checksum value, but this is not
  388. # used by default (see USE_SUNSUM below). The 'RPM' and 'BSDng' package managers
  389. # currently use a SHA256 hash function. Other package managers will, typically,
  390. # use an MD5 hash function.
  391. #
  392. # The 'DPKG', 'BSD' and 'BSDng' package managers only provide a file hash value.
  393. # The 'RPM' package manager additionally provides values for the inode, file
  394. # permissions, uid, gid and other values. The 'SOLARIS' package manager also
  395. # provides most of the values, similar to 'RPM', but not the inode number.
  396. #
  397. # For any file not part of a package, rkhunter will revert to using the
  398. # HASH_CMD hash function instead. This means that if the HASH_CMD option
  399. # is set, and PKGMGR is set, then the HASH_CMD hash function is only used,
  400. # and stored, for non-packaged files. All packaged files will use, and store,
  401. # whatever hash function the relevant package manager uses. So, for example,
  402. # with the 'RPM' package manager, packaged files will be stored with their
  403. # SHA256 value regardless of the value of the HASH_CMD option.
  404. #
  405. # NOTE: Whenever this option is changed 'rkhunter --propupd' must be run.
  406. #
  407. # The default value is 'NONE'.
  408. #
  409. # Also see the PKGMGR_NO_VRFY and USE_SUNSUM options.
  410. #
  411. # NONE is the default for Debian as well, as running --propupd takes
  412. # about 4 times longer when it's set to DPKG
  413. #
  414. #PKGMGR=NONE
  415. #
  416. # It is possible that a file, which is part of a package, may have been
  417. # modified by the administrator. Typically this occurs for configuration
  418. # files. However, the package manager may list the file as being modified.
  419. # For the RPM package manager this may well depend on how the package was
  420. # built. This option specifies a pathname which is to be exempt from the
  421. # package manager verification process, and which will be treated
  422. # as a non-packaged file. As such, the file properties are still checked.
  423. #
  424. # This option only takes effect if the PKGMGR option has been set, and
  425. # is not 'NONE'.
  426. #
  427. # This option may be specified more than once.
  428. #
  429. # NOTE: Whenever this option is changed 'rkhunter --propupd' must be run.
  430. #
  431. # The default value is the null string.
  432. #
  433. #PKGMGR_NO_VRFY=""
  434. #
  435. # If the 'SOLARIS' package manager is used, then it is possible to use the
  436. # checksum (hash) value stored for a file. However, this is only a 16-bit
  437. # checksum, and as such is not nearly as secure as, for example, a SHA-2 value.
  438. # If the option is set to '0', then the checksum is not used and the hash
  439. # function given by HASH_CMD is used instead. To enable this option, set its
  440. # value to '1'. The Solaris 'sum' command must be present on the system if this
  441. # option is used.
  442. #
  443. # The default value is '0'.
  444. #
  445. #USE_SUNSUM=0
  446. #
  447. # This option can be used to tell rkhunter to ignore any prelink dependency
  448. # errors for the given commands. However, a warning will also be issued if the
  449. # error does not occur for a given command. As such this option must only be
  450. # used on commands which experience a persistent problem.
  451. #
  452. # Short-term prelink dependency errors can usually be resolved simply by
  453. # running the 'prelink' command on the given pathname.
  454. #
  455. # This is a space-separated list of command pathnames. The option can be
  456. # specified more than once.
  457. #
  458. # NOTE: Whenever this option is changed 'rkhunter --propupd' must be run.
  459. #
  460. # The default value is the null string.
  461. #
  462. #IGNORE_PRELINK_DEP_ERR=/bin/ps /usr/bin/top
  463. #
  464. # These options specify a command, directory or file pathname which will be
  465. # included or excluded in the file properties checks.
  466. #
  467. # For the USER_FILEPROP_FILES_DIRS option, simple command names - for example,
  468. # 'top' - and directory names are added to the internal list of directories to
  469. # be searched for each of the command names in the command list. Additionally,
  470. # full pathnames to files, which need not be commands, may be given. Any files
  471. # or directories which are already part of the internal lists will be silently
  472. # ignored from the configuration.
  473. #
  474. # For the USER_FILEPROP_FILES_DIRS option, wildcards are allowed, except for
  475. # simple command names.
  476. # For example, 'top*' cannot be given, but '/usr/bin/top*' is allowed.
  477. #
  478. # To extend the use of wildcards to include recursive checking of directories,
  479. # see the GLOBSTAR configuration option.
  480. #
  481. # Specific files may be excluded by using the EXCLUDE_USER_FILEPROP_FILES_DIRS
  482. # option. Wildcards may be used with this option.
  483. #
  484. # By combining these two options, and using wildcards, whole directories can be
  485. # excluded. For example:
  486. #
  487. # USER_FILEPROP_FILES_DIRS=/etc/*
  488. # USER_FILEPROP_FILES_DIRS=/etc/*/*
  489. # EXCLUDE_USER_FILEPROP_FILES_DIRS=/etc/rc?.d/*
  490. #
  491. # This will look for files in the first two directory levels of '/etc'. However,
  492. # anything in '/etc/rc0.d', '/etc/rc1.d', '/etc/rc2.d' and so on, will be
  493. # excluded.
  494. #
  495. # NOTE: Only files and directories which have been added by the user, and are
  496. # not part of the internal lists, can be excluded. So, for example, it is not
  497. # possible to exclude the 'ps' command by using '/bin/ps'. These will be
  498. # silently ignored from the configuration.
  499. #
  500. # Both options can be specified more than once.
  501. #
  502. # NOTE: Whenever these options are changed 'rkhunter --propupd' must be run.
  503. #
  504. # The default value for both options is the null string.
  505. #
  506. #USER_FILEPROP_FILES_DIRS=top
  507. #USER_FILEPROP_FILES_DIRS=/usr/local/sbin
  508. #USER_FILEPROP_FILES_DIRS=/etc/rkhunter.conf
  509. #USER_FILEPROP_FILES_DIRS=/etc/rkhunter.conf.local
  510. #USER_FILEPROP_FILES_DIRS=/etc/rkhunter.d/*
  511. #EXCLUDE_USER_FILEPROP_FILES_DIRS=/opt/ps*
  512. #
  513. # This option whitelists files and directories from existing, or not existing,
  514. # on the system at the time of testing. This option is used when the
  515. # configuration file options themselves are checked, and during the file
  516. # properties check, the hidden files and directories checks, and the filesystem
  517. # check of the '/dev' directory.
  518. #
  519. # This option may be specified more than once, and may use wildcards.
  520. # Be aware though that this is probably not what you want to do as the
  521. # wildcarding will be expanded after files have been deleted. As such
  522. # deleted files won't be whitelisted if wildcarded.
  523. #
  524. # NOTE: The user must take into consideration how often the file will appear
  525. # and disappear from the system in relation to how often rkhunter is run. If
  526. # the file appears, and disappears, too often then rkhunter may not notice
  527. # this. All it will see is that the file has changed. The inode number and DTM
  528. # will certainly be different for each new file, and rkhunter will report this.
  529. #
  530. # The default value is the null string.
  531. #
  532. #EXISTWHITELIST=""
  533. #
  534. # Whitelist various attributes of the specified file. The attributes are those
  535. # of the 'attributes' test. Specifying a file name here does not include it
  536. # being whitelisted for the write permission test (see below).
  537. #
  538. # This option may be specified more than once, and may use wildcard characters.
  539. #
  540. # The default value is the null string.
  541. #
  542. #ATTRWHITELIST=/usr/bin/date
  543. #
  544. # Allow the specified file to have the 'others' (world) permission have the
  545. # write-bit set. For example, files with permissions r-xr-xrwx or rwxrwxrwx.
  546. #
  547. # This option may be specified more than once, and may use wildcard characters.
  548. #
  549. # The default value is the null string.
  550. #
  551. #WRITEWHITELIST=/usr/bin/date
  552. #
  553. # Allow the specified file to be a script.
  554. #
  555. # This option may be specified more than once, and may use wildcard characters.
  556. #
  557. # The default value is the null string.
  558. #
  559. SCRIPTWHITELIST=/bin/egrep
  560. SCRIPTWHITELIST=/bin/fgrep
  561. SCRIPTWHITELIST=/bin/which
  562. SCRIPTWHITELIST=/usr/bin/ldd
  563. #SCRIPTWHITELIST=/usr/bin/lwp-request
  564. SCRIPTWHITELIST=/usr/sbin/adduser
  565. #SCRIPTWHITELIST=/usr/sbin/prelink
  566. #SCRIPTWHITELIST=/usr/sbin/unhide.rb
  567. #
  568. # Allow the specified file to have the immutable attribute set.
  569. #
  570. # This option may be specified more than once, and may use wildcard characters.
  571. #
  572. # The default value is the null string.
  573. #
  574. #IMMUTWHITELIST=/sbin/ifdown
  575. #
  576. # If this option is set to '1', then the immutable-bit test is reversed. That
  577. # is, the files are expected to have the bit set. A value of '0' means that the
  578. # immutable-bit should not be set.
  579. #
  580. # The default value is '0'.
  581. #
  582. #IMMUTABLE_SET=0
  583. #
  584. # If this option is set to '1', then any changed inode value is ignored in
  585. # the file properties check. The inode test itself still runs, but it will
  586. # always return that no inodes have changed.
  587. #
  588. # This option may be useful for filesystems such as Btrfs, which handle inodes
  589. # slightly differently than other filesystems.
  590. #
  591. # The default value is '0'.
  592. #
  593. #SKIP_INODE_CHECK=0
  594. #
  595. # Allow the specified hidden directory to be whitelisted.
  596. #
  597. # This option may be specified more than once, and may use wildcard characters.
  598. #
  599. # The default value is the null string.
  600. #
  601. #ALLOWHIDDENDIR=/etc/.java
  602. #ALLOWHIDDENDIR=/etc/.git
  603. #ALLOWHIDDENDIR=/dev/.lxc
  604. ALLOWHIDDENDIR=/etc/.java
  605. ALLOWHIDDENDIR=/etc/.git
  606. #
  607. # Allow the specified hidden file to be whitelisted.
  608. #
  609. # This option may be specified more than once, and may use wildcard characters.
  610. #
  611. # The default value is the null string.
  612. #
  613. #ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz
  614. #ALLOWHIDDENFILE=/usr/bin/.fipscheck.hmac
  615. #ALLOWHIDDENFILE=/usr/bin/.ssh.hmac
  616. #ALLOWHIDDENFILE=/usr/lib/.libfipscheck.so.1.1.0.hmac
  617. #ALLOWHIDDENFILE=/usr/lib/hmaccalc/sha1hmac.hmac
  618. #ALLOWHIDDENFILE=/usr/lib/hmaccalc/sha256hmac.hmac
  619. #ALLOWHIDDENFILE=/usr/sbin/.sshd.hmac
  620. #ALLOWHIDDENFILE=/usr/share/man/man5/.k5login.5.gz
  621. #ALLOWHIDDENFILE=/usr/share/man/man5/.k5identity.5.gz
  622. #ALLOWHIDDENFILE=/etc/.gitignore
  623. #ALLOWHIDDENFILE=/etc/.bzrignore
  624. #ALLOWHIDDENFILE=/etc/.etckeeper
  625. ALLOWHIDDENFILE=/etc/.gitignore
  626. ALLOWHIDDENFILE=/etc/.etckeeper
  627. #
  628. # Allow the specified process to use deleted files. The process name may be
  629. # followed by a colon-separated list of full pathnames (which have been
  630. # deleted). The process will then only be whitelisted if it is using one of
  631. # the given pathnames. For example:
  632. #
  633. # ALLOWPROCDELFILE=/usr/libexec/gconfd-2:/tmp/abc:/var/tmp/xyz
  634. #
  635. # This option may be specified more than once. It may also use wildcards, but
  636. # only in the deleted file pathnames, not in the process name. The use of
  637. # extended pattern matching in pathname expansion (for example, '**') is not
  638. # supported for this option. However, the option itself extends globbing when
  639. # the '*' character is used by matching zero or more characters in the
  640. # pathname, including those in sub-directories. For example, the pathname
  641. # '/tmp/abc/def/xyz' would not be matched by shell globbing using '/tmp/*/xyz'
  642. # but is matched when used in this option. Similarly, using '/tmp/*' will
  643. # match any file found in the '/tmp' directory or any sub-directories.
  644. #
  645. # The default value is the null string.
  646. #
  647. #ALLOWPROCDELFILE=/sbin/cardmgr
  648. #ALLOWPROCDELFILE=/usr/lib/libgconf2-4/gconfd-2
  649. #ALLOWPROCDELFILE=/usr/sbin/mysqld:/tmp/ib*
  650. #ALLOWPROCDELFILE=/usr/lib/iceweasel/iceweasel
  651. #ALLOWPROCDELFILE=/usr/bin/file-roller
  652. #
  653. # Allow the specified process to listen on any network interface.
  654. #
  655. # This option may be specified more than once, and may use wildcard characters.
  656. #
  657. # The default value is the null string.
  658. #
  659. #ALLOWPROCLISTEN=/sbin/dhclient
  660. #ALLOWPROCLISTEN=/usr/bin/dhcpcd
  661. #ALLOWPROCLISTEN=/usr/sbin/tcpdump
  662. #ALLOWPROCLISTEN=/usr/sbin/snort-plain
  663. #
  664. # Allow the specified network interfaces to be in promiscuous mode.
  665. #
  666. # This is a space-separated list of interface names. The option may be
  667. # specified more than once.
  668. #
  669. # The default value is the null string.
  670. #
  671. #ALLOWPROMISCIF=eth0
  672. #
  673. # This option specifies how rkhunter should scan the '/dev' directory for
  674. # suspicious files. The only allowed values are 'THOROUGH' and 'LAZY'.
  675. #
  676. # A THOROUGH scan will increase the overall runtime of rkhunter. Despite this,
  677. # it is highly recommended that this value is used.
  678. #
  679. # The default value is 'THOROUGH'.
  680. #
  681. # Also see the ALLOWDEVFILE option.
  682. #
  683. #SCAN_MODE_DEV=THOROUGH
  684. #
  685. # Allow the specified file to be present in the '/dev' directory, and not
  686. # regarded as suspicious.
  687. #
  688. # This option may be specified more than once, and may use wildcard characters.
  689. #
  690. # The default value is the null string.
  691. #
  692. #ALLOWDEVFILE=/dev/shm/pulse-shm-*
  693. #ALLOWDEVFILE=/dev/shm/sem.ADBE_*
  694. ALLOWDEVFILE=/dev/shm/PostgreSQL.*
  695. #
  696. # Allow the specified process pathnames to use shared memory segments.
  697. #
  698. # This option may be specified more than once, and may use wildcard characters.
  699. #
  700. # The default value is the null string.
  701. #
  702. #ALLOWIPCPROC=/usr/bin/firefox
  703. #ALLOWIPCPROC=/usr/bin/vlc
  704. #
  705. # Allow the specified memory segment creator PIDs to use shared memory segments.
  706. #
  707. # This is a space-separated list of PID numbers (as given by the
  708. # 'ipcs -p' command). This option may be specified more than once.
  709. #
  710. # The default value is the null string.
  711. #
  712. #ALLOWIPCPID=12345 6789
  713. #
  714. # Allow the specified account names to use shared memory segments.
  715. #
  716. # This is a space-separated list of account names. The option may be specified
  717. # more than once.
  718. #
  719. # The default value is the null string.
  720. #
  721. #ALLOWIPCUSER=usera userb
  722. #
  723. # This option can be used to set the maximum shared memory segment size
  724. # (in bytes) that is not considered suspicious. Any segment above this size,
  725. # and with 600 or 666 permissions, will be considered suspicious during the
  726. # shared memory check.
  727. #
  728. # The default is 1048576 (1M) bytes.
  729. #
  730. #IPC_SEG_SIZE=1048576
  731. #
  732. # This option is used to indicate if the Phalanx2 test is to perform a basic
  733. # check, or a more thorough check. If the option is set to '0', then a basic
  734. # check is performed. If it is set to '1', then all the directories in the
  735. # '/etc' and '/usr' directories are scanned.
  736. #
  737. # NOTE: Setting this option to '1' will cause the test to take longer
  738. # to complete.
  739. #
  740. # The default value is '0'.
  741. #
  742. #PHALANX2_DIRTEST=0
  743. #
  744. # This option tells rkhunter where the inetd configuration file is located.
  745. #
  746. # The default value is the null string.
  747. #
  748. #INETD_CONF_PATH=/etc/inetd.conf
  749. #
  750. # This option allows the specified enabled inetd services.
  751. #
  752. # This is a space-separated list of service names. The option may be specified
  753. # more than once.
  754. #
  755. # For non-Solaris users the simple service name should be used.
  756. # For example:
  757. #
  758. # INETD_ALLOWED_SVC=echo
  759. #
  760. # For Solaris 9 users the simple service name should also be used, but
  761. # if it is an RPC service, then the executable pathname should be used.
  762. # For example:
  763. #
  764. # INETD_ALLOWED_SVC=imaps
  765. # INETD_ALLOWED_SVC=/usr/sbin/rpc.metad /usr/sbin/rpc.metamhd
  766. #
  767. # For Solaris 10 users the service/FMRI name should be used. For example:
  768. #
  769. # INETD_ALLOWED_SVC=/network/rpc/meta
  770. # INETD_ALLOWED_SVC=/network/rpc/metamed
  771. # INETD_ALLOWED_SVC=/application/font/stfsloader
  772. # INETD_ALLOWED_SVC=/network/rpc-100235_1/rpc_ticotsord
  773. #
  774. # The default value is the null string.
  775. #
  776. #INETD_ALLOWED_SVC=echo
  777. #
  778. # This option tells rkhunter where the xinetd configuration file is located.
  779. #
  780. # The default value is the null string.
  781. #
  782. #XINETD_CONF_PATH=/etc/xinetd.conf
  783. #
  784. # This option allows the specified enabled xinetd services. Whilst it would be
  785. # nice to use the service names themselves, at the time of testing we only have
  786. # the pathname available. As such, these entries are the xinetd file pathnames.
  787. #
  788. # This is a space-separated list of service names. The option may be specified
  789. # more than once.
  790. #
  791. # The default value is the null string.
  792. #
  793. #XINETD_ALLOWED_SVC=/etc/xinetd.d/echo
  794. #
  795. # This option tells rkhunter the local system startup file pathnames. The
  796. # directories will be searched for files. If unset, then rkhunter will try
  797. # and determine were the startup files are located. If the option is set to
  798. # 'NONE' then certain tests will be skipped.
  799. #
  800. # This is a space-separated list of file and directory pathnames. The option
  801. # may be specified more than once, and may use wildcard characters.
  802. #
  803. # This option has no default value.
  804. #
  805. #STARTUP_PATHS=/etc/init.d /etc/rc.local
  806. #
  807. # This option tells rkhunter the pathname to the file containing the user
  808. # account passwords. If unset, this setting will be worked out by rkhunter,
  809. # and so should not usually need to be set. Users of TCB shadow files should
  810. # not set this option.
  811. #
  812. # This option has no default value.
  813. #
  814. #PASSWORD_FILE=/etc/shadow
  815. #
  816. # This option allows the specified accounts to be root equivalent. These
  817. # accounts will have a UID value of zero. The 'root' account does not need
  818. # to be listed as it is automatically whitelisted.
  819. #
  820. # This is a space-separated list of account names. The option may be specified
  821. # more than once.
  822. #
  823. # NOTE: For *BSD systems you will probably need to use this option for the
  824. # 'toor' account.
  825. #
  826. # The default value is the null string.
  827. #
  828. #UID0_ACCOUNTS=toor rooty sashroot
  829. #
  830. # This option allows the specified accounts to have no password. NIS/YP entries
  831. # do not need to be listed as they are automatically whitelisted.
  832. #
  833. # This is a space-separated list of account names. The option may be specified
  834. # more than once.
  835. #
  836. # The default value is the null string.
  837. #
  838. #PWDLESS_ACCOUNTS=abc
  839. #
  840. # This option tells rkhunter the pathname to the syslog configuration file.
  841. # If unset, this setting will be worked out by rkhunter, and so should not
  842. # usually need to be set. A value of 'NONE' can be used to indicate that
  843. # there is no configuration file, but that the syslog daemon process may
  844. # be running.
  845. #
  846. # This is a space-separated list of pathnames. The option may be specified
  847. # more than once.
  848. #
  849. # This option has no default value.
  850. #
  851. #SYSLOG_CONFIG_FILE=/etc/syslog.conf
  852. #
  853. # If this option is set to '1', then the use of syslog remote logging is
  854. # permitted. A value of '0' disallows the use of remote logging.
  855. #
  856. # The default value is '0'.
  857. #
  858. #ALLOW_SYSLOG_REMOTE_LOGGING=0
  859. #
  860. # This option allows the specified applications, or a specific version of an
  861. # application, to be whitelisted. If a specific version is to be whitelisted,
  862. # then the name must be followed by a colon and then the version number.
  863. # For example:
  864. #
  865. # APP_WHITELIST=openssl:0.9.7d gpg httpd:1.3.29
  866. #
  867. # This is a space-separated list of pathnames. The option may be specified
  868. # more than once.
  869. #
  870. # The default value is the null string.
  871. #
  872. #APP_WHITELIST=""
  873. #
  874. # Set this option to scan for suspicious files in directories which pose a
  875. # relatively higher risk due to user write access.
  876. #
  877. # Please do not enable the 'suspscan' test by default as it is CPU and I/O
  878. # intensive, and prone to producing false positives. Do review all settings
  879. # before usage. Also be aware that running 'suspscan' in combination with
  880. # verbose logging on, rkhunter's default, will show all ignored files.
  881. #
  882. # Please consider adding all directories the user the (web)server runs as,
  883. # and has write access to, including the document root (e.g: '/var/www') and
  884. # log directories (e.g: '/var/log/httpd').
  885. #
  886. # This is a space-separated list of directory pathnames. The option may be
  887. # specified more than once.
  888. #
  889. # The default value is the '/tmp' and '/var/tmp' directories.
  890. #
  891. #SUSPSCAN_DIRS=/tmp /var/tmp
  892. #
  893. # This option specifies the directory for temporary files used by the
  894. # 'suspscan' test. A memory-based directory, such as a tempfs filesystem, is
  895. # better (faster). Do not use a directory name that is listed in SUSPSCAN_DIRS
  896. # as that is highly likely to cause false-positive results.
  897. #
  898. # The default value is '/dev/shm'.
  899. #
  900. #SUSPSCAN_TEMP=/dev/shm
  901. #
  902. # This option specifies the 'suspscan' test maximum filesize in bytes. Files
  903. # larger than this will not be inspected. Do make sure you have enough space
  904. # available in your temporary files directory.
  905. #
  906. # The default value is '1024000'.
  907. #
  908. #SUSPSCAN_MAXSIZE=1024000
  909. #
  910. # This option specifies the 'suspscan' test score threshold. Below this value
  911. # no hits will be reported.
  912. #
  913. # The default value is '200'.
  914. #
  915. #SUSPSCAN_THRESH=200
  916. #
  917. # This option may be used to whitelist file pathnames from the suspscan test.
  918. #
  919. # Shell globbing may be used in the pathname. Also see the GLOBSTAR configuration
  920. # option.
  921. #
  922. # This option may be specified more than once.
  923. #
  924. # The default value is the null string.
  925. #
  926. #SUSPSCAN_WHITELIST=""
  927. #
  928. # The following options can be used to whitelist network ports which are known
  929. # to have been used by malware.
  930. #
  931. # The PORT_WHITELIST option is a space-separated list of one or more of two
  932. # types of whitelisting. These are:
  933. #
  934. # 1) a 'protocol:port' pair
  935. # 2) an asterisk ('*')
  936. #
  937. # Only the UDP or TCP protocol may be specified, and the port number must be
  938. # between 1 and 65535 inclusive.
  939. #
  940. # The asterisk can be used to indicate that any executable which rkhunter can
  941. # locate as a command, is whitelisted. (Also see BINDIR)
  942. #
  943. # The PORT_PATH_WHITELIST option specifies one of two types of whitelisting.
  944. # These are:
  945. #
  946. # 1) a pathname to an executable
  947. # 2) a combined pathname, protocol and port
  948. #
  949. # As above, the protocol can only be TCP or UDP, and the port number must be
  950. # between 1 and 65535 inclusive.
  951. #
  952. # Examples:
  953. #
  954. # PORT_WHITELIST=TCP:2001 UDP:32011
  955. # PORT_PATH_WHITELIST=/usr/sbin/squid
  956. # PORT_PATH_WHITELIST=/usr/sbin/squid:TCP:3801
  957. #
  958. # NOTE: In order to whitelist a pathname, or use the asterisk option, the
  959. # 'lsof' command must be present.
  960. #
  961. # Both options may be specified more than once.
  962. #
  963. # The default value for both options is the null string.
  964. #
  965. #PORT_WHITELIST=""
  966. #PORT_PATH_WHITELIST=""
  967. #
  968. # The following option can be used to tell rkhunter where the operating system
  969. # 'release' file is located. This file contains information specifying the
  970. # current O/S version. RKH will store this information, and check to see if it
  971. # has changed between each run. If it has changed, then the user is warned that
  972. # RKH may issue warning messages until RKH has been run with the '--propupd'
  973. # option.
  974. #
  975. # Since the contents of the file vary according to the O/S distribution, RKH
  976. # will perform different actions when it detects the file itself. As such, this
  977. # option should not be set unless necessary. If this option is specified, then
  978. # RKH will assume the O/S release information is on the first non-blank line of
  979. # the file.
  980. #
  981. # This option has no default value.
  982. #
  983. # Also see the WARN_ON_OS_CHANGE and UPDT_ON_OS_CHANGE options.
  984. #
  985. #OS_VERSION_FILE=/etc/debian_version
  986. #
  987. # Set the following option to '0' if you do not want to receive a warning if any
  988. # O/S information has changed since the last run of 'rkhunter --propupd'. The
  989. # warnings occur during the file properties check. Setting a value of '1' will
  990. # cause rkhunter to issue a warning if something has changed.
  991. #
  992. # The default value is '1'.
  993. #
  994. #WARN_ON_OS_CHANGE=1
  995. #
  996. # Set the following option to '1' if you want rkhunter to automatically run a
  997. # file properties update ('--propupd') if the O/S has changed. Detection of an
  998. # O/S change occurs during the file properties check. Setting a value of '0'
  999. # will cause rkhunter not to do an automatic update.
  1000. #
  1001. # WARNING: Only set this option if you are sure that the update will work
  1002. # correctly. That is, that the database directory is writeable, that a valid
  1003. # hash function is available, and so on. This can usually be checked simply by
  1004. # running 'rkhunter --propupd' at least once.
  1005. #
  1006. # The default value is '0'.
  1007. #
  1008. #UPDT_ON_OS_CHANGE=0
  1009. #
  1010. # The following two options can be used to whitelist files and directories that
  1011. # would normally be flagged with a warning during the various rootkit and
  1012. # malware checks. Only existing files and directories can be specified, and
  1013. # these must be full pathnames not links.
  1014. #
  1015. # Additionally, the RTKT_FILE_WHITELIST option may include a string after the
  1016. # file name (separated by a colon). This will then only whitelist that string
  1017. # in that file (as part of the malware checks). For example:
  1018. #
  1019. # RTKT_FILE_WHITELIST=/etc/rc.local:hdparm
  1020. #
  1021. # If the option list includes the filename on its own as well, then the file
  1022. # will be whitelisted from rootkit checks of the files existence, but still
  1023. # only the specific string within the file will be whitelisted. For example:
  1024. #
  1025. # RTKT_FILE_WHITELIST=/etc/rc.local
  1026. # RTKT_FILE_WHITELIST=/etc/rc.local:hdparm
  1027. #
  1028. # To whitelist a file from the existence checks, but not from the strings
  1029. # checks, then include the filename on its own and on its own but with just
  1030. # a colon appended. For example:
  1031. #
  1032. # RTKT_FILE_WHITELIST=/etc/rc.local
  1033. # RTKT_FILE_WHITELIST=/etc/rc.local:
  1034. #
  1035. # NOTE: It is recommended that if you whitelist any files, then you include
  1036. # those files in the file properties check. See the USER_FILEPROP_FILES_DIRS
  1037. # configuration option.
  1038. #
  1039. # Both of these options may be specified more than once.
  1040. #
  1041. # For both options the default value is the null string.
  1042. #
  1043. #RTKT_DIR_WHITELIST=""
  1044. #RTKT_FILE_WHITELIST=""
  1045. #
  1046. # The following option can be used to whitelist shared library files that would
  1047. # normally be flagged with a warning during the preloaded shared library check.
  1048. # These library pathnames usually exist in the '/etc/ld.so.preload' file or in
  1049. # the LD_PRELOAD environment variable.
  1050. #
  1051. # NOTE: It is recommended that if you whitelist any files, then you include
  1052. # those files in the file properties check. See the USER_FILEPROP_FILES_DIRS
  1053. # configuration option.
  1054. #
  1055. # This option is a space-separated list of library pathnames. The option may be
  1056. # specified more than once.
  1057. #
  1058. # The default value is the null string.
  1059. #
  1060. #SHARED_LIB_WHITELIST=/lib/snoopy.so
  1061. #
  1062. # To force rkhunter to use the supplied script for the 'stat' or 'readlink'
  1063. # command the following two options can be used. The value must be set to
  1064. # 'BUILTIN'.
  1065. #
  1066. # NOTE: IRIX users will probably need to enable STAT_CMD.
  1067. #
  1068. # For both options the default value is the null string.
  1069. #
  1070. #STAT_CMD=BUILTIN
  1071. #READLINK_CMD=BUILTIN
  1072. #
  1073. # In the file properties test any modification date/time is displayed as the
  1074. # number of epoch seconds. Rkhunter will try and use the 'date' command, or
  1075. # failing that the 'perl' command, to display the date and time in a
  1076. # human-readable format as well. This option may be used if some other command
  1077. # should be used instead. The given command must understand the '%s' and
  1078. # 'seconds ago' options found in the GNU 'date' command.
  1079. #
  1080. # A value of 'NONE' may be used to request that only the epoch seconds be shown.
  1081. # A value of 'PERL' may be used to force rkhunter to use the 'perl' command, if
  1082. # it is present.
  1083. #
  1084. # This option has no default value.
  1085. #
  1086. #EPOCH_DATE_CMD=""
  1087. #
  1088. # This setting tells rkhunter the directory containing the available Linux
  1089. # kernel modules. If unset, this setting will be worked out by rkhunter, and
  1090. # so should not usually need to be set.
  1091. #
  1092. # This option has no default value.
  1093. #
  1094. #MODULES_DIR=""
  1095. #
  1096. # The following option can be set to a command which rkhunter will use when
  1097. # downloading files from the Internet - that is, when the '--update' or
  1098. # '--versioncheck' option is used. The command can take options.
  1099. #
  1100. # This allows the user to use a command other than the one automatically
  1101. # selected by rkhunter, but still one which it already knows about.
  1102. # For example:
  1103. #
  1104. # WEB_CMD=curl
  1105. #
  1106. # Alternatively, the user may specify a completely new command. However, note
  1107. # that rkhunter expects the downloaded file to be written to stdout, and that
  1108. # everything written to stderr is ignored. For example:
  1109. #
  1110. # WEB_CMD="/opt/bin/dlfile --timeout 5m -q"
  1111. #
  1112. # *BSD users may want to use the 'ftp' command, provided that it supports the
  1113. # HTTP protocol:
  1114. #
  1115. # WEB_CMD="ftp -o -"
  1116. #
  1117. # This option has no default value.
  1118. #
  1119. WEB_CMD="/bin/false"
  1120. #
  1121. # Set the following option to '1' if locking is to be used when rkhunter runs.
  1122. # The lock is set just before logging starts, and is removed when the program
  1123. # ends. It is used to prevent items such as the log file, and the file
  1124. # properties file, from becoming corrupted if rkhunter is running more than
  1125. # once. The mechanism used is to simply create a lock file in the LOCKDIR
  1126. # directory. If the lock file already exists, because rkhunter is already
  1127. # running, then the current process simply loops around sleeping for 10 seconds
  1128. # and then retrying the lock. A value of '0' means not to use locking.
  1129. #
  1130. # The default value is '0'.
  1131. #
  1132. # Also see the LOCKDIR, LOCK_TIMEOUT and SHOW_LOCK_MSGS options.
  1133. #
  1134. #USE_LOCKING=0
  1135. #
  1136. # This option specifies the directory to be used when locking is enabled.
  1137. # If the option is unset, then the directory to be used will be worked out
  1138. # by rkhunter. In that instance the directories '/run/lock', '/var/lock',
  1139. # '/var/run/lock', '/run' and '/var/run' will be checked in turn. If none
  1140. # of those can be found, or are not read/writeable, then the TMPDIR directory
  1141. # will be used.
  1142. #
  1143. # To avoid the lock file persisting across a server reboot, the directory
  1144. # used should be memory-resident.
  1145. #
  1146. # This option has no default value.
  1147. #
  1148. #LOCKDIR=""
  1149. #
  1150. # If locking is used, then rkhunter may have to wait to get the lock file.
  1151. # This option sets the total amount of time, in seconds, that rkhunter should
  1152. # wait. It will retry the lock every 10 seconds, until either it obtains the
  1153. # lock or the timeout value has been reached.
  1154. #
  1155. # The default value is 300 seconds (5 minutes).
  1156. #
  1157. #LOCK_TIMEOUT=300
  1158. #
  1159. # If locking is used, then rkhunter may be doing nothing for some time if it
  1160. # has to wait for the lock. If this option is set to '1', then some simple
  1161. # messages are echoed to the users screen to let them know that rkhunter is
  1162. # waiting for the lock. Set this option to '0' if the messages are not to be
  1163. # displayed.
  1164. #
  1165. # The default value is '1'.
  1166. #
  1167. #SHOW_LOCK_MSGS=1
  1168. #
  1169. # If this option is set to 'THOROUGH' then rkhunter will search (on a per
  1170. # rootkit basis) for filenames in all of the directories (as defined by the
  1171. # result of running 'find / -xdev'). While still not optimal, as it still
  1172. # searches for only file names as opposed to file contents, this is one step
  1173. # away from the rigidity of searching in known (evidence) or default
  1174. # (installation) locations.
  1175. #
  1176. # THIS OPTION SHOULD NOT BE ENABLED BY DEFAULT.
  1177. #
  1178. # You should only activate this feature as part of a more thorough
  1179. # investigation, which should be based on relevant best practices and
  1180. # procedures.
  1181. #
  1182. # Enabling this feature implies you have the knowledge to interpret the
  1183. # results properly.
  1184. #
  1185. # The default value is the null string.
  1186. #
  1187. #SCANROOTKITMODE=THOROUGH
  1188. #
  1189. # The following option can be set to the name(s) of the tests the 'unhide'
  1190. # command is to use. Options such as '-m' and '-v' may be specified, but will
  1191. # only take effect when they are seen. The test names are a space-separated
  1192. # list, and will be executed in the order given.
  1193. #
  1194. # This option may be specified more than once.
  1195. #
  1196. # The default value is 'sys' in order to maintain compatibility with older
  1197. # versions of 'unhide'.
  1198. #
  1199. #UNHIDE_TESTS=sys
  1200. #
  1201. # The following option can be used to set options for the 'unhide-tcp' command.
  1202. # The options are space-separated.
  1203. #
  1204. # This option may be specified more than once.
  1205. #
  1206. # The default value is the null string.
  1207. #
  1208. #UNHIDETCP_OPTS=""
  1209. #
  1210. # This option can be set to either '0' or '1'. If set to '1' then the summary,
  1211. # shown after rkhunter has run, will display the actual number of warnings
  1212. # found. If it is set to '0', then the summary will simply indicate that
  1213. # 'One or more' warnings were found. If no warnings were found, and this option
  1214. # is set to '1', then a "0" will be shown. If the option is set to '0', then
  1215. # the words 'No warnings' will be shown.
  1216. #
  1217. # The default value is '0'.
  1218. #
  1219. #SHOW_SUMMARY_WARNINGS_NUMBER=0
  1220. #
  1221. # This option is used to determine where, if anywhere, the summary scan time is
  1222. # displayed. A value of '0' indicates that it should not be displayed anywhere.
  1223. # A value of '1' indicates that the time should only appear on the screen, and a
  1224. # value of '2' that it should only appear in the log file. A value of '3'
  1225. # indicates that the time taken should appear both on the screen and in the log
  1226. # file.
  1227. #
  1228. # The default value is '3'.
  1229. #
  1230. #SHOW_SUMMARY_TIME=3
  1231. #
  1232. # The two options below may be used to check if a file is missing or empty
  1233. # (that is, it has a size of zero). The EMPTY_LOGFILES option will also check
  1234. # if the file is missing, since that can be interpreted as a file of no size.
  1235. # However, the file will only be reported as missing if the MISSING_LOGFILES
  1236. # option hasn't already done this.
  1237. #
  1238. # Both options are space-separated lists of pathnames, and may be specified
  1239. # more than once.
  1240. #
  1241. # NOTE: Log files are usually 'rotated' by some mechanism. At that time it is
  1242. # perfectly possible for the file to be either missing or empty. As such these
  1243. # options may produce false-positive warnings when log files are rotated.
  1244. #
  1245. # For both options the default value is the null string.
  1246. #
  1247. #EMPTY_LOGFILES=""
  1248. #MISSING_LOGFILES=""
  1249. #
  1250. # This option can be set to either '0' or '1'. If set to '1' then the globbing
  1251. # characters '**' can be used to allow the recursive checking of directories.
  1252. # This can be useful, for example, with the USER_FILEPROP_FILES_DIRS option.
  1253. # For example:
  1254. #
  1255. # USER_FILEPROP_FILES_DIRS=/etc/**/*.conf
  1256. #
  1257. # This will check all '.conf' files within the '/etc' directory, and any
  1258. # sub-directories (at any level). If GLOBSTAR is not set, then the shell will
  1259. # interpret '**' as '*' and only one level of sub-directories will be checked.
  1260. #
  1261. # NOTE: This option is only valid for those shells which support the 'globstar'
  1262. # option. Typically this will be 'bash' (version 4 and above) via the 'shopt' command,
  1263. # and 'ksh' via the 'set' command.
  1264. #
  1265. # The default value is '0'.
  1266. #
  1267. #GLOBSTAR=0
  1268. INSTALLDIR=/usr