0% found this document useful (0 votes)
54 views6 pages

Firewall Guide for SOC Analysts

The document provides a comprehensive guide on firewalls, detailing their purpose, types, and functionalities for SOC analysts. It covers various firewall types, including packet filtering, stateful inspection, and next-generation firewalls, along with their advantages and limitations. Additionally, it discusses how firewalls work, log formats, and common use cases for effective network security management.

Uploaded by

MJ M
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views6 pages

Firewall Guide for SOC Analysts

The document provides a comprehensive guide on firewalls, detailing their purpose, types, and functionalities for SOC analysts. It covers various firewall types, including packet filtering, stateful inspection, and next-generation firewalls, along with their advantages and limitations. Additionally, it discusses how firewalls work, log formats, and common use cases for effective network security management.

Uploaded by

MJ M
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

BY – Dashrath Jamadar

Firewall – Complete Guide for SOC Analysts


A Firewall is a critical security device or software that monitors and controls incoming and outgoing
network traffic based on predefined security rules. It acts as a barrier between trusted internal networks
and untrusted external networks, such as the internet that inspects, filters, and controls traffic to protect
internal resources from unauthorized access, malware, and cyber threats.

Purpose: Prevent unauthorized access, enforce security policies, and protect sensitive data.
Works at: Network Layer (OSI Layer 3), Transport Layer (Layer 4), and Application Layer (Layer 7).

Types of Firewalls:
1. Packet Filtering Firewall

• How it works: Inspects each packet’s headers (source & destination IP, port, protocol) and allows
or blocks traffic based on rules.

• Key Feature: Works at the Network Layer (Layer 3) and Transport Layer (Layer 4) of the OSI
model.

• Example: Access Control Lists (ACLs) in routers.

• Use Case: Basic network security, blocking or allowing specific traffic.

• Limitation: Cannot inspect packet contents (payload).

2. Stateful Inspection Firewall (Dynamic Packet Filtering Firewall)

• How it works: Monitors active connections and makes decisions based on state, context, and
rules.

• Key Feature: Keeps track of session states and works at Layers 3, 4, and 5 (Network, Transport,
and Session Layers).
BY – Dashrath Jamadar

• Example: Cisco ASA, Check Point Firewalls.

• Use Case: More secure than packet filtering; used in corporate networks.

• Limitation: Can slow down performance due to session tracking.

3. Proxy Firewall (Application Layer Firewall)

• How it works: Acts as an intermediary between users and the internet, inspecting application-
layer (Layer 7) traffic.

• Key Feature: Deep Packet Inspection (DPI) to analyze full packet contents.

• Example: Squid Proxy, Blue Coat Proxy.

• Use Case: Used for content filtering, blocking malicious sites, and enforcing web usage policies.

• Limitation: Slower due to content analysis.

4. Next-Generation Firewall (NGFW)

• How it works: Combines traditional firewall features with advanced security functions like
Intrusion Prevention System (IPS), Deep Packet Inspection (DPI), and Threat Intelligence.

• Key Feature: Works at all OSI layers (Layer 2 - Layer 7).

• Example: Palo Alto Networks, Fortinet, Cisco Firepower.

• Use Case: Enterprise-level security for detecting and preventing modern threats.

• Limitation: Expensive and resource-intensive.

5. Web Application Firewall (WAF)

• How it works: Protects web applications by filtering and monitoring HTTP/HTTPS traffic.

• Key Feature: Detects and prevents web attacks like SQL Injection, Cross-Site Scripting (XSS), and
CSRF.

• Example: AWS WAF, Cloudflare WAF, Imperva WAF.

• Use Case: Protects web applications from application-layer attacks.

• Limitation: Does not protect non-web services.

6. Circuit-Level Gateway Firewall

• How it works: Verifies TCP handshakes without inspecting packet contents.

• Key Feature: Works at the Session Layer (Layer 5) of the OSI model.

• Example: SOCKS Proxy.

• Use Case: Used for hiding internal network structures.

• Limitation: Does not inspect the actual data payload, only connection state.
BY – Dashrath Jamadar

7. Cloud-Based Firewall (Firewall as a Service - FWaaS)

