Skip to main content

AzureIdentifyNSGExposureRule

This Script is part of the Cloud Security Policy Management Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

This script identifies the first inbound Allow rule in the specified NSG that matches the criteria for network exposure. It returns details about the identified rule as well as a list of available priority numbers to insert new security rules with a higher priority.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.10.0

Inputs#


Argument NameDescription
subscription_idThe Azure Subscription ID where the NSG resides.
resource_group_nameThe Azure Resource Group Name where the NSG resides.
network_security_group_nameThe Azure Network Security Group (NSG) Name to analyze for exposure rules.
private_ip_addressesThe destination private IP address(es) of the Virtual Machine interface.
portTCP/UDP port to be restricted.
protocolProtocol of the port to be restricted.
priority_countThe number of available priority values below the matching rule to return.
integration_instanceThe Azure Integration Instance to use.

Outputs#


PathDescriptionType
AzurePublicExposure.MatchingRuleNameThe name of the matching inbound security rule in the NSG that allows exposure.String
AzurePublicExposure.MatchingRulePriorityThe priority number of the matching inbound security rule.Number
AzurePublicExposure.NextAvailablePriorityValuesThe next available priority values to insert new security rules before the matching rule, given in descending order.Unknown
AzurePublicExposure.IntegrationInstanceThe Azure Integration Instance used for identification.String