MatchIPinCIDRIndicators Deprecated

Deprecated. No available replacement. > Match provided IP address in all the Indicators of type CIDR with the provided tags (longest match).

python · Cortex Xpanse by Palo Alto Networks (Deprecated)

Details

IDMatchIPinCIDRIndicators
Languagepython
From Version6.0.0
Docker Imagedemisto/python3:3.10.13.83255

README

Match provided IP address in all the Indicators of type CIDR with the provided tags (longest match).

Script Data


Name Description
Script Type python3
Tags  
Cortex XSOAR Version 6.0.0

Inputs


Argument Name Description
ip IP Address to match.
tags Tags to search (comma separated string).

Outputs


Path Description Type
MatchingCIDRIndicator Matching CIDR Indicator Unknown

Script Example

!MatchIPinCIDRIndicators ip="44.224.1.1" tags="AWS,GCP,Azure"

Context Example

{
    "MatchingCIDRIndicator": {
        "CustomFields": {
            "region": "us-west-2",
            "service": "EC2",
            "tags": [
                "AWS",
                "AMAZON",
                "EC2"
            ]
        },
        "expiration": "2020-11-30T22:46:50.594897749Z",
        "expirationStatus": "active",
        "firstSeen": "2020-11-23T22:04:13.912289994Z",
        "id": "70575",
        "lastSeen": "2020-11-23T22:15:06.02640521Z",
        "score": 1,
        "sourceBrands": [
            "AWS Feed"
        ],
        "sourceInstances": [
            "AWS Feed_instance_1"
        ],
        "value": "44.224.0.0/11"
    }
}

Human Readable Output

Results

CustomFields expiration expirationStatus firstSeen id lastSeen score sourceBrands sourceInstances value
region: us-west-2
service: EC2
tags: AWS,
AMAZON,
EC2
2020-11-30T22:46:50.594897749Z active 2020-11-23T22:04:13.912289994Z 70575 2020-11-23T22:15:06.02640521Z 1 AWS Feed AWS Feed_instance_1 44.224.0.0/11
args:
- description: IP Address to match.
  name: ip
  required: true
- description: Tags to search (comma separated string).
  isArray: true
  name: tags
comment: Deprecated. No available replacement. >
  Match provided IP address in all the Indicators of type CIDR with the provided tags (longest match).
deprecated: true
commonfields:
  id: MatchIPinCIDRIndicators
  version: -1
dockerimage: demisto/python3:3.10.13.83255
enabled: true
name: MatchIPinCIDRIndicators
outputs:
- contextPath: MatchingCIDRIndicator
  description: Matching CIDR Indicator.
runas: DBotWeakRole
script: ''
scripttarget: 0
subtype: python3
tags: []
type: python
fromversion: 6.0.0
tests:
- No tests (auto formatted)