Skip to main content

AWSIdentifySGPublicExposure

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

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

Automation to determine which interface on an EC2 instance has a given public IP and identify associated security groups.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.10.0

Dependencies#


This script uses the following commands and scripts.

  • AWS
  • aws-ec2-instances-describe

Inputs#


Argument NameDescription
account_idThe AWS Account ID.
instance_idEC2 Instance ID.
public_ipPublic IP address whose network interface to identify.
regionRegion where EC2 instance resides.
integration_instanceThe AWS Integration Instance to use.

Outputs#


PathDescriptionType
AWSPublicExposure.SGAssociations.EC2InstanceIDID of the EC2 instance with public exposure.String
AWSPublicExposure.SGAssociations.NetworkInterfaceIDID of the Elastic Network Interface with public exposure.String
AWSPublicExposure.SGAssociations.SecurityGroupsSecurity Group IDs associated with this interface.Unknown
AWSPublicExposure.SGAssociations.PublicIPPublic IP address exposed.String
AWSPublicExposure.SGAssociations.IntegrationInstanceThe AWS Integration Instance used for identification.String