Palo Alto Networks

Overview

Palo Alto Networks integrations: SCM Compliance Center, Prisma Cloud CSPM, and Prisma Cloud Compute.

Commands

CommandDescription
regscale panw authenticateAuthenticate to Prisma Cloud Compute and cache session token. This command authenticates to Prisma Cloud and caches the bearer token locally for the duration specified by prismaTokenCacheMinutes in i
regscale panw sync_complianceSync Palo Alto Compliance Center results into a RegScale Security Plan. Fetches configuration-compliance check results (per firewall, per Best Practice Check) from Strata Cloud Manager, maps each che
regscale panw sync_cspmSync Prisma Cloud CSPM assets and vulnerabilities into a RegScale Security Plan. Pulls the cloud asset inventory and vulnerable-asset CVE findings from the Prisma Cloud CSPM API and creates/updates a
regscale panw sync_hostsSync host assets and vulnerabilities from Prisma Cloud. This command: 1. Authenticates to Prisma Cloud (uses cached token if available) 2. Fetches host scan results from Prisma API 3. Creates/updates
regscale panw sync_imagesSync container image assets and vulnerabilities from Prisma Cloud. This command: 1. Authenticates to Prisma Cloud (uses cached token if available) 2. Fetches container image scan results from Prisma
regscale panw sync_sbomSync SBOM (Software Bill of Materials) data from Prisma Cloud. Two modes: 1. Bulk download (default): Downloads all SBOMs at once using bulk endpoints 2. Individual: Downloads SBOM for specific resou

regscale panw authenticate

Authenticate to Prisma Cloud Compute and cache session token.

This command authenticates to Prisma Cloud and caches the bearer token locally for the duration specified by prismaTokenCacheMinutes in init.yaml (default 30 minutes, aligned with the Prisma/Twistlock session timeout). The token will be used automatically by other commands and is refreshed transparently on expiration.

Examples: # Authenticate using init.yaml settings regscale prisma authenticate

Authenticate with explicit credentials regscale prisma authenticate --console-url https://console.example.com:8083 \ --username admin --password mypassword

Force refresh of cached token regscale prisma authenticate --force-refresh

