IP Whitelist And Exclusion - RiskIQ Digital Footprint

Adds the IP Address(es) to allow list after checking if it should be added to allow list according to the user inputs provided. This playbook also adds these IP Address indicators to the exclusion list and tags it with the "RiskIQ Whitelisted IP Address" tag.

RiskIQ Digital Footprint · 39 tasks · 8 inputs · 0 outputs

Inputs

  • ip_address — The list of IP Address(es) to be added to allow list and excluded.
  • InternalRange — A list of IP ranges to check if the IP Address is in that range for adding to allow list. The list should be provided in CIDR notation, separated by commas. An example of a list of ranges would be: "172.16.0.0/12,10.0.0.0/8,192.168.0.0/16" (without quotes). If a list is not provided, will use the default list provided in the IsIPInRanges script (the known IPv4 private address ranges).
  • auto_whitelist_ip_address — Automatically add the IP Address(es) to allow list. You can set this as 'Yes' or 'No' manually here or you can set it into a custom incident field 'RiskIQ Auto Whitelist IP Address'.
  • auto_exclude_whitelisted_ip_address — Automatically add the IP Address(es) on allow list to the exclusion list. You can set this as 'Yes' or 'No' manually here or you can set it into a custom incident field 'RiskIQ Auto Exclude Whitelisted IP Address'.
  • support_contact — The contact email address of the support team from which manual inputs should be fetched.
  • aws_security_group_name — Name of the AWS Security Group to update the IPs on allow list.
  • gcp_firewall_name — Name of the GCP Firewall where the playbook should set the IPs on allow list.
  • okta_zone_id — ID of the Okta Zone to update the IPs on allow list. Use !okta-list-zones to obtain the available zones.

Commands used

excludeIndicators send-mail setIndicators

Flowchart

yes yes yes yes yes no yes yes yes no yes yes yes yes yes yes yes yes Start Start Done Done Is there an IP Address? Is there an IP Address? Is Google Cloud Compute enabled and GCP Firewall Name is set? Is Google Cloud Compute e... Is AWS - EC2 enabled and AWS Security Group Name set? Is AWS - EC2 enabled and ... Is Okta v2 enabled and Okta Zone ID set? Is Okta v2 enabled and Ok... IP Whitelist - GCP Firewall - IP Whitelist - GCP Firewall IP Whitelist - GCP Firewall IP Whitelist - GCP Firewall IP Whitelist - AWS Security Group - IP Whitelist - AWS Security Group IP Whitelist - AWS Securi... IP Whitelist - AWS Security G... Allow IP - Okta Zone - Allow IP - Okta Zone Allow IP - Okta Zone Allow IP - Okta Zone Is there an IP Address to whitelist and exclude? Is there an IP Address to... Check IP Address For Whitelisting - RiskIQ Digital Footprint - Check IP Address For Whitelisting - RiskIQ Digital Footprint Check IP Address For Whit... Check IP Address For Whitelis... Is Auto Whitelist IP Address input set to "Yes" or "No"? Is Auto Whitelist IP Addr... Is Auto Exclude Whitelisted IP Address input set to "Yes" or "No"? Is Auto Exclude Whitelist... Exclude the whitelisted IP Address(es) - excludeIndicators Exclude the whitelisted I... excludeIndicators Tag the IP Address(es) to be whitelisted - setIndicators Tag the IP Address(es) to... setIndicators Create a CSV file for the IP Address(es) to be excluded - ExportToCSV Create a CSV file for the... ExportToCSV Is there a contact email address provided? Is there a contact email ... Send the created file through an email - send-mail Send the created file thr... send-mail Get XSOAR Server URL - GetServerURL Get XSOAR Server URL GetServerURL Clean "ServerURL" key from the context - DeleteContext Clean "ServerURL" key fro... DeleteContext Get the modified CSV file for the IP Address(es) to be excluded Get the modified CSV file... Is the user willing to exclude the IP Address(es) and the entered EntryID valid? Is the user willing to ex... Parse the modified CSV for the IP Address(es) to be excluded - ParseCSV Parse the modified CSV fo... ParseCSV Exclude the whitelisted IP Address(es) - excludeIndicators Exclude the whitelisted I... excludeIndicators Create a CSV file for the IP Address(es) to be added to allow list - ExportToCSV Create a CSV file for the... ExportToCSV Is there a contact email address provided? Is there a contact email ... Send the created file through an email - send-mail Send the created file thr... send-mail Get the modified CSV file for the IP Address(es) to be added to allow list Get the modified CSV file... Is the user willing to add the IP Address(es) to allow list and is the entered EntryID valid? Is the user willing to ad... Parse the modified CSV for the IP Address(es) to be whitelisted - ParseCSV Parse the modified CSV fo... ParseCSV Is AWS - EC2 enabled and AWS Security Group Name set? Is AWS - EC2 enabled and ... IP Whitelist - AWS Security Group - IP Whitelist - AWS Security Group IP Whitelist - AWS Securi... IP Whitelist - AWS Security G... Is Okta v2 enabled and Okta Zone ID set? Is Okta v2 enabled and Ok... Allow IP - Okta Zone - Allow IP - Okta Zone Allow IP - Okta Zone Allow IP - Okta Zone IP Whitelist - GCP Firewall - IP Whitelist - GCP Firewall IP Whitelist - GCP Firewall IP Whitelist - GCP Firewall Is Google Cloud Compute enabled and GCP Firewall Name is set? Is Google Cloud Compute e... IP Address Whitelisting IP Address Whitelisting Tag IP Address Tag IP Address IP Address Exclusion IP Address Exclusion