rkhunter
: Installs rkhunter and sets up cron job to run rkhunter once per dayrkhunter::check
: Add a scheduled job to check the system with rkhunterrkhunter::config
: Configure rkhunterrkhunter::install
: Install rkhunterrkhunter::propupd
: Immediately update the properties databaserkhunter::update
: Add a scheduled job to update rkhunter
Rkhunter::BindPath
: matches valid binddir path accepts absolute path or an absolute path with a '+' proceeding it
Installs rkhunter and sets up cron job to run rkhunter once per day
The following parameters are available in the rkhunter
class:
Data type: Boolean
Check internet for definition updates
Default value: false
Data type: Boolean
Set rkhunter to check the system on a regular basis
Default value: true
Data type: Boolean
Install packages that enhance the capabilities of rkhunter
Default value: true
Add a scheduled job to check the system with rkhunter
The following parameters are available in the rkhunter::check
class:
Data type: Enum['cron','systemd']
How you wish to schedule the run
Default value: 'systemd'
Data type: Optional[String[1]]
If $method
is systemd
, set this exact calendar string
This is not verified, use systemd-analyze calendar
on a modern system to
ensure that you have a valid string
Default value: undef
Data type: Simplib::Cron::Minute
Cron minute
Default value: fqdn_rand(59)
Data type: Simplib::Cron::Hour
Cron hour
Default value: 1
Data type: Simplib::Cron::MonthDay
Cron monthday
Default value: '*'
Data type: Simplib::Cron::Month
Cron month
Default value: '*'
Data type: Simplib::Cron::Weekday
Cron weekday
Default value: '*'
Data type: Stdlib::Unixpath
The path to rkhunter
Default value: '/usr/bin/rkhunter'
Data type: Array[String[1]]
Extra options to pass to rkhunter --check
Default value: ['--skip-keypress', '--quiet']
Any parameter that is not documented below matches its direct counterpart in
the rkhunter.conf
configuration file.
You may need to extract a copy from the RPM for the full documentation set.
Any deviations from the defaults are noted here and any defaults that are set here relate to either performance or system security safety.
The following parameters are available in the rkhunter::config
class:
allowdevfile
allowhiddendir
allowhiddenfile
user_fileprop_files_dirs
allowipcpid
allowipcproc
allowipcuser
allowprocdelfile
allowproclisten
allowpromiscif
allow_ssh_prot_v1
allow_ssh_root_user
allow_syslog_remote_logging
append_log
app_whitelist
attrwhitelist
auto_x_detect
bindir
color_set2
copy_log_on_error
dbdir
disable_tests
empty_logfiles
enable_tests
epoch_date_cmd
exclude_user_fileprop_files_dirs
existwhitelist
globstar
hash_cmd
hash_fld_idx
ignore_prelink_dep_err
immutable_set
immutwhitelist
inetd_allowed_svc
inetd_conf_path
installdir
ipc_seg_size
language
lock_timeout
lockdir
logfile
mail_on_warning
mail_cmd
mirrors_mode
missing_logfiles
modules_dir
os_version_file
password_file
phalanx2_dirtest
pkgmgr_no_vrfy
pkgmgr
port_path_whitelist
tcp_port_whitelist
udp_port_whitelist
pwdless_accounts
readlink_cmd
rotate_mirrors
rtkt_dir_whitelist
rtkt_file_whitelist
scan_mode_dev
scanrootkitmode
scriptdir
scriptwhitelist
shared_lib_whitelist
show_lock_msgs
show_summary_time
show_summary_warnings_number
skip_inode_check
ssh_config_dir
startup_paths
stat_cmd
suspscan_dirs
suspscan_maxsize
suspscan_temp
suspscan_thresh
suspscan_whitelist
syslog_config_file
tmpdir
uid0_accounts
unhide_tests
unhidetcp_opts
update_lang
update_mirrors
updt_on_os_change
use_locking
use_sunsum
syslog_priority
use_syslog
warn_on_os_change
web_cmd
whitelisted_is_white
writewhitelist
xinetd_allowed_svc
xinetd_conf_path
Data type: Array[Stdlib::Unixpath]
In module data
Data type: Array[Stdlib::Unixpath]
In module data
Data type: Array[Stdlib::Unixpath]
In module data
Data type: Array[Stdlib::Unixpath]
In module data
Data type: Optional[Array[Integer[1]]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Boolean
Default value: false
Data type: Variant[Boolean,Enum['unset']]
Default value: false
Data type: Boolean
Default value: true
Data type: Boolean
Default value: false
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Boolean
Default value: true
Data type: Optional[Array[Rkhunter::BindPath]]
Default value: undef
Data type: Boolean
Default value: false
Data type: Boolean
Default value: false
Data type: Stdlib::Unixpath
Default value: '/var/lib/rkhunter/db'
Data type: Array[String]
While the default of rkhunter is to disable none of its tests, these tests are recommended to be disabled for normal runs due to their system intesive nature and the fact they are prone to false positives.
Default value: ['suspscan', 'hidden_ports', 'hidden_procs', 'deleted_files', 'packet_cap_apps', 'apps']
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Array[String[1]]
Default value: ['ALL']
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Boolean
Default value: true
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Integer[1]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Boolean
Default value: false
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Optional[Stdlib::Unixpath]
Default value: undef
Data type: Stdlib::Unixpath
Default value: '/usr'
Data type: Optional[Integer[1]]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Integer[1]]
Default value: undef
Data type: Stdlib::Unixpath
Default value: '/var/run/lock'
Data type: Stdlib::Unixpath
Default value: '/var/log/rkhunter/rkhunter.log'
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: String[1]
Default value: 'mail -s "[rkhunter] Warnings found for ${HOST_NAME}"'
Data type: Enum['any','local','remote']
Default value: 'any'
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Stdlib::Unixpath]
Default value: undef
Data type: Optional[Stdlib::Unixpath]
Default value: undef
Data type: Optional[Stdlib::Unixpath]
Default value: undef
Data type: Boolean
Default value: false
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: String[1]
Default value: 'RPM'
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Array[Simplib::Port]]
TCP Ports to add to the PORT_WHITELIST option
Default value: undef
Data type: Optional[Array[Simplib::Port]]
UDP Ports to add to the PORT_WHITELIST option
Default value: undef
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Boolean
Default value: true
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Enum['THOROUGH','LAZY']
Default value: 'THOROUGH'
Data type: Boolean
WARNING: Do not enable this parameter unless you 100% understand what it can do to your system performance!
Default value: false
Data type: Stdlib::Unixpath
Default value: '/usr/share/rkhunter/scripts'
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Boolean
Default value: true
Data type: Integer[0,3]
Default value: 3
Data type: Boolean
Default value: false
Data type: Boolean
Default value: false
Data type: Optional[Stdlib::Unixpath]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Integer[0]
Default value: 1024000
Data type: Stdlib::Unixpath
Default value: '/dev/shm'
Data type: Integer[0]
Default value: 200
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Stdlib::Unixpath
Default value: '/var/lib/rkhunter'
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Boolean
Default value: true
Data type: Boolean
Default value: false
Data type: Boolean
Default value: true
Data type: Boolean
Default value: false
Data type: Simplib::Syslog::Priority
Default value: 'LOCAL6.NOTICE'
Data type: Boolean
Default value: true
Data type: Boolean
Default value: true
Data type: Optional[String[1]]
Default value: undef
Data type: Boolean
Default value: false
Data type: Optional[Array[Stdlib::Unixpath]]
Default value: undef
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Optional[Stdlib::Unixpath]
Default value: undef
Install rkhunter
The following parameters are available in the rkhunter::install
class:
Data type: Boolean
Install optional packages that enable additional functionality in rkhunter
Default value: $rkhunter::install_optional_packages
Data type: Optional[Variant[Hash[String[1],Hash],Array[String[1]]]]
The list of optional packages to be installed
This may be anything that the puppetlabs-stdlib ensure_packages
function accepts
Default value: undef
Data type: Simplib::PackageEnsure
The state in which to place all packages
Default value: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' })
Data type: String[1]
The state in which to place the rkhunter package. May be specifically pinned.
Default value: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' })
Needed so that each run after installation does not trigger false positives
The following parameters are available in the rkhunter::propupd
class:
Data type: Stdlib::Unixpath
Data type: Boolean
Default value: true
Add a scheduled job to update rkhunter
The following parameters are available in the rkhunter::update
class:
Data type: Enum['cron','systemd']
How you wish to schedule the run
Default value: 'systemd'
Data type: Optional[String[1]]
If $method
is systemd
, set this exact calendar string
This is not verified, use systemd-analyze calendar
on a modern system to
ensure that you have a valid string
Default value: undef
Data type: Simplib::Cron::Minute
Cron minute
Default value: fqdn_rand(59)
Data type: Simplib::Cron::Hour
Cron hour
Default value: 0
Data type: Simplib::Cron::MonthDay
Cron monthday
Default value: '*'
Data type: Simplib::Cron::Month
Cron month
Default value: '*'
Data type: Simplib::Cron::Weekday
Cron weekday
Default value: '*'
Data type: Array[String[1]]
Extra options to pass to rkhunter --update
Default value: ['--nocolors']
Data type: Stdlib::Unixpath
Default value: '/usr/bin/rkhunter'
matches valid binddir path accepts absolute path or an absolute path with a '+' proceeding it
Alias of Pattern['^(?:\/|\+\/)(?:[^\/\0]+\/*)*$']