🆕 Introducing HTB CDEP: Certified Detection Engineering Principal Learn More

Introduction to System Security - 2

mini-module tag Mini-Module

Certainly, in this module, "Introduction to System Security 2" we will provide a comprehensive dive into the crucial aspects of securing computer systems. We'll start with a broad overview of system security to build a strong foundation. Then, we'll delve into topics like operating systems, process and memory management, file and network security, patch management, and the significance of maintaining up-to-date systems. We'll also explore the essential role of log infrastructure in security. By the end of this module, you'll have the knowledge and skills to understand and mitigate security threats while ensuring the safety and stability of computer systems. It's an ideal starting point for anyone looking to enter the field or enhance their existing knowledge in system security.

Created by letsdefendio

Medium Defensive

Summary

The Introduction to System Security - 2 module is designed for detection Engineers, IT and Security Enthusiasts, and System Administrators. Throughout this module, students will develop comprehensive understanding of system security fundamentals, knowledge of effective patch management, updates, and upgrades for system defense, and expertise in leveraging log infrastructure for security monitoring and analysis.

Recommended prior knowledge:

  • Basic understanding of computer systems and their operation

  • Familiarity with general computer usage and file management

Firewall


System security is of great importance to combat the increasing cyber threats today. Endpoint security is becoming more and more important as many organizations take security measures to protect their sensitive data and systems. In this context, the Endpoint firewall appears as the last line of defense. The “Firewall” that we will be covering in this training refers to the firewall on the endpoint (server, client, etc.) systems.


Endpoint Firewall

Endpoint firewall is a security solution used on individual devices (e.g. computers, laptops, mobile devices). Endpoint firewall monitors and filters the network traffic of each endpoint device and provides protection against malware. It controls traffic “to” and “from” users' devices. This control includes blocking unwanted or harmful traffic by enforcing network-based security policies. Endpoint firewall detects network intrusion attempts, prevents malware and ensures data security.

Endpoint firewall filters traffic to networked devices, preventing malware or attackers from accessing the system. It also monitors the traffic from devices to the network, ensuring the protection of sensitive data. Endpoint firewall follows up-to-date threat intelligence, uses intrusion detection mechanisms, and provides effective protection by identifying malicious software.

Endpoint firewall integrates with antivirus software, providing more effective protection against malware. Antivirus software uses signature-based or behavior-based analytics to detect and block known malware, while endpoint firewall blocks malware access to the network and prevents it from spreading.

Endpoint firewall is an important component in organizations to ensure data security, prevent attacks and control access to the network. It acts as the last line of defense and helps improve the security of devices.


Endpoint Firewall Working Principle

The working principle of Endpoint Firewall is to simply provide advanced threat protection and network security. It monitors the network traffic of the endpoint devices connected to the network through constant monitoring of the traffic. This is accomplished through a network sensor or client to monitor, control and evaluate inbound and outbound traffic. This includes identifying potential threats or unwanted activities in traffic based on network protocols, applications, and the characteristics of connections.

Endpoint Firewall inspects traffic based on predefined security policies. These policies contain rules and filters to allow or block the use of certain protocols or applications. For example, rule-based controls can be implemented, such as blocking the use of a specific application or blocking traffic from a specific IP address.

It tries to detect potential threats by analyzing the traffic it monitors. This includes detecting threats such as malware, hacking attempts, or unwanted content. Threat detection often uses signature-based or behavior-based analysis techniques. It monitors and logs detected threats. This provides information about events, statistics, and security status. It can also generate alarms and alerts about threats.

In conclusion; it provides proactive detection and prevention capabilities and responses to detected threats. This can include various measures such as blocking threats, quarantining, sounding an alarm or automatically stopping attacks.


End point Firewall Configuration and Policies

Endpoint Firewall Configuration

The first step is to identify the devices and operating systems that Endpoint Firewall is compatible with. Configuration requirements may differ for different device types and operating systems.

You should configure the settings using the management console or interface used to configure the Endpoint Firewall. These settings will determine allowed and blocked applications, ports, protocols, and other network traffic parameters.

You should also create and configure security policies. These policies will set specific rules that apply to users or devices. For example, policies can be created, such as blocking the use of a particular application or port, or limiting access to certain IP addresses.

You should use up-to-date signature-based or behavior-based threat intelligence to provide effective protection. Endpoint Firewall can detect and prevent attacks by recognizing well-known malware signatures or certain behavior patterns.

Endpoint Firewall Policies

The first step is to identify the organization's needs and security requirements. Different policies in different regions or user groups may be needed.

The principle of the least privilege is applied in the formulation of policies. Users are only allowed access to the resources and applications they need.

Processes are established to ensure that policies are enforceable and manageable. It is important to regularly review, update and revise the policies.

The compliance and effectiveness of policies should be monitored continuously. Also, You should evaluate how policies are working by analyzing event logs, reports and statistics and make adjustments if necessary.

As an example, below are some of the examples of operations such as adding/deleting Windows and Linux local firewall rules.

Windows Local Firewall;

Windows operating systems have a built-in firewall, Windows Firewall. Windows Firewall controls inbound and outbound network traffic and enforces security policies. Windows Firewall can be managed via GUI (Graphical User Interface) or command line. You can add, edit or remove rules with a user-friendly interface via the GUI. Windows Firewall has a profile-based structure: there are Domain, Private, and Public profiles.

For example, you can add a new rule in Windows Firewall with the following PowerShell command:

This command adds a rule to Windows Firewall to allow HTTP traffic which allows incoming TCP traffic on local port 80. In this way, the traffic required for an application or service responding to HTTP requests is allowed to continue.

Linux Local Firewall Example;

Linux operating systems usually manage the local firewall with tools like iptables or ufw (Uncomplicated Firewall). Iptables is a powerful tool for packet filtering and routing network traffic. Ufw provides an interface over iptables, making it simpler to use. You can configure security policies with rules such as allowed or blocked ports, protocols, and IP addresses.

For example, you can use a command like the following to open or close a specific port:


Conclusion

Configuring the Endpoint Firewall correctly and setting policies effectively plays a critical role in increasing the security of your network and systems. In this way, you can block malicious traffic, prevent unauthorized access and reduce security vulnerabilities. In addition, during the communication of different endpoints in the local network with each other, protection can be provided by operating the Endpoint Firewall rules for the traffic that does not go up to the Network Firewall, but only returns through the Switch to which they are connected.

In this part of the training, we have covered the endpoint firewalls and their importance, working principle, configuration strategies and endpoint firewall policies. We will be learning about the Malware Protection in the next part of the training.

Sign Up / Log In to Unlock the Module

Please Sign Up or Log In to unlock the module and access the rest of the sections.