VerifyValidIP
Common Scripts Pack.#
This Script is part of theSupported versions
Supported Cortex XSOAR versions: 6.10.0 and later.
#
VerifyValidIP#
SummaryVerifies if the given input contains valid IP addresses (IPv4 or IPv6).
#
Script DataName | Description |
---|---|
Script Type | python3 |
Tags | Utility, IP, Validation |
Cortex XSOAR Version | 6.0.0+ |
#
InputsArgument Name | Description | Required |
---|---|---|
input | IP address or list of IP addresses to validate | Required |
#
OutputsPath | Description | Type |
---|---|---|
VerifyValidIP.Results | List of boolean values indicating if each input IP is valid | List |
#
Script Example#
Script ResultsThe script returns a list of boolean values:
True
for valid IP addressesFalse
for invalid IP addresses
#
Example Output#
Notes- Supports both IPv4 and IPv6 address validation
- Uses Python's built-in
ipaddress
module for accurate validation - Input can be a single IP address or a comma-separated list
- Invalid entries will return
False
in the corresponding position