6.1 Cloud Firewall & Cloud IPS
Key Takeaways
- Zscaler Cloud Firewall delivers elastic, carrier-grade Layer 3 through Layer 7 policy enforcement for all non-web and web traffic without physical perimeter hardware.
- Deep Packet Inspection (DPI) powered by AppID identifies over 500 network applications regardless of non-standard port numbers or protocol evasion attempts.
- Cloud IPS provides signature-based inspection, protocol anomaly detection, and stateful exploit prevention continuously updated by ThreatLabZ threat intelligence.
- Advanced Evasion Prevention normalizes fragmented packets, out-of-order delivery, and TCP overlapping segments in memory before security evaluation.
- DNS Control policy evaluates before Cloud Firewall rules, providing real-time DNS filtering, unauthorized resolver blocking, and malicious domain sinkholing.
6.1 Cloud Firewall & Cloud IPS
Core Principle: Traditional Next-Generation Firewalls (NGFWs) rely on perimeter hardware appliances with fixed compute capacity, constrained throughput, and localized signature databases. In contrast, the Zscaler Cloud Firewall and Cloud IPS operate as a globally distributed, multitenant security engine within the Single-Scan Multi-Action (SSMA) architecture of the Zero Trust Exchange. It inspects all traffic (all ports and all protocols) across Layer 3 through Layer 7, enforcing granular policy, detecting sophisticated exploits, and normalizing evasion techniques in real time without backhauling or throughput bottlenecks.
1. Cloud Firewall Architecture & Packet Processing Pipeline
Traditional enterprise networks steer branch office and remote worker traffic through expensive MPLS links or VPN tunnels back to a centralized data center to pass through a stack of physical firewalls. This "hub-and-spoke" model introduces latency, degrades user experience, and creates hardware lifecycle bottlenecks.
The Zscaler Cloud Firewall terminates all outbound traffic from endpoints and branch locations (forwarded via Z-Tunnel 2.0, GRE, or IPsec) directly at the nearest Zscaler Public Service Edge. The Cloud Firewall operates alongside the Secure Web Gateway (SWG) engine, inspecting non-HTTP/HTTPS traffic as well as native web protocols.
+-----------------------------------------------------------------------------------+
| ZSCALER INGRESS PACKET PROCESSING PIPELINE |
+-----------------------------------------------------------------------------------+
Client Traffic (Z-Tunnel 2.0 / GRE / IPsec)
│
▼
┌─────────────────────────────────────────────────────────┐
│ Step 1: Network Ingress & Tunnel Decapsulation │
│ (DTLS/TLS, ESP, or GRE outer headers stripped) │
└────────────────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ Step 2: DNS Control Policy Evaluation │
│ (Protocol validation, Sinkholing, DoH/DoT) │
└────────────────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ Step 3: Layer 3 / Layer 4 Network Service Rules │
│ (Source IP/Location, Dest IP, Port/Protocol) │
└────────────────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ Step 4: Layer 7 AppID Deep Packet Inspection (DPI) │
│ (Identifies 500+ Network Apps regardless of port)│
└────────────────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ Step 5: Cloud IPS Engine (Signatures & Anomalies) │
│ (ThreatLabZ intelligence, Exploit prevention) │
└────────────────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ Step 6: Security Verdict & Egress Routing │
│ (Allow -> Local Breakout / Block -> Drop/Reset) │
└─────────────────────────────────────────────────────────┘
Rule Evaluation Order & Logic
The Cloud Firewall enforces policies using a deterministic top-down, first-match hierarchy:
- Rule Ordering (1 to N): Rules are evaluated sequentially starting from Rule 1. The first rule whose criteria match the traffic profile is executed immediately, and evaluation ceases.
- Criteria Dimensionality: Rules can match on User, Group, Department, Location, Location Group, Time Window, Source IP Group, Destination IP Group, Network Services (L3/L4), and Network Applications (L7 AppID).
- Default Firewall Rule: A system default rule resides at the bottom of the rule table. If no custom rule matches, the Default Rule dictates whether unclassified traffic is allowed or blocked.
2. AppID: Layer 7 Application Identification Beyond Port Numbers
Legacy packet-filtering firewalls rely on destination port numbers to infer application protocols (e.g., assuming TCP port 80 is HTTP, TCP port 443 is HTTPS, and TCP port 22 is SSH). Modern applications, evasive malware, and peer-to-peer protocols frequently bypass port-based controls by using non-standard ports, port hopping, or encapsulating protocols within standard ports.
AppID uses Deep Packet Inspection (DPI) to inspect the payload, protocol handshakes, cryptographic signatures, and behavioral characteristics of traffic streams to accurately identify the underlying application, regardless of the port used.
Traditional Port-Based Firewall (Vulnerable):
[ SSH Traffic on TCP Port 80 ] ──> [ Rule: Allow TCP 80 (HTTP) ] ──> PASSED (Evasion Success!)
Zscaler Cloud Firewall with AppID (Secure):
[ SSH Traffic on TCP Port 80 ] ──> [ AppID DPI Engine ] ──> Identified as 'SSH' (Not HTTP)
│
▼
[ Matches Rule: Block SSH ] ──> BLOCKED
Network Services vs. Network Applications
Understanding the distinction between Network Services and Network Applications is critical for the ZDTA exam:
| Classification Construct | OSI Layer | Identification Method | Configuration Examples |
|---|---|---|---|
| Network Service | Layer 3 / Layer 4 | Destination Port & Transport Protocol (TCP/UDP/ICMP) | DNS (UDP 53), RDP (TCP 3389), Custom-App (TCP 8080-8090) |
| Network Application (AppID) | Layer 7 | Deep Packet Inspection, Payload Heuristics, Handshake Fingerprinting | SSH, BitTorrent, TeamViewer, SIP, Minecraft, PostgreSQL |
| Network Service Group | Layer 3 / Layer 4 | Logical grouping of multiple Network Services for reusable policy | Web_Standard_Ports (TCP 80, 443, 8080) |
| Network Application Group | Layer 7 | Logical grouping of multiple Layer 7 AppIDs | Remote_Access_Apps (SSH, RDP, VNC, TeamViewer) |
[!IMPORTANT] Exam Key Point: When creating a Cloud Firewall rule, selecting a Network Application instructs the Zscaler engine to perform Layer 7 DPI. If an administrator specifies both a Network Service (e.g., TCP 8080) and a Network Application (e.g., SSH), the rule matches only if the traffic is identified as SSH operating specifically on TCP port 8080.
3. Cloud IPS: Signatures, Anomaly Detection & ThreatLabZ Intelligence
Zscaler Cloud IPS provides real-time protection against known network vulnerabilities, remote code execution (RCE) exploits, buffer overflows, advanced port scans, and protocol anomalies across all ports and protocols.
+-----------------------------------------------------------------------------------+
| ZSCALER CLOUD IPS ARCHITECTURE |
+-----------------------------------------------------------------------------------+
+-------------------------------------------------------------------------------+
| ThreatLabZ Global Threat Intelligence |
| * 500B+ daily transactions analyzed * Automated threat feeds & IoCs |
| * Zero-day vulnerability research * CVE vulnerability coverage |
+---------------------------------------+---------------------------------------+
│ Continuous Signature Push (No Downtime)
▼
+-------------------------------------------------------------------------------+
| Zscaler Public Service Edge (Cloud IPS Engine) |
| ┌─────────────────────────┐ ┌────────────────────────┐ ┌──────────────────┐ |
| │ Signature Engine │ │ Protocol Anomaly Engine│ │ Behavioral Scans │ |
| │ (CVEs, Shellcode, RCE) │ │ (RFC Non-Compliance) │ │ (Sweep, Flood) │ |
| └─────────────────────────┘ └────────────────────────┘ └──────────────────┘ |
+-------------------------------------------------------------------------------+
Core Capabilities of Cloud IPS
- Comprehensive CVE Coverage: Protects against active exploits targeting operating systems, enterprise servers, and IoT infrastructure (e.g., Log4j/Log4Shell, EternalBlue/MS17-010, Spring4Shell, ProxyLogon).
- Protocol Anomaly Detection: Validates that network traffic strictly adheres to official RFC protocol specifications. Malformed headers, invalid state sequences, or illegal command verbs are dropped immediately.
- ThreatLabZ Continuous Updates: ThreatLabZ (Zscaler's dedicated global threat research team) continuously authors and deploys IPS signatures across all 150+ global data centers. Signatures are applied instantly in the cloud with zero customer maintenance windows, firewall reboots, or capacity degradation.
- Threat Severity Thresholds: Administrators configure IPS rules based on signature severity levels: Critical, High, Medium, and Low.
4. Advanced Evasion Prevention
Sophisticated threat actors use packet fragmentation and protocol manipulation to evade signature detection on traditional hardware firewalls. Zscaler Cloud IPS incorporates Advanced Evasion Prevention to neutralize these techniques:
Traditional Hardware Firewall Evasion (Overlapping Segments):
Packet Part A: [ GET /index.html?param= ]
Packet Part B: [ EVIL_PAYLOAD_FRAGMENT ] ──> Firewall evaluates fragments independently ──> MISSED EXPLOIT
Zscaler In-Memory Reassembly & Normalization:
[ Packet Part A ] + [ Packet Part B ] ──> [ Public Service Edge Memory Buffer ]
│
▼
Full Stream Normalized & Reassembled
│
▼
[ Cloud IPS Signature Match ] ──> BLOCKED
- IP De-fragmentation: Reassembles fragmented IP packets in memory before passing the payload to the inspection engines.
- TCP Stream Reassembly & Normalization: Normalizes out-of-order packets, resolves overlapping TCP sequence numbers, and eliminates null-byte insertion attacks.
- RPC & Protocol De-segmentation: Decodes multi-part remote procedure calls and encapsulated protocols to inspect the entire command structure.
5. DNS Filtering & Security Controls
DNS is the foundational directory service of the internet and is frequently targeted by attackers for command-and-control (C2) communications, phishing redirects, and data exfiltration. Zscaler DNS Control operates as the first line of defense in the traffic inspection pipeline.
DNS Policy Capabilities
- DNS Filtering by Category: Resolves and blocks queries to malicious domains, newly registered domains (NRDs), parked domains, and unauthorized web categories at the DNS layer before a TCP/TLS connection is initiated.
- Controlling External Resolvers: Prevents users or rogue devices from bypassing corporate DNS policies by blocking or redirecting outbound DNS queries directed to public recursive resolvers (e.g.,
8.8.8.8,1.1.1.1). - DNS over HTTPS (DoH) & DNS over TLS (DoT) Control: Identifies and controls encrypted DNS protocols to ensure endpoints cannot bypass enterprise filtering policies via encrypted tunnels.
- Malicious Domain Sinkholing: Intercepts DNS queries targeting known threat actors, botnets, or phishing hosts and returns a configurable Sinkhole IP Address (e.g.,
0.0.0.0or a corporate quarantine landing page) rather than the actual malicious IP.
DNS Control Resolution Flow:
[ Client Endpoint ] ──( 1. DNS Query: 'malicious-c2.com' )──>
│
▼
[ Zscaler DNS Control Engine ]
│
├──> [ Query matches ThreatLabZ Malicious List ]
│
└──> ( 2. Returns Sinkhole IP: 0.0.0.0 / NXDOMAIN ) ──> [ Connection Prevented ]
6. Practical Configuration Scenario: Enterprise Egress Lockdown
Objective: Secure a branch office network connected via GRE tunnel to ZIA. Enforce corporate DNS, allow SSH and RDP only to authorized internal server groups over standard ports, block BitTorrent across all ports, and inspect all traffic with Cloud IPS.
Configuration Workflow:
- Configure DNS Control Rules:
- Rule 1 (Block Unauthorized Resolvers): Protocol = DNS; Destination IP =
!Corporate_DNS_Servers; Action = Block / Drop. - Rule 2 (Sinkhole Malicious Domains): Domain Categories =
Malicious Domains,Phishing,Suspicious Domains; Action = Sinkhole to 0.0.0.0.
- Rule 1 (Block Unauthorized Resolvers): Protocol = DNS; Destination IP =
- Configure Cloud Firewall AppID Rules:
- Rule 1 (Block P2P Protocols): Network Applications =
BitTorrent,Tor,eDonkey; Action = Block / Drop. - Rule 2 (Allow Authorized Remote Admin): Users/Groups =
IT-Admins; Network Applications =SSH,RDP; Network Services =SSH (TCP 22),RDP (TCP 3389); Destination IP =Authorized_Servers; Action = Allow. - Rule 3 (Block Rogue Remote Admin): Network Applications =
SSH,RDP,VNC,TeamViewer; Action = Block / Drop.
- Rule 1 (Block P2P Protocols): Network Applications =
- Configure Cloud IPS Policy:
- Enable Cloud IPS for all locations.
- Set Threat Severity action:
Critical= Block,High= Block,Medium= Block,Low= Allow and Log.
- Verify Default Rule: Ensure the Default Firewall Rule is set according to organizational policy (e.g.,
Block All Other Trafficfor zero-trust lockdown).
7. Exam Tips & High-Frequency Traps
[!WARNING] Exam Trap (Rule Order Precedence): Cloud Firewall rules are strictly evaluated top-down, first-match. If a broad "Allow All Outbound" rule is placed at Rule 5, any specific blocking rules placed below Rule 5 (e.g., Rule 10: Block SSH) will never be evaluated for matching traffic.
[!IMPORTANT] Exam Key Point (DNS Control vs. Firewall Execution): DNS Control policy executes before standard Cloud Firewall rules in the ZIA inspection pipeline. If a destination is blocked at the DNS layer, the client never receives the real IP address, preventing any subsequent TCP/UDP connection from reaching the Cloud Firewall engine.
[!TIP] Operational Best Practice (AppID vs. Port): Always combine Network Applications (L7) with Network Services (L3/L4) when enforcing strict administrative access to ensure that applications cannot run on non-standard ports.
An administrator creates a Zscaler Cloud Firewall rule specifying a Network Application of 'SSH' and a Network Service of 'TCP Port 8080'. How will the Cloud Firewall evaluate traffic against this rule?
How does Zscaler Cloud IPS maintain signature coverage across all global Public Service Edge data centers without causing customer downtime or maintenance windows?
In the Zscaler traffic inspection lifecycle, what is the evaluation relationship between DNS Control policies and Cloud Firewall rules?
How does the Zscaler Cloud Firewall process incoming network connections across its configured policy rule table?