Skip to content
Export guide · Cloud posture imports

How to export your Prisma Cloud findings, and what we import from them

In short

Prisma Cloud findings export: the file of open findings Prisma Cloud has already raised, which the review imports as they are, without connecting to Prisma Cloud.

How to export Prisma Cloud findings, step by step, what the review imports from the file, and what it does not read.

The fileJSON: one array of open alert rows (prisma-cloud-alerts.json), one row per alert with its policy, severity, resource and the policy’s fix text.
Highest grade its findings reachOBSERVED
Feeds attack pathsNo

Sources: Prisma Cloud documentation; the vendor table.

How to export it

Who can pull it
A Prisma Cloud user whose role uses the Account Group Read Only permission group, which Palo Alto Networks describes as “Read only permissions to view designated sections of Prisma Cloud. This role does not have permissions to modify any settings.”, and who has Allow user to create API Access Keys switched on (by default the System Admin role alone has API access). The access key is tied to the role you are logged in with, and that role views alerts for its designated accounts, so create the key while logged in with a role that covers every account you want reviewed.
Time
About 10 minutes for one tenant: about 5 to create the access key and find the API address, then a minute or two for the script; each extra 10,000 open alerts adds one more page.
The file
JSON: one array of open alert rows (prisma-cloud-alerts.json), one row per alert with its policy, severity, resource and the policy’s fix text.

No console export: The Prisma Cloud console downloads the filtered list of alert details to a CSV (comma-separated values) file, which this importer does not read, so the export runs through the API with GET requests; the access key in step 1 is created in the console.

From the command line

  1. 1) Prisma Cloud console → Settings → Access Control → Access Keys → Add → Access Key: enter a Name (for example cybertwin-export), tick Key Expiry and set a date a few days ahead (a key with no Key Expiry does not expire), then Create. Copy the Access Key ID and the Secret Key, or download both as a CSV (comma-separated values) file: after you close the window the secret cannot be viewed again. 2) Find your application programming interface (API) address: your console address with “app” changed to “api” (app2.prismacloud.io → api2.prismacloud.io; app.eu.prismacloud.io → api.eu.prismacloud.io). 3) Open a terminal with curl and jq (macOS or Linux; on Windows use WSL), change the top line of the script (PRISMA_API=…) to your API address, without https://, paste it and press Enter. It asks for the key (the secret is typed hidden), logs in with POST /login, asks List Alerts V2 (GET /v2/alert, detailed) for the open alerts in a relative time range of 10 years, follows nextPageToken until the last page (up to 10,000 alerts per page), keeps the fields the review reads and writes prisma-cloud-alerts.json, the file you upload. The request asks for open alerts, so resolved, dismissed and snoozed alerts are left out. 4) After the upload has gone through, delete the access key: the clean-up line of this guide gives the documented call. The script for step 3:

    PRISMA_API=api.prismacloud.io
    printf 'Access Key ID: '; read AK; printf 'Secret Key (hidden): '; stty -echo; read SK; stty echo; echo
    TOKEN=$(jq -n --arg u "$AK" --arg p "$SK" '{username: $u, password: $p}' | curl -s -H 'Content-Type: application/json' -d @- "https://$PRISMA_API/login" | jq -r '.token // empty')
    [ -z "$TOKEN" ] && echo 'Login failed: check the API address and the key (see Common errors).'
    URL="https://$PRISMA_API/v2/alert?timeType=relative&timeAmount=10&timeUnit=year&detailed=true&alert.status=open"
    PAGE="$URL"; : > prisma-rows.json
    while [ -n "$TOKEN" ]; do
      curl -s -H "x-redlock-auth: $TOKEN" "$PAGE" | tee prisma-page.json | jq '[.items[]? | {id, policy_id: .policy.policyId, policy_name: .policy.name, policy_type: .policy.policyType, severity: .policy.severity, status, cloud_type: .resource.cloudType, resource_id: .resource.id, resource_name: .resource.name, resource_type: .resource.resourceType, recommendation: .policy.recommendation}]' >> prisma-rows.json
      NEXT=$(jq -r '.nextPageToken // empty | @uri' prisma-page.json); [ -z "$NEXT" ] && break; PAGE="$URL&pageToken=$NEXT"
    done
    jq -s 'add // []' prisma-rows.json > prisma-cloud-alerts.json && echo "Open alerts written to prisma-cloud-alerts.json: $(jq length prisma-cloud-alerts.json)"
    The vendor's page, checked 2026-10-19

What the file looks like

JSON: one array of open alert rows (prisma-cloud-alerts.json), one row per alert with its policy, severity, resource and the policy’s fix text.. It varies with the number of open alerts and the length of each policy’s fix text; Palo Alto Networks documents no typical size. The upload limit is 25 MB.

A sample of the file, on a made-up system: cspm-prisma-cloud.json.

Afterwards

Delete the access key. Prisma Cloud lists Delete among the access key actions (Settings → Access Control → Access Keys) and documents the call DELETE /access_keys/<Access Key ID>: paste the top three lines of the script again to log in, then run curl -s -X DELETE -H "x-redlock-auth: $TOKEN" "https://$PRISMA_API/access_keys/$AK" . Then run unset AK SK TOKEN and delete prisma-page.json and prisma-rows.json.

If the export goes wrong

What you seeThe fix
The script prints “Login failed”, or “Open alerts written to prisma-cloud-alerts.json: 0”.Check the top line: it must be your API address (your console address with “app” changed to “api”, no https://). Then check the key under Settings → Access Control → Access Keys: its status must be Active, not Expired; if the secret was lost, delete the key, add a new one and run the script again.
“jq: command not found” or “curl: command not found”.Install the missing tool with the package manager of your system and run the script again. For jq, its download page (jqlang.org/download) gives brew install jq for macOS with Homebrew and sudo apt-get install jq for Debian and Ubuntu.
The upload says “The export did not parse as CSPM findings.” or “That file is not valid JSON.”Upload prisma-cloud-alerts.json, the last file the script writes, not prisma-page.json, prisma-rows.json or a CSV downloaded from the Alerts page.

What we import from it

What is imported
The open findings Prisma Cloud already raised
The file
JSON: one array of open alert rows (prisma-cloud-alerts.json), one row per alert with its policy, severity, resource and the policy’s fix text.

The review imports each finding Prisma Cloud raised, with its resource and severity, and runs no check of its own on this file. So there is no Checks run figure for it: each finding is Prisma Cloud's, graded as read from its export.

The areas checked

  • Open alerts: each policy’s name, ID and severity, the affected resource (its cloud, ID, name and type) and the policy’s fix text

The grade its findings reach

Observed Findings from this file are OBSERVED: imported from Prisma Cloud’s own export, each with the resource it names.

Its findings stay in the review and its reports. Prisma Cloud does not feed attack paths.

Attack paths, the one change and dollar figures are MODELED. How each grade is worked out is on the method page.

What we do not read from this export

  • Resolved, dismissed and snoozed alerts
  • Compliance standards mapped to each policy, and the earliest time each alert was seen: not in the file the script writes
  • The policy type (config, network, IAM and so on)
  • Asset inventory and network exposure

A finding never comes from what the file does not hold: live traffic, running hosts and logs are not in a configuration export.

Questions

Who can export the Prisma Cloud findings?

A Prisma Cloud user whose role uses the Account Group Read Only permission group, which Palo Alto Networks describes as “Read only permissions to view designated sections of Prisma Cloud. This role does not have permissions to modify any settings.”, and who has Allow user to create API Access Keys switched on (by default the System Admin role alone has API access). The access key is tied to the role you are logged in with, and that role views alerts for its designated accounts, so create the key while logged in with a role that covers every account you want reviewed.

Does the export change anything?

The login is a POST that returns a token valid for 10 minutes, and the alert calls are GET requests made with a role that cannot modify settings. The steps create one access key for your user; Prisma Cloud shows access key activity under Settings → Audit Logs. The script writes three files in the folder you run it in.

Does the file hold passwords or keys?

No key or token is written to the file. Each row holds the alert ID, the policy name and its fix text, and the ID, name and type of the cloud resource (in our sample file an AWS ARN). The Access Key ID, the Secret Key and the login token stay in the shell variables AK, SK and TOKEN until you unset them or close the terminal. prisma-page.json holds the last raw page as Prisma Cloud returned it. The file itself is not stored: CyberTwin keeps just the findings read from it (each rule, its severity and the affected resource). Any token the command uses is never written into the file.