ghas-results / pcs-platform-helper-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pcs-platform-helper-scripts

Some helper scripts for Prisma Cloud Platform

license support

Description

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.

Installation

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

Configuration

Create an authorization file in the directory ~/.prismacloud Below is the syntax of the file:

{
    "ca_cert":"",
    "app_stack": "app",
    "identity": "",
    "secret": ""
}

Executing Script

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

License

This project is licensed under the MIT License - see the LICENSE file for details

About

License:ISC License


Languages

Language:Python 100.0%