Hardening the IT infrastructure is an obligatory task for achieving a resilient to attacks infrastructure and complying with regulatory requirements. Hackers attack information systems and websites on an ongoing basis using various cyber-attack techniques.
To reduce these increasing amounts of dynamically emerging cyber-attacks, information systems, and servers especially, need to get hardened. Hardening is a unique security task as the requirement is coming from the security team but IT Ops often execute it. If you are managing a hardening project learn more about how to automate hardening tasks.
Server hardening can be a painful procedure. If you’re reading this article, you probably already know it. Endless hours, labor, and money are invested in this process, which can often result in production breakdown despite the effort to prevent it. CSH by CalCom is automating the entire server hardening process. CHS’s unique ability to ‘learn’ your network abolishes the need to perform lab testing while ensuring zero outages to your production environment. CHS will allow you to implement your policy directly on your production hassle-free. want to know more? Click here and get the datasheet.
Hardening the 4 main infrastructure layers
Hardening activities can be classified into a few different layers:
The default configurations of most operating environments, servers, applications, and databases are not designed with security as its main focus. The defaults concentrate more on usability and functionality. This implies that without hardening done, these information assets will be running a high level of security risks.
The following are some of the effective hardening techniques followed by organizations across the globe:
Server hardening guidelines
Server hardening, in its simplest definition, is the process of boosting a server’s protection using viable, effective means. It is recommended to use the CIS benchmarks as a source for hardening benchmarks. You can find below a list of high-level hardening steps that should be taken at the server level.
Important notice: Never attempt to establish or test hardening procedures on production unless using a proper hardening impact analysis tool
- Implement a”least functionality” approach. for example: Do not install the IIS server on a domain controller.
- Install the appropriate post-Service Pack security hotfixes
- Avoid installing applications on the server unless they are absolutely necessary to the server’s function. For example, don’t install e-mail clients, office productivity tools, or utilities that are not strictly required for the server to do its job
- Use two different network interfaces in the server. One will be for the network and the other will be for the administrator
- Create a secure remote administration for the server
- Harden the OS and application layers (see below)
- Consider using the server’s local firewall. Windows- Windows firewall, Linux-IPtables, AppArmor
- Avoid the use of insecure protocols for processing requests, especially those that send information (i.e. passwords) in plain text
- Keep a backup for all your data and files.
- Secure separate partitions.
- When hosting multiple applications, make sure that each has its own accounts separate from the others.
- Never provide write access to web content directories.
- Remove administrative shares if not needed.
- Closely monitor failed login attempts. Lock accounts after a specified number of failures.
- Rename the guest account even though it may be disabled.
- Enable account lockout on the local administrator account
- Rename the local Administrator account to something other than Administrator
- Enforce strong account and password policies for the server.
- Do not allow users and administrators to share accounts.
- Disable FTP, SMTP , NNTP, Telnet services if they are not required.
- Install and configure URLScan.
- For non-public sites authentication methods should be put in place and for sites that are only to be accessible by internal users.
- Web server logs should be reviewed routinely for suspicious activity. Any attempts to access unusual URLs on the web server typically indicate an attempt to exploit problems in outdated or unpatched web servers.
- Domain Name Servers (DNS) provide the translation of human-friendly names for network destinations (such as a website URL) to the IP addresses understood by routers and other network devices. Steps should be taken to ensure DNS software is updated regularly and that all access to servers is authenticated to prevent unauthorized zone transfers.
- Access to the server may be prevented by blocking port 53 or restricted by limiting access to the DNS server to one or more specified external systems.
- Anonymous FTP accounts should be used with caution and monitored regularly.
- In the case of authenticated FTP, it is essential that Secure FTP be used so that login and password credentials are encrypted, rather than transmitted in plain text.
Application hardening is the process of securing applications against local and Internet-based attacks. Application hardening can be implemented by removing the functions or components that you don’t require. We can restrict access and make sure the application is kept up-to-date with patches. Maintaining application security is very important because we need to make the application to be accessible to users. Most applications have problems with buffer overflows in the legitimate user input field so patching the application is the only way to secure it from attack. The following are some of the successfully proven application hardening guidelines:
- Apply vendor-provided patches in a timely manner for all 3rd party applications
- For securing an IIS, the first step is to remove all simple files. To help the user in the setting of sample files, which can be used by the user to examine and as a reference when constructing their web sites. But these sample files are full of vulnerabilities and holes, so they should never be present on a production web server.
- Sample files are stored in virtual and physical directories, so to remove IIS sample application, remove the virtual and physical directories. For example, IIS samples are present in the Virtual Directory of \IISS samples and its location is C:\Inetpub\IISsample.
- The next step in securing IIS is to set up the appropriate permissions for the web server’s file and directories this is possible using Access Control Lists (ACLs).
- Avoid the use of insecure protocols for processing requests, especially those that send information (i.e. passwords) in plain text.
- Never install IIS unless the server is to be a dedicated Web Server
- Install SSL Architecture
- Install and configure a web application firewall (WAF)
- Avoid installing and do not run network device firmware versions that are no longer available from the manufacturer.
- Closely monitor the security bulletins applicable to applications and other software used.
- Use cryptographic and CHEKSUM controls wherever it is applicable.
- Implement an Active directory which allows only single login to multiple applications, data sources, and system. This includes advanced encryption capabilities-Kerberos and PKI features also.
Database hardening guidelines
Databases often store sensitive data. Incorrect data or loss of data could negatively affect business operations. Databases can be used as bases to attack other systems. The following are some of the successfully proven database hardening guidelines:
- Have a TNS Listener Password (encrypted) to prevent unauthorized administration of the Listener.
- Turn on Admin Restrictions to ensure certain commands cannot be called remotely.
- Turn on TCP Valid Node Checking to allow certain hosts to connect to the database server and prevent others.
- Switch off XML Database if it is not used.
- Turn off external procedures if not required.
- Encrypt network traffic using the Oracle Net Manager tool.
- Lock and Expire unused accounts.
- Define user account naming standards.
- Define and enforce a password policy.
- Manage a role-based access privileges control.
- Generate a periodic review and revoke any unnecessary permissions.
- Enable data protection for preventing users access sensitive tables.
- Ensure PL/SQL coding standard usage.
- Generate periodic database security audits.
- Disabling all the Null sessions (anonymous logons).
- Roll out all the necessary database patches as soon as released by the vendors.
Operating System hardening guidelines
Operating System hardening is the process that helps in reducing the cyber-attack surface of information systems by disabling functionalities that are not required while maintaining the minimum functionality that is required. The following are some of the successfully proven operating system hardening guidelines:
- Keep operating systems updated with the latest, most robust versions. Also, make sure that security patches and hotfixes are constantly updated.
- Install the latest Service Pack for the operating systems used
- Routers and wireless should be protected with strong passwords
- Remove unnecessary drivers
- Do not create more than two accounts in the Administrators group
- Disable or delete unnecessary accounts quarterly
- Disable Non-essential services
- Enable Audit Logs to capture successful and failed login efforts, usage of elevated privileges, and all kinds of unauthorized activities
- Secure CMOS settings.
- File and Directory Protection – Through the use of Access Control Lists (ACLs) and file permissions.
- File and File System Encryption – All disk partitions are formatted with a file system type with encryption features (NTFS in the case of Windows)
- Configure the operating system to log every activity, error, and warning.
- Secure separate partitions.
- Tighten NTFS/Registry Permissions
- Configure appropriate settings for access control on file shares, given that permissions are set through NTFS security features
- Disable any unnecessary file sharing
- Remove administrative shares if not needed.
- Ensure services are running with the least-privileged accounts.
- Implement a strong password management practice.
Cyber-attacks are being so dynamic these days and every new attack brings new concerns about the security of very high-cost network-based information systems owned by business organizations. Continuous system hardening will keep the information security configurations checked on an ongoing basis which will help in reducing the cyber-attack surface of organizations. Applied in an effective manner, hardening will improve the resiliency of the existing cyber-security environment of organizations. So organizations should verify their information system vulnerabilities on a periodic basis through Vulnerability Analysis & Penetration Testing and apply appropriate hardening techniques. This will help them in improving the performance and security posture of their information systems to the next optimum level where the information systems will have high performance and reduced expensive system failures.