Traffic Classification
App-ID 03
Learning objectives
- Explain why App-ID classifies by signature/decoder/heuristic instead of trusting port numbers
- Describe the order of operations App-ID follows within a single session (policy match → signature → decryption → decoder → heuristic)
- Identify the operational risk of new App-IDs shipping in content updates against broad "allow any application" rules
App-ID is Palo Alto's patented traffic classification engine. It determines what application is actually running — regardless of port, protocol, or evasive encryption (SSH/SSL) — rather than trusting the port number.
Why
Attackers and legitimate apps alike hop ports or hide inside allowed protocols (e.g. instant messaging tunneled over HTTP). Port-based rules can't distinguish "port 443 web browsing" from "port 443 BitTorrent."How
Layered classification: (1) traffic first hits Security policy; (2) application signatures identify the app and whether it's on a non-standard port; (3) if SSL/SSH is detected and a decryption rule matches, the session is decrypted and signatures are re-applied on plaintext; (4) protocol decoders validate conformance and detect apps tunneling inside another protocol; (5) for evasive traffic that defeats signatures, heuristics/behavioral analysis makes the final call. Once identified, policy decides: block, allow-and-scan, restrict features, or apply QoS.Pros
- Sees through port-hopping and protocol tunneling that port-based ACLs miss
- No separate license — core to every NGFW
- Feeds Policy Optimizer, which finds port-based rules you can safely convert to App-ID rules
Cons
- New App-IDs ship in content updates — existing "allow all apps" rules can silently start (or stop) matching new traffic, so you must review new App-ID impact each release
- Custom/internal apps need manual App-ID objects or they show up as "unknown-tcp/udp"
- Heuristic identification for very evasive apps is probabilistic, not exact
Exam Trap
App-ID re-evaluation on decryption is often missed: a session first classified as "unknown" or as the wrapper protocol can be reclassified mid-session once SSL/SSH decryption exposes the real application, and Security Policy is re-checked against the new App-ID — the exam expects you to know classification isn't necessarily final at session start.
Self-check: App-ID
unknown-tcp or unknown-udp until you create a custom App-ID object (or application override) for it — port-based rules alone won't give it a proper identity.Source: ngfw/administration/app-id/app-id-overview
User-ID 04
Learning objectives
- List the identity sources User-ID can build its IP-to-username mapping from
- Explain why shared/NAT'd IPs (Citrix, proxies) require special handling
- Describe how Security rules reference users/groups once User-ID is populated
User-ID maps network activity to an actual user identity instead of just an IP address, by pulling from directories (AD/LDAP), authentication logs, captive portal, GlobalProtect, and terminal server agents.
Why
An IP address doesn't tell you who did something — DHCP leases change, users share machines, and incident response needs "which person" not "which socket." Effective policy and forensics both need identity.How
The firewall builds an IP-address-to-username map from sources like domain controller security logs, LDAP/AD group lookups, Terminal Server (Citrix/RDP) agents, captive-portal authentication, and GlobalProtect. Security rules can then reference users or AD groups directly ("allow Finance-group to use Concur").Pros
- Policy and logs are attributable to people, drastically speeding incident response
- Works with existing AD/LDAP — no separate identity store to maintain
- Mappings can be shared across virtual systems via a "User-ID hub"
Cons
- Depends on correct agent placement/permissions on domain controllers — misconfiguration causes stale or wrong mappings
- Shared/NAT'd IPs (Citrix, proxies) need special handling (Terminal Server agent) or mappings become unreliable
- Large environments need a deliberate "large-scale User-ID" design, not just default settings
Exam Trap
User-ID mappings are IP-based and time-limited — a stale mapping (e.g. a DHCP lease reassigned to a different user) will misattribute traffic until it times out or is refreshed, so User-ID accuracy depends on mapping timeout tuning, not just agent deployment.
Self-check: User-ID
Source: ngfw/administration/user-id
Content-ID 05
Learning objectives
- Explain why Content-ID runs after App-ID/User-ID in the classification pipeline
- List the services Content-ID drives (Threat Prevention, URL Filtering, file/data filtering, DNS analysis)
- Identify which of Content-ID's capabilities are free vs. subscription-gated
Content-ID is the stream-based content-inspection engine that runs threat prevention, URL filtering, file/data-filtering, and DNS-based protections on the already-classified traffic — in real time, without waiting for the whole file to buffer.
Why
Knowing "this is Dropbox traffic from Bob" isn't enough — you also need to know if the payload contains malware, exploits, sensitive data, or a malicious URL. Content-ID supplies that content-level inspection layer.How
Once App-ID/User-ID classify a session, Content-ID applies IPS signatures, antivirus, anti-spyware/C2 detection, URL categorization, file-type/data filtering, and DNS analysis to the stream, using uniform threat/content signatures updated via dynamic content updates.Pros
- Stream-based scanning avoids the latency of full file buffering
- One engine drives Threat Prevention, URL Filtering, and DLP-style data filtering consistently
- Signature/content updates are centrally managed and pushed on a schedule you control
Cons
- Most of Content-ID's real power (Threat Prevention, URL Filtering, DNS Security) is subscription-gated
- Signature-based detection still needs WildFire/ML add-ons to catch genuinely novel malware
Exam Trap
Content-ID inspects the stream in real time, but it can only see what App-ID has decrypted for it — if a decryption policy exempts a category (e.g. banking), Content-ID's threat/URL/file inspection is blind to that traffic regardless of how the Content-ID profiles themselves are configured.
Self-check: Content-ID
Source: ngfw/administration/content-id
Module Quiz
1. An engineer reviews Traffic logs and finds sessions for a custom internal application with no matching App-ID signature. Which application value will the firewall assign by default?
2. A user is running an instant-messaging application deliberately tunneled inside HTTP to evade port-based controls. Which App-ID classification mechanism is responsible for identifying the true application in that case?
3. A session is initially classified as ssl by App-ID. Partway through the session, the firewall applies a Decryption policy rule and begins decrypting the traffic. What happens to the App-ID classification at that point?
4. Multiple users share a single source IP address on a Citrix XenApp/RDP terminal server, and User-ID mappings are coming back ambiguous. Which identity source should the engineer deploy to resolve this?
5. Which two of the following are valid, commonly used methods for a Palo Alto Networks firewall to collect User-ID mapping information? (Choose two.)
6. A host is reassigned a new DHCP lease, but the firewall continues attributing its traffic to the previous user for several minutes. What is the underlying cause?
7. Content-ID inspects traffic as a continuous stream rather than buffering an entire file before scanning it. What is the primary operational benefit of this design?
8. A Decryption policy rule exempts traffic to banking and healthcare URL categories from SSL decryption for compliance reasons. What is the effect on Content-ID's Threat Prevention and URL Filtering inspection for that exempted traffic?
9. A firewall has a Threat Prevention license but not WildFire. A genuinely novel, never-before-seen executable crosses the firewall. What capability gap results?