regscale panw authenticate [OPTIONS]
FlagTypeRequiredDefaultDescription
--console-urltextNoPrisma Cloud Console URL (e.g., https://console.example.com:8083). Defaults to prismaConsoleUrl from init.yaml.
--usernametextNoPrisma Cloud username. Defaults to prismaUsername from init.yaml.
--passwordtextNoPrisma Cloud password. Defaults to prismaPassword from init.yaml. If not provided, will prompt.
--force-refreshbooleanNofalseForce re-authentication even if cached token exists.

regscale panw sync_compliance

Sync Palo Alto Compliance Center results into a RegScale Security Plan.

Fetches configuration-compliance check results (per firewall, per Best Practice Check) from Strata Cloud Manager, maps each check to its framework control, and creates control assessments, control-test results, evidence, and issues in RegScale.

Examples: regscale panw sync_compliance --regscale_ssp_id 123 regscale panw sync_compliance --regscale_ssp_id 123 --product ngfw --cf-id PCF-....

regscale panw sync_compliance [OPTIONS]
FlagTypeRequiredDefaultDescription
--regscale_ssp_id, -id, --id, --regscale_idintegerYesThe ID number from RegScale of the System Security Plan
--cf_id, --cf-idtextNoSpecific compliance framework id (defaults to the tenant benchmark).
--productchoiceNoProduct scope to assess; falls back to panwProduct in init.yaml, then 'all'. Choices: ngfw, sase, all
--frameworktextNoNIST800-53R5Declared framework token used for control matching (default: NIST800-53R5).
--base_url, --base-urltextNoCompliance Center API base URL (overrides init.yaml).
--token_url, --token-urltextNoSCM OAuth2 token host (overrides init.yaml).
--client_id, --client-idtextNoSCM service-account Client ID (overrides init.yaml).
--client_secret, --client-secrettextNoSCM service-account Client Secret (overrides init.yaml); prefer PANW_CLIENT_SECRET or init.yaml over this flag — argv values are visible in shell history and ps.
--tsg_id, --tsg-idtextNoTenant Service Group id (overrides init.yaml); prefer PANW_TSG_ID or init.yaml over this flag.
--create_issues, --no_create_issuesbooleanNotrueCreate issues for failed checks (default: True).
--update_control_status, --no_update_control_statusbooleanNotrueUpdate control implementation status from results (default: True).
--create_poams, --create-poams, -cpbooleanNofalseMark created issues as POA&Ms.
--collect_evidence, --collect-evidencebooleanNofalseStore the raw benchmark-monitoring CSV as an Evidence record on the SSP.
--create_control_tests, --no_create_control_testsbooleanNotrueCreate ControlTest / ControlTestResult records per check (default: True).
--dry-run, -drbooleanNofalseDiscover item counts without syncing. Returns JSON summary for Orchestration Hub.
--offsetintegerNoSkip this many items from the start (for parallel job splitting).
--limitintegerNoProcess at most this many items (for parallel job splitting).

regscale panw sync_cspm

Sync Prisma Cloud CSPM assets and vulnerabilities into a RegScale Security Plan.

Pulls the cloud asset inventory and vulnerable-asset CVE findings from the Prisma Cloud CSPM API and creates/updates assets, vulnerabilities, and issues in RegScale.

Examples: regscale panw sync_cspm --regscale_ssp_id 123

regscale panw sync_cspm [OPTIONS]
FlagTypeRequiredDefaultDescription
--regscale_ssp_id, -id, --id, --regscale_idintegerYesThe ID number from RegScale of the System Security Plan
--base_url, --base-urltextNoPrisma Cloud CSPM API base URL (overrides init.yaml).
--access_key, --access-keytextNoPrisma Cloud access-key id (overrides init.yaml).
--secret_key, --secret-keytextNoPrisma Cloud secret key (overrides init.yaml); prefer PANW_CSPM_SECRET_KEY or init.yaml over this flag — argv values are visible in shell history and ps.
--dry-run, -drbooleanNofalseDiscover item counts without syncing. Returns JSON summary for Orchestration Hub.
--offsetintegerNoSkip this many items from the start (for parallel job splitting).
--limitintegerNoProcess at most this many items (for parallel job splitting).

regscale panw sync_hosts

Sync host assets and vulnerabilities from Prisma Cloud.

This command: 1. Authenticates to Prisma Cloud (uses cached token if available) 2. Fetches host scan results from Prisma API 3. Creates/updates assets in RegScale 4. Creates/updates vulnerabilities and findings in RegScale 5. Optionally creates software inventory from SBOM data

Examples: # Basic sync with defaults from init.yaml regscale prisma sync_hosts --regscale_ssp_id 123

Sync with filters regscale prisma sync_hosts --regscale_ssp_id 123 \ --filters '{"collections": ["production"]}'

Sync with software inventory regscale prisma sync_hosts --regscale_ssp_id 123 --enable-software-inventory

Dry run to preview sync regscale prisma sync_hosts --regscale_ssp_id 123 --dry-run

Paginated sync regscale prisma sync_hosts --regscale_ssp_id 123 --offset 100 --limit 50

regscale panw sync_hosts [OPTIONS]
FlagTypeRequiredDefaultDescription
--regscale_ssp_id, -id, --id, --regscale_idintegerYesThe ID number from RegScale of the System Security Plan
--filterstextNoJSON filter string for Prisma API query (e.g., '{"collections": ["prod"]}')
--enable-software-inventorybooleanNofalseCreate software inventory records from SBOM data for each host.
--console-urltextNoOverride Prisma Console URL from init.yaml.
--usernametextNoOverride Prisma username from init.yaml.
--passwordtextNoOverride Prisma password from init.yaml.
--use-csvbooleanNofalseUse CSV download endpoint for bulk data retrieval (faster for large datasets).
--skip-assetsbooleanNofalseDo not create or update assets; sync vulnerabilities and issues only, matching preloaded assets.
--dry-run, -drbooleanNofalseDiscover item counts without syncing. Returns JSON summary for Orchestration Hub.
--offsetintegerNoSkip this many items from the start (for parallel job splitting).
--limitintegerNoProcess at most this many items (for parallel job splitting).

regscale panw sync_images

Sync container image assets and vulnerabilities from Prisma Cloud.

This command: 1. Authenticates to Prisma Cloud (uses cached token if available) 2. Fetches container image scan results from Prisma API 3. Creates/updates container image assets in RegScale 4. Creates/updates vulnerabilities and findings in RegScale 5. Optionally creates software inventory from SBOM data

Examples: # Basic sync with defaults from init.yaml regscale prisma sync_images --regscale_ssp_id 123

Sync with filters regscale prisma sync_images --regscale_ssp_id 123 \ --filters '{"collections": ["production"]}'

Sync with software inventory regscale prisma sync_images --regscale_ssp_id 123 --enable-software-inventory

Dry run to preview sync regscale prisma sync_images --regscale_ssp_id 123 --dry-run

Paginated sync regscale prisma sync_images --regscale_ssp_id 123 --offset 50 --limit 25

regscale panw sync_images [OPTIONS]
FlagTypeRequiredDefaultDescription
--regscale_ssp_id, -id, --id, --regscale_idintegerYesThe ID number from RegScale of the System Security Plan
--filterstextNoJSON filter string for Prisma API query (e.g., '{"collections": ["prod"]}')
--enable-software-inventorybooleanNofalseCreate software inventory records from SBOM data for each image.
--console-urltextNoOverride Prisma Console URL from init.yaml.
--usernametextNoOverride Prisma username from init.yaml.
--passwordtextNoOverride Prisma password from init.yaml.
--use-csvbooleanNofalseUse CSV download endpoint for bulk data retrieval (faster for large datasets).
--skip-assetsbooleanNofalseDo not create or update assets; sync vulnerabilities and issues only, matching preloaded assets.
--dry-run, -drbooleanNofalseDiscover item counts without syncing. Returns JSON summary for Orchestration Hub.
--offsetintegerNoSkip this many items from the start (for parallel job splitting).
--limitintegerNoProcess at most this many items (for parallel job splitting).

regscale panw sync_sbom

Sync SBOM (Software Bill of Materials) data from Prisma Cloud.

Two modes: 1. Bulk download (default): Downloads all SBOMs at once using bulk endpoints 2. Individual: Downloads SBOM for specific resource (requires --resource-id and --no-bulk-download)

Based on Platform One (P1) customer feedback, bulk download mode is recommended as it resolves HTTP 404 errors encountered with individual SBOM endpoints.

Examples: # Bulk download all host SBOMs (recommended) regscale prisma sync_sbom --regscale_ssp_id 123 --resource-type host

Bulk download all image SBOMs with software inventory creation regscale prisma sync_sbom --regscale_ssp_id 123 --resource-type image \ --enable-software-inventory

Download all SBOMs (hosts + images) regscale prisma sync_sbom --regscale_ssp_id 123 --resource-type all

Individual SBOM download (legacy mode, may return 404) regscale prisma sync_sbom --regscale_ssp_id 123 --resource-type host \ --resource-id "web-server-01.example.com" --no-bulk-download --asset-id 456

regscale panw sync_sbom [OPTIONS]
FlagTypeRequiredDefaultDescription
--regscale_ssp_id, -id, --id, --regscale_idintegerYesThe ID number from RegScale of the System Security Plan
--resource-typechoiceNoallResource type to sync SBOMs for: host, image, or all (default: all). Choices: host, image, all
--resource-idtextNoSpecific resource identifier (optional for bulk download). Required when --no-bulk-download is used.
--bulk-downloadbooleanNotrueUse bulk download endpoints for all SBOMs (recommended, default: True). Based on P1 customer feedback, this resolves HTTP 404 errors.
--asset-idintegerNoRegScale Asset ID to associate software inventory with. If not provided, will search for asset by identifier.
--enable-software-inventorybooleanNofalseCreate software inventory records from SBOM data.
--attach-evidencebooleanNofalseAttach SBOM JSON as evidence to the asset (requires --enable-software-inventory).
--create-missing-assetsbooleanNofalseCreate RegScale assets for SBOMs that have no matching asset in the Security Plan. Also creates software inventory on new assets (no separate --enable-software-inventory needed).
--console-urltextNoOverride Prisma Console URL from init.yaml.
--usernametextNoOverride Prisma username from init.yaml.
--passwordtextNoOverride Prisma password from init.yaml.
--dry-run, -drbooleanNofalseDiscover item counts without syncing. Returns JSON summary for Orchestration Hub.
--offsetintegerNoSkip this many items from the start (for parallel job splitting).
--limitintegerNoProcess at most this many items (for parallel job splitting).

Did this page help you?