Traffic to IP address categorized as 'Malware' is not getting blocked despite category configured as block in URL Filtering Profile
Symptom
IP Address is Categorized as 'Malware' in PAN-DB and URL Filtering is Setup to 'block' Malware Category:
A test from firewall CLI also indicates that cloud lookup is fine, however this traffic is still being allowed and URL filtering is not blocking this traffic.
admin@PA-VM> test url 107.161.160.XX 107.161.160.XX not-resolved (Base db) expires in 0 seconds 107.161.160.XX malware (Cloud db)
Environment
- NGFW
- Supported PANOS
- URL Filtering
Cause
Upon closer Inspection, we can see that the APP-ID is 'ping' which means that this is not a web traffic over http/https.
URL Filtering will only be actionable over http and https traffic, so this is the working behavior.
This also means that URL filtering is not the right place to block if the Command and Control channel for a malware is not http/https based.
Note - PING was just used as a test, this will be the case even if the APP-ID is anything like unknown-tcp, unknown-udp, dns etc.
Resolution
We have to leverage EDLs for IP address based blocking: