PanwIndicatorCreateQueries

The script accepts indicators as input and creates an indicator query in the relevant Palo Alto Networks products.

python · Comprehensive Investigation by Palo Alto Networks

Details

IDPanwIndicatorCreateQueries
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10116658
TagsPanw

README

The script accepts indicators as input and creates an indicator query in the relevant Palo Alto Networks products.

Script Data


Name Description
Script Type python3
Tags Panw
Cortex XSOAR Version 5.0.0

Inputs


Argument Name Description
ip A commma-separated list of IP addresses for which to create the query.
hash A commma-separated list of file hashes for which to create the query.
domain A commma-separated list of domains for which to create the query.

Outputs


Path Description Type
Query.IP.CortexTrapsIP The query for the specified IP address indicators. This query is relevant for the Cortex Traps table “tms.threat”, which is the agent IP. String
Query.IP.CortexAnalyticsIP The query for the specified IP address indicators. This query is relevant for the Cortex Analytics table “tms.analytics”, which is the agent IP. String
Query.IP.CortexTrafficIP The query for the specified IP address indicators. This query is relevant for the Cortex Traffic table “panw.traffic”, and includes both source and destination. String
Query.IP.CortexThreatIP The query for the specified IP address indicators. This query is relevant for the Cortex Threat table “panw.threat”, and includes both source and destination. String
Query.IP.AutofocusSessionsIP The query (in JSON format) for the specified IP address indicators. This query is relevant for AutoFocus, includes both source and destination. String
Query.IP.PanoramaIP The query (in Panorama syntax) for the specified IP address indicators. This query is relevant for Panorama, and is valid for all log types. String
Query.Hash.CortexTrapsHash The query for the specified file hash indicators. This query is relevant for the Cortex Traps table “tms.threat”, which contains only SHA256 hashes. String
Query.Hash.CortexAnalyticsHash The query for the specified file hash indicators. This query is relevant for the Cortex Analytics table “tms.analytics”, which contains only SHA256 hashes. String
Query.Hash.CortexThreatHash The query for the specified file hash indicators. This query is relevant for the Cortex Threat table “panw.threat”, which contains only SHA256 hashes. String
Query.Hash.AutofocusSessionsHash The query (in JSON format) for the specified file hash indicators. This query is relevant for AutoFocus, and supports the following file hashes: MD5, SHA1, and SHA256. String
Query.Hash.PanoramaHash The query (in Panorama syntax) for the specified file hash indicators. This query is relevant for the WildFire log in Panorama, and only supports SHA256 hashes. String
Query.Domain.CortexThreatDomain The query for the domain indicators. This query is relevant for the Cortex Threat table “panw.threat”. String
Query.Domain.AutofocusSessionsDomain The query (in JSON format) for the domain indicators. This query is relevant for AutoFocus. String
Query.Domain.PanoramaDomain The query (in Panorama syntax) for the domain indicators. This query is relevant for Panorama. String
args:
- description: A commma-separated list of IP addresses for which to create the query.
  isArray: true
  name: ip
- description: A commma-separated list of file hashes for which to create the query.
  isArray: true
  name: hash
- description: A commma-separated list of domains for which to create the query.
  isArray: true
  name: domain
comment: The script accepts indicators as input and creates an indicator query in the relevant Palo Alto Networks products.
commonfields:
  id: PanwIndicatorCreateQueries
  version: -1
name: PanwIndicatorCreateQueries
outputs:
- contextPath: Query.IP.CortexTrapsIP
  description: The query for the specified IP address indicators. This query is relevant for the Cortex Traps table "tms.threat", which is the agent IP.
  type: String
- contextPath: Query.IP.CortexAnalyticsIP
  description: The query for the specified IP address indicators. This query is relevant for the Cortex Analytics table "tms.analytics", which is the agent IP.
  type: String
- contextPath: Query.IP.CortexTrafficIP
  description: The query for the specified IP address indicators. This query is relevant for the Cortex Traffic table "panw.traffic", and includes both source and destination.
  type: String
- contextPath: Query.IP.CortexThreatIP
  description: The query for the specified IP address indicators. This query is relevant for the Cortex Threat table "panw.threat", and includes both source and destination.
  type: String
- contextPath: Query.IP.AutofocusSessionsIP
  description: The query (in JSON format) for the specified IP address indicators. This query is relevant for AutoFocus, includes both source and destination.
  type: String
- contextPath: Query.IP.PanoramaIP
  description: The query (in Panorama syntax) for the specified IP address indicators. This query is relevant for Panorama, and is valid for all log types.
  type: String
- contextPath: Query.Hash.CortexTrapsHash
  description: The query for the specified file hash indicators. This query is relevant for the Cortex Traps table "tms.threat", which contains only SHA256 hashes.
  type: String
- contextPath: Query.Hash.CortexAnalyticsHash
  description: The query for the specified file hash indicators. This query is relevant for the Cortex Analytics table "tms.analytics", which contains only SHA256 hashes.
  type: String
- contextPath: Query.Hash.CortexThreatHash
  description: The query for the specified file hash indicators. This query is relevant for the Cortex Threat table "panw.threat", which contains only SHA256 hashes.
  type: String
- contextPath: Query.Hash.AutofocusSessionsHash
  description: 'The query (in JSON format) for the specified file hash indicators. This query is relevant for AutoFocus, and supports the following file hashes: MD5, SHA1, and SHA256.'
  type: String
- contextPath: Query.Hash.PanoramaHash
  description: The query (in Panorama syntax) for the specified file hash indicators. This query is relevant for the WildFire log in Panorama, and only supports SHA256 hashes.
  type: String
- contextPath: Query.Domain.CortexThreatDomain
  description: The query for the domain indicators. This query is relevant for the Cortex Threat table "panw.threat".
  type: String
- contextPath: Query.Domain.AutofocusSessionsDomain
  description: The query (in JSON format) for the domain indicators. This query is relevant for AutoFocus.
  type: String
- contextPath: Query.Domain.PanoramaDomain
  description: The query (in Panorama syntax) for the domain indicators. This query is relevant for Panorama.
  type: String
script: '-'
tags:
- Panw
timeout: '0'
type: python
tests:
- No test
subtype: python3
dockerimage: demisto/python3:3.12.13.10116658
fromversion: 5.0.0