• How it works: Hosted in the cloud and provides firewall capabilities without on-premise
hardware.

• Key Feature: Scalable, managed firewall solution.

• Example: Zscaler, Palo Alto Prisma, Cloudflare Magic Firewall.

• Use Case: Protects cloud environments, SaaS applications, and remote users.

• Limitation: Dependent on internet connectivity.

8. Host-Based Firewall

• How it works: Installed on individual devices to filter incoming and outgoing traffic.

• Key Feature: Protects individual hosts rather than an entire network.

• Example: Windows Defender Firewall, iptables (Linux).

• Use Case: Endpoint security, blocking unauthorized connections to/from a system.

• Limitation: Cannot protect the entire network.

Comparison of Firewall Types

Firewall Type OSI Layer Pros Cons


Packet Filtering Layer 3, 4 Fast, simple Cannot inspect payload
Layer 3, 4,
Stateful Inspection Tracks sessions Performance impact
5
Proxy Firewall Layer 7 Deep packet inspection Slower performance
Next-Generation (NGFW) Layer 3 - 7 Advanced threat protection Expensive
Web Application Firewall (WAF) Layer 7 Protects web apps Not for non-web traffic
Circuit-Level Gateway Layer 5 Hides internal network No content inspection
Cloud-Based Firewall Cloud Scalable, no hardware Internet-dependent
Host-Based Firewall Endpoint Protects individual devices No network-wide security

2. How a Firewall Works


A firewall inspects network traffic using rules, policies, and signatures to allow or block traffic.

Packet Filtering – Analyzes IP headers and determines if a packet is allowed.


Stateful Inspection – Tracks active connections and permits legitimate responses.
Deep Packet Inspection (DPI) – Inspects entire packet contents for threats.
Application-Layer Filtering – Blocks unauthorized applications like P2P sharing.

Example Flow of Firewall Traffic:

1. User sends a request → HTTP request to [Link].


BY – Dashrath Jamadar

2. Firewall inspects the packet → Checks source, destination, and security policies.

3. Decision made → Traffic is allowed or blocked based on rules.

4. Logging & Alerting → Suspicious traffic is logged and sent to SIEM.

3. Log Formats Supported by Firewalls


Firewalls generate logs in formats like:

• Syslog – Standard logging format for integration with SIEM.

• Common Event Format (CEF) – Used in security tools like ArcSight.

• Log Event Extended Format (LEEF) – IBM QRadar-compatible logs.

• JSON & CSV – Used for structured logging and API-based log ingestion.

4. Logs Generated and Sent to SIEM


Common Firewall Logs Sent to SIEM:

1. Traffic Logs – Logs allowed and blocked network traffic.

2. Connection Logs – Source/destination IPs, ports, and protocols.

3. Intrusion Prevention Logs – Logs suspicious or attack-related packets.

4. Blocked IPs & Blacklist Logs – Tracks denied connections.

5. Policy Violation Logs – Detects unauthorized protocol usage.

6. Malware & Threat Detection Logs – Logs flagged malicious traffic.

7. Authentication Logs – VPN and remote access firewall authentication attempts.

Example Firewall Log Entry (Syslog Format):

Feb 16 10:30:00 Firewall-01 BLOCK src_ip=[Link] dst_ip=[Link] port=443 protocol=TCP


action=Denied rule=Block_Untrusted

5. Advantages of Firewalls

Protects Internal Networks – Blocks unauthorized traffic from reaching internal systems.
Prevents Cyber Attacks – Filters out threats like malware, DDoS attacks, and unauthorized access.
Monitors & Logs Network Activity – Helps SOC teams analyze security incidents.
Enforces Security Policies – Controls what traffic is allowed or blocked.
Reduces Attack Surface – Blocks unnecessary services, ports, and IPs.
BY – Dashrath Jamadar

6. Disadvantages of Firewalls

Not a Complete Security Solution – Cannot stop attacks like phishing or insider threats.
Performance Impact – Stateful inspection and DPI can slow down traffic.
Misconfiguration Risks – Weak firewall rules can leave networks vulnerable.
Cannot Detect Encrypted Threats – Limited visibility into SSL/TLS traffic without decryption.

7. Firewall Log Flow to SIEM


1. User sends a request → Firewall logs connection attempt.

2. Firewall applies rules → Allows or blocks the connection.

3. Log generated → Firewall logs are sent to SIEM.

4. SIEM Correlation → SIEM detects anomalies based on firewall logs.

5. SOC Investigation → Analysts review alerts and respond to threats.

Example SIEM Use Case:

• Scenario: A user is accessing a restricted website.

• Firewall Action:

o Logs the access attempt.

o Blocks the request if policy violation detected.

o Sends logs to SIEM for monitoring.

o SOC team investigates and takes action.

8. Top Firewall Vendors in 2025


1. Palo Alto Networks Next-Generation Firewall (NGFW)

2. Fortinet FortiGate Firewall

3. Cisco Firepower

4. Check Point Security Gateway

5. Juniper SRX Firewall

6. Sophos XG Firewall

7. SonicWall Next-Gen Firewall


BY – Dashrath Jamadar

8. WatchGuard Firebox

9. Barracuda CloudGen Firewall

10. AWS Network Firewall

9. 20 Firewall Use Cases for SOC Analysts


Traffic Filtering & Access Control

1. Blocking Unauthorized IPs – Prevents known malicious IPs from accessing the network.

2. Restricting High-Risk Ports – Blocks unnecessary services (e.g., Telnet, SMB).

3. Allowing Only Approved Applications – Ensures only authorized applications run.

4. Geo-Blocking High-Risk Countries – Prevents access from specific regions.

5. Limiting VPN Access by Location – Restricts remote access based on country.

Threat Detection & Prevention

6. Detecting Large Data Transfers – Identifies potential data exfiltration.

7. Blocking Tor & Proxy Traffic – Prevents anonymized browsing to bypass controls.

8. Detecting Command & Control (C2) Communications – Identifies infected systems.

9. Preventing Lateral Movement – Blocks unauthorized internal network traversal.

10. Monitoring Failed Access Attempts – Detects brute-force or credential stuffing attacks.

Intrusion Prevention & Malware Protection

11. Blocking Exploit Attempts – Prevents known vulnerabilities from being exploited.

12. Detecting DDoS Attacks – Identifies and mitigates volumetric attacks.

13. Filtering Out Malicious Domains – Blocks phishing and malware-hosting websites.

14. Detecting Encrypted Malware Traffic – Identifies suspicious SSL/TLS connections.

15. Sandboxing Suspicious Files – Integrates with NGFWs to analyze unknown files.

Compliance & Policy Enforcement

16. Logging All Admin Firewall Changes – Tracks unauthorized modifications.

17. Detecting Unauthorized IoT Devices – Prevents rogue devices from connecting.

18. Ensuring PCI DSS Compliance – Monitors and controls credit card data flow.

19. Blocking P2P & Unauthorized File Sharing – Prevents copyright violations.

20. Enforcing Zero Trust Network Segmentation – Restricts access to critical assets.

Common questions

Powered by AI

Each firewall type operates at different OSI model layers: Packet Filtering Firewalls function at the Network (Layer 3) and Transport (Layer 4) layers by inspecting packet headers . Stateful Inspection Firewalls cover Layer 3 to Layer 5, tracking session states . Proxy Firewalls operate at the Application Layer (Layer 7), performing deep packet inspection . Next-Generation Firewalls (NGFWs) operate across layers 2 to 7, incorporating features from various firewall types . Web Application Firewalls (WAFs) focus on Layer 7, protecting web traffic specifically . Circuit-Level Gateways function at the Session Layer (Layer 5), handling TCP handshakes without payload inspection . Cloud-Based Firewalls provide scalable solutions without on-premise hardware and are associated with cloud layer characteristics . Host-Based Firewalls act at the endpoint level, primarily focusing on device-specific traffic .

