Cloud Response - GCP

This playbook provides response actions to GCP. The following are available for execution automatically/manually: - Resource remediation: - Delete the instance - Stop the instance - Identity remediation: - Disable the user - Delete the user - Access key remediation: - Disable the access key - Delete the access key - Block indicators.

GCP Enrichment and Remediation · 40 tasks · 14 inputs · 0 outputs

Inputs

  • accessKeyRemediationType — Choose the remediation type for the user's access key. Disable - For disabling the user's access key. Delete - For deleting user's access key.
  • userRemediationType — Choose the remediation type for the user involved. Delete - For deleting the user. Disable - For disabling the user.
  • resourceRemediationType — Choose the remediation type for the instances created. Stop - For stopping the instances. Delete - For deleting the instances.
  • autoResourceRemediation — Whether to execute the resource remediation flow automatically.
  • autoUserRemediation — Whether to execute the user remediation flow automatically.
  • autoAccessKeyRemediation — Whether to execute the access key remediation flow automatically.
  • autoBlockIndicators — Whether to block the indicators automatically.
  • resourceName — The resource name to take action on.
  • resourceZone — The resource's zone.
  • username — The username to take action on.
  • accessKeyName — The access key name in the following format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}
  • sourceIP — The source IP address of the attacker.
  • GCPprojectID — The GCP Project ID. Will be used for handling service account
  • accountType — Determine the account type you are dealing with: "user" / "service_account". Default: "user"

Commands used

gcp-compute-delete-instance gcp-compute-stop-instance gcp-iam-service-account-delete gcp-iam-service-account-disable gcp-iam-service-account-key-delete gcp-iam-service-account-key-disable gsuite-user-delete

Flowchart

yes yes Delete Disable yes yes Delete Disable User yes yes Delete Stop yes yes yes yes yes yes Start Start Resource Resource Block Indicators Block Indicators Identity Identity Privileges Privileges Is there an access key to remediate? Is there an access key to... Should remediate automatically? Should remediate automati... Disable the access key - gcp-iam-service-account-key-disable Disable the access key gcp-iam-service-account-key-d... Continue by remediation type Continue by remediation type Delete the access key - gcp-iam-service-account-key-delete Delete the access key gcp-iam-service-account-key-d... Done Done Is there a user to remediate? Is there a user to remedi... Should remediate automatically? Should remediate automati... Continue by remediation type Continue by remediation type Delete the user - gcp-iam-service-account-delete Delete the user gcp-iam-service-account-delete Done Done Is there a resource to remediate? Is there a resource to re... Should remediate automatically? Should remediate automati... Continue by remediation type Continue by remediation type Delete the instance - gcp-compute-delete-instance Delete the instance gcp-compute-delete-instance Stop the instance - gcp-compute-stop-instance Stop the instance gcp-compute-stop-instance Done Done Disable the user - gcp-iam-service-account-disable Disable the user gcp-iam-service-account-disable Choose resources to remediate Choose resources to remed... Check user answer Check user answer Set selected resources to remediate - Set Set selected resources to... Set Choose a user to remediate Choose a user to remediate Check user answer Check user answer Choose a user for access key remediation Choose a user for access ... Check user answer Check user answer Block IP - Generic v3 - Block IP - Generic v3 Block IP - Generic v3 Block IP - Generic v3 Done Done Should block indicators automatically? Should block indicators a... Choose indicators to block Choose indicators to block Check user answer Check user answer Set selected indicators to remediate - Set Set selected indicators t... Set Delete regular user - gsuite-user-delete Delete regular user gsuite-user-delete Check if the user is a service account Check if the user is a se... Set regular user pattern - Set Set regular user pattern Set Set service account user pattern - Set Set service account user ... Set