PSMP - What are the details of PSMP Hardening script perform?

PSMP - What are the details of PSMP Hardening script perform?

137
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 16:02 PM


Symptom


A hardening of the PSMP Linux server must be performed, we would like to understand the changes apply.



Environment


10.7 PSMP Supportability or Supported

Cause


Lack of documentation.



Resolution


PSMP's hardening script follows CIS benchmark with some adaptations for PSMP. It applies only steps that are not environment dependent and will fit all deployments.

We use the same hardening script for both RHEL and SUSE. IPV6 is supported.



Following are the hardening steps as for version 10.7: 


- Disabling unused filesystems 

carmfs, freevxfs, jffs2, hfs, hfsplus, squashfs, udf, FAT 


- Restricting Core Dumps 

A core dump is the memory of an executable program. It is generally used to determine why a program aborted. It can also be used to glean confidential information from a core file. The system provides the ability to set a soft limit for core dumps, but this can be overridden by the user. 

The rational to setting a hard limit on core dumps prevents users from overriding the soft variable. 


- Randomized Virtual Memory Region 

Address space layout randomization (ASLR) is an exploit mitigation technique which randomly arranges the address space of key data areas of a process. 

Randomly placing virtual memory regions will make it difficult to write memory page exploits as the memory placement will be consistently shifting. 


- Removing Legacy Services 

The following services will be removed from the system: ypbind, rsh, talk, telnet, setroubleshoot, mcstrans 


- Disabling Services From Startup 

chargen-dgram, chargen-stream, daytime-dgram, daytime-stream, discard-dgram, discard-stream, echo-dgram, echo-stream, time-dgram, time-stream, rexec, rlogin, rsh, talk, telnet. tftp, rsync, xinetd, avahi-daemon, cups, dhcpd, slapd, nfs, rpcbind, named, vsftpd, httpd, dovecot, smb, squid, snmpd, ypserv 


- Setting Deamon Umask 

Setting the umask to 027 will make sure that files created by daemons will not be readable, writable or executable by any other than the group and owner of the daemon process and will not be writable by the group of the daemon process. The daemon process can manually override these settings if these files need additional permission 


- Setting Network Configuration 

3.1.1 Ensure IP forwarding is disabled 

3.1.2 Ensure packet redirect is disabled 

3.2.2 Ensure ICMP redirects are not accepted 

3.2.3 Ensure secure ICMP redirects are not accepted 

3.2.5 Ensure broadcast ICMP request are ignored 

3.2.6 Ensure bugos ICMP responses are ignored 

3.2.8 Ensure TCP SYN Cookies is enabled 


- Disable the following protocols: 

dccp, sctp, rds, tipc 


- Checking Audit Rules 

4.1.4 Ensure events that modify date and time information are collected 

4.1.5 Ensure events that modify user/group information are collected 

4.1.6 Ensure events that modify the system's network environment are collected 

4.1.7 Ensure events that modify the system's Mandatory Access Controls are collected 

4.1.8 Ensure login and logout events are collected 

4.1.9 Ensure session initiation information is collected 

4.1.10 Ensure discretionary access control permission modification events are collected 

4.1.11 Ensure unsuccessful unauthorized file access attempts are collected 

4.1.12 Ensure use of privileged commands is collected 

4.1.13 Ensure successful file system mounts are collected 

4.1.14 Ensure file deletion events by users are collected 

4.1.15 Ensure changes to system administration scope (sudoers) is collected 

4.1.16 Ensure system administrator actions (sudolog) are collected 

4.1.17 Ensure kernel module loading and unloading is collected 

4.1.18 Ensure the audit configuration is immutable 


- Configuring Cron 

5.1.1 Enable crond Daemon 

5.1.2 Ensure permissions on /etc/crontab 

5.1.3 Ensure permission on /etc/cron.hourly 

5.1.4 Ensure permission on /etc/cron.daily 

5.1.5 Ensure permission on /etc/cron.weekly 

5.1.6 Ensure permission on /etc/cron.monthly 

5.1.7 Ensure permission on /etc/cron.d 


- Restricting As/Cron To Authorized Users 

5.1.8 Restrict at/cron to Authorized Users 


- Configuring Pam 

5.3.4 Ensure password hashing algorithm is SHA-512 


- System Maintenance 

6.1.2 Ensure permissions on /etc/passwd are configured 

6.1.3 Ensure permissions on /etc/shadow are configured 

6.1.4 Ensure permissions on /etc/group are configured 

6.1.5 Ensure permissions on /etc/gshadow are configured 

6.1.6 Ensure permissions on /etc/passwd- are configured 

6.1.7 Ensure permissions on /etc/shadow- are configured 

6.1.8 Ensure permissions on /etc/group- are configured 

6.1.9 Ensure permissions on /etc/gshadow- are configured 

6.1.10 Ensure no world writable files exist 

6.2.1 Ensure Password Fields are Not Empty 


- SSHD Hardening 

Disable sftp subsystem 

Disable remote port forwarding 

Disable local port forwaring 

Disable printing last login 

Ensure file permissions of sshd_config 




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001F8JCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail