Cloud IAM Enrichment - Generic

This playbook is responsible for collecting and enriching data on Identity Access Management (IAM) in cloud environments (AWS, Azure, and GCP).

Common Playbooks · 25 tasks · 4 inputs · 24 outputs

Inputs

  • username — User name.
  • GCPProjectName — The GCP project name.
  • cloudProvider — The cloud service provider involved.
  • cloudIdentityType — The cloud identity type.

Outputs

  • AWS.IAM.Users — AWS AM Users include: UserId Arn CreateDate Path PasswordLastUsed.
  • AWS.IAM.Users.AccessKeys — AWS IAM Users Access Keys include: AccessKeyId Status CreateDate UserName.
  • GCPIAM — GCP IAM information.
  • GSuite — GSuite user information.
  • GSuite.PageToken — Token to specify the next page in the list.
  • MSGraphUser — MSGraph user information.
  • MSGraphGroups — MSGraph groups information.
  • MSGraph.identityProtection — MSGraph identity protection - risky user history.
  • AWS.IAM.Users.AccessKeys.CreateDate — The date when the access key was created.
  • AWS.IAM.Users.AccessKeys.UserName — The name of the IAM user that the key is associated with.
  • AWS.IAM.Users.Groups — AWS IAM - User groups.
  • AWS.IAM.UserPolicies — AWS IAM - user inline policies.
  • AWS.IAM.AttachedUserPolicies — AWS IAM - User attached policies.
  • MSGraphGroup — MSGraph group information.
  • MSGraph.identityProtection.RiskyUserHistory — Risky user history.
  • MSGraph.identityProtection.RiskyUserHistory.userPrincipalName — Risky user principal name.
  • MSGraph.identityProtection.RiskyUserHistory.userDisplayName — Risky user display name.
  • MSGraph.identityProtection.RiskyUserHistory.riskDetail — Reason why the user is considered a risky user. The possible values are limited to none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, and unknownFutureValue.
  • MSGraph.identityProtection.RiskyUserHistory.riskstate — State of the user's risk. The possible values are none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, and unknownFutureValue.
  • MSGraph.identityProtection.RiskyUserHistory.riskLevel — Risk level of the detected risky user. The possible values are low, medium, high, hidden, none, and unknownFutureValue.
  • MSGraph.identityProtection.RiskyUserHistory.riskLastUpdatedDateTime — The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time.
  • MSGraph.identityProtection.RiskyUserHistory.isProcessing — Indicates whether a user's risky state is being processed by the backend.
  • MSGraph.identityProtection.RiskyUserHistory.isDeleted — Indicates whether the user is deleted.
  • MSGraph.identityProtection.RiskyUserHistory.id — Unique ID of the risky user.

Commands used

aws-iam-get-user aws-iam-list-access-keys-for-user aws-iam-list-attached-user-policies aws-iam-list-groups-for-user aws-iam-list-user-policies gcp-iam-project-role-list gcp-iam-service-account-keys-get gcp-iam-service-accounts-get gsuite-role-assignment-list gsuite-user-get msgraph-groups-list-groups msgraph-identity-protection-risky-user-history-list msgraph-user-get

Flowchart

AWS Azure GCP yes Service Account yes Start Start Azure Enrichment Done Azure Enrichment Done Select cloud provider Select cloud provider Azure IAM - Get user information - msgraph-user-get Azure IAM - Get user info... msgraph-user-get Azure IAM - List risky user history - msgraph-identity-protection-risky-user-history-list Azure IAM - List risky us... msgraph-identity-protection-r... Azure IAM - List user groups - msgraph-groups-list-groups Azure IAM - List user groups msgraph-groups-list-groups MSGraph User ID exists? MSGraph User ID exists? Azure Enrichment Azure Enrichment AWS IAM - Get user information - aws-iam-get-user AWS IAM - Get user inform... aws-iam-get-user AWS IAM - List user access keys - aws-iam-list-access-keys-for-user AWS IAM - List user acces... aws-iam-list-access-keys-for-... AWS IAM - List user groups - aws-iam-list-groups-for-user AWS IAM - List user groups aws-iam-list-groups-for-user AWS IAM - List user attached policies - aws-iam-list-attached-user-policies AWS IAM - List user attac... aws-iam-list-attached-user-po... AWS IAM - List user inline policies - aws-iam-list-user-policies AWS IAM - List user inlin... aws-iam-list-user-policies AWS Enrichment AWS Enrichment AWS Enrichment Done AWS Enrichment Done GCP Enrichment GCP Enrichment Check the user type Check the user type G Suite - Get user information - gsuite-user-get G Suite - Get user inform... gsuite-user-get G Suite - List user role assinments - gsuite-role-assignment-list G Suite - List user role ... gsuite-role-assignment-list GCP IAM - Get service account information - gcp-iam-service-accounts-get GCP IAM - Get service acc... gcp-iam-service-accounts-get GCP IAM - List roles for the user's project ID - gcp-iam-project-role-list GCP IAM - List roles for ... gcp-iam-project-role-list GCP IAM - List service account access keys - gcp-iam-service-account-keys-get GCP IAM - List service ac... gcp-iam-service-account-keys-get GCP Enrichment Done GCP Enrichment Done Done Done Gsuite Customer ID exists? Gsuite Customer ID exists?