Implement audit and apply methods for 7.6 disable_wireless.
This commit is contained in:
parent
b2fd0dd674
commit
e2313bd1ff
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 1.2 Enable Option for signature of packages from a repository (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 1.3 Enable verify the signature of local packages (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 1.4 Set no allow insecure repository when by apt update (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 10.1.10 Set create home bool (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 10.1.11 Set maxlogins for all accounts (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 10.1.12 Ensure no shosts configure file on system (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 10.1.4 Set Password Expiration Days (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 10.1.5 Set mininum password lifetime (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 10.1.6 Set maximum password lifetime (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 10.1.7 Remove nopasswd option from the sudoers configuration (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 10.1.8 Remove not authenticate option from the sudoers configuration (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 10.1.9 Set FAIL_DELAY Parameters Using pam_faildelay (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 2.26 Set nosuid option for /home filesystem/Partition (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 2.27 Set nosuid option for nfs/nfs4 filesystem/Partition (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 2.28 Set noexec option for nfs/nfs4 filesystem/Partition (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 2.29 Set RPCSEC_GSS option for nfs/nfs4 filesystem/Partition (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 4.5 Activate AppArmor (Scored)
|
||||
# Add by Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Add by Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# 5.10 Ensure sudo is installed (Scored)
|
||||
# Add new by:
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 5.7 Install screen (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 5.8 Ensure openssh server is enabled (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 5.9 Ensure ctrl-alt-del is disabled (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 6.17 Ensure virul scan Server is enabled (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 6.18 Ensure virul scan Server update is enabled (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 6.19 Ensure time synchronization server is installed ( Not Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 7.1.3 Disable promiscuous mode for network interface (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
#
|
||||
# harbian audit 7/8/9 Hardening
|
||||
# harbian audit 9 Hardening
|
||||
#
|
||||
|
||||
#
|
||||
# 7.6 Deactivate Wireless Interfaces (Not Scored)
|
||||
# 7.6 Ensure wireless interfaces are disabled (Not Scored)
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
@ -15,12 +16,27 @@ HARDENING_LEVEL=3
|
|||
|
||||
# This function will be called if the script status is on enabled / audit mode
|
||||
audit () {
|
||||
info "Not implemented yet"
|
||||
if [ $(lspci | grep -ic wireless ) -eq 0 ]; then
|
||||
info "The OS is not wireless device! "
|
||||
FNRET=0
|
||||
else
|
||||
if [ $(wc -l /proc/net/wireless) -lt 3 ]; then
|
||||
ok "Wireless interfaces are disabled!"
|
||||
FNRET=0
|
||||
else
|
||||
crit "Wireless interfaces is not disabled!"
|
||||
FNRET=1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# This function will be called if the script status is on enabled mode
|
||||
apply () {
|
||||
info "Not implemented yet"
|
||||
if [ $FNRET = 0 ]; then
|
||||
ok "Wireless interfaces are disabled!"
|
||||
else
|
||||
warn "Wireless interfaces is not disabled! Need the administrator to manually disable it. HOWTO: ip link set <interface> down"
|
||||
fi
|
||||
}
|
||||
|
||||
# This function will check config parameters required
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# 7.7.1 Ensure Firewall is active (Scored)
|
||||
# Corresponds to the original 7.7
|
||||
# Modify Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Modify Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# 7.7.2 Ensure the Firewall is set rules (Scored)
|
||||
# Include ipv4 and ipv6
|
||||
# Add this feature:Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Add this feature:Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# 7.7.3 Ensure the Firewall is set rules of protect DOS attacks (Scored)
|
||||
# Include ipv4 and ipv6
|
||||
# Add this feature:Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Add this feature:Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# 7.7.4 Ensure default deny firewall policy (Scored)
|
||||
# Include ipv4 and ipv6
|
||||
# Add this feature:Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Add this feature:Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# 7.7.5 Ensure loopback traffic is configured (Scored)
|
||||
# Include ipv4 and ipv6
|
||||
# Add this feature:Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Add this feature:Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# 7.7.6 Ensure default deny firewall policy (Scored)
|
||||
# Include ipv4 and ipv6
|
||||
# Add this feature:Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Add this feature:Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# 7.7.7 Ensure outbound and established connections are configured (Not Scored)
|
||||
# Include ipv4 and ipv6
|
||||
# Add this feature:Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Add this feature:Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.1.4 Set failure mode of audit service (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.1.5 Ensure set remote_server for audit service (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.1.6 Ensure enable_krb5 set to yes for remote audit service (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.1.7 Ensure set action for audit storage volume is fulled (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.1.8 Ensure set action for network failure on remote audit service (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.1.9 Set space left for auditd service (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.19 Recored ssh-keysign command usage (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.20 Recored open_by_handle_at syscall (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.21 Recored Events that privileged-passwd command usage (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.22 Recored Events that privileged-priv-change command usage (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.23 Recored Events that privileged-postfix command usage (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.24 Recored crontab command usage (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.25 Recored pam_timestamp_check command usage (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 8.1.26 Recored pam_tally/pam_tally2 command usage (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com> Author add this
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com> Author add this
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
#
|
||||
# 8.5 Verifies integrity all packages (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.10 Set Password Creation Requirement Parameters Using pam_cracklib: audit maxclassrepeat option (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# 9.2.11 Set deny times for Password Attempts (Scored)
|
||||
# The number in the original document is 9.2.2
|
||||
# for login and ssh service
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.13 Set password with the SHA512 algorithm (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.14 Configure password without blank or null passwords (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.15 Set login display the date and time of last fail logon (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.17 Ensure unsuccessful root logon occur the associated account must be locked. (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# for login and ssh service
|
||||
#
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.1 Set Password Creation Requirement Parameters Using pam_cracklib: audit retry option (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.2 Set Password Creation Requirement Parameters Using pam_cracklib: audit minlen option (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.3 Set Password Creation Requirement Parameters Using pam_cracklib: audit dcredit option (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.4 Set Password Creation Requirement Parameters Using pam_cracklib: audit ucredit option (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.5 Set Password Creation Requirement Parameters Using pam_cracklib: audit ocredit option (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.6 Set Password Creation Requirement Parameters Using pam_cracklib: audit lcredit option (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.7 Set Password Creation Requirement Parameters Using pam_cracklib: audit difok option (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.8 Set Password Creation Requirement Parameters Using pam_cracklib: audit minclass option (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.2.9 Set Password Creation Requirement Parameters Using pam_cracklib: audit maxrepeat option (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.3.15 Set SSHD printlastlog to yes (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.3.16 Set SSHD ignoreuserknownhosts to yes (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.3.17 Set SSHD GSSAPIAuthentication to yes (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.3.18 Set SSHD KerberosAuthentication to yes (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.3.19 Set SSHD StrictModes to yes (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.3.20 Set SSHD UsePrivilegeSeparation to sandbox (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.3.21 Set SSHD Compression to no (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.3.22 Set SSHD MACs to hmac-sha2-256,hmac-sha2-512 (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.3.23 Check SSH public host key permission (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#
|
||||
# 9.3.24 Check SSH private host key permission (Scored)
|
||||
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||
# Author : Samson wen, Samson <sccxboy@gmail.com>
|
||||
#
|
||||
|
||||
set -e # One error, it's over
|
||||
|
|
Loading…
Reference in New Issue