VerifyValidIP
This Script is part of the Common Scripts Pack.#
Supported versions
Supported Cortex XSOAR versions: 6.10.0 and later.
VerifyValidIP#
Summary#
Verifies if the given input contains valid IP addresses (IPv4 or IPv6).
Script Data#
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | Utility, IP, Validation |
| Cortex XSOAR Version | 6.0.0+ |
Inputs#
| Argument Name | Description | Required |
|---|---|---|
| input | IP address or list of IP addresses to validate | Required |
Outputs#
| Path | Description | Type |
|---|---|---|
| VerifyValidIP.Results | List of boolean values indicating if each input IP is valid | List |
Script Example#
Script Results#
The script returns a list of boolean values:
Truefor valid IP addressesFalsefor invalid IP addresses
Example Output#
Notes#
- Supports both IPv4 and IPv6 address validation
- Uses Python's built-in
ipaddressmodule for accurate validation - Input can be a single IP address or a comma-separated list
- Invalid entries will return
Falsein the corresponding position