Why is Traffic not matching the correct security policy based on custom URL category or App-ID?

Why is Traffic not matching the correct security policy based on custom URL category or App-ID?

46766
Created On 01/15/20 22:43 PM - Last Modified 07/21/25 21:04 PM


Question


Why is Traffic not matching the correct security policy based on custom URL category or App-ID?

Environment


  • NGFW
  • Any PAN-OS


Answer


Session setup for a new session will go through the following sequence:
  1. Initial firewall security policy lookup based on six-tuple key
  2. Application identification
  3. If application is SSL and has a matching decryption policy
    1. Decrypt traffic
    2. Application identification using decrypted packets
  4. Security policy lookup using all match criteria
  5. Content inspection
  6. Forwarding/Egress
Errors in session processing that occur after the initial security policy lookup but before the additional lookup(s) may lead to an incorrect rule match in the traffic log.
  • As the initial security policy lookup only matches on the six-tuple key it will not reflect any other match criteria such as application or URL category.
  • Traffic is not erroneously allowed by this initial match: only TCP/SSL handshakes are allowed to this point
  • Traffic will be allowed or denied only after the final security policy lookup is made using all match criteria


Additional Information


Common causes include an 'incomplete' App-ID or an SSL handshake failure.
This is the same logic behind why logs generated using "Log at session start" can match the incorrect security policy.


Six-tuple match criteria: 

  • Source and destination addresses: IP addresses from the IP packet. 
  • Source and destination ports:  Port numbers from TCP/UDP protocol headers. 
  • Protocol: The IP protocol number from the IP header is used to derive the flow key . 
  • Security zone: This field is derived from the ingress interface at which a packet arrives.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000POF8CAO&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language