Skip to content

abuslang/AttackPathCVEList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Prisma Cloud Attack Path CVE Reporter

This script analyzes resources with active Attack Path Policies in Prisma Cloud and generates a detailed report of associated CVEs.

Prerequisites

  • Python 3.x
  • requests package installed
  • Prisma Cloud access (API key and secret)

Quick Start (Linux)

  1. Clone the repository:
git clone https://github.com/abuslang/AttackPathCVEList.git
cd AttackPathCVEList
  1. Update the config.py file with your credentials:
url = "api2.prismacloud.io"  # Your Prisma Cloud API URL
api_key = "your_access_key_here"
api_secret = "your_secret_key_here"
  1. Make the script executable and run:
chmod +x AttackPathCVE.py
./AttackPathCVE.py         # Default 12 months of data
./AttackPathCVE.py 6       # Or specify number of months (e.g., 6)

Output

The script generates:

  1. CSV File (prisma_attack_paths_TIMESTAMP.csv) containing:

    • Resource details (Name, ID, Type, Region)
    • Attack Path ID
    • CVE information (ID, Severity, CVSS Score)
  2. Console Summary showing:

    • Resources with CVEs and their details
    • List of resources without CVEs
    • Total count statistics

Logic

Fetches attack path alerts using initial parameters

  • For each alert:

  • Gets detailed alert information

  • Extracts CVE data from alert metadata

  • Collects resource information if CVEs are present

  • Maintains lists of resources with/without CVEs

Common Issues

  1. Authentication Errors: Verify your API credentials in config.py
  2. Permission Issues: Ensure your API key has necessary permissions
  3. No Data: Check the time range and policy filters

Note

  • this is an unofficial prisma cloud script. we are only reading info from the console, nothing will be updated
  • contact: aquadri@paloaltonetworks.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages