For today’s computing platforms, ease of access and openness is essential for web based communications and for lean resourced IT Management teams.
Most organizations will adopt a layered security strategy, providing as many protective measures for their IT infrastructure as are available – firewalls, sandboxes, IPS and IDS, anti-virus – but the most secure computing environments are those with a ‘ground up’ security posture.
If data doesn’t need to be stored on the public-facing Linux web server, then take it off completely – if the data isn’t there, it can’t be compromised.
If a user doesn’t need access to certain systems or parts of the network, for example, where your secure Ubuntu server farm is based, then revoke their privileges to do so – they need access systems to steal data so stop them getting anywhere near it in the first place.
Similarly, if your CentOS server doesn’t need FTP or Web services then disable or remove them. You reduce the potential vectors for security breaches everytime you reduce means of access.
To put it simply, you need to harden your Linux servers.
Linux Hardening Policy background
The beauty of Linux is that it is so accessible and freely available that it is easy to get up and running with very little training or knowledge. The web-based support community places all the tips and tutorials you’ll ever need to carry out any Linux set-up task or troubleshoot issues you may experience.Finding and interpreting the right hardening checklist for your Linux hosts may still be a challenge so this guide gives you a concise checklist to work from, encompassing the highest priority hardening measures for a typical Linux server.
And, if you want to make life simpler…
NNT Change Tracker Enterprise provides an automated tool for auditing servers, firewalls, router and other network devices for compliance with a full range of hardened build checklists. Once a hardened build baseline has been established, any drift from compliance with the required build standard will be reported. To enhance security protection further, Change Tracker also provides system-wide, real-time file integrity monitoring to detect any Trojan, backdoor or other malware infiltrating a secure server. Request a trial or demonstration here www.newnettechnologies.com/enterprise-change-and-configuration-management.htmlAccount Policies
- Enforce password history – 365 days
- Maximum Password Age - 42 days
- Minimum password length – 8 characters
- Password Complexity - Enable
- Account Lockout Duration - 30 minutes
- Account Lockout Threshold – 5 attempts
- Reset Account Lockout Counter - 30 minutes
Access Security
- Ensure SSH version 2 is in use
- Disable remote root logons
- Enable AllowGroups to permitted Group names only
- Allow access to valid devices only
- Restrict the number of concurrent root sessions to 1 or 2 only
Secure Boot Only
Password protect the /boot/grub/menu.lst file, then remove the rescue-mode boot entry.
Disable All Unnecessary Processes, Services and Daemons
Assess your server by running the ps –ax command and see what is running currently.
Similarly, assess the startup status of all processes by running a chkconfig –list command.
Disable any unnecessary services using the sysv-rc-conf service-name off
Restrict Permissions on Sensitive Files and Folders to root Only
- /etc/fstab
- /etc/passwd
- /bin/ping
- /usr/bin/who
- /usr/bin/w
- /usr/bin/locate
- /usr/bin/whereis
- /sbin/ifconfig
- /bin/nano
- /usr/bin/vi
- /usr/bin/which
- /usr/bin/gcc
- /usr/bin/make
- /usr/bin/apt-get
- /usr/bin/aptitude
- /etc
- /usr/etc
- /bin
- /usr/bin
- /sbin
- /usr/sbin
- /tmp
- /var/tmp
Disable SUID and SGID Binaries
Identify SUID and SGID files on the system: find / \( -perm -4000 -o -perm -2000 \) –print.Render these files safe by removing the SUID or SGID bits using chmod –s filename
You should also restrict access to all compilers on the system by adding them to a new ‘compilers’ group.
- chgrp compilers *cc*
- chgrp compilers *++*
- chgrp compilers ld
- chgrp compilers as
Implement Regular/Real-Time FIM on Sensitive Folders and Files
Configure Auditing on the Linux Server
General Hardening of Kernel Variables
No comments:
Post a Comment