
Check to see if your Palo Alto firewall has been compromised by running script againt support bundle.
This script is designed to check for signs of compromise in Palo systems, specifically for the vulnerability identified as CVE-2024-3400. It searches through tech support package gz or .tgz archive files for specific log entries that may indicate a security breach.
.tar.gz file containing Palo logs..tar.gz tech supprot file containing the relevant Palo logs.filepath variable in the script to point to your .tar.gz file.search_terms list with the terms that are indicative of the CVE-2024-3400 vulnerability..tar.gz file and search through the specified log files.# Replace this with your actual file path
filepath = r'path to techsupport.tgz'
return statement after printing matches.If you have suggestions for improving this script or have found a bug, please open an issue or a pull request with your changes.