Firewalls come in several types, each with its specific limitations: Packet Filtering Firewalls work at the Network Layer (Layer 3) and Transport Layer (Layer 4) but cannot inspect packet contents . Stateful Inspection Firewalls track session states across layers 3 to 5 but can slow down performance due to session tracking . Proxy Firewalls perform deep packet inspection at the Application Layer (Layer 7) but are slower due to the content analysis . Next-Generation Firewalls (NGFWs) combine traditional firewall features with advanced security functions across all OSI layers but are both expensive and resource-intensive . Web Application Firewalls (WAFs) protect against web-based attacks but do not protect non-web services . Circuit-Level Gateway Firewalls hide internal networks but do not inspect packet contents . Cloud-Based Firewalls offer scalability and management but depend on internet connectivity . Host-Based Firewalls protect individual devices but do not secure entire networks .

A Web Application Firewall (WAF) is the preferred choice for protecting web applications from application-layer attacks, such as SQL Injection and Cross-Site Scripting (XSS), by filtering and monitoring HTTP/HTTPS traffic . It is particularly useful when applications require robust protection against web-based threats. However, its limitations include an inability to protect non-web services and potential performance overhead due to the inspection of web requests .

A Next-Generation Firewall (NGFW) plays a critical role in advanced threat protection by integrating traditional firewall capabilities with modern security functions such as Intrusion Prevention Systems (IPS), Deep Packet Inspection (DPI), and threat intelligence across all OSI layers . These features enable NGFWs to detect and prevent complex cyber threats more effectively than traditional firewalls. However, NGFWs also face challenges, particularly their high cost and resource-intensive nature, which may require significant investments in hardware and maintenance .

Firewalls play a crucial role in an organization's security strategy by blocking unauthorized traffic, preventing cyber attacks such as malware and DDoS attacks, monitoring and logging network activity for SOC teams, enforcing security policies, and reducing the attack surface by preventing access to unnecessary services, ports, and IPs . However, firewalls are not a complete security solution and require proper configuration to avoid leaving networks vulnerable . They also cannot detect threats hidden within encrypted traffic without decryption, highlighting the need for complementary security measures .

Deep Packet Inspection (DPI) is significant because it allows firewalls to analyze the entirety of packet contents beyond header information, enabling the detection of potentially harmful payloads and applications. Proxy Firewalls and Next-Generation Firewalls (NGFWs) employ DPI to provide detailed inspection of data across various OSI layers (especially Layer 7 for Proxy Firewalls) for more effective security measures . This technique is crucial for blocking advanced threats and ensuring compliance with strict security policies by identifying malicious content within seemingly benign traffic .

Firewall logs are critical in security incident management as they provide records of network traffic, which can be analyzed to detect anomalies indicative of security incidents. Types of firewall logs include traffic logs, connection logs, intrusion prevention logs, blocked IPs, policy violation logs, and malware detection logs . An example of a typical log entry in Syslog format could be: 'Feb 16 10:30:00 Firewall-01 BLOCK src_ip=192.168.1.100 dst_ip=10.0.0.5 port=443 protocol=TCP action=Denied rule=Block_Untrusted' . Such logs are essential for SOC teams to investigate and respond to threats effectively .

Firewalls enhance network security by blocking unauthorized traffic and preventing various attacks while monitoring network activity . They also enforce security policies and reduce the attack surface . However, firewalls can impact network performance, particularly those employing stateful inspection or deep packet inspection, which may slow down traffic . Other disadvantages include potential misconfiguration risks, as improper firewall rules can leave networks exposed, and an inability to detect encrypted threats without decryption .

Stateful Inspection Firewalls monitor active connections and make decisions based on the state and context of these connections, operating across OSI layers 3, 4, and 5 . This allows them to offer more security than Packet Filtering Firewalls, which only inspect packet headers at layers 3 and 4 . However, the stateful approach can impact network performance due to the computational overhead involved in maintaining and analyzing active sessions .

Cloud-based firewalls differ from traditional firewalls in that they are hosted in the cloud and provide firewall capabilities without requiring on-premise hardware . This leads to improved scalability, ease of management, and cost-effectiveness compared to deploying multiple hardware devices . However, the primary implication is their dependency on internet connectivity; outages or network issues can impact their effectiveness . These differences enable organizations to better support dynamic, distributed environments but also highlight the need for robust and reliable internet infrastructure .

You might also like