Palo Alto Networks AIOps

Palo Alto Networks Best Practice Assessment (BPA) analyzes NGFW and Panorama configurations and compares them to the best practices.

Utilities · Palo Alto Networks AIOps

Details

IDPalo Alto Networks AIOps
ProviderPalo Alto Networks
CategoryUtilities
From Version6.9.0
Docker Imagedemisto/python3:3.12.13.10116658
Supported ModulesAgentix Cloud Runtime Security XSIAM EDR Cortex Cloud

README

Palo Alto Networks Best Practice Assessment (BPA) analyzes NGFW and Panorama configurations and compares them to the best practices.
This integration was integrated and tested with version from March 2024 of PaloAltoNetworksAIOps.

Configure Palo Alto Networks AIOps in Cortex

Parameter Required
Pan-OS/Panorama Server URL True
Pan-OS/Panorama API Key True
TSG ID True
Client ID True
Client Secret True
Trust any certificate (not secure) False

Commands

You can execute these commands from the CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.

aiops-bpa-report-generate


Generates a bpa report. Steps -

  • Get information about Pan-OS/Panorama device.
  • Get configuration file of Pan-OS/Panorama. If the user provided an entry_id to a config file this step is skipped.
  • Use the information retrieved above to generate a BPA report.
  • During this process the API also generates a report_id for internal use.

Base Command

aiops-bpa-report-generate

Input

Argument Name Description Required
entry_id - Optional: Use this argument if you prefer to upload a configuration file instead of generating the report from Panorama/PAN-OS.
- Entry_id from Cortex XSOAR War Room after uploading a file - should be a config file in xml format.
- If you used this argument and the process failed or reached a timeout, make sure the config file is in xml format.
Optional
requester_email Requester email. Required
requester_name Requester name. Required
interval_in_seconds Interval for polling mechanism. Default is 30. Optional
timeout Timeout for downloading the file. Default is 600. Optional
export_as_file Whether to export the generated report as a file. Possible values are: true, false. Default is True. Optional
show_in_context Whether to show the report data inside the context. Possible values are: true, false. Default is False. Optional

Context Output

By default, there is no context output for this command.
When using show_in_context = True flag the generated report will be inserted to the context data.

Command example

!aiops-bpa-report-generate requester_email=testl@gmail.com requester_name=test

Human Readable Output

- Initiated

The report with id 7fec3669-c7bc-4113-b8b9-cae6a2aeb066 was sent successfully. Download in progress…

- If generation was successful

Generated a file with the relevant data and insert into context data if requested.

- If generation was unsuccessful

The report with id 7fec3669-c7bc-4113-b8b9-cae6a2aeb066 could not be generated- finished with an error.

- If timed out

Scheduled entry timed out.

This indicates that the configuration file is not in the correct format or that the timeout period is insufficient for generating the report

Configuration parameters

  • url — Pan-OS/Panorama Server URL (required)
  • credentials — (required)
  • tsg_id — TSG ID (required)
  • credentials-aiops — Client ID (required)
  • insecure — Trust any certificate (not secure)

Commands (2)

  • aiops-bpa-report-generate

    Generates a bpa report. Steps: - Get configuration file of Pan-OS/Panorama. If the user provided an entry_id to a config file this step is skipped. - Use the information retrieved above to generate a BPA report. - During this process the API also generates a report_id.

  • aiops-polling-upload-report

    Polling mechanism to upload report.

category: Utilities
provider: Palo Alto Networks
commonfields:
  id: Palo Alto Networks AIOps
  version: -1
configuration:
- section: Connect
  display: Pan-OS/Panorama Server URL
  name: url
  type: 0
  required: true
- section: Connect
  display: ""
  displaypassword: Pan-OS/Panorama API Key
  name: credentials
  type: 9
  required: true
  hiddenusername: true
- section: Connect
  display: TSG ID
  name: tsg_id
  type: 0
  required: true
  additionalinfo: |-
    The Tennant Service Group must contain an active “AIOps for NGFW (Free)” application.
    For more information about the service activation, visit the following link: https://docs.paloaltonetworks.com/ngfw/aiops/about/activate-aiops-for-ngfw#activate-aiops-for-ngfw_section_xjs_p55_fyb
- section: Connect
  name: credentials-aiops
  display: Client ID
  required: true
  defaultvalue:
  type: 9
  additionalinfo: Client ID and Client Secret for AIOps instance.
  displaypassword: Client Secret
- display: Trust any certificate (not secure)
  name: insecure
  type: 8
  required: false
description: Palo Alto Networks Best Practice Assessment (BPA) analyzes NGFW and Panorama configurations and compares them to the best practices.
display: Palo Alto Networks AIOps
name: Palo Alto Networks AIOps
script:
  commands:
  - name: aiops-bpa-report-generate
    arguments:
    - name: entry_id
      description: |-
        - Optional: Use this argument if you prefer to upload a configuration file instead of generating the report from Panorama/PAN-OS.
        - Entry_id from Cortex XSOAR War Room after uploading a file - should be a config file in xml format.
        - Ensure that the XML file begins with the '<?xml version="XX"?>' tag and all tags are valid.
        - If you used this argument and the process failed or reached a timeout, make sure the config file is in xml format and with correct tags.
    - name: requester_email
      required: true
      description: Requester email. Make sure the email is in a valid email format (includes a @).
    - name: requester_name
      required: true
      description: Requester name.
    - name: interval_in_seconds
      description: Interval for polling mechanism.
      defaultValue: "30"
    - name: timeout
      default: true
      description: Timeout (in seconds) for downloading the file.
      defaultValue: "600"
    - name: export_as_file
      auto: PREDEFINED
      description: Whether to export the generated report as a file.
      defaultValue: true
      predefined:
      - 'true'
      - 'false'
    - name: show_in_context
      auto: PREDEFINED
      description: Whether to show the report data inside the context.
      defaultValue: false
      predefined:
      - 'true'
      - 'false'
    description: |-
      Generates a bpa report.
      Steps:
      - Get configuration file of Pan-OS/Panorama. If the user provided an entry_id to a config file this step is skipped.
      - Use the information retrieved above to generate a BPA report.
      - During this process the API also generates a report_id.
    polling: true
    outputs:
    - contextPath: AiOps.BPAReport
      description: The generated report data, report_id and report_status.
      type: Array
  - name: aiops-polling-upload-report
    arguments:
    - name: report_id
      description: Report_id recieved from generate_bpa_report_request.
      required: true
    - name: hide_polling_output
      description: Whether to hide polling output from the War Room.
      required: true
      defaultValue: true
    - name: export_as_file
      description: Whether to export the generated report as a file.
      defaultValue: true
    - name: show_in_context
      description: Whether to show the report data inside the context.
      defaultValue: false
    - name: first_round
      description: Whether this polling round is the first round.
      defaultValue: false
    description: Polling mechanism to upload report.
    polling: true
    hidden: true
  runonce: false
  script: '-'
  type: python
  subtype: python3
  dockerimage: demisto/python3:3.12.13.10116658
fromversion: 6.9.0
tests:
- PaloAltoNetworksAIOps-Test