CriticalAny-Any-Permit-All
Security rule · vsys1, position 611 problems · Fixing it closes 11 findings
- From zone
- untrust
- To zone
- any
- Source
- any
- Destination
- any
- Application
- any
- Service
- any
- Action
- allow
- Allow rule matches any source and any destination (PAN-SEC-001)
Rule Any-Any-Permit-All is enabled, its action is allow, and both its source and its destination expand to any. Zones: untrust to any.
An enabled allow rule whose source and destination both resolve to any permits every address pair the zones can reach. Its addresses put no limit on traffic from its source zones to its destination zones, including inbound traffic when a source zone faces the internet.
What this result does not prove
- A deliberate internal any to any rule between two trusted layer 3 zones can be intentional during migrations. Exposure is scored lower when neither zone looks internet facing.
- No hit-count or traffic data was provided, so this finding describes what the configuration permits, not what has been used.
How to fix it and check the fix
Fix
- Replace the any source with the address objects or groups that actually need access.
- Replace the any destination with the specific servers or subnets being reached.
- Re-test the rule with a policy match query before committing.
Check
- Run a policy match query for a representative flow and confirm it now matches the narrowed rule.
- Confirm the applications that used this rule still work after the change.
- Inbound internet rule without threat prevention (PAN-SEC-011)
Rule Any-Any-Permit-All allows traffic from internet-facing zones (untrust) and none of its profiles is antivirus, anti-spyware or vulnerability protection.
A rule that allows traffic arriving from an untrusted zone but attaches no antivirus, anti-spyware or vulnerability protection profile leaves the exposed service with no inspection in front of it.
What this result does not prove
- Internet side from the default route; zone names only when routing is unread.
- A configuration export does not show which subscriptions are licensed or active.
How to fix it and check the fix
Fix
- Attach a profile group containing antivirus, anti-spyware and vulnerability protection.
- Set the vulnerability protection profile to block critical, high and medium severity signatures.
- Confirm the threat signatures are updating on schedule.
Check
- Confirm the zone named in this finding really does face the internet.
- Confirm the threat prevention subscription is active before relying on the profile.
- Allow rule matches any application (PAN-SEC-002)
Rule Any-Any-Permit-All is an enabled allow rule whose application list is any.
An allow rule with application any does not limit which applications may pass: any application matches on the addresses and ports the rule allows, and with service application-default each one only on its default ports.
What this result does not prove
- Temporary discovery rules built to learn traffic legitimately use any. Tag them and set an expiry.
- No hit-count or traffic data was provided, so this finding describes what the configuration permits, not what has been used.
How to fix it and check the fix
Fix
- Run a policy optimizer or traffic log review to list the applications actually seen on this rule.
- Replace application any with that list, plus their implicit dependencies.
- Set service to application-default once the applications are pinned.
Check
- Compare the application list against a week of traffic logs for this rule before committing.
- Watch for denied sessions on the new list for one business cycle.
- Allow rule matches any service (PAN-SEC-003)
Rule Any-Any-Permit-All is an enabled allow rule whose service list is any.
Service any opens every TCP and UDP port for the matched applications. With application any as well, the rule restricts neither the application nor the port.
What this result does not prove
- Rules whose action is deny are not flagged: a broad deny is usually correct.
- No hit-count or traffic data was provided, so this finding describes what the configuration permits, not what has been used.
How to fix it and check the fix
Fix
- Set service to application-default when the applications are known.
- Otherwise attach explicit service objects for the ports in use.
Check
- Confirm the applications on the rule declare their standard ports before switching to application-default.
- Check the traffic log for denied sessions on non-standard ports after the change.
- Allow rule with logging fully disabled (PAN-SEC-007)
Rule Any-Any-Permit-All is an enabled allow rule with log-at-session-start and log-at-session-end both unset.
An allow rule with neither log at session start nor log at session end writes no traffic log for the sessions it permits. An investigation has no traffic log for that path; only the threat and other logs of any attached profiles remain.
What this result does not prove
- Very high volume intra-datacenter rules are sometimes deliberately unlogged for capacity reasons. That is a documented risk acceptance, not a default.
- This describes the configured logging settings. It is not a statement about which sessions were or were not recorded.
How to fix it and check the fix
Fix
- Enable log at session end on the rule.
- Confirm the log forwarding profile sends the traffic log to syslog or Cortex.
Check
- After enabling logging, generate a test session and confirm it appears in the traffic log.
- Allow rule without any security profile (PAN-SEC-010)
Rule Any-Any-Permit-All is an enabled allow rule with no security profile: no profile group and no inline profiles.
An allow rule with no profile group and no inline profiles attaches no antivirus, anti-spyware, vulnerability protection, URL filtering or WildFire inspection to the traffic it allows. For that traffic the firewall applies the rule's match conditions and no content inspection.
What this result does not prove
- Rules whose action is deny or drop do not need profiles and are excluded.
- A configuration export does not show which subscriptions are licensed or active.
How to fix it and check the fix
Fix
- Attach a security profile group to the rule.
- If no suitable group exists, create one from the Palo Alto Networks best practice profiles.
- Verify the group includes antivirus, anti-spyware, vulnerability protection and WildFire.
Check
- Confirm the attached profile group resolves after the commit.
- Generate a test session and confirm the threat log shows the rule inspecting it.
- Outbound internet rule without URL filtering (PAN-SEC-012)
Rule Any-Any-Permit-All allows web traffic toward internet-facing zones (any) and none of its profiles is URL filtering.
Outbound web traffic without a URL filtering profile has no category blocking and no credential phishing protection, and it produces no URL log for later investigation.
What this result does not prove
- Internet side from the default route; zone names only when routing is unread.
- Non-web outbound rules such as SMTP relays do not need URL filtering; only rules that permit web applications or web ports are reported.
- A configuration export does not show which subscriptions are licensed or active.
How to fix it and check the fix
Fix
- Attach a URL filtering profile to the outbound rule.
- Block the malware, command-and-control, phishing and newly-registered-domain categories.
- Enable credential phishing prevention where User-ID is available.
Check
- Confirm the destination zone named in this finding really is the internet.
- Test one blocked category and confirm the block page appears.
- Broad allow rule generalizes earlier specific rules (PAN-SEC-021)
Rule Any-Any-Permit-All matches all of the traffic of 3 earlier rules in the same policy.
A later allow rule is broad enough to cover several earlier specific rules. Traffic it matches beyond them is allowed without the limits those rules set, so the specific rules above it may constrain less than they appear to.
What this result does not prove
- A broad rule that exists as a deliberate catch-all for a trusted internal zone can be intentional.
- No hit-count or traffic data was provided, so this finding describes what the configuration permits, not what has been used.
- Review-required optimization candidate. Business intent and usage are not visible in a configuration export.
How to fix it and check the fix
Fix
- Narrow the broad rule to the applications, services and addresses actually required.
- Or remove the specific rules it makes redundant, so the policy states its real intent.
Check
- Decide whether the broad rule or the specific ones state the real intent.
- Run a policy match query for each of the specific rules before removing anything.
- Permissive allow rule is evaluated before restrictive rules (PAN-SEC-022)
Rule Any-Any-Permit-All matches any source, destination, application and service, and is evaluated before 1 deny rules in the same chain.
A wide open allow rule sits above deny rules in the same chain. Those deny rules only ever see traffic the wide rule did not already permit, which is usually the opposite of the intent.
What this result does not prove
- Deny rules placed low on purpose as a defense in depth backstop will match.
- No hit-count or traffic data was provided, so this finding describes what the configuration permits, not what has been used.
How to fix it and check the fix
Fix
- Move the deny rules above the permissive allow rule.
- Narrow the permissive rule so it cannot swallow the traffic the deny rules target.
Check
- Re-order and confirm with a policy match query that the deny rules now answer first.
- Allow rule without WildFire analysis (PAN-SEC-013)
Rule Any-Any-Permit-All carries file transfer or web applications and none of its profiles is WildFire analysis.
Without a WildFire analysis profile, unknown files crossing this rule are never submitted for detonation, so novel malware is only caught if a signature already exists.
What this result does not prove
- Rules that carry no file transfer applications get a lower impact score.
- A configuration export does not show which subscriptions are licensed or active.
How to fix it and check the fix
Fix
- Attach a WildFire analysis profile that forwards all supported file types.
- Confirm the WildFire license is active and the appliance can reach the cloud.
Check
- Submit a benign test file and confirm it appears in the WildFire submissions log.
- Rule has no description and no tag (PAN-SEC-005)
Rule Any-Any-Permit-All is enabled and has neither a description nor a tag.
A rule with no description and no tag has no recorded owner or business reason, so nobody can safely decide later whether it can be removed.
What this result does not prove
- Default and cleanup rules do not need a description; they are excluded.
How to fix it and check the fix
Fix
- Add a description naming the business service and the requester.
- Add a tag for the owning team or the change ticket.
Check
- Confirm the named owner recognizes the rule.