How to retrieve or export threat signature information from firewall with CLI, XML API and GUI?
Objective
This article describes the steps to retrieve or export threat signatures information from the firewall with CLI, XML API and GUI.
Environment
- PAN-OS 8.0 and later.
- This article assumes that an API key is already generated. Refer to https://docs.paloaltonetworks.com/pan-os/11-0/pan-os-panorama-api/get-started-with-the-pan-os-xml-api/get-your-api-key if you have not generated an API key.
Procedure
Firewall CLI:
- The following command will provide output for both vulnerability protection and anti-spyware signatures available on the firewall.> show predefined xpath /predefined/threatsthreats { phone-home { 18250 { threatname "Microsoft Phishing Site Detection"; category phishing-kit; severity critical; engine-version; default-action reset-both; } 18575 { threatname "Bartblaze PHP Webshell Traffic Detection"; category webshell; severity medium; engine-version; default-action alert; }
....truncated...
- User can also specify vulnerability protection or anti-spyware signatures output only with the following commands> show predefined xpath /predefined/threats/vulnerability> show predefined xpath /predefined/threats/phone-home
XML API:
-To display both vulnerability protection and anti-spyware signatures available on the firewall.
https[:]//FIREWALL-IPADDRESS/api/?key=APIKEY&type=op&cmd=<show><predefined><xpath>/predefined/threats</xpath></predefined></show>
The output will look similar to the screenshot below:
- User can also specify vulnerability protection or anti-spyware signatures output only with the following XML API commands
https[:]//FIREWALL-IPADDRESS/api/?key=APIKEY&type=op&cmd=<show><predefined><xpath>/predefined/threats/vulnerability</xpath></predefined></show>
https[:]//FIREWALL-IPADDRESS/api/?key=APIKEY&type=op&cmd=<show><predefined><xpath>/predefined/phone-home</xpath></predefined></show>
Firewall GUI:
Vulnerability Protection Profile - Navigate to the vulnerability protection profile, click on the Exceptions tab, check "Show all signatures" and click PDF/CSV to export the file.
Anti-Spyware Profile - Navigate to the Anti-Spyware profile, click on the Signature Exceptions tab, check the "Show all signatures" and click PDF/CSV to export the file.