Best Practices and Considerations for Decryption Policy Rules
Strike a balance between thorough inspection and efficient performance,
compliance, security, and resource management. Decrypting all traffic
indiscriminately can be resource-intensive. For example, if Next-Generation
Firewall (
NGFW) performance and sizing are major considerations, you
might prioritize the decryption and inspection of traffic to high- or medium-risk
URL categories, traffic destined for
critical servers, or business-critical traffic. Evaluate the potential impacts of
decryption on major applications or servers.
In another case, you might decide not to decrypt the traffic of high-level business
executives. You can do so by creating a no-decrypt decryption policy rule with the
executive's User-ID as a source.
Create targeted decryption policy rules for different network segments and user
groups. Different segments of the network may have varying levels of risk
and security requirements. For example, traffic between external networks and
internal zones typically requires stricter scrutiny. Decrypting traffic selectively
allows the implementation of customized security policies that provide appropriate
levels of protection without compromising performance or privacy for other users.
Use the controls available to create targeted decryption policy rules that take into
account the most important factors to you. You might even update your decryption
policy rules to optimize troubleshooting efforts.
Create rules that are as specific or general as needed and order them
appropriately. Many Palo Alto Networks services rely on decryption. Clearly
define which types of traffic should be decrypted, ensuring that the rules are
specific enough to be effective but broad enough to cover necessary use cases.
Place rules that exclude traffic from decryption
at the top. Decryption policy rules are compared against the traffic in sequence.
Decryption policy rules are evaluated from top to bottom; more specific rules must
precede more general rules.
Best Practices:
Block known dangerous
URL filtering categories such as
malware, phishing, dynamic-dns, unknown, command-and-control,
proxy-avoidance-and-anonymizers, copyright-infringement, extremism,
newly-registered-domain, grayware, and parked. If you must allow any of
these categories for business reasons, decrypt them and apply strict
Security profiles to the traffic.
URL categories that you should always decrypt if you allow them include:
online-storage-and-backup, web-based-email, web-hosting,
personal-sites-and-blogs, and content-delivery-networks.
Apply a decryption profile to decryption policy rules to protect your network
against encrypted threats. You can’t protect yourself against threats you
can’t see.
In Security policy rules, block the Quick UDP Internet Connections (QUIC)
protocol unless you want to allow encrypted browser traffic for business
reasons. Chrome and some other browsers establish sessions using QUIC
instead of TLS. QUIC uses proprietary encryption that NGFWs
can’t decrypt, so potentially dangerous traffic may enter the network as
encrypted traffic. Blocking QUIC forces the browser to fall back to TLS and
enables de ryption of the traffic.
Create a Security policy rule that blocks QUIC on its UDP service ports (80
and 443) and create a separate rule that blocks the QUIC application. For
the rule that blocks UDP ports 80 and 443,
create a Service that includes UDP
ports 80 and 443.
Before creating a decryption policy rule, understand that the set of IPv4
addresses is treated as a subset of the set of IPv6 addresses, as described
in detail in
Policy.
Define Traffic to Decrypt (Strata Cloud Manager)
Log in to
Strata Cloud Manager.
Add a new decryption policy rule.
Select .
In the Decryption Policies section, click
Add
Rule.
Provide basic information to identify the rule.
Enter a descriptive
Name.
(
Optional) Enter a
Description of the
rule.
(
Optional) Select a
Position.
(
Optional) Select
Tags.
Specify match criteria based on network and
policy objects.
A rule only applies to traffic that matches all specified criteria.
Specify how to handle traffic that matches rule conditions.
In the Action and Advanced Inspection section, for
Action, select either
Decrypt or
Do Not
Decrypt.
If you selected Decrypt, select a decryption
Type:
SSL Inbound
Inspection. Then,
Add one
or more
Certificates for the internal
server you want to protect. Decryption policy rules for SSL
Inbound Inspection support a maximum of 12 certificates.
You can decrypt SSL/TLS traffic bound for an internal
server that hosts multiple domains, each domain with its
own certificate. The NGFW negotiates
SSL/TLS connections using the certificate in your policy
rule that matches the one the server presents for the
requested URL.
To update certificates for protected internal servers
without incurring downtime, renew or obtain a new server
certificate before it expires or otherwise becomes
invalid. Then, import the certificate and private key
onto your
NGFW or
Strata Cloud Manager,
add it to an SSL Inbound Inspection policy rule before
installing the same certificate onto your web server.
Updating your policy rule with a new certificate while
another is active on your web server prepares the
NGFW to decrypt traffic to the server
regardless of the certificate in use.
Configure SSL Inbound
Inspection describes this process
further.
If you selected Do Not Decrypt, you can
optionally Enforce TLS and Certificate
Validation.
(
Optional) Associate a
decryption profile
with the decryption policy rule to block and control various aspects of
traffic governed by the decryption policy rule.
Under Action and Advanced Inspection, select a
Decryption Profile.
For SSL decryption, you can define the TLS protocol versions, key
exchange algorithms, encryption algorithms, and authentication
algorithms allowed for SSL Forward Proxy and SSL Inbound Inspection
connections. You can also block sessions with weak protocol
versions, expired certificates, and other options.
The profile settings the NGFW applies to matching
traffic depends on the policy rule action (Decrypt or Do Not
Decrypt) and decryption type (SSL Forward Proxy and SSL Inbound
Inspection). This allows you to use the different decryption
profiles with different decryption policy rules that apply to
different types of traffic and users.
Configure decryption logging.
You can log successful and unsuccessful TLS handshakes and configure external
log forwarding.
Save the decryption policy rule.
Click
Push Config to begin enforcing the rule.
-
Define Traffic to Decrypt (PAN-OS & Panorama)
Add a new decryption policy rule.
Select , Add a new decryption policy rule, and
give the policy rule a descriptive Name.
Configure the decryption rule to match to traffic based on network and
policy objects:
Firewall security zones—Select Source
or Destination and match to traffic based on
the Source Zone or Destination
Zone.
IP addresses, address objects, or address groups—Select
Source or
Destination to match to traffic based on
the Source Address or the
Destination Address. Alternatively,
select Negate to exclude the source address
list from decryption.
(Available in PAN-OS 12.1.2 and later) If your network operates
using IPv6 (or a dual stack deployment) and would like to
specify a region with IPv6 geolocation for the source and
destination IP addresses, you must Enable IPv6
Firewalling as well as Enable IPv6
Geolocation from .
The following platforms configured with less than 9GB do not
support IPv6 geolocation:
Hardware NGFWs: PA-410, PA-410R, PA-410R-5G, PA-415,
and PA-415-5G
Users—Select Source and set the
Source User for whom to decrypt traffic.
You can decrypt specific user or group traffic or decrypt traffic
for certain types of users, such as unknown users or pre-logon users
(users who are connected to GlobalProtect but are not yet logged
in).
Ports and protocols—Select Service/URL
Category to set the rule to match to traffic based
on service. By default, the policy rule is set to decrypt
Any traffic on TCP and UDP ports. You can
Add a service or a service group, and
optionally set the rule to
application-default to match to
applications only on the application default ports.
The application-default setting can be useful when you
create a policy-based decryption
exclusion. You can exclude applications running on their
default ports from decryption, while continuing to decrypt the same
applications when they are detected on nonstandard ports.
Set the rule to either decrypt matching traffic or to exclude matching traffic
from decryption.
Select Options and set the policy rule
Action:
To decrypt matching traffic:
Set the
Action to
Decrypt.
Select the
Type of decryption:
SSL Inbound
Inspection. Then,
Add one
or more
Certificates for the
destination internal server of the inbound SSL traffic. SSL
Inbound Inspection policy rules support a maximum of 12
certificates.
You can configure a decryption policy rule to decrypt
SSL/TLS traffic bound for an internal server that hosts
multiple domains, each domain with its own certificate.
The NGFW negotiates SSL/TLS connections
using the certificate in your policy rule that matches
the one the server presents for the requested URL.
To update certificates for protected internal servers
without incurring downtime, renew or obtain a new server
certificate before it expires or otherwise becomes
invalid. Then, import the certificate and private key
onto your
NGFW or
Strata Cloud Manager,
add it to an SSL Inbound Inspection policy rule before
installing the same certificate onto your web server.
Updating your policy rule with a new certificate while
another is active on your web server prepares the
NGFW to decrypt traffic to the server
regardless of the certificate in use.
Configure SSL Inbound
Inspection describes this process
further.
(Panorama ™) Support for multiple
certificates in SSL Inbound Inspection policy rules is
unavailable in PAN-OS® versions earlier than
PAN-OS 10.2. If you push an SSL Inbound Inspection
policy rule with multiple certificates from a Panorama
management server running PAN-OS 10.2 to a NGFW running an earlier version, the
policy rule on the managed NGFW inherits
only the first certificate from the alphabetically
sorted list of certificates.
To exclude matching traffic from
decryption:
Set the Action to No
Decrypt.
Apply a no-decryption profile to
undecrypted traffic to block sessions with expired certificates and
untrusted issuers. Just because you don't decrypt the traffic does not
mean you should let just any undecrypted traffic on your network. Server
certificate checks help with this.
(
Optional) Select a
Decryption Profile to
perform additional checks on traffic that matches the policy rule.
Although optional, always apply a decryption profile to decryption policy
rules to protect your network against encrypted threats. You can’t
protect yourself against threats you can’t see.
Create a decryption policy rule or open an existing rule to modify
it.
Select
Options and select a
Decryption Profile to block and control
various aspects of the traffic matched to the rule.
The profile rule settings applied to matching traffic depends on the
policy rule Action (Decrypt or No Decrypt)
and the policy rule Type (SSL Forward Proxy,
SSL Inbound Inspection, or SSH Proxy). This allows you to use the
different decryption profiles with different types of decryption
policy rules that apply to different types of traffic and users.
Click
OK.
Configure decryption logging
(configure whether to log both successful and unsuccessful TLS handshakes and
configure decryption log forwarding).
Click
OK to save the rule.
-