AWS IAM User Access Investigation - Remediation Deprecated

Deprecated. Use `Cloud IAM User Access Investigation` instead. Respond to Cortex XDR Cloud alerts where an AWS IAM user`s access key is used suspiciously to access the cloud environment. The following alerts are supported for AWS environments. - Penetration testing tool attempt - Penetration testing tool activity - Suspicious API call from a Tor exit node This is a beta playbook, which lets you implement and test pre-release software. Although AWS is supported, we are working towards multi-cloud support. As the playbook is beta, it might contain bugs. Updates to the playbook during the beta phase might include non-backward compatible features. We encourage your feedback on the quality and usability of the content to help us identify and fix issues, so we can continually improve the content.

Core · 16 tasks · 7 inputs · 0 outputs

Inputs

  • userName — The name of the user whose key you want to update.
  • accessKeyId — The access key ID of the secret access key you want to update.
  • AutoDeleteProfile — Whether to automatically delete the user login profile, if it exists (True/False).
  • IP — The IP address to block using the playbook.
  • AutoBlockIP — Whether to initiate the block IP playbook automatically (True/False).
  • IndicatorTag — The Tag name for bad reputation IP addresses investigated in the incident. Use it when the EDL service is configured to add indicators to block in PANW PAN-OS. If indicator verdict (Malicious/Bad) is used to add indicators to Cortex XSIAM EDL, you don't need to use the tag. Indicators are set as malicious, automatically in the incident.
  • DAG — Determines whether Palo Alto Networks Panorama or Firewall Dynamic Address Groups are used. Specify the Dynamic Address Group tag name for IP handling.

Commands used

aws-iam-delete-login-profile aws-iam-get-user-login-profile aws-iam-update-access-key setIndicators

Flowchart

yes Delete profile yes yes Start Start Set compromised IAM access key as inactive - aws-iam-update-access-key Set compromised IAM acces... aws-iam-update-access-key Delete user login profile to AWS console - aws-iam-delete-login-profile Delete user login profile... aws-iam-delete-login-profile Is it a Tor IP? Is it a Tor IP? Done Done Check for AWS user login profile Check for AWS user login ... Tag indicators for EDL - setIndicators Tag indicators for EDL setIndicators Automatically block IP? Automatically block IP? Manual - Block IP Manual - Block IP Set compromised IAM access key as inactive Set compromised IAM acces... Handle user login profile Handle user login profile Handle Tor IP Handle Tor IP AWS IAM - Get user profile - aws-iam-get-user-login-profile AWS IAM - Get user profile aws-iam-get-user-login-profile Automatically delete user login profile? Automatically delete user... Delete user login profile - Manual Delete user login profile... Block Indicators - Generic v2 - Block Indicators - Generic v2 Block Indicators - Generi... Block Indicators - Generic v2