Some helper scripts for Prisma Cloud Platform
Script to help find polices that are not attached to alert rules. If there is an alert rules that includes all policies then this script would not be effective.
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
Create an authorization file in the directory ~/.prismacloud
Below is the syntax of the file:
{
"ca_cert":"",
"app_stack": "app",
"identity": "",
"secret": ""
}
Must use the -c
option the first time to pull down all the policy data. This will store the policy data locally in a file called policy.json
policy.json
is the default, but can be defined with the -f
flag
python policy-missing-alert-rule.py -c
This project is licensed under the MIT License - see the LICENSE file for details