AWS Identity and Access Management (IAM)

eventNameDescriptionSampleRule
anyCatch-all entry for AWS Identity and Access Management (IAM) rules that match the service but not a specific eventName.NY
AddRoleToInstanceProfileAssociates an IAM role with an EC2 instance profile, allowing EC2 instances launched with that profile to assume the role.YY
AddUserToGroupAdds an IAM user to the specified IAM group, granting the user the permissions attached to that group.YY
AttachGroupPolicyAttaches a managed IAM policy to an IAM group, granting the group's users the permissions defined in the policy.YY
AttachRolePolicyAttaches a managed IAM policy to an IAM role, adding the policy's permissions to the role.YY
AttachUserPolicyAttaches a managed IAM policy directly to an IAM user, granting that user the permissions defined in the policy.YY
CreateAccessKeyCreates a new AWS access key pair (access key ID and secret access key) for the specified IAM user.YY
CreateGroupCreates a new IAM group to which IAM users can be added to share a common set of permissions.YY
CreateInstanceProfileCreates a new IAM instance profile, a container that can hold one IAM role and is used to pass role information to EC2 instances.YY
CreateLoginProfileCreates a password for the specified IAM user, enabling console sign-in for that user.YY
CreateOpenIDConnectProviderCreates an IAM entity that describes an identity provider (IdP) supporting OpenID Connect (OIDC), enabling federated identity for AWS.YY
CreatePolicyVersionCreates a new version of a managed IAM policy, allowing the policy document to be updated while retaining prior versions.YY
CreateRoleCreates a new IAM role with a specified trust policy, defining which principals can assume the role.YY
CreateSAMLProviderCreates an IAM resource that describes an identity provider supporting SAML 2.0, enabling federated users to sign in to AWS.YY
CreateUserCreates a new IAM user in the AWS account with a specified user name.YY
CreateVirtualMFADeviceCreates a new virtual MFA device and returns the QR code seed for enrollment.YY
DeactivateMFADeviceDeactivates an MFA device previously associated with an IAM user, removing the MFA requirement for that user.YY
DeleteAccountPasswordPolicyDeletes the password policy for the AWS account, reverting to default password requirements.YY
DeleteGroupDeletes an IAM group, which must not have any users or attached policies before deletion.YY
DeleteLoginProfileDeletes the password-based login profile for an IAM user, preventing console sign-in.YY
DeleteSAMLProviderDeletes a SAML provider resource object in IAM, removing the federated identity configuration.YY
DeleteVirtualMFADeviceDeletes a virtual MFA device, permanently removing it from the account.YY
EnableMFADeviceAssociates and activates a virtual or hardware MFA device for an IAM user.YY
GetAccountAuthorizationDetailsRetrieves information about all IAM users, groups, roles, and policies in the account, including their relationships.YY
GetAccountSummaryRetrieves a summary of IAM entity usage and quotas for the current AWS account.YY
GetCredentialReportRetrieves the credential report for the account, listing all IAM users and the status of their credentials.YY
GetLoginProfileRetrieves the console login profile (password metadata) for the specified IAM user, excluding the password itself.YY
GetPolicyRetrieves metadata about a managed IAM policy, including its ARN, default version, and attachment count.YY
GetPolicyVersionRetrieves the policy document for a specific version of a managed IAM policy.YY
GetRoleRetrieves metadata about an IAM role, including its trust policy and attached managed policies.YY
GetRolePolicyRetrieves the inline policy document embedded in an IAM role.YY
GetUserRetrieves metadata about an IAM user, including path, user ID, ARN, and creation date.YY
GetUserPolicyRetrieves the inline policy document embedded in an IAM user.YY
ListAccessKeysReturns metadata about the access keys associated with a specified IAM user, including key IDs, status, and creation dates.YY
ListAccountAliasesLists the alias associated with the current AWS account, if any.YY
ListAttachedRolePoliciesLists all managed policies attached to a specified IAM role.YY
ListAttachedUserPoliciesLists all managed policies attached to a specified IAM user.YY
ListGroupsReturns a paginated list of IAM groups in the current AWS account.YY
ListMFADevicesReturns a list of MFA devices associated with an IAM user, or all virtual MFA devices in the account when no user is specified.YY
ListPoliciesLists IAM policies, with filters available to scope results to AWS-managed, customer-managed, or locally attached policies.YN
ListRolesReturns a paginated list of IAM roles in the current AWS account, optionally filtered by path prefix.YY
ListUserPoliciesLists the names of inline policies embedded in a specified IAM user.YY
ListUsersReturns a paginated list of IAM users in the current AWS account, optionally filtered by path prefix.YY
PutRolePolicyCreates or updates an inline policy document embedded directly in the specified IAM role.YY
PutUserPolicyCreates or updates an inline policy document embedded directly in the specified IAM user.YY
SetDefaultPolicyVersionSets the specified version of a managed IAM policy as the default active version for the policy.YY
UpdateAccountPasswordPolicyUpdates the password policy for the AWS account, setting requirements such as minimum length, complexity, and expiration.YY
UpdateAssumeRolePolicyUpdates the trust policy (assume-role policy document) for an IAM role, changing which principals are permitted to assume it.YY
UpdateLoginProfileChanges the password of the console login profile for the specified IAM user.YY
UpdateSAMLProviderUpdates the metadata document for an existing SAML provider in IAM.YY
AcceptDelegationRequestAccepts a delegation request, granting the requested temporary access.NN
AddClientIDToOpenIDConnectProviderAdds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect (OIDC) provider resource.YN
AssociateDelegationRequestAssociates a delegation request with the current identity.NN
ChangePasswordChanges the password of the IAM user who is calling this operation.YY
CreateAccountAliasCreates an alias for your Amazon Web Services account.YN
CreateDelegationRequestCreates an IAM delegation request for temporary access delegation.NN
CreatePolicyCreates a new managed policy for your Amazon Web Services account.YN
CreateServiceLinkedRoleCreates an IAM role that is linked to a specific Amazon Web Services service.YY
CreateServiceSpecificCredentialGenerates a set of credentials consisting of a user name and password that can be used to access the service specified in the request.YY
DeleteAccessKeyDeletes the access key pair associated with the specified IAM user.YY
DeleteAccountAliasDeletes the specified Amazon Web Services account alias.YN
DeleteGroupPolicyDeletes the specified inline policy that is embedded in the specified IAM group.YY
DeleteInstanceProfileDeletes the specified instance profile.YN
DeleteOpenIDConnectProviderDeletes an OpenID Connect identity provider (IdP) resource object in IAM.YN
DeletePolicyDeletes the specified managed policy.YY
DeletePolicyVersionDeletes the specified version from the specified managed policy.YN
DeleteRoleDeletes the specified role.YY
DeleteRolePermissionsBoundaryDeletes the permissions boundary for the specified IAM role.YY
DeleteRolePolicyDeletes the specified inline policy that is embedded in the specified IAM role.YY
DeleteServerCertificateDeletes the specified server certificate.YN
DeleteServiceLinkedRoleSubmits a service-linked role deletion request and returns a DeletionTaskId, which you can use to check the status of the deletion.YN
DeleteServiceSpecificCredentialDeletes the specified service-specific credential.YY
DeleteSigningCertificateDeletes a signing certificate associated with the specified IAM user.YN
DeleteSSHPublicKeyDeletes the specified SSH public key.YN
DeleteUserDeletes the specified IAM user.YY
DeleteUserPermissionsBoundaryDeletes the permissions boundary for the specified IAM user.YY
DeleteUserPolicyDeletes the specified inline policy that is embedded in the specified IAM user.YY
DetachGroupPolicyRemoves the specified managed policy from the specified IAM group.YY
DetachRolePolicyRemoves the specified managed policy from the specified role.YY
DetachUserPolicyRemoves the specified managed policy from the specified user.YY
DisableOrganizationsRootCredentialsManagementDisables the management of privileged root user credentials across member accounts in your organization.YN
DisableOrganizationsRootSessionsDisables root user sessions for privileged tasks across member accounts in your organization.YN
DisableOutboundWebIdentityFederationDisables the outbound identity federation feature for your Amazon Web Services account.YN
EnableOrganizationsRootCredentialsManagementEnables the management of privileged root user credentials across member accounts in your organization.NN
EnableOrganizationsRootSessionsAllows the management account or delegated administrator to perform privileged tasks on member accounts in your organization.NN
EnableOutboundWebIdentityFederationEnables the outbound identity federation feature for your Amazon Web Services account.NN
GenerateCredentialReportGenerates a credential report for the Amazon Web Services account.YN
GenerateOrganizationsAccessReportGenerates a report for service last accessed data for Organizations.NN
GenerateServiceLastAccessedDetailsGenerates a report that includes details about when an IAM resource (user, group, role, or policy) was last used in an attempt to access Amazon Web Services services.YN
GetAccessKeyLastUsedRetrieves information about when the specified access key was last used.YN
GetAccountPasswordPolicyRetrieves the password policy for the Amazon Web Services account.YY
GetContextKeysForCustomPolicyGets a list of all of the context keys referenced in the input policies.YN
GetContextKeysForPrincipalPolicyGets a list of all of the context keys referenced in all the IAM policies that are attached to the specified IAM entity.YN
GetDelegationRequestRetrieves information about a specific delegation request.YN
GetGroupReturns a list of IAM users that are in the specified IAM group.YY
GetGroupPolicyRetrieves the specified inline policy document that is embedded in the specified IAM group.YY
GetHumanReadableSummaryRetrieves a human readable summary for a given entity.NN
GetInstanceProfileRetrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role.YN
GetMFADeviceRetrieves information about an MFA device for a specified user.NN
GetOpenIDConnectProviderReturns information about the specified OpenID Connect (OIDC) provider resource object in IAM.NN
GetOrganizationsAccessReportRetrieves the service last accessed data report for Organizations that was previously generated using the GenerateOrganizationsAccessReport operation.YN
GetOutboundWebIdentityFederationInfoRetrieves the configuration information for the outbound identity federation feature in your Amazon Web Services account.YN
GetSAMLProviderReturns the SAML provider metadocument that was uploaded when the IAM SAML provider resource object was created or updated.NN
GetServerCertificateRetrieves information about the specified server certificate stored in IAM.YN
GetServiceLastAccessedDetailsRetrieves a service last accessed report that was created using the GenerateServiceLastAccessedDetails operation.YN
GetServiceLastAccessedDetailsWithEntitiesAfter you generate a group or policy report using the GenerateServiceLastAccessedDetails operation, you can use the JobId parameter in GetServiceLastAccessedDetailsWithEntities.YN
GetServiceLinkedRoleDeletionStatusRetrieves the status of your service-linked role deletion.NN
GetSSHPublicKeyRetrieves the specified SSH public key, including metadata about the key.YN
ListAttachedGroupPoliciesLists all managed policies that are attached to the specified IAM group.YY
ListDelegationRequestsLists delegation requests based on the specified criteria.YN
ListEntitiesForPolicyLists all IAM users, groups, and roles that the specified managed policy is attached to.YN
ListGroupPoliciesLists the names of the inline policies that are embedded in the specified IAM group.YY
ListGroupsForUserLists the IAM groups that the specified IAM user belongs to.YY
ListInstanceProfilesLists the instance profiles that have the specified path prefix.YN
ListInstanceProfilesForRoleLists the instance profiles that have the specified associated IAM role.YN
ListInstanceProfileTagsLists the tags that are attached to the specified IAM instance profile.YN
ListMFADeviceTagsLists the tags that are attached to the specified IAM virtual multi-factor authentication (MFA) device.NN
ListOpenIDConnectProvidersLists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the Amazon Web Services account.YN
ListOpenIDConnectProviderTagsLists the tags that are attached to the specified OpenID Connect (OIDC)-compatible identity provider.NN
ListOrganizationsFeaturesLists the centralized root access features enabled for your organization.YN
ListPoliciesGrantingServiceAccessRetrieves a list of policies that the IAM identity (user, group, or role) can use to access each specified service.YN
ListPolicyTagsLists the tags that are attached to the specified IAM customer managed policy.NN
ListPolicyVersionsLists information about the versions of the specified managed policy, including the version that is currently set as the policy's default version.YN
ListRolePoliciesLists the names of the inline policies that are embedded in the specified IAM role.YN
ListRoleTagsLists the tags that are attached to the specified role.YN
ListSAMLProvidersLists the SAML provider resource objects defined in IAM in the account.YN
ListSAMLProviderTagsLists the tags that are attached to the specified Security Assertion Markup Language (SAML) identity provider.NN
ListServerCertificatesLists the server certificates stored in IAM that have the specified path prefix.YN
ListServerCertificateTagsLists the tags that are attached to the specified IAM server certificate.YN
ListServiceSpecificCredentialsReturns information about the service-specific credentials associated with the specified IAM user.YN
ListSigningCertificatesReturns information about the signing certificates associated with the specified IAM user.YN
ListSSHPublicKeysReturns information about the SSH public keys associated with the specified IAM user.YN
ListUserTagsLists the tags that are attached to the specified IAM user.YN
ListVirtualMFADevicesLists the virtual MFA devices defined in the Amazon Web Services account by assignment status.YN
PutGroupPolicyAdds or updates an inline policy document that is embedded in the specified IAM group.YY
PutRolePermissionsBoundaryAdds or updates the policy that is specified as the IAM role's permissions boundary.YY
PutUserPermissionsBoundaryAdds or updates the policy that is specified as the IAM user's permissions boundary.YY
RejectDelegationRequestRejects a delegation request, denying the requested temporary access.YN
RemoveClientIDFromOpenIDConnectProviderRemoves the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect (OIDC) provider resource object.YN
RemoveRoleFromInstanceProfileRemoves the specified IAM role from the specified Amazon EC2 instance profile.YN
RemoveUserFromGroupRemoves the specified user from the specified group.YY
ResetServiceSpecificCredentialResets the password for a service-specific credential.YN
ResyncMFADeviceSynchronizes the specified MFA device with its IAM resource object on the Amazon Web Services servers.NN
SendDelegationTokenSends the exchange token for an accepted delegation request.NN
SetSecurityTokenServicePreferencesSets the specified version of the global endpoint token as the token version used for the Amazon Web Services account.NN
SimulateCustomPolicySimulate how a set of IAM policies and optionally a resource-based policy works with a list of API operations and Amazon Web Services resources to determine the policies' effective permissions.YN
SimulatePrincipalPolicySimulate how a set of IAM policies attached to an IAM entity works with a list of API operations and Amazon Web Services resources to determine the policies' effective permissions.YN
TagInstanceProfileAdds one or more tags to an IAM instance profile.YN
TagMFADeviceAdds one or more tags to an IAM virtual multi-factor authentication (MFA) device.YN
TagOpenIDConnectProviderAdds one or more tags to an OpenID Connect (OIDC)-compatible identity provider.YN
TagPolicyAdds one or more tags to an IAM customer managed policy.YN
TagRoleAdds one or more tags to an IAM role.YN
TagSAMLProviderAdds one or more tags to a Security Assertion Markup Language (SAML) identity provider.NN
TagServerCertificateAdds one or more tags to an IAM server certificate.YN
TagUserAdds one or more tags to an IAM user.YN
UntagInstanceProfileRemoves the specified tags from the IAM instance profile.YN
UntagMFADeviceRemoves the specified tags from the IAM virtual multi-factor authentication (MFA) device.YN
UntagOpenIDConnectProviderRemoves the specified tags from the specified OpenID Connect (OIDC)-compatible identity provider in IAM.YN
UntagPolicyRemoves the specified tags from the customer managed policy.YN
UntagRoleRemoves the specified tags from the role.YN
UntagSAMLProviderRemoves the specified tags from the specified Security Assertion Markup Language (SAML) identity provider in IAM.NN
UntagServerCertificateRemoves the specified tags from the IAM server certificate.YN
UntagUserRemoves the specified tags from the user.YN
UpdateAccessKeyChanges the status of the specified access key from Active to Inactive, or vice versa.YN
UpdateDelegationRequestUpdates an existing delegation request with additional information.YN
UpdateGroupUpdates the name and/or the path of the specified IAM group.YN
UpdateOpenIDConnectProviderThumbprintReplaces the existing list of server certificate thumbprints associated with an OpenID Connect (OIDC) provider resource object with a new list of thumbprints.YN
UpdateRoleUpdates the description or maximum session duration setting of a role.YN
UpdateRoleDescriptionUse UpdateRole instead.YN
UpdateServerCertificateUpdates the name and/or the path of the specified server certificate stored in IAM.YN
UpdateServiceSpecificCredentialSets the status of a service-specific credential to Active or Inactive.YN
UpdateSigningCertificateChanges the status of the specified user signing certificate from active to disabled, or vice versa.YN
UpdateSSHPublicKeySets the status of an IAM user's SSH public key to active or inactive.YN
UpdateUserUpdates the name and/or the path of the specified IAM user.YN
UploadServerCertificateUploads a server certificate entity for the Amazon Web Services account.YY
UploadSigningCertificateUploads an X.509 signing certificate and associates it with the specified IAM user.YN
UploadSSHPublicKeyUploads an SSH public key and associates it with the specified IAM user.YN
AcquireRoleCreates an IAM role from the specified role template.NN
GetAccountPropertiesRetrieves the account-level properties for the caller's Amazon Web Services account.NN
GetRoleTemplateVersionRetrieves information about a version of the specified role template.NN
PutAccountPropertiesSets account-level properties for the caller's Amazon Web Services account.NN

any: AWS Identity and Access Management (IAM) (catch-all)

#
Service
iam

Description

Catch-all entry for AWS Identity and Access Management (IAM) rules that match the service but not a specific eventName.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::userIdentity.accessKeyId (elastic rule field)starts_withASIA1 ruleelastic
aws::userIdentity.type (elastic rule field)eqAssumedRole1 ruleelastic
aws::userIdentity.type (elastic rule field)eqiamuser1 ruleelastic
user.id (elastic rule field)contains:i-1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS CloudTrail Log Evasion source medium: Identifies the evasion of cloudtrail logging for IAM actions involving policy creation, modification or attachment. When making certain policy-related API calls, an adversary may pad the associated policy document with whitespaces to trigger CloudTrail’s logging size constraints, resulting in incomplete logging where critical details about the policy are omitted. By exploiting this gap, threat actors can bypass monitoring performed through CloudTrail and can effectively obscure unauthorized changes. This rule looks for IAM API calls with the requestParameters property containing reason:”requestParameters too large” and omitted:true.T1562, T1562.008
  • AWS IAM API Calls via Temporary Session Tokens source high: Detects sensitive AWS IAM API operations executed using temporary session credentials (access key IDs beginning with "ASIA"). Temporary credentials are commonly issued through sts:GetSessionToken, sts:AssumeRole, or AWS SSO logins and are meant for short-term use. It is unusual for legitimate users or automated processes to perform privileged IAM actions (e.g., creating users, updating policies, or enabling/disabling MFA) with session tokens. This behavior may indicate credential theft, session hijacking, or the abuse of a privileged role’s temporary credentials.T1078, T1078.004, T1098
  • AWS EC2 Instance Interaction with IAM Service source low: Identifies when an EC2 instance interacts with the AWS IAM service via an assumed role. This is uncommon behavior and could indicate an attacker using compromised credentials to further exploit an environment. For example, an assumed role could be used to create new users for persistence or add permissions for privilege escalation. An EC2 instance assumes a role using their EC2 ID as the session name. This rule looks for the pattern "i-" which is the beginning pattern for assumed role sessions started by an EC2 instance. This is a building block rule and does not generate alerts on its own. It is meant to be used for correlation with other rules to detect suspicious activity.T1078, T1078.004, T1098, T1098.001, T1098.003

AddRoleToInstanceProfile

#
Service
iam

Description

Associates an IAM role with an EC2 instance profile, allowing EC2 instances launched with that profile to assume the role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "50527d85-87ec-438c-af05-39032b6ca4a6",
  "eventName": "AddRoleToInstanceProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:55:11Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "2aaf0e0a-6fec-48bd-b9ee-8d60c5029b64",
  "requestParameters": {
    "instanceProfileName": "stratus-red-team-ec2-steal-credentials-instance",
    "roleName": "stratus-red-team-ec2-steal-credentials-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_6a7ec681-49a5-4403-99a2-d3c1229e8063 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::userIdentity.type (elastic rule field)eqassumedrole1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

AddUserToGroup

#
Service
iam

Description

Adds an IAM user to the specified IAM group, granting the user the permissions attached to that group.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "User: arn:aws:iam::811596193553:user/Level6 is not authorized to perform: iam:AddUserToGroup on resource: group Admins",
  "eventID": "9964b435-2422-40d1-9c3b-46f1ac7e6e3a",
  "eventName": "AddUserToGroup",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-08-11T15:48:51Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "924d6633-7eac-11e7-a518-63ff93e14a26",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "73.95.254.251",
  "userAgent": "aws-cli/1.11.81 Python/2.7.9 Windows/7 botocore/1.5.44",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::userIdentity.type (elastic rule field)eqassumedrole1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

Kusto #

References #

AttachGroupPolicy

#
Service
iam

Description

Attaches a managed IAM policy to an IAM group, granting the group's users the permissions defined in the policy.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "User: arn:aws:iam::811596193553:user/backup is not authorized to perform: iam:AttachGroupPolicy on resource: group n",
  "eventID": "4aebc75c-09be-48a7-b91e-aa572a60de6c",
  "eventName": "AttachGroupPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-08-13T13:49:09Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "2032b84f-bdd1-11e9-94d2-3922ebadbc76",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "61.241.251.254",
  "userAgent": "aws-sdk-go/1.4.10 (go1.7.4; linux; amd64)",
  "userIdentity": {
    "accessKeyId": "AKIA01U43UX3RBRDXF4Q",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/backup",
    "principalId": "AIDA9BO36HFBHKGJAO9C1",
    "type": "IAMUser",
    "userName": "backup"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::errorCode (kusto rule field)is_null14 ruleskusto
aws::errorMessage (kusto rule field)is_null14 ruleskusto
Effect (kusto rule field)eqallow12 ruleskusto
Resource (kusto rule field)eq*12 ruleskusto
Action (kusto rule field)containsiam:*5 ruleskusto
Action (kusto rule field)containsiam:passrole5 ruleskusto
Action (kusto rule field)containscloudformation:*1 rulekusto
Action (kusto rule field)containscloudformation:create*1 rulekusto
Action (kusto rule field)containscloudformation:createstack1 rulekusto
Action (kusto rule field)containscloudformation:describe*1 rulekusto
Action (kusto rule field)containscloudformation:describestacks1 rulekusto
Action (kusto rule field)containsdatapipeline:*1 rulekusto
Action (kusto rule field)containsdatapipeline:activate*1 rulekusto
Action (kusto rule field)containsdatapipeline:activatepipeline1 rulekusto
Action (kusto rule field)containsdatapipeline:create*1 rulekusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

  • IAM Policy Attachment Attempt source medium: Detects a failed attempt to attach an IAM policy to a user, group, or role. Even though the attempt was denied, it indicates the attacker has valid credentials and is attempting privilege escalation. This is commonly observed when attackers use stolen credentials that lack IAM write permissions. Note: AccessDenied events may have empty requestParameters, so this rule does not filter by policy name to avoid missing detections.T1098, T1098.003↳ also matches AttachRolePolicy, AttachUserPolicy
  • IAM Admin Policy Attached source critical: Detects when an administrative IAM policy (AdministratorAccess, PowerUserAccess, or IAMFullAccess) is attached to a user, group, or role. This is a privilege escalation technique where an attacker elevates permissions of a compromised or newly created principal to gain full control of the AWS account.T1098, T1098.003↳ also matches AttachRolePolicy, AttachUserPolicy

Elastic #

Kusto #

YARA-L #

Panther #

References #

AttachRolePolicy

#
Service
iam

Description

Attaches a managed IAM policy to an IAM role, adding the policy's permissions to the role.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "edc26fa8-655a-4346-9e18-f79b0d9e25de",
  "eventName": "AttachRolePolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:55:10Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "7fbf2fab-df59-44c0-b33c-f8847753d33f",
  "requestParameters": {
    "policyArn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore",
    "roleName": "stratus-red-team-ec2-steal-credentials-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_6a7ec681-49a5-4403-99a2-d3c1229e8063 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::errorCode (kusto rule field)is_null14 ruleskusto
aws::errorMessage (kusto rule field)is_null14 ruleskusto
Effect (kusto rule field)eqallow12 ruleskusto
Resource (kusto rule field)eq*12 ruleskusto
Action (kusto rule field)containsiam:*5 ruleskusto
Action (kusto rule field)containsiam:passrole5 ruleskusto
Action (kusto rule field)containscloudformation:*1 rulekusto
Action (kusto rule field)containscloudformation:create*1 rulekusto
Action (kusto rule field)containscloudformation:createstack1 rulekusto
Action (kusto rule field)containscloudformation:describe*1 rulekusto
Action (kusto rule field)containscloudformation:describestacks1 rulekusto
Action (kusto rule field)containsdatapipeline:*1 rulekusto
Action (kusto rule field)containsdatapipeline:activate*1 rulekusto
Action (kusto rule field)containsdatapipeline:activatepipeline1 rulekusto
Action (kusto rule field)containsdatapipeline:create*1 rulekusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

  • IAM Policy Attachment Attempt source medium: Detects a failed attempt to attach an IAM policy to a user, group, or role. Even though the attempt was denied, it indicates the attacker has valid credentials and is attempting privilege escalation. This is commonly observed when attackers use stolen credentials that lack IAM write permissions. Note: AccessDenied events may have empty requestParameters, so this rule does not filter by policy name to avoid missing detections.T1098, T1098.003↳ also matches AttachGroupPolicy, AttachUserPolicy
  • IAM Admin Policy Attached source critical: Detects when an administrative IAM policy (AdministratorAccess, PowerUserAccess, or IAMFullAccess) is attached to a user, group, or role. This is a privilege escalation technique where an attacker elevates permissions of a compromised or newly created principal to gain full control of the AWS account.T1098, T1098.003↳ also matches AttachGroupPolicy, AttachUserPolicy

Elastic #

  • AWS IAM AdministratorAccess Policy Attached to Role source medium: An adversary with access to a set of compromised credentials may attempt to persist or escalate privileges by attaching additional permissions to compromised IAM roles. This rule looks for use of the IAM AttachRolePolicy API operation to attach the highly permissive AdministratorAccess AWS managed policy to an existing IAM role.T1098, T1098.003
  • AWS IAM Customer-Managed Policy Attached to Role by Rare User source low: Detects when an AWS Identity and Access Management (IAM) customer-managed policy is attached to a role by an unusual or unauthorized user. Customer-managed policies are policies created and controlled within an AWS account, granting specific permissions to roles or users when attached. This rule identifies potential privilege escalation by flagging cases where a customer-managed policy is attached to a role by an unexpected actor, which could signal unauthorized access or misuse. Attackers may attach policies to roles to expand permissions and elevate their privileges within the AWS environment. This is a New Terms rule that uses the "cloud.account.id", "user.name" and "entity.target.id" fields to check if the combination of the actor identity and target role name has not been seen before.T1098, T1548, T1548.005
  • AWS Sensitive IAM Operations Performed via CloudShell source high: Identifies sensitive AWS IAM operations performed via AWS CloudShell based on the user agent string. CloudShell is a browser-based shell that provides command-line access to AWS resources directly from the AWS Management Console. While convenient for administrators, CloudShell access from compromised console sessions can enable attackers to perform privileged operations without installing tools or using programmatic credentials. This rule detects high-risk actions such as creating IAM users, access keys, roles, or attaching policies when initiated from CloudShell, which may indicate post-compromise credential harvesting or privilege escalation activity.T1098, T1098.001, T1098.003, T1136, T1136.003↳ also matches AddRoleToInstanceProfile, AttachUserPolicy, CreateAccessKey, CreateInstanceProfile, CreateRole, CreateUser, PutRolePolicy, PutUserPolicy

Kusto #

YARA-L #

Panther #

References #

AttachUserPolicy

#
Service
iam

Description

Attaches a managed IAM policy directly to an IAM user, granting that user the permissions defined in the policy.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "f4923a37-92d5-4dfd-9786-6caef2b5f33c",
  "eventName": "AttachUserPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:24:49Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "b6a802c5-01c3-419a-9658-ecea2f3ef0b3",
  "requestParameters": {
    "policyArn": "arn:aws:iam::aws:policy/AdministratorAccess",
    "userName": "malicious-iam-user"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "stratus-red-team_e1bd4d05-8971-4500-b6af-3e05539b163c",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::errorCode (kusto rule field)is_null14 ruleskusto
aws::errorMessage (kusto rule field)is_null14 ruleskusto
Effect (kusto rule field)eqallow12 ruleskusto
Resource (kusto rule field)eq*12 ruleskusto
Action (kusto rule field)containsiam:*5 ruleskusto
Action (kusto rule field)containsiam:passrole5 ruleskusto
Action (kusto rule field)containscloudformation:*1 rulekusto
Action (kusto rule field)containscloudformation:create*1 rulekusto
Action (kusto rule field)containscloudformation:createstack1 rulekusto
Action (kusto rule field)containscloudformation:describe*1 rulekusto
Action (kusto rule field)containscloudformation:describestacks1 rulekusto
Action (kusto rule field)containsdatapipeline:*1 rulekusto
Action (kusto rule field)containsdatapipeline:activate*1 rulekusto
Action (kusto rule field)containsdatapipeline:activatepipeline1 rulekusto
Action (kusto rule field)containsdatapipeline:create*1 rulekusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

  • IAM Policy Attachment Attempt source medium: Detects a failed attempt to attach an IAM policy to a user, group, or role. Even though the attempt was denied, it indicates the attacker has valid credentials and is attempting privilege escalation. This is commonly observed when attackers use stolen credentials that lack IAM write permissions. Note: AccessDenied events may have empty requestParameters, so this rule does not filter by policy name to avoid missing detections.T1098, T1098.003↳ also matches AttachGroupPolicy, AttachRolePolicy
  • IAM Admin Policy Attached source critical: Detects when an administrative IAM policy (AdministratorAccess, PowerUserAccess, or IAMFullAccess) is attached to a user, group, or role. This is a privilege escalation technique where an attacker elevates permissions of a compromised or newly created principal to gain full control of the AWS account.T1098, T1098.003↳ also matches AttachGroupPolicy, AttachRolePolicy

Elastic #

Kusto #

YARA-L #

Panther #

References #

CreateAccessKey

#
Service
iam

Description

Creates a new AWS access key pair (access key ID and secret access key) for the specified IAM user.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "64b7de64-bf53-47ae-b7e3-d30cb1b5136e",
  "eventName": "CreateAccessKey",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:24:29Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "6e516ef1-9cd8-47ad-b467-3f672af5d137",
  "requestParameters": {
    "userName": "stratus-red-team-backdoor-u-user"
  },
  "responseElements": {
    "accessKey": {
      "accessKeyId": "AKIATFQR7NSC3ZO6PKAZ",
      "createDate": "Jul 10, 2023 12:24:29 PM",
      "status": "Active",
      "userName": "stratus-red-team-backdoor-u-user"
    }
  },
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "stratus-red-team_61e3765a-ab18-4da8-b5ac-4ec10986ed4b",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
target.application (Chronicle)eqiam.amazonaws.com2 ruleschronicle
SubjectUserName (chronicle rule field)regex_match\/i-.*$1 rulechronicle
aws::errorCode (sigma rule field)eqaccessdenied1 rulesigma
aws::errorCode (splunk rule field)eqsuccess1 rulesplunk
aws::userIdentity.accessKeyId (elastic rule field)starts_withAKIA1 ruleelastic
aws::userIdentity.type (panther rule field)eqRoot1 rulepanther
aws::userIdentity.type (elastic rule field)eqiamuser1 ruleelastic
match (splunk rule field)eq01 rulesplunk
principal.resource.type (Chronicle)eqAssumedRole1 rulechronicle
userAgent (sigma rule field)containss3 browser1 rulesigma
userAgent (splunk rule field)neconsole.amazonaws.com1 rulesplunk

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

Elastic #

  • AWS IAM User Created Access Keys For Another User source high: An adversary with access to a set of compromised credentials may attempt to persist or escalate privileges by creating a new set of credentials for an existing user. This rule looks for use of the IAM CreateAccessKey API operation to create new programmatic access keys for another IAM user.T1098, T1098.001
  • AWS IAM User Self-Created Access Key Subsequently Used source medium: Detects an AWS IAM user using an existing credential to create a new access key for itself and subsequently using the new key within one hour. This behavior can indicate an adversary converting compromised credentials into an additional long-term credential for persistence. Unlike a standalone self-service key creation alert, requiring subsequent use of the new key reduces noise from unused or abandoned credential-rotation operations.T1098, T1098.001
  • AWS IAM Credentials Added to a Bedrock API Key Phantom User source high: Identifies standard IAM credentials being added to an Amazon Bedrock API key phantom user, whose user name starts with "BedrockAPIKey-": either a long-term access key (CreateAccessKey) or a console password / login profile (CreateLoginProfile, UpdateLoginProfile). When a long-term Bedrock API key is generated through the AWS Console, AWS silently provisions a "BedrockAPIKey-<id>" IAM user with the AmazonBedrockLimitedAccess managed policy. That user is intended only to back a Bedrock bearer token and should never hold standard programmatic keys or interactive console access. Adding either converts a Bedrock-scoped identity into general-purpose IAM credentials that inherit the policy's Bedrock control-plane and IAM, VPC, and KMS reconnaissance permissions and that persist after the Bedrock API key is revoked. This is the privilege-escalation and persistence pivot documented for Bedrock API key phantom users, and there is no legitimate workflow that produces it.T1098, T1098.001↳ also matches CreateLoginProfile, UpdateLoginProfile

Splunk #

  • ASL AWS Create Access Key source: The following analytic identifies the creation of AWS IAM access keys by a user for another user, which can indicate privilege escalation. It leverages AWS CloudTrail logs to detect instances where the user creating the access key is…T1136, T1136.003
  • AWS CreateAccessKey source: The following analytic identifies the creation of AWS IAM access keys by a user for another user, which can indicate privilege escalation. It leverages AWS CloudTrail logs to detect instances where the user creating the access key is…T1136, T1136.003

Kusto #

YARA-L #

Panther #

  • AWS User API Key Created source medium: Detects AWS API key creation for a user by another user. Backdoored users can be used to obtain persistence in the AWS environment.T1098, T1108, T1550
  • Root Account Access Key Created source critical: Detects creation of programmatic access keys for the AWS root account, which violates critical security best practices. Root account credentials provide unrestricted access to all AWS resources and cannot be scoped with granular permissions. If compromised, these keys grant attackers complete control over the AWS environment including billing and account closure capabilities.T1098
  • New IAM Credentials Updated source informational: A console password, access key, or user has been created.T1098↳ also matches CreateLoginProfile

References #

CreateGroup

#
Service
iam

Description

Creates a new IAM group to which IAM users can be added to share a common set of permissions.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "User: arn:aws:iam::811596193553:user/backup is not authorized to perform: iam:CreateGroup on resource: arn:aws:iam::811596193553:group/Admins",
  "eventID": "fa67af36-2344-444b-8442-7a786e035a79",
  "eventName": "CreateGroup",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2018-02-24T12:01:35Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "7668a306-195a-11e8-b2bd-1e81c1542189",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "79.43.2.31",
  "userAgent": "aws-cli/1.14.40 Python/3.6.4 Darwin/16.7.0 botocore/1.8.44",
  "userIdentity": {
    "accessKeyId": "AKIA01U43UX3RBRDXF4Q",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/backup",
    "principalId": "AIDA9BO36HFBHKGJAO9C1",
    "type": "IAMUser",
    "userName": "backup"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Group Creation source low: Identifies the creation of a group in AWS Identity and Access Management (IAM). Groups specify permissions for multiple users. Any user in a group automatically has the permissions that are assigned to the group. Adversaries who obtain credentials with IAM write privileges may create a new group as a foothold for persistence: they can later attach admin-level policies to the group and quietly add users or roles to inherit those privileges.T1136, T1136.003

Kusto #

References #

CreateInstanceProfile

#
Service
iam

Description

Creates a new IAM instance profile, a container that can hold one IAM role and is used to pass role information to EC2 instances.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "96347fdd-6466-41af-8d6c-df066e2a1a20",
  "eventName": "CreateInstanceProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:55:10Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "8fc8a78c-8569-488b-a0e9-2d6dcdda6a2c",
  "requestParameters": {
    "instanceProfileName": "stratus-red-team-ec2-steal-credentials-instance",
    "path": "/",
    "tags": [
      {
        "key": "StratusRedTeam",
        "value": "true"
      }
    ]
  },
  "responseElements": {
    "instanceProfile": {
      "arn": "arn:aws:iam::123837392027:instance-profile/stratus-red-team-ec2-steal-credentials-instance",
      "createDate": "Jul 10, 2023 11:55:10 AM",
      "instanceProfileId": "AIPATFQR7NSCT5GZF5JGF",
      "instanceProfileName": "stratus-red-team-ec2-steal-credentials-instance",
      "path": "/",
      "roles": [],
      "tags": [
        {
          "key": "StratusRedTeam",
          "value": "true"
        }
      ]
    }
  },
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_6a7ec681-49a5-4403-99a2-d3c1229e8063 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

CreateLoginProfile

#
Service
iam

Description

Creates a password for the specified IAM user, enabling console sign-in for that user.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "f0d7bb15-75c8-4770-a500-92d1f71b948c",
  "eventName": "CreateLoginProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:25:04Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "3c22d7b8-d131-4b31-8af1-5f72c4a5afe8",
  "requestParameters": {
    "passwordResetRequired": false,
    "userName": "stratus-red-team-login-profile-user"
  },
  "responseElements": {
    "loginProfile": {
      "createDate": "Jul 10, 2023 12:25:04 PM",
      "passwordResetRequired": false,
      "userName": "stratus-red-team-login-profile-user"
    }
  },
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "stratus-red-team_9f92f988-5ef6-4f8a-800d-c7229febb5fb",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
target.application (Chronicle)eqiam.amazonaws.com2 ruleschronicle
SubjectUserName (chronicle rule field)regex_match\/i-.*$1 rulechronicle
aws::userIdentity.type (elastic rule field)eqRoot1 ruleelastic
principal.resource.type (Chronicle)eqAssumedRole1 rulechronicle
requestParameters.passwordResetRequired (panther rule field)is_null1 rulepanther
userAgent (sigma rule field)containss3 browser1 rulesigma

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

  • AWS IAM S3Browser LoginProfile Creation source high: Detects S3 Browser utility performing reconnaissance looking for existing IAM Users without a LoginProfile defined then (when found) creating a LoginProfile.T1059, T1059.009, T1078, T1078.004↳ also matches GetLoginProfile
  • IAM Login Profile Created source medium: Establishes persistence by creating a Login Profile on an existing IAM user. This allows an attacker to access an IAM user intended to be used programmatically through the AWS console usual login process. This can also be detected with UpdateLoginProfile events. If an account is meant to be used only programmatically, it should not have a login profile.T1098, T1098.001

Elastic #

  • AWS IAM Login Profile Added for Root source high: Identifies creation of a console login profile for the AWS account root user. While CreateLoginProfile normally applies to IAM users, when performed from a temporary root session (e.g., via AssumeRoot) and the userName parameter is omitted, the profile is created for the root principal (self-assigned). Adversaries with temporary root access may add or reset the root login profile to establish persistent console access even if original access keys are rotated or disabled. Correlate with recent AssumeRoot/STS activity and validate intent with the account owner.T1078, T1078.004, T1098, T1098.001
  • AWS IAM Login Profile Created or Modified for an IAM User source medium: Identifies creation or modification of a console login profile for an AWS IAM user via CreateLoginProfile or UpdateLoginProfile. A login profile enables password-based console sign-in for an IAM user. Adversaries who obtain programmatic credentials may create a login profile to add persistent interactive console access, or update an existing profile to reset another user's password and take over the account, even after the original access keys are rotated. Because console access for IAM users is increasingly provisioned through federation or IAM Identity Center, direct use of these APIs by an unexpected principal warrants review. This rule targets IAM users (the userName parameter is present); creation of a login profile for the account root user is covered by a separate rule.T1098, T1098.001↳ also matches UpdateLoginProfile
  • AWS IAM Login Profile Added to User source low: Identifies when an AWS IAM login profile is added to a user. Adversaries may add a login profile to an IAM user who typically does not have one and is used only for programmatic access. This can be used to maintain access to the account even if the original access key is rotated or disabled. This is a building block rule and does not generate alerts on its own. It is meant to be used for correlation with other rules to detect suspicious activity.T1078, T1078.004, T1098, T1098.001, T1098.003

Splunk #

  • AWS CreateLoginProfile source: The following analytic identifies the creation of a login profile for one AWS user by another, followed by a console login from the same source IP. It uses AWS CloudTrail logs to correlate the CreateLoginProfile and ConsoleLogin events…T1136, T1136.003

YARA-L #

Panther #

References #

CreateOpenIDConnectProvider

#
Service
iam

Description

Creates an IAM entity that describes an identity provider (IdP) supporting OpenID Connect (OIDC), enabling federated identity for AWS.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "94e15be1-7002-4a3b-89ac-8a57e01c4040",
  "eventName": "CreateOpenIDConnectProvider",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "f916d1f7-795e-45b3-9717-6f03a7df5a26",
  "requestParameters": {
    "clientIDList": [
      "dw"
    ],
    "thumbprintList": [
      "0123456789abcdef0123456789abcdef01234567"
    ],
    "url": "https://dwfix.example.com"
  },
  "responseElements": {
    "openIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/dwfix.example.com"
  },
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM OIDC Provider Created by Rare User source high: Detects when an uncommon user or role creates an OpenID Connect (OIDC) Identity Provider in AWS IAM. OIDC providers enable web identity federation, allowing users authenticated by external identity providers (such as Google, GitHub, or custom OIDC-compliant providers) to assume IAM roles and access AWS resources. Adversaries who have gained administrative access may create rogue OIDC providers to establish persistent, federated access that survives credential rotation. This technique allows attackers to assume roles using tokens from an IdP they control. While OIDC provider creation is benign in some environments, it should still be validated against authorized infrastructure changes.T1078, T1078.004, T1484, T1484.002

CreatePolicyVersion

#
Service
iam

Description

Creates a new version of a managed IAM policy, allowing the policy document to be updated while retaining prior versions.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "33149175-90fd-4cff-a43b-408e4f848c1c",
  "eventName": "CreatePolicyVersion",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-02-23T00:02:30Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "111111111111",
  "requestID": "fa42b4b2-f34a-4673-8f9f-b25cf1f5005a",
  "requestParameters": {
    "policyArn": "arn:aws:iam::111111111111:policy/rhino_escalate",
    "policyDocument": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "AllowEverything",
          "Effect": "Allow",
          "Action": "*",
          "Resource": "*"
        }
      ]
    },
    "setAsDefault": true
  },
  "responseElements": {
    "policyVersion": {
      "createDate": "Feb 23, 2021 12:02:30 AM",
      "isDefaultVersion": true,
      "versionId": "v2"
    }
  },
  "sourceIPAddress": "73.15.72.101",
  "userAgent": "aws-cli/2.0.62 Python/3.9.0 Darwin/19.6.0 source/x86_64 command/iam.create-policy-version",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLHSQZPZFZ",
    "accountId": "111111111111",
    "arn": "arn:aws:iam::111111111111:user/rhino_escalate",
    "principalId": "AIDAYTOGP2RLNMCDVJZAY",
    "type": "IAMUser",
    "userName": "rhino_escalate"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::errorCode (splunk rule field)eqsuccess1 rulesplunk

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Customer Managed Policy Version Created or Default Version Set source medium: Identifies successful IAM API calls that create a new customer managed policy version or set the default version for an existing customer managed policy. Attackers with iam:CreatePolicyVersion or iam:SetDefaultPolicyVersion on a privileged policy can introduce a permissive policy document and activate it, escalating effective permissions without attaching a new policy. These APIs are high impact when the target policy is attached to powerful roles or users.T1098, T1548, T1548.005↳ also matches SetDefaultPolicyVersion

Splunk #

References #

CreateRole

#
Service
iam

Description

Creates a new IAM role with a specified trust policy, defining which principals can assume the role.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "ff709962-49b6-494d-8198-cdf0f7e8e666",
  "eventName": "CreateRole",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:54:39Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "b0561c15-e0c1-4e34-9337-6d60612f45be",
  "requestParameters": {
    "assumeRolePolicyDocument": {
      "Statement": [
        {
          "Action": [
            "sts:AssumeRole",
            "sts:SetSourceIdentity"
          ],
          "Effect": "Allow",
          "Principal": {
            "AWS": "123837392027"
          },
          "Sid": ""
        }
      ],
      "Version": "2012-10-17"
    },
    "maxSessionDuration": 3600,
    "path": "/",
    "roleName": "stratus-red-team-ec2-get-password-data-role",
    "tags": [
      {
        "key": "StratusRedTeam",
        "value": "true"
      }
    ]
  },
  "responseElements": {
    "role": {
      "arn": "arn:aws:iam::123837392027:role/stratus-red-team-ec2-get-password-data-role",
      "assumeRolePolicyDocument": "%7B%22Statement%22%3A%5B%7B%22Action%22%3A%5B%22sts%3AAssumeRole%22%2C%22sts%3ASetSourceIdentity%22%5D%2C%22Effect%22%3A%22Allow%22%2C%22Principal%22%3A%7B%22AWS%22%3A%22123837392027%22%7D%2C%22Sid%22%3A%22%22%7D%5D%2C%22Version%22%3A%222012-10-17%22%7D",
      "createDate": "Jul 10, 2023 11:54:39 AM",
      "path": "/",
      "roleId": "AROATFQR7NSCWWVLB7BES",
      "roleName": "stratus-red-team-ec2-get-password-data-role",
      "tags": [
        {
          "key": "StratusRedTeam",
          "value": "true"
        }
      ]
    }
  },
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_39f95f43-cd2f-4beb-b69e-be60b6fe1f57 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
SubjectUserName (chronicle rule field)regex_match\/i-.*$1 rulechronicle
principal.resource.type (Chronicle)eqAssumedRole1 rulechronicle
target.application (Chronicle)eqiam.amazonaws.com1 rulechronicle

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

Kusto #

YARA-L #

Panther #

References #

CreateSAMLProvider

#
Service
iam

Description

Creates an IAM resource that describes an identity provider supporting SAML 2.0, enabling federated users to sign in to AWS.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "eventVersion": "1.11",
  "userIdentity": {
    "type": "IAMUser",
    "principalId": "AIDAEXAMPLE00000000",
    "arn": "arn:aws:iam::123456789012:user/dw-sample-collector",
    "accountId": "123456789012",
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "userName": "dw-sample-collector"
  },
  "eventTime": "2026-07-02T16:24:49Z",
  "eventSource": "iam.amazonaws.com",
  "eventName": "CreateSAMLProvider",
  "awsRegion": "us-east-1",
  "sourceIPAddress": "203.0.113.5",
  "userAgent": "aws-cli/2.34.28 md/awscrt#0.31.2 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.14.3 md/pyimpl#CPython m/Z,E,n,b cfg/retry-mode#standard md/installer#exe md/distrib#debian.12 md/prompt#off md/command#iam.create-saml-provider",
  "requestParameters": {
    "sAMLMetadataDocument": "<EntityDescriptor entityID=\"https://dw-harness.example.com/idp\" xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"><IDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"><KeyDescriptor use=\"signing\"><KeyInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><X509Data><X509Certificate>MIICvjCCAaagAwIBAgIUVNptH+8rSfDyO0pX6G5rOI5yJ1wwDQYJKoZIhvcNAQELBQAwGTEXMBUGA1UEAwwOZHctaGFybmVzcy1pZHAwHhcNMjYwMTAxMDAwMDAwWhcNMzUxMjMwMDAwMDAwWjAZMRcwFQYDVQQDDA5kdy1oYXJuZXNzLWlkcDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANAthOHdlPVOMD4JkWPaI1k/2CXD8BgUwO2oamfNg8D/GuxFTyCwsIOEFCWF3S5jZkJtoKwcdjFt4tsY2rVRxWr2SDYHK5hPcnos6R/Cv46l57HsGW6mHHstQSnsiWYD7SEFNrjOIqtdORP9jwFWRFjYoEjb5AU9/fwH4WR4AnWy/p359kJ7cKhb/HbB1e7XqdpWpaSWbEaFeSB1z7BRhpVqrWyhbPzC0gmBL3UZ7Lbey47XJTG56Kp/GJLkKhBO0dFdcbVZ80Kjy7t2VbjzWpuWJ7WGnFxy1xaBobY0hE4eazJU/vndPfHL/QOqH3NxzPaRRYE5sYKtmfGYB8L3/3ECAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAHUY4IXIW4ExTcLJmaL054M5FMs0w5rqM0T2RLNXm4kGzmA7uKVON4E8Pl/uinv4FSgzgzkbFcxdIPk/BCVvjDUAgrdr3b+OhphP29b3s5W80gKPnKWEq4yir6L3Xcc1GCsFjUXqUvYfF+xTjss09jwiAzs/oJnw6L11FdZQWu13+iCjFiY+/pbyAjFz/6qevAFFhzSBJU2IkN1I8yILkMyjarYhfvuLYXs7TQMGsrbnlrFZnoS486gKQqZ+Y665qRkDiWvLS26F2ZknY+KKCC1gvWQClR/raZYp/0sZIlf3iamgJuwcwPEU6fxQ4p34fXez9cPK5wpwX6TwpEiQu2w==</X509Certificate></X509Data></KeyInfo></KeyDescriptor><SingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\" Location=\"https://dw-harness.example.com/sso\"/></IDPSSODescriptor></EntityDescriptor>",
    "name": "dw-harn-saml-2e3606",
    "tags": [
      {
        "key": "dw-harness",
        "value": "aws_harness"
      }
    ]
  },
  "responseElements": {
    "sAMLProviderArn": "arn:aws:iam::123456789012:saml-provider/dw-harn-saml-2e3606",
    "tags": [
      {
        "key": "dw-harness",
        "value": "aws_harness"
      }
    ]
  },
  "requestID": "39498b6a-cd80-4c4e-9306-12f1b858291d",
  "eventID": "b140a529-a172-4776-81d2-d4680b886c44",
  "readOnly": false,
  "eventType": "AwsApiCall",
  "managementEvent": true,
  "recipientAccountId": "123456789012",
  "eventCategory": "Management",
  "tlsDetails": {
    "tlsVersion": "TLSv1.3",
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM SAML Provider Created source high: Detects the creation of a new SAML Identity Provider (IdP) in AWS IAM. SAML providers enable federated authentication between AWS and external identity providers, allowing users to access AWS resources using credentials from the external IdP. Adversaries who have gained administrative access may create rogue SAML providers to establish persistent, federated access to AWS accounts that survives credential rotation. This technique allows attackers to assume roles and access resources by forging SAML assertions from an IdP they control. Creating a SAML provider is a rare administrative action that should be closely monitored and validated against authorized infrastructure changes.T1078, T1078.004, T1098, T1098.001, T1484, T1484.002

YARA-L #

Panther #

CreateUser

#
Service
iam

Description

Creates a new IAM user in the AWS account with a specified user name.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "648d0a9c-6d07-4c99-bd4e-9a27b3ad45d2",
  "eventName": "CreateUser",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:24:28Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "1c22459f-cf4c-4522-8b44-8a98be297097",
  "requestParameters": {
    "path": "/",
    "tags": [
      {
        "key": "StratusRedTeam",
        "value": "true"
      }
    ],
    "userName": "stratus-red-team-backdoor-u-user"
  },
  "responseElements": {
    "user": {
      "arn": "arn:aws:iam::123837392027:user/stratus-red-team-backdoor-u-user",
      "createDate": "Jul 10, 2023 12:24:28 PM",
      "path": "/",
      "tags": [
        {
          "key": "StratusRedTeam",
          "value": "true"
        }
      ],
      "userId": "AIDATFQR7NSC6QQTBIHPQ",
      "userName": "stratus-red-team-backdoor-u-user"
    }
  },
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_61e3765a-ab18-4da8-b5ac-4ec10986ed4b HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::userIdentity.type (elastic rule field)eqassumedrole2 ruleselastic
aws::errorCode (sigma rule field)eqaccessdenied1 rulesigma
user.id (elastic rule field)contains:i-1 ruleelastic
userAgent (sigma rule field)containss3 browser1 rulesigma

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

Elastic #

Kusto #

References #

CreateVirtualMFADevice

#
Service
iam

Description

Creates a new virtual MFA device and returns the QR code seed for enrollment.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "7e1c493d-c3c3-4f4a-ae4f-8cdd38970027",
  "eventName": "CreateVirtualMFADevice",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-01-30T23:02:23Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "140429656527",
  "requestID": "2fbe2074-55f8-4ec6-ad32-0b250803cf46",
  "requestParameters": {
    "path": "/",
    "virtualMFADeviceName": "strt_mfa_2"
  },
  "responseElements": {
    "virtualMFADevice": {
      "serialNumber": "arn:aws:iam::140429656527:mfa/strt_mfa_2"
    }
  },
  "sessionCredentialFromConsole": "true",
  "sourceIPAddress": "23.93.193.6",
  "userAgent": "AWS Internal",
  "userIdentity": {
    "accessKeyId": "ASIASBMSCQHH2YXNXJBU",
    "accountId": "140429656527",
    "arn": "arn:aws:iam::140429656527:root",
    "principalId": "140429656527",
    "sessionContext": {
      "attributes": {
        "creationDate": "2023-01-30T22:59:36Z",
        "mfaAuthenticated": "false"
      },
      "sessionIssuer": {},
      "webIdFederationData": {}
    },
    "type": "Root"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::userIdentity.accessKeyId (elastic rule field)starts_withASIA1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Virtual MFA Device Registration Attempt with Session Token source high: Detects attempts to create or enable a Virtual MFA device (CreateVirtualMFADevice, EnableMFADevice) using temporary AWS credentials (access keys beginning with ASIA). Session credentials are short-lived and tied to existing authenticated sessions, so using them to register or enable MFA devices is unusual. Adversaries who compromise temporary credentials may abuse this behavior to establish persistence by attaching new MFA devices to maintain access to high-privilege accounts despite key rotation or password resets.T1078, T1078.004, T1098, T1098.005, T1556, T1556.006↳ also matches EnableMFADevice

Splunk #

  • ASL AWS New MFA Method Registered For User source: The following analytic identifies the registration of a new Multi-Factor Authentication (MFA) method for an AWS account, as logged through Amazon Security Lake (ASL). It detects this activity by monitoring the CreateVirtualMFADevice API…T1556, T1556.006
  • AWS New MFA Method Registered For User source: The following analytic detects the registration of a new Multi-Factor Authentication (MFA) method for an AWS account. It leverages AWS CloudTrail logs to identify the CreateVirtualMFADevice event. This activity is significant because…T1556, T1556.006

Kusto #

YARA-L #

References #

DeactivateMFADevice

#
Service
iam

Description

Deactivates an MFA device previously associated with an IAM user, removing the MFA requirement for that user.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "bfe9fd91-0b4d-470a-9c03-77839151806d",
  "eventName": "DeactivateMFADevice",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2022-10-04T16:13:45Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "111111111111",
  "requestID": "d27cfb15-34b4-4c16-82bc-a55d15b4e47d",
  "requestParameters": {
    "serialNumber": "arn:aws:iam::111111111111:mfa/root-account-mfa-device",
    "userName": "AWS ROOT USER"
  },
  "responseElements": null,
  "sourceIPAddress": "142.254.89.27",
  "userAgent": "Coral/Netty4",
  "userIdentity": {
    "accessKeyId": "ASIASBMSCQHHWAIHMHUX",
    "accountId": "111111111111",
    "arn": "arn:aws:iam::111111111111:root",
    "principalId": "111111111111",
    "sessionContext": {
      "attributes": {
        "creationDate": "2022-10-04T16:13:23Z",
        "mfaAuthenticated": "true"
      },
      "sessionIssuer": {},
      "webIdFederationData": {}
    },
    "type": "Root"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Deactivation of MFA Device source high: Detects the deactivation of a Multi-Factor Authentication (MFA) device in AWS Identity and Access Management (IAM). MFA provides critical protection against unauthorized access by requiring a second factor for authentication. Adversaries or compromised administrators may deactivate MFA devices to weaken account protections, disable strong authentication, or prepare for privilege escalation or persistence. This rule monitors successful DeactivateMFADevice API calls, which represent the point at which MFA protection is actually removed.T1531, T1556, T1556.006

Splunk #

Kusto #

YARA-L #

References #

DeleteAccountPasswordPolicy

#
Service
iam

Description

Deletes the password policy for the AWS account, reverting to default password requirements.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "bbd8cb02-22ba-4d1b-b23d-b82975463376",
  "eventName": "DeleteAccountPasswordPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-01-26T21:23:22Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "111111111111",
  "requestID": "e3616938-1aac-4abd-9ea3-3b0367b85082",
  "requestParameters": null,
  "responseElements": null,
  "sessionCredentialFromConsole": "true",
  "sourceIPAddress": "23.93.193.7",
  "userAgent": "AWS Internal",
  "userIdentity": {
    "accessKeyId": "ASIASBMSCQHHWMDJXSE6",
    "accountId": "111111111111",
    "arn": "arn:aws:iam::111111111111:root",
    "principalId": "111111111111",
    "sessionContext": {
      "attributes": {
        "creationDate": "2023-01-26T18:44:21Z",
        "mfaAuthenticated": "false"
      },
      "sessionIssuer": {},
      "webIdFederationData": {}
    },
    "type": "Root"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Account Password Policy Deleted source medium: Identifies deletion of the AWS account password policy via DeleteAccountPasswordPolicy. The account password policy enforces minimum password requirements (length, complexity, rotation, and reuse) for all IAM users in the account. Deleting it removes those requirements account-wide, weakening authentication and easing follow-on credential-based attacks. This is an account-level change that legitimately occurs only during deliberate administration, so its deletion by an unexpected principal warrants review.T1556

Splunk #

YARA-L #

References #

DeleteGroup

#
Service
iam

Description

Deletes an IAM group, which must not have any users or attached policies before deletion.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "dc59b64a-7b8a-427a-a4d8-f3821d3ec138",
  "eventName": "DeleteGroup",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-04-07T18:49:22Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123599847101",
  "requestID": "67c58d59-82d7-4239-8e97-d0f47a2feacb",
  "requestParameters": {
    "groupName": "AtomicRedTeam_Victim"
  },
  "responseElements": null,
  "sourceIPAddress": "132.1.11.19",
  "userAgent": "console.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIAYTOGP2RLCMRQBJUI",
    "accountId": "123599847101",
    "arn": "arn:aws:sts::123599847101:assumed-role/okta_adm_role/bpatel@contoso.local",
    "principalId": "AROAIJIESMXKGCJRCTPR6:bpatel@contoso.local",
    "sessionContext": {
      "attributes": {
        "creationDate": "2021-04-07T18:47:15Z",
        "mfaAuthenticated": "false"
      },
      "sessionIssuer": {
        "accountId": "123599847101",
        "arn": "arn:aws:iam::123599847101:role/okta_adm_role",
        "principalId": "AROAIJIESMXKGCJRCTPR6",
        "type": "Role",
        "userName": "okta_adm_role"
      },
      "webIdFederationData": {}
    },
    "type": "AssumedRole"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
userAgent (splunk rule field)ne*.amazonaws.com2 rulessplunk
aws::errorCode (splunk rule field)inaccessdenied1 rulesplunk

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Group Deletion source low: Detects when an IAM group is deleted using the DeleteGroup API call. Deletion of an IAM group may represent a malicious attempt to remove audit trails, disrupt operations, or hide adversary activity (for example after using the group briefly for privileged access). This can be an indicator of impact or cleanup in an attack lifecycle.T1531

Splunk #

  • AWS IAM Failure Group Deletion source: The following analytic identifies failed attempts to delete AWS IAM groups. It leverages AWS CloudTrail logs to detect events where the DeleteGroup action fails due to errors like NoSuchEntityException, DeleteConflictException, or…T1098
  • AWS IAM Successful Group Deletion source: The following analytic identifies the successful deletion of an IAM group in AWS. It leverages CloudTrail logs to detect DeleteGroup events with a success status. This activity is significant as it could indicate potential changes in…T1069, T1069.003, T1098

Kusto #

References #

DeleteLoginProfile

#
Service
iam

Description

Deletes the password-based login profile for an IAM user, preventing console sign-in.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "7a903d75-9b9e-4b85-9426-d2bd6e4e399a",
  "eventName": "DeleteLoginProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:33Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "44ff0068-44ac-4b37-ac16-2f717172fa05",
  "requestParameters": {
    "userName": "stratus-red-team-nmfalu-gfjyeaypjt"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.20 (go1.17.6; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
requestParameters.passwordResetRequired (panther rule field)is_null1 rulepanther

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

  • IAM Login Profile Deleted source low: Detects when an IAM login profile is deleted, which may indicate an attacker removing access to a compromised account or an administrator performing account cleanup.T1531

Kusto #

Panther #

References #

DeleteSAMLProvider

#
Service
iam

Description

Deletes a SAML provider resource object in IAM, removing the federated identity configuration.

Example CloudTrail Event #

{
  "eventVersion": "1.11",
  "userIdentity": {
    "type": "IAMUser",
    "principalId": "AIDAEXAMPLE00000000",
    "arn": "arn:aws:iam::123456789012:user/dw-sample-collector",
    "accountId": "123456789012",
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "userName": "dw-sample-collector"
  },
  "eventTime": "2026-07-02T16:24:52Z",
  "eventSource": "iam.amazonaws.com",
  "eventName": "DeleteSAMLProvider",
  "awsRegion": "us-east-1",
  "sourceIPAddress": "203.0.113.5",
  "userAgent": "aws-cli/2.34.28 md/awscrt#0.31.2 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.14.3 md/pyimpl#CPython m/Z,E,n,b cfg/retry-mode#standard md/installer#exe md/distrib#debian.12 md/prompt#off md/command#iam.delete-saml-provider",
  "requestParameters": {
    "sAMLProviderArn": "arn:aws:iam::123456789012:saml-provider/dw-harn-saml-2e3606"
  },
  "responseElements": null,
  "requestID": "e0c5d7be-713c-46f2-81f8-17d1948047b8",
  "eventID": "9b474ecd-3466-43a4-8b0e-1c694af8ba0a",
  "readOnly": false,
  "eventType": "AwsApiCall",
  "managementEvent": true,
  "recipientAccountId": "123456789012",
  "eventCategory": "Management",
  "tlsDetails": {
    "tlsVersion": "TLSv1.3",
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
status (sigma rule field)eqsuccess1 rulesigma

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

  • AWS SAML Provider Deletion Activity source medium: Detects the deletion of an AWS SAML provider, potentially indicating malicious intent to disrupt administrative or security team access. An attacker can remove the SAML provider for the information security team or a team of system administrators, to make it difficult for them to work and investigate at the time of the attack and after it.T1078, T1078.004, T1531

YARA-L #

Panther #

DeleteVirtualMFADevice

#
Service
iam

Description

Deletes a virtual MFA device, permanently removing it from the account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "01f0258f-b83f-4c0f-8fd3-380473840db8",
  "eventName": "DeleteVirtualMFADevice",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2022-10-04T16:13:46Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "111111111111",
  "requestID": "5f192b01-d59d-4cee-8880-cc5cc6fd9b43",
  "requestParameters": {
    "serialNumber": "arn:aws:iam::111111111111:mfa/root-account-mfa-device"
  },
  "responseElements": null,
  "sessionCredentialFromConsole": "true",
  "sourceIPAddress": "AWS Internal",
  "userAgent": "AWS Internal",
  "userIdentity": {
    "accessKeyId": "ASIASBMSCQHHWAIHMHUX",
    "accountId": "111111111111",
    "arn": "arn:aws:iam::111111111111:root",
    "principalId": "111111111111",
    "sessionContext": {
      "attributes": {
        "creationDate": "2022-10-04T16:13:23Z",
        "mfaAuthenticated": "true"
      },
      "sessionIssuer": {},
      "webIdFederationData": {}
    },
    "type": "Root"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Splunk #

Kusto #

YARA-L #

References #

EnableMFADevice

#
Service
iam

Description

Associates and activates a virtual or hardware MFA device for an IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "92cc67e3-51ea-4570-934a-74c4a39b5f6d",
  "eventName": "EnableMFADevice",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-05-16T23:06:06Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "3dcce551-3a8c-11e7-a720-ddbe1c466b7d",
  "requestParameters": {
    "serialNumber": "arn:aws:iam::811596193553:mfa/piper",
    "userName": "piper"
  },
  "responseElements": null,
  "sourceIPAddress": "255.253.125.115",
  "userAgent": "signin.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIA3NFBHPFS1JN562D2",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/piper",
    "invokedBy": "signin.amazonaws.com",
    "principalId": "AIDA7ZI0RCYCPBIR0OIC3",
    "sessionContext": {
      "attributes": {
        "creationDate": "2017-05-16T23:05:01Z",
        "mfaAuthenticated": "false"
      }
    },
    "type": "IAMUser",
    "userName": "piper"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::userIdentity.accessKeyId (elastic rule field)starts_withASIA1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Virtual MFA Device Registration Attempt with Session Token source high: Detects attempts to create or enable a Virtual MFA device (CreateVirtualMFADevice, EnableMFADevice) using temporary AWS credentials (access keys beginning with ASIA). Session credentials are short-lived and tied to existing authenticated sessions, so using them to register or enable MFA devices is unusual. Adversaries who compromise temporary credentials may abuse this behavior to establish persistence by attaching new MFA devices to maintain access to high-privilege accounts despite key rotation or password resets.T1078, T1078.004, T1098, T1098.005, T1556, T1556.006↳ also matches CreateVirtualMFADevice

YARA-L #

References #

GetAccountAuthorizationDetails

#
Service
iam

Description

Retrieves information about all IAM users, groups, roles, and policies in the account, including their relationships.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "7ab75daa-659a-45e4-b43b-ea90a9cf2f6a",
  "eventName": "GetAccountAuthorizationDetails",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:43:34Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "871770c3-b97c-4f3a-b4a7-867c0332ae41",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "10.248.16.43",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "Boto3/1.26.165 Python/3.10.6 Linux/5.19.0-46-generic Botocore/1.29.165",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSCUXC3DDDP",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/benjamin",
    "principalId": "AIDATFQR7NSC5U6Q3TMDR",
    "type": "IAMUser",
    "userName": "benjamin"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

  • Many Recon Events source high: Detects multiple reconnaissance events, which may indicate an attacker attempting to gather information about the target environment. For each user ARN, it will look for three or more different reconnaissance events within a one minute timespan. If you are getting too many false positives, you can lower the timespan or increase the number of events required to trigger an alert.↳ also matches GetCredentialReport, GetPolicy, GetPolicyVersion, GetRole, GetRolePolicy, GetUser, and 8 more

References #

GetAccountSummary

#
Service
iam

Description

Retrieves a summary of IAM entity usage and quotas for the current AWS account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "2bc34359-3da6-47f3-aa38-f53989696988",
  "eventName": "GetAccountSummary",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:43:33Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "89bb1638-f2bf-4e56-9219-ea343a3ca179",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "10.248.16.43",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "Boto3/1.26.165 Python/3.10.6 Linux/5.19.0-46-generic Botocore/1.29.165",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSCUXC3DDDP",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/benjamin",
    "principalId": "AIDATFQR7NSC5U6Q3TMDR",
    "type": "IAMUser",
    "userName": "benjamin"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS Account Discovery By Rare User source low: Identifies the first time, within a lookback window, an identity performs AWS Organizations or IAM account enumeration APIs. Attackers with compromised credentials often map the organization (accounts, OUs, roots, delegated admins) and account-level metadata (aliases, summary) using the AWS CLI or SDKs. This is a New Terms rule detecting a rare occurrence of the cloud.account.id and user.name pair for these actions.T1087, T1087.004, T1580↳ also matches ListAccountAliases
  • AWS Discovery API Calls from VPN ASN for the First Time by Identity source high: Flags the first time a given IAM principal invokes a narrow set of high-signal discovery APIs (credential check, account and IAM enumeration, bucket and compute inventory, logging introspection) from a source IP whose autonomous system number (ASN) matches a curated set commonly associated with consumer VPN brands, VPN-heavy hosting, and provider networks referenced in public reporting on TeamPCP activity (for example 31173 Services AB AS39351 and Oy Crea Nova Hosting Solution Ltd). Broad List*/Describe* patterns are intentionally omitted to reduce noise. Hosting ASNs are heavily dual-use; validate source.as.number in your data and extend event.action only when your baseline allows it.T1526, T1580↳ also matches ListAccessKeys, ListAccountAliases, ListGroups, ListMFADevices, ListRoles, ListUsers

References #

GetCredentialReport

#
Service
iam

Description

Retrieves the credential report for the account, listing all IAM users and the status of their credentials.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "50341-8a2f-4390-bdce-6f20909cf71f",
  "eventName": "GetCredentialReport",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-03-05T14:53:50Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "8af64b85-01b3-11e7-bbcc-928594d0d9a6",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "252.123.210.192",
  "userAgent": "Boto3/1.4.4 Python/2.7.6 Linux/3.19.0-32-generic Botocore/1.5.7",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

  • Many Recon Events source high: Detects multiple reconnaissance events, which may indicate an attacker attempting to gather information about the target environment. For each user ARN, it will look for three or more different reconnaissance events within a one minute timespan. If you are getting too many false positives, you can lower the timespan or increase the number of events required to trigger an alert.↳ also matches GetAccountAuthorizationDetails, GetPolicy, GetPolicyVersion, GetRole, GetRolePolicy, GetUser, and 8 more

References #

GetLoginProfile

#
Service
iam

Description

Retrieves the console login profile (password metadata) for the specified IAM user, excluding the password itself.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "039a0915-d0ec-4c88-8a26-480d27382e5d",
  "eventName": "GetLoginProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:31Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "cc667366-8d67-4927-9d4e-16b9f3b44e5b",
  "requestParameters": {
    "userName": "stratus-red-team-nmfalu-gfjyeaypjt"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.20 (go1.17.6; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
userAgent (sigma rule field)containss3 browser1 rulesigma

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

References #

GetPolicy

#
Service
iam

Description

Retrieves metadata about a managed IAM policy, including its ARN, default version, and attachment count.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "4c222b18-3862-4f12-8c78-2addfff8b252",
  "eventName": "GetPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:06:32Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "23cf4c5b-42d2-4893-a2d5-cfcbddf88ba8",
  "requestParameters": {
    "policyArn": "arn:aws:iam::123837392027:policy/stratus-red-team-ec2lui-policy-pcccexdthk"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/4.67.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.261 (go1.19.8; linux; amd64) stratus-red-team_bc31c885-5ea0-4a6e-8bec-b6b10058bc44 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

References #

GetPolicyVersion

#
Service
iam

Description

Retrieves the policy document for a specific version of a managed IAM policy.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "1ff3fc17-8c64-46ba-a3f8-769ffb28c737",
  "eventName": "GetPolicyVersion",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:06:32Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "acf8de1a-950c-4628-a9b3-b3eb3c4c42e7",
  "requestParameters": {
    "policyArn": "arn:aws:iam::123837392027:policy/stratus-red-team-ec2lui-policy-pcccexdthk",
    "versionId": "v1"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/4.67.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.261 (go1.19.8; linux; amd64) stratus-red-team_bc31c885-5ea0-4a6e-8bec-b6b10058bc44 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

References #

GetRole

#
Service
iam

Description

Retrieves metadata about an IAM role, including its trust policy and attached managed policies.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "9011254b-8332-4db6-863f-61ac1e946b98",
  "eventName": "GetRole",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:54:40Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "45e2ab08-1bb0-4d60-bb18-f767e5ca5419",
  "requestParameters": {
    "roleName": "stratus-red-team-ec2-get-password-data-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_39f95f43-cd2f-4beb-b69e-be60b6fe1f57 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

References #

GetRolePolicy

#
Service
iam

Description

Retrieves the inline policy document embedded in an IAM role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "f14f1582-deff-46ee-9ad5-7231c6d13032",
  "eventName": "GetRolePolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:54:41Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "8c5e2107-1f8a-4053-a6a6-dd4abee7db6c",
  "requestParameters": {
    "policyName": "inline-policy",
    "roleName": "stratus-red-team-ec2-get-password-data-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_39f95f43-cd2f-4beb-b69e-be60b6fe1f57 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

References #

GetUser

#
Service
iam

Description

Retrieves metadata about an IAM user, including path, user ID, ARN, and creation date.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "be83b5ee-371f-425a-95ae-ff1a096219d4",
  "eventName": "GetUser",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:24:28Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "65f8afe5-43e4-4abc-ad8d-ecb055b0fa34",
  "requestParameters": {
    "userName": "stratus-red-team-backdoor-u-user"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_61e3765a-ab18-4da8-b5ac-4ec10986ed4b HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

References #

GetUserPolicy

#
Service
iam

Description

Retrieves the inline policy document embedded in an IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "The user policy with name list_apigateways cannot be found.",
  "eventID": "a2aceb5d-ac46-4be1-97c2-af50fc8e29e8",
  "eventName": "GetUserPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-02-20T01:57:42Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "f735b15a-f70f-11e6-b440-19bc158a9c45",
  "requestParameters": {
    "policyName": "list_apigateways",
    "userName": "Level5"
  },
  "responseElements": null,
  "sourceIPAddress": "255.253.125.115",
  "userAgent": "aws-cli/1.11.47 Python/2.7.3 Linux/3.2.0-4-amd64 botocore/1.5.10",
  "userIdentity": {
    "accessKeyId": "AKIAL34JFHCCL9Q1SPED",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level5",
    "principalId": "AIDA8N2W2FPU7NVSZRY0J",
    "type": "IAMUser",
    "userName": "Level5"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

References #

ListAccessKeys

#
Service
iam

Description

Returns metadata about the access keys associated with a specified IAM user, including key IDs, status, and creation dates.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "ae2be9cc-2dfd-42e1-a0ea-e5bc73b3d1f5",
  "eventName": "ListAccessKeys",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:33Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "edb6f59c-eb46-4b7f-8321-8a52d58b2f7c",
  "requestParameters": {
    "userName": "stratus-red-team-nmfalu-gfjyeaypjt"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.20 (go1.17.6; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
count_ (kusto rule field)gt501 rulekusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

Elastic #

  • AWS Discovery API Calls from VPN ASN for the First Time by Identity source high: Flags the first time a given IAM principal invokes a narrow set of high-signal discovery APIs (credential check, account and IAM enumeration, bucket and compute inventory, logging introspection) from a source IP whose autonomous system number (ASN) matches a curated set commonly associated with consumer VPN brands, VPN-heavy hosting, and provider networks referenced in public reporting on TeamPCP activity (for example 31173 Services AB AS39351 and Oy Crea Nova Hosting Solution Ltd). Broad List*/Describe* patterns are intentionally omitted to reduce noise. Hosting ASNs are heavily dual-use; validate source.as.number in your data and extend event.action only when your baseline allows it.T1526, T1580↳ also matches GetAccountSummary, ListAccountAliases, ListGroups, ListMFADevices, ListRoles, ListUsers

Kusto #

References #

ListAccountAliases

#
Service
iam

Description

Lists the alias associated with the current AWS account, if any.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "4beba905-d0cf-4588-af29-dd858cbd6ebc",
  "eventName": "ListAccountAliases",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-04-13T13:09:47Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "760111141337",
  "requestID": "63bb16ed-3ef0-4985-91c3-acd7407a215e",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "95.9.125.40",
  "userAgent": "Boto3/1.14.6 Python/3.9.4 Darwin/20.3.0 Botocore/1.17.6",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLIXX7QSZR",
    "accountId": "760111141337",
    "arn": "arn:aws:iam::760111141337:user/cloudmapper",
    "principalId": "AIDAYTOGP2RLK32EB7QZV",
    "type": "IAMUser",
    "userName": "cloudmapper"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS Discovery API Calls from VPN ASN for the First Time by Identity source high: Flags the first time a given IAM principal invokes a narrow set of high-signal discovery APIs (credential check, account and IAM enumeration, bucket and compute inventory, logging introspection) from a source IP whose autonomous system number (ASN) matches a curated set commonly associated with consumer VPN brands, VPN-heavy hosting, and provider networks referenced in public reporting on TeamPCP activity (for example 31173 Services AB AS39351 and Oy Crea Nova Hosting Solution Ltd). Broad List*/Describe* patterns are intentionally omitted to reduce noise. Hosting ASNs are heavily dual-use; validate source.as.number in your data and extend event.action only when your baseline allows it.T1526, T1580↳ also matches GetAccountSummary, ListAccessKeys, ListGroups, ListMFADevices, ListRoles, ListUsers
  • AWS Account Discovery By Rare User source low: Identifies the first time, within a lookback window, an identity performs AWS Organizations or IAM account enumeration APIs. Attackers with compromised credentials often map the organization (accounts, OUs, roots, delegated admins) and account-level metadata (aliases, summary) using the AWS CLI or SDKs. This is a New Terms rule detecting a rare occurrence of the cloud.account.id and user.name pair for these actions.T1087, T1087.004, T1580↳ also matches GetAccountSummary

References #

ListAttachedRolePolicies

#
Service
iam

Description

Lists all managed policies attached to a specified IAM role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "e4c53257-4e5f-4fee-8d51-8d040892cceb",
  "eventName": "ListAttachedRolePolicies",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:54:41Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "d3dfb16e-b12a-445f-b9cb-11a1aed66109",
  "requestParameters": {
    "roleName": "stratus-red-team-ec2-get-password-data-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_39f95f43-cd2f-4beb-b69e-be60b6fe1f57 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
count_ (kusto rule field)gt501 rulekusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

Kusto #

References #

ListAttachedUserPolicies

#
Service
iam

Description

Lists all managed policies attached to a specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "6594bdbf-d423-4c6c-92ff-fcbbe4175f69",
  "eventName": "ListAttachedUserPolicies",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-02-12T21:18:30Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "cd35da1e-f168-11e6-9e5f-249185d6fc34",
  "requestParameters": {
    "userName": "backup"
  },
  "responseElements": null,
  "sourceIPAddress": "255.253.125.115",
  "userAgent": "console.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIA79EXPHZ8SRL55OOE",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:root",
    "principalId": "811596193553",
    "sessionContext": {
      "attributes": {
        "creationDate": "2017-02-12T19:57:05Z",
        "mfaAuthenticated": "false"
      }
    },
    "type": "Root"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
count_ (kusto rule field)gt501 rulekusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

Kusto #

References #

ListGroups

#
Service
iam

Description

Returns a paginated list of IAM groups in the current AWS account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "User: arn:aws:iam::731544447609:user/cloudsploit is not authorized to perform: iam:ListGroups on resource: arn:aws:iam::731544447609:group/",
  "eventCategory": "Management",
  "eventID": "4f7c9f4a-5122-4d7b-a434-47776daf1e7e",
  "eventName": "ListGroups",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-04-13T11:35:16Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "731544447609",
  "requestID": "a90a9234-bfbf-4a79-a952-14d9f85f9890",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "34.12.134.20",
  "userAgent": "aws-sdk-nodejs/2.885.0 linux/v14.16.1 callback",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLGBSBSMH2",
    "accountId": "731544447609",
    "arn": "arn:aws:iam::731544447609:user/cloudsploit",
    "principalId": "AIDAYTOGP2RLMDEPWZWMJ",
    "type": "IAMUser",
    "userName": "cloudsploit"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

Elastic #

  • AWS Discovery API Calls from VPN ASN for the First Time by Identity source high: Flags the first time a given IAM principal invokes a narrow set of high-signal discovery APIs (credential check, account and IAM enumeration, bucket and compute inventory, logging introspection) from a source IP whose autonomous system number (ASN) matches a curated set commonly associated with consumer VPN brands, VPN-heavy hosting, and provider networks referenced in public reporting on TeamPCP activity (for example 31173 Services AB AS39351 and Oy Crea Nova Hosting Solution Ltd). Broad List*/Describe* patterns are intentionally omitted to reduce noise. Hosting ASNs are heavily dual-use; validate source.as.number in your data and extend event.action only when your baseline allows it.T1526, T1580↳ also matches GetAccountSummary, ListAccessKeys, ListAccountAliases, ListMFADevices, ListRoles, ListUsers

Panther #

References #

ListMFADevices

#
Service
iam

Description

Returns a list of MFA devices associated with an IAM user, or all virtual MFA devices in the account when no user is specified.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "db82f579-85c2-4ce3-b2e4-d7d015dff647",
  "eventName": "ListMFADevices",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:34Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "f3891624-2bd2-4b3c-a646-d1f2c3bb14ad",
  "requestParameters": {
    "userName": "stratus-red-team-login-profile-user"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS Discovery API Calls from VPN ASN for the First Time by Identity source high: Flags the first time a given IAM principal invokes a narrow set of high-signal discovery APIs (credential check, account and IAM enumeration, bucket and compute inventory, logging introspection) from a source IP whose autonomous system number (ASN) matches a curated set commonly associated with consumer VPN brands, VPN-heavy hosting, and provider networks referenced in public reporting on TeamPCP activity (for example 31173 Services AB AS39351 and Oy Crea Nova Hosting Solution Ltd). Broad List*/Describe* patterns are intentionally omitted to reduce noise. Hosting ASNs are heavily dual-use; validate source.as.number in your data and extend event.action only when your baseline allows it.T1526, T1580↳ also matches GetAccountSummary, ListAccessKeys, ListAccountAliases, ListGroups, ListRoles, ListUsers

References #

ListPolicies

#
Service
iam

Description

Lists IAM policies, with filters available to scope results to AWS-managed, customer-managed, or locally attached policies.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "User: arn:aws:iam::731544447609:user/cloudsploit is not authorized to perform: iam:ListPolicies on resource: policy path /",
  "eventCategory": "Management",
  "eventID": "efc8ff8b-509e-44f4-8e02-5cf8bbbf718e",
  "eventName": "ListPolicies",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-04-13T11:35:16Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "731544447609",
  "requestID": "0ae30566-0182-4e27-8270-995d4e5f22b7",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "34.12.134.20",
  "userAgent": "aws-sdk-nodejs/2.885.0 linux/v14.16.1 callback",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLGBSBSMH2",
    "accountId": "731544447609",
    "arn": "arn:aws:iam::731544447609:user/cloudsploit",
    "principalId": "AIDAYTOGP2RLMDEPWZWMJ",
    "type": "IAMUser",
    "userName": "cloudsploit"
  }
}

References #

ListRoles

#
Service
iam

Description

Returns a paginated list of IAM roles in the current AWS account, optionally filtered by path prefix.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "17acbb42-c19f-4865-8f27-a9a146384e51",
  "eventName": "ListRoles",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-04-13T16:53:12Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "760111141337",
  "requestID": "32be7ced-bada-44f1-9541-d6dce23d83cd",
  "requestParameters": {
    "maxItems": 1000
  },
  "responseElements": null,
  "sourceIPAddress": "40.126.27.32",
  "userAgent": "aws-sdk-dotnet-45/3.3.9.10 aws-sdk-dotnet-core/3.3.31.2 .NET_Runtime/4.0 .NET_Framework/4.0 OS/Microsoft_Windows_NT_6.2.9200.0 ClientAsync",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLKYX5GZBZ",
    "accountId": "760111141337",
    "arn": "arn:aws:iam::760111141337:user/test_saml",
    "principalId": "AIDAYTOGP2RLPKVRDXR7E",
    "type": "IAMUser",
    "userName": "test_saml"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
count_ (kusto rule field)gt501 rulekusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

Elastic #

  • AWS Discovery API Calls from VPN ASN for the First Time by Identity source high: Flags the first time a given IAM principal invokes a narrow set of high-signal discovery APIs (credential check, account and IAM enumeration, bucket and compute inventory, logging introspection) from a source IP whose autonomous system number (ASN) matches a curated set commonly associated with consumer VPN brands, VPN-heavy hosting, and provider networks referenced in public reporting on TeamPCP activity (for example 31173 Services AB AS39351 and Oy Crea Nova Hosting Solution Ltd). Broad List*/Describe* patterns are intentionally omitted to reduce noise. Hosting ASNs are heavily dual-use; validate source.as.number in your data and extend event.action only when your baseline allows it.T1526, T1580↳ also matches GetAccountSummary, ListAccessKeys, ListAccountAliases, ListGroups, ListMFADevices, ListUsers

Kusto #

References #

ListUserPolicies

#
Service
iam

Description

Lists the names of inline policies embedded in a specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "bdaafbd9-5fb8-49af-ac60-a39337bbc",
  "eventName": "ListUserPolicies",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2018-10-15T19:51:18Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "aeb2b2a4-d0b3-11e8-adf2-fb1dda9ce0ce",
  "requestParameters": {
    "maxItems": 1,
    "userName": "backup"
  },
  "responseElements": null,
  "sourceIPAddress": "255.0.85.253",
  "userAgent": "Boto3/1.9.20 Python/2.7.15 Linux/4.16.0-kali2-amd64 Botocore/1.12.20",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

References #

ListUsers

#
Service
iam

Description

Returns a paginated list of IAM users in the current AWS account, optionally filtered by path prefix.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "4a81a319-3f88-4f76-a01d-4f206b7e1c0d",
  "eventName": "ListUsers",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:43:33Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "fd7ec609-e7ab-4152-a56d-ec20b1845da3",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "10.248.16.43",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "Boto3/1.26.165 Python/3.10.6 Linux/5.19.0-46-generic Botocore/1.29.165",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSCUXC3DDDP",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/benjamin",
    "principalId": "AIDATFQR7NSC5U6Q3TMDR",
    "type": "IAMUser",
    "userName": "benjamin"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

Elastic #

  • AWS Discovery API Calls from VPN ASN for the First Time by Identity source high: Flags the first time a given IAM principal invokes a narrow set of high-signal discovery APIs (credential check, account and IAM enumeration, bucket and compute inventory, logging introspection) from a source IP whose autonomous system number (ASN) matches a curated set commonly associated with consumer VPN brands, VPN-heavy hosting, and provider networks referenced in public reporting on TeamPCP activity (for example 31173 Services AB AS39351 and Oy Crea Nova Hosting Solution Ltd). Broad List*/Describe* patterns are intentionally omitted to reduce noise. Hosting ASNs are heavily dual-use; validate source.as.number in your data and extend event.action only when your baseline allows it.T1526, T1580↳ also matches GetAccountSummary, ListAccessKeys, ListAccountAliases, ListGroups, ListMFADevices, ListRoles

References #

PutRolePolicy

#
Service
iam

Description

Creates or updates an inline policy document embedded directly in the specified IAM role.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "6c1eed73-00ee-4810-8009-c9ce5990c100",
  "eventName": "PutRolePolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:54:39Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "65317b60-bffe-41d6-834a-3829d8263189",
  "requestParameters": {
    "policyDocument": {
      "Statement": [
        {
          "Action": [
            "ec2:Describe*"
          ],
          "Effect": "Allow",
          "Resource": "*"
        }
      ],
      "Version": "2012-10-17"
    },
    "policyName": "inline-policy",
    "roleName": "stratus-red-team-ec2-get-password-data-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_39f95f43-cd2f-4beb-b69e-be60b6fe1f57 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
Effect (kusto rule field)eqallow11 ruleskusto
Resource (kusto rule field)eq*11 ruleskusto
aws::errorCode (kusto rule field)is_null11 ruleskusto
aws::errorMessage (kusto rule field)is_null11 ruleskusto
Action (kusto rule field)containsiam:*5 ruleskusto
Action (kusto rule field)containsiam:passrole5 ruleskusto
Action (kusto rule field)containskms:delete2 ruleskusto
Action (kusto rule field)containscloudformation:*1 rulekusto
Action (kusto rule field)containscloudformation:create*1 rulekusto
Action (kusto rule field)containscloudformation:createstack1 rulekusto
Action (kusto rule field)containscloudformation:describe*1 rulekusto
Action (kusto rule field)containscloudformation:describestacks1 rulekusto
Action (kusto rule field)containsdatapipeline:*1 rulekusto
Action (kusto rule field)containsdatapipeline:activate*1 rulekusto
Condition (kusto rule field)is_null2 ruleskusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

Kusto #

Panther #

References #

PutUserPolicy

#
Service
iam

Description

Creates or updates an inline policy document embedded directly in the specified IAM user.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "LimitExceededException",
  "errorMessage": "Maximum policy size of 2048 bytes exceeded for user Level6",
  "eventID": "30ec1b1a-8588-434e-b898-5cbb4fa20aef",
  "eventName": "PutUserPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-03-03T16:39:31Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "eba7a66d-3dd2-11e9-afa8-e9aeabed92ad",
  "requestParameters": {
    "policyDocument": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Action": [
            "acm:Describe*",
            "acm:List*",
            "application-autoscaling:Describe*",
            "appmesh:Describe*",
            "appmesh:List*",
            "appsync:List*",
            "athena:List*",
            "autoscaling:Describe*",
            "batch:DescribeComputeEnvironments",
            "batch:DescribeJobDefinitions",
            "chime:List*",
            "cloud9:Describe*",
            "cloud9:ListEnvironments",
            "clouddirectory:ListDirectories",
            "cloudformation:DescribeStack*",
            "cloudformation:GetTemplate",
            "cloudformation:ListStack*",
            "cloudformation:GetStackPolicy",
            "cloudfront:Get*",
            "cloudfront:List*",
            "cloudhsm:ListHapgs",
            "cloudhsm:ListHsms",
            "cloudhsm:ListLunaClients",
            "cloudsearch:DescribeDomains",
            "cloudsearch:DescribeServiceAccessPolicies",
            "cloudtrail:DescribeTrails",
            "cloudtrail:GetEventSelectors",
            "cloudtrail:GetTrailStatus",
            "cloudtrail:ListTags",
            "cloudwatch:Describe*",
            "codebuild:ListProjects",
            "codecommit:BatchGetRepositories",
            "codecommit:GetBranch",
            "codecommit:GetObjectIdentifier",
            "codecommit:GetRepository",
            "codecommit:List*",
            "codedeploy:Batch*",
            "codedeploy:Get*",
            "codedeploy:List*",
            "codepipeline:ListPipelines",
            "codestar:Describe*",
            "codestar:List*",
            "cognito-identity:ListIdentityPools",
            "cognito-idp:ListUserPools",
            "cognito-sync:Describe*",
            "cognito-sync:List*",
            "comprehend:Describe*",
            "comprehend:List*",
            "config:Deliver*",
            "config:Describe*",
            "config:Get*",
            "datapipeline:DescribeObjects",
            "datapipeline:DescribePipelines",
            "datapipeline:EvaluateExpression",
            "datapipeline:GetPipelineDefinition",
            "datapipeline:ListPipelines",
            "datapipeline:QueryObjects",
            "datapipeline:ValidatePipelineDefinition",
            "datasync:Describe*",
            "datasync:List*",
            "dax:Describe*",
            "dax:ListTags",
            "directconnect:Describe*",
            "dms:Describe*",
            "dms:ListTagsForResource",
            "ds:DescribeDirectories",
            "dynamodb:DescribeContinuousBackups",
            "dynamodb:DescribeGlobalTable",
            "dynamodb:DescribeTable",
            "dynamodb:DescribeTimeToLive",
            "dynamodb:ListBackups",
            "dynamodb:ListGlobalTables",
            "dynamodb:ListStreams",
            "dynamodb:ListTables",
            "ec2:Describe*",
            "ecr:DescribeRepositories",
            "ecr:GetRepositoryPolicy",
            "ecs:Describe*",
            "ecs:List*",
            "eks:DescribeCluster",
            "eks:ListClusters",
            "elasticache:Describe*",
            "elasticbeanstalk:Describe*",
            "elasticfilesystem:DescribeFileSystems",
            "elasticloadbalancing:Describe*",
            "elasticmapreduce:Describe*",
            "elasticmapreduce:ListClusters",
            "elasticmapreduce:ListInstances",
            "es:Describe*",
            "es:ListDomainNames",
            "events:DescribeEventBus",
            "events:ListRules",
            "firehose:Describe*",
            "firehose:List*",
            "fsx:Describe*",
            "fsx:List*",
            "gamelift:ListBuilds",
            "gamelift:ListFleets",
            "glacier:DescribeVault",
            "glacier:GetVaultAccessPolicy",
            "glacier:ListVaults",
            "globalaccelerator:Describe*",
            "globalaccelerator:List*",
            "greengrass:List*",
            "guardduty:Get*",
            "guardduty:List*",
            "iam:GenerateCredentialReport",
            "iam:Get*",
            "iam:List*",
            "iam:SimulateCustomPolicy",
            "iam:SimulatePrincipalPolicy",
            "iot:Describe*",
            "iot:List*",
            "kinesis:DescribeStream",
            "kinesis:ListStreams",
            "kinesis:ListTagsForStream",
            "kinesisanalytics:ListApplications",
            "kms:Describe*",
            "kms:List*",
            "lambda:GetAccountSettings",
            "lambda:GetPolicy",
            "lambda:List*",
            "license-manager:List*",
            "logs:Describe*",
            "logs:ListTagsLogGroup",
            "machinelearning:DescribeMLModels",
            "mediaconnect:Describe*",
            "mediaconnect:List*",
            "mediastore:GetContainerPolicy",
            "mediastore:ListContainers",
            "opsworks-cm:DescribeServers",
            "organizations:List*",
            "quicksight:Describe*",
            "quicksight:List*",
            "ram:List*",
            "rds:Describe*",
            "rds:DownloadDBLogFilePortion",
            "rds:ListTagsForResource",
            "redshift:Describe*",
            "rekognition:Describe*",
            "rekognition:List*",
            "robomaker:Describe*",
            "robomaker:List*",
            "route53:Get*",
            "route53:List*",
            "route53domains:GetDomainDetail",
            "route53domains:GetOperationDetail",
            "route53domains:ListDomains",
            "route53domains:ListOperations",
            "route53domains:ListTagsForDomain",
            "route53resolver:List*",
            "s3:ListAllMyBuckets",
            "sagemaker:Describe*",
            "sagemaker:List*",
            "sdb:DomainMetadata",
            "sdb:ListDomains",
            "securityhub:Get*",
            "securityhub:List*",
            "serverlessrepo:GetApplicationPolicy",
            "serverlessrepo:List*",
            "ses:GetIdentityDkimAttributes",
            "ses:GetIdentityVerificationAttributes",
            "ses:ListIdentities",
            "ses:ListVerifiedEmailAddresses",
            "shield:Describe*",
            "shield:List*",
            "snowball:ListClusters",
            "snowball:ListJobs",
            "sns:GetTopicAttributes",
            "sns:ListSubscriptionsByTopic",
            "sns:ListTopics",
            "sqs:GetQueueAttributes",
            "sqs:ListQueues",
            "ssm:Describe*",
            "ssm:ListDocuments",
            "states:ListStateMachines",
            "storagegateway:DescribeBandwidthRateLimit",
            "storagegateway:DescribeCache",
            "storagegateway:DescribeCachediSCSIVolumes",
            "storagegateway:DescribeGatewayInformation",
            "storagegateway:DescribeMaintenanceStartTime",
            "storagegateway:DescribeNFSFileShares",
            "storagegateway:DescribeSnapshotSchedule",
            "storagegateway:DescribeStorediSCSIVolumes",
            "storagegateway:DescribeTapeArchives",
            "storagegateway:DescribeTapeRecoveryPoints",
            "storagegateway:DescribeTapes",
            "storagegateway:DescribeUploadBuffer",
            "storagegateway:DescribeVTLDevices",
            "storagegateway:DescribeWorkingStorage",
            "storagegateway:List*",
            "tag:GetResources",
            "tag:GetTagKeys",
            "transfer:Describe*",
            "transfer:List*",
            "translate:List*",
            "trustedadvisor:Describe*",
            "waf:ListWebACLs",
            "waf-regional:ListWebACLs",
            "workspaces:Describe*"
          ],
          "Resource": "*",
          "Effect": "Allow"
        }
      ]
    },
    "policyName": "MySecurityAudit",
    "userName": "Level6"
  },
  "responseElements": null,
  "sourceIPAddress": "2.7.223.252",
  "userAgent": "console.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIA6IWSYSPXI70LJ166",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:root",
    "principalId": "811596193553",
    "sessionContext": {
      "attributes": {
        "creationDate": "2019-03-03T16:27:05Z",
        "mfaAuthenticated": "true"
      }
    },
    "type": "Root",
    "userName": "flaws"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
Effect (kusto rule field)eqallow11 ruleskusto
Resource (kusto rule field)eq*11 ruleskusto
aws::errorCode (kusto rule field)is_null11 ruleskusto
aws::errorMessage (kusto rule field)is_null11 ruleskusto
Action (kusto rule field)containsiam:*5 ruleskusto
Action (kusto rule field)containsiam:passrole5 ruleskusto
Action (kusto rule field)containskms:delete2 ruleskusto
Action (kusto rule field)containscloudformation:*1 rulekusto
Action (kusto rule field)containscloudformation:create*1 rulekusto
Action (kusto rule field)containscloudformation:createstack1 rulekusto
Action (kusto rule field)containscloudformation:describe*1 rulekusto
Action (kusto rule field)containscloudformation:describestacks1 rulekusto
Action (kusto rule field)containsdatapipeline:*1 rulekusto
Action (kusto rule field)containsdatapipeline:activate*1 rulekusto
Condition (kusto rule field)is_null2 ruleskusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

Elastic #

Kusto #

YARA-L #

Panther #

References #

SetDefaultPolicyVersion

#
Service
iam

Description

Sets the specified version of a managed IAM policy as the default active version for the policy.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "742f6e55-4bc7-49e2-965f-56ffbc46a980",
  "eventName": "SetDefaultPolicyVersion",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-03-02T21:05:49Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "111111111111",
  "requestID": "3bdf8738-2eab-4ae8-a858-2e2a4ccfc66b",
  "requestParameters": {
    "policyArn": "arn:aws:iam::111111111111:policy/VulnerablePolicy",
    "versionId": "v1"
  },
  "responseElements": null,
  "sourceIPAddress": "73.15.72.101",
  "userAgent": "aws-cli/2.0.62 Python/3.9.0 Darwin/19.6.0 source/x86_64 command/iam.set-default-policy-version",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLKMZDMPVA",
    "accountId": "111111111111",
    "arn": "arn:aws:iam::111111111111:user/AtomicRedTeam",
    "principalId": "AIDAYTOGP2RLESDK2NOSX",
    "type": "IAMUser",
    "userName": "AtomicRedTeam"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Customer Managed Policy Version Created or Default Version Set source medium: Identifies successful IAM API calls that create a new customer managed policy version or set the default version for an existing customer managed policy. Attackers with iam:CreatePolicyVersion or iam:SetDefaultPolicyVersion on a privileged policy can introduce a permissive policy document and activate it, escalating effective permissions without attaching a new policy. These APIs are high impact when the target policy is attached to powerful roles or users.T1098, T1548, T1548.005↳ also matches CreatePolicyVersion

Splunk #

  • AWS SetDefaultPolicyVersion source: The following analytic detects when a user sets a default policy version in AWS. It leverages AWS CloudTrail logs to identify the SetDefaultPolicyVersion event from the IAM service. This activity is significant because attackers may…T1078, T1078.004

References #

UpdateAccountPasswordPolicy

#
Service
iam

Description

Updates the password policy for the AWS account, setting requirements such as minimum length, complexity, and expiration.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "ccc1d5c2-dd72-4798-8023-ed5a4205f2d5",
  "eventName": "UpdateAccountPasswordPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-01-26T22:38:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "111111111111",
  "requestID": "7685efa9-5c56-451a-bd25-3db520108589",
  "requestParameters": {
    "allowUsersToChangePassword": false,
    "hardExpiry": false,
    "minimumPasswordLength": 6,
    "requireLowercaseCharacters": false,
    "requireNumbers": false,
    "requireSymbols": true,
    "requireUppercaseCharacters": false
  },
  "responseElements": null,
  "sessionCredentialFromConsole": "true",
  "sourceIPAddress": "23.93.193.7",
  "userAgent": "AWS Internal",
  "userIdentity": {
    "accessKeyId": "ASIASBMSCQHHZZ4THONS",
    "accountId": "111111111111",
    "arn": "arn:aws:iam::111111111111:root",
    "principalId": "111111111111",
    "sessionContext": {
      "attributes": {
        "creationDate": "2023-01-26T22:10:41Z",
        "mfaAuthenticated": "false"
      },
      "sessionIssuer": {},
      "webIdFederationData": {}
    },
    "type": "Root"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
eventType (panther rule field)neAwsServiceEvent1 rulepanther

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Splunk #

YARA-L #

Panther #

References #

UpdateAssumeRolePolicy

#
Service
iam

Description

Updates the trust policy (assume-role policy document) for an IAM role, changing which principals are permitted to assume it.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "059cf0ed-af91-40a6-9c89-a8a4fb81dc65",
  "eventName": "UpdateAssumeRolePolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:24Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "a3fdd252-b6b1-4660-b72a-4bf30d452799",
  "requestParameters": {
    "policyDocument": {
      "Statement": [
        {
          "Action": "sts:AssumeRole",
          "Effect": "Allow",
          "Principal": {
            "Service": "ec2.amazonaws.com"
          },
          "Sid": ""
        }
      ],
      "Version": "2012-10-17"
    },
    "roleName": "stratus-red-team-backdoor-r-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "stratus-red-team_ab44e842-2a25-45ad-a141-42e46aab0f86",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
aws::errorCode (elastic rule field)eqmalformedpolicydocumentexception1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Principal Enumeration via UpdateAssumeRolePolicy source medium: Detects repeated failed attempts to update an IAM role’s trust policy in an AWS account, consistent with role and user enumeration techniques. In this technique, an attacker who controls credentials in the current account repeatedly calls UpdateAssumeRolePolicy on a single role, cycling through guessed cross-account role or user ARNs as the principal. When those principals are invalid, IAM returns MalformedPolicyDocumentException, producing a burst of failed UpdateAssumeRolePolicy events. This rule alerts on that brute-force pattern originating from this account, which may indicate that the account is being used as attack infrastructure or that offensive tooling (such as Pacu) is running here. Note: this rule does not detect other accounts enumerating roles, because those API calls are logged in the caller’s account, not the target account.T1069, T1069.003, T1087, T1087.004, T1110
  • AWS IAM Assume Role Policy Update source low: Identifies AWS CloudTrail events where an IAM role's trust policy has been updated by an IAM user or Assumed Role identity. The trust policy is a JSON document that defines which principals are allowed to assume the role. An attacker may attempt to modify this policy to gain the privileges of the role. This is a New Terms rule, which means it will only trigger once for each unique combination of the "cloud.account.id", "user.name" and "entity.target.id" fields, that have not been seen making this API request.T1078, T1078.004, T1098, T1098.003

References #

UpdateLoginProfile

#
Service
iam

Description

Changes the password of the console login profile for the specified IAM user.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "033580e7-bbba-4b70-be63-7eeddb04b842",
  "eventName": "UpdateLoginProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-03-05T01:02:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "111111111111",
  "requestID": "08f38478-1749-4fb5-b07c-469d3448777a",
  "requestParameters": {
    "userName": "AtomicRedTeam"
  },
  "responseElements": null,
  "sourceIPAddress": "73.15.72.101",
  "userAgent": "aws-cli/2.0.62 Python/3.9.2 Darwin/19.6.0 source/x86_64 command/iam.update-login-profile",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLLAA6NJUM",
    "accountId": "111111111111",
    "arn": "arn:aws:iam::111111111111:user/bhavin_cli",
    "principalId": "AIDAYTOGP2RLEHRX5YWNV",
    "type": "IAMUser",
    "userName": "bhavin_cli"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
requestParameters.passwordResetRequired (panther rule field)is_null2 rulespanther
SubjectUserName (chronicle rule field)regex_match\/i-.*$1 rulechronicle
match (splunk rule field)eq01 rulesplunk
principal.resource.type (Chronicle)eqAssumedRole1 rulechronicle
target.application (Chronicle)eqiam.amazonaws.com1 rulechronicle
userAgent (splunk rule field)neconsole.amazonaws.com1 rulesplunk

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

  • AWS User Login Profile Was Modified source high: Detects activity when someone is changing passwords on behalf of other users. An attacker with the "iam:UpdateLoginProfile" permission on other users can change the password used to login to the AWS console on any user that already has a login profile setup.T1098

Elastic #

  • AWS IAM Login Profile Created or Modified for an IAM User source medium: Identifies creation or modification of a console login profile for an AWS IAM user via CreateLoginProfile or UpdateLoginProfile. A login profile enables password-based console sign-in for an IAM user. Adversaries who obtain programmatic credentials may create a login profile to add persistent interactive console access, or update an existing profile to reset another user's password and take over the account, even after the original access keys are rotated. Because console access for IAM users is increasingly provisioned through federation or IAM Identity Center, direct use of these APIs by an unexpected principal warrants review. This rule targets IAM users (the userName parameter is present); creation of a login profile for the account root user is covered by a separate rule.T1098, T1098.001↳ also matches CreateLoginProfile
  • AWS IAM Credentials Added to a Bedrock API Key Phantom User source high: Identifies standard IAM credentials being added to an Amazon Bedrock API key phantom user, whose user name starts with "BedrockAPIKey-": either a long-term access key (CreateAccessKey) or a console password / login profile (CreateLoginProfile, UpdateLoginProfile). When a long-term Bedrock API key is generated through the AWS Console, AWS silently provisions a "BedrockAPIKey-<id>" IAM user with the AmazonBedrockLimitedAccess managed policy. That user is intended only to back a Bedrock bearer token and should never hold standard programmatic keys or interactive console access. Adding either converts a Bedrock-scoped identity into general-purpose IAM credentials that inherit the policy's Bedrock control-plane and IAM, VPC, and KMS reconnaissance permissions and that persist after the Bedrock API key is revoked. This is the privilege-escalation and persistence pivot documented for Bedrock API key phantom users, and there is no legitimate workflow that produces it.T1098, T1098.001↳ also matches CreateAccessKey, CreateLoginProfile

Splunk #

  • ASL AWS UpdateLoginProfile source: The following analytic detects an AWS CloudTrail event where a user with permissions updates the login profile of another user. It leverages CloudTrail logs to identify instances where the user making the change is different from the user…T1136, T1136.003
  • AWS UpdateLoginProfile source: The following analytic detects an AWS CloudTrail event where a user with permissions updates the login profile of another user. It leverages CloudTrail logs to identify instances where the user making the change is different from the user…T1136, T1136.003

YARA-L #

Panther #

References #

UpdateSAMLProvider

#
Service
iam

Description

Updates the metadata document for an existing SAML provider in IAM.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "51b6d859-0cc4-4591-ba76-3494f3f43832",
  "eventName": "UpdateSAMLProvider",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-01-20T03:12:39Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "111111111111",
  "requestID": "83d621ad-5b33-4ff0-acf4-0043cb432844",
  "requestParameters": {
    "sAMLMetadataDocument": "<?xml version=\"1.0\" encoding=\"utf-8\"?><EntityDescriptor ID=\"_6898aaf1-1639-44d4-956b-5bf936af37f1\" entityID=\"https://sts.windows.net/0e8108b1-18e9-41a4-961b-dfcddf92ef08/\" xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\"><Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\" /><SignatureMethod Algorithm=\"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256\" /><Reference URI=\"#_6898aaf1-1639-44d4-956b-5bf936af37f1\"><Transforms><Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\" /><Transform Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\" /></Transforms><DigestMethod Algorithm=\"http://www.w3.org/2001/04/xmlenc#sha256\" /><DigestValue>ncp+pf0e75KdoRTy1PQeu74OKXjcVNM+bnT7Ns6cwQI=</DigestValue></Reference></SignedInfo><SignatureValue>J9PRCq201gGMzMtt4Ye+gsM7xOgrNvDg/usqIMvsyUy2r/MeTBz5FKCK+Okjwm49vyTWUoUioYGiwm/TD2Knv59g1zy+/OjZcmBJgDrCmksFJdkwG/fDlOZQNGuj2qh1CEKL5n6Ipy2z1dQ9XUmhhndtXNnjdZ0fJ9QWufWoxveSCLHcU7eUB9obwq96pbAp+6as0XreMNC/xPv5gDdHfKaIppsXtEwcZY7m1c25jDWqPUTQrtbVC0uryffg1Yu0JLTr646GMTzxulBSpQGRfNf5UT0bUiLtKngi++UHrngKdv3ovWwpVmY82JhG7rMDhkuWZu3LdEFvY3svNxGtsQ==</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIDPzCCAiegAwIBAgIQOpwRqLOiO5dOnZepSd5yJzANBgkqhkiG9w0BAQsFADAhMR8wHQYDVQQDDBZhZGZzLmF0dGFja3JhbmdlLmxvY2FsMB4XDTIxMDEwNjIyMzAyMloXDTIyMDEwNjIyNTAyMlowITEfMB0GA1UEAwwWYWRmcy5hdHRhY2tyYW5nZS5sb2NhbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKCwp37iASl3qvAbIyYGI1HOwIlZCAuwLZF+ROf0SVpl+KC19nR+ws7NjacsxsugHMUT1gc9On/l0Jn5pF6VFFcPyPsVvaxLJ+YMY0SBcIHp1iQOKfA2jIFXs4eoLzcrOpX0vqkKsZEPsUAN8tz7OYOPyIP4gylV6hh3nNJXQ2ogeTHXmrpI7wDrAY72g9tDCAitRvAu+nZOLnYaQ3YmnJJGZd+YvmRUd7WAwngYEbJss55ZcL/JU3VJQMJ7OGtjFhjayDT/dUdtvBUqsfF27cArbT5WgGm8WX+WWrJTJgqhQ9YpRUXFajt7Ky5fDLG1cuL6FCHpfrBuRsy7MdY/B+0CAwEAAaNzMHEwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATAhBgNVHREEGjAYghZhZGZzLmF0dGFja3JhbmdlLmxvY2FsMB0GA1UdDgQWBBQCPwpG/CPNUFbkjPjBuXJr1AOIdzANBgkqhkiG9w0BAQsFAAOCAQEAlzPZxjHF8tLmpf2KLeu9OlVSdcJ/vER7H/3gZmDEnNET/FHbY20npgiQgyk2XoM9WBe9zsuDcORfhndUnW+NHaAHZfdTvtvq1wPoqnEFdedRKMoXU7DtcHHnK533/4ysdcpI8rMS4Tg/WTmFHmubs0xc1TGHL4nVPC1p7Tz6ijkluHxkZFjf0VER/lc6LBXxhEgPuX+aYFvMq1Ty8dYbYjQ9C1sKWYavOnR11pB3uGTRYaj0FwTGhP/UfpkKuaKRhx0j1Iwe01rNDl1+tWhAwZXGDFFcJMTx/Z+vCcSlijBLeVCP7mmm0QgFn7AWrqhAUKkqfcVVvYLgi+FTcuJuSA==</X509Certificate></X509Data></KeyInfo></Signature><RoleDescriptor xsi:type=\"fed:SecurityTokenServiceType\" protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"><KeyDescriptor use=\"signing\"><KeyInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><X509Data><X509Certificate>MIIDPzCCAiegAwIBAgIQOpwRqLOiO5dOnZepSd5yJzANBgkqhkiG9w0BAQsFADAhMR8wHQYDVQQDDBZhZGZzLmF0dGFja3JhbmdlLmxvY2FsMB4XDTIxMDEwNjIyMzAyMloXDTIyMDEwNjIyNTAyMlowITEfMB0GA1UEAwwWYWRmcy5hdHRhY2tyYW5nZS5sb2NhbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKCwp37iASl3qvAbIyYGI1HOwIlZCAuwLZF+ROf0SVpl+KC19nR+ws7NjacsxsugHMUT1gc9On/l0Jn5pF6VFFcPyPsVvaxLJ+YMY0SBcIHp1iQOKfA2jIFXs4eoLzcrOpX0vqkKsZEPsUAN8tz7OYOPyIP4gylV6hh3nNJXQ2ogeTHXmrpI7wDrAY72g9tDCAitRvAu+nZOLnYaQ3YmnJJGZd+YvmRUd7WAwngYEbJss55ZcL/JU3VJQMJ7OGtjFhjayDT/dUdtvBUqsfF27cArbT5WgGm8WX+WWrJTJgqhQ9YpRUXFajt7Ky5fDLG1cuL6FCHpfrBuRsy7MdY/B+0CAwEAAaNzMHEwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATAhBgNVHREEGjAYghZhZGZzLmF0dGFja3JhbmdlLmxvY2FsMB0GA1UdDgQWBBQCPwpG/CPNUFbkjPjBuXJr1AOIdzANBgkqhkiG9w0BAQsFAAOCAQEAlzPZxjHF8tLmpf2KLeu9OlVSdcJ/vER7H/3gZmDEnNET/FHbY20npgiQgyk2XoM9WBe9zsuDcORfhndUnW+NHaAHZfdTvtvq1wPoqnEFdedRKMoXU7DtcHHnK533/4ysdcpI8rMS4Tg/WTmFHmubs0xc1TGHL4nVPC1p7Tz6ijkluHxkZFjf0VER/lc6LBXxhEgPuX+aYFvMq1Ty8dYbYjQ9C1sKWYavOnR11pB3uGTRYaj0FwTGhP/UfpkKuaKRhx0j1Iwe01rNDl1+tWhAwZXGDFFcJMTx/Z+vCcSlijBLeVCP7mmm0QgFn7AWrqhAUKkqfcVVvYLgi+FTcuJuSA==</X509Certificate></X509Data></KeyInfo></KeyDescriptor><KeyDescriptor use=\"signing\"><KeyInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><X509Data><X509Certificate>MIIC8DCCAdigAwIBAgIQMN9XaFEOfIpMuOqq+1JFzzANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDEylNaWNyb3NvZnQgQXp1cmUgRmVkZXJhdGVkIFNTTyBDZXJ0aWZpY2F0ZTAeFw0yMTAxMTcxODU2MTZaFw0yNDAxMTcyMTU2MTRaMDQxMjAwBgNVBAMTKU1pY3Jvc29mdCBBenVyZSBGZWRlcmF0ZWQgU1NPIENlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2GO3vs2HPr+EXEVnWNRDOIjxS5tP2i9xq/399CAl/sWSbJkooGjcCKWf0DN1cGbbbrzL/V+Hor/htEFBpsbUsL8NbaE5pZOnH3oWquiHFiMs1t3Dh4dSVViKyMgIx/i5j4qUW74fYHvgead3kTIV7oSIYHXPNSF6SGLR8qWgRSCLre5P80PnzQmFoI1MbfJbJWf4rWBRVylJaamRFi8X/9byGAQKNYtrjnxCPtdvqUG03EMvwrUCTOM49qnuUhHUCtrIk8MQ1/xzHePkWT3OXmfCi0ABDFAnb9GH763rLlrawVaZKMzmICQ/Rts3+NUm0urSbPlUq1+IfbCsRCwz/QIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQA+ZOJcY1oGsj/LLa0KLhlUolA7dojhwDtZFPRInLcyBQ6G2fkEZr7jdgY0vg8X86vFCw2JLIC5UmUrXsC1YGxD0kzdMAqr06uVOxGKD/QCRKfes3AYqv/axoJpSm1uZP2066816bYIpOMjcc5yQaEzFh6Y2d5Ovd+DJ/BLVmTFuKs9p9q5JCpOQQT73c0actHdXsjZeM0iHbuWtQOu6LHJuQRbl7BCdKblLvpnoF7DrAHLq1xArcSUEuXa590aga7Ld9P/6BrTQ26QdGGfmJlRiaWh5iu22lbI169NlFd+EmgXIFWK0Qu6i7zyNkGTTA2GOOG9Z/vNIGKRxmV4l7KN</X509Certificate></X509Data></KeyInfo></KeyDescriptor><fed:ClaimTypesOffered><auth:ClaimType Uri=\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Name</auth:DisplayName><auth:Description>The mutable display name of the user.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Subject</auth:DisplayName><auth:Description>An immutable, globally unique, non-reusable identifier of the user that is unique to the application for which a token is issued.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Given Name</auth:DisplayName><auth:Description>First name of the user.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Surname</auth:DisplayName><auth:Description>Last name of the user.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/identity/claims/displayname\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Display Name</auth:DisplayName><auth:Description>Display name of the user.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/identity/claims/nickname\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Nick Name</auth:DisplayName><auth:Description>Nick name of the user.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationinstant\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Authentication Instant</auth:DisplayName><auth:Description>The time (UTC) when the user is authenticated to Windows Azure Active Directory.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Authentication Method</auth:DisplayName><auth:Description>The method that Windows Azure Active Directory uses to authenticate users.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/identity/claims/objectidentifier\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>ObjectIdentifier</auth:DisplayName><auth:Description>Primary identifier for the user in the directory. Immutable, globally unique, non-reusable.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/identity/claims/tenantid\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>TenantId</auth:DisplayName><auth:Description>Identifier for the user's tenant.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/identity/claims/identityprovider\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>IdentityProvider</auth:DisplayName><auth:Description>Identity provider for the user.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Email</auth:DisplayName><auth:Description>Email address of the user.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/ws/2008/06/identity/claims/groups\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Groups</auth:DisplayName><auth:Description>Groups of the user.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/identity/claims/accesstoken\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>External Access Token</auth:DisplayName><auth:Description>Access token issued by external identity provider.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/ws/2008/06/identity/claims/expiration\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>External Access Token Expiration</auth:DisplayName><auth:Description>UTC expiration time of access token issued by external identity provider.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/identity/claims/openid2_id\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>External OpenID 2.0 Identifier</auth:DisplayName><auth:Description>OpenID 2.0 identifier issued by external identity provider.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/claims/groups.link\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>GroupsOverageClaim</auth:DisplayName><auth:Description>Issued when number of user's group claims exceeds return limit.</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>Role Claim</auth:DisplayName><auth:Description>Roles that the user or Service Principal is attached to</auth:Description></auth:ClaimType><auth:ClaimType Uri=\"http://schemas.microsoft.com/ws/2008/06/identity/claims/wids\" xmlns:auth=\"http://docs.oasis-open.org/wsfed/authorization/200706\"><auth:DisplayName>RoleTemplate Id Claim</auth:DisplayName><auth:Description>Role template id of the Built-in Directory Roles that the user is a member of</auth:Description></auth:ClaimType></fed:ClaimTypesOffered><fed:SecurityTokenServiceEndpoint><wsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"><wsa:Address>https://login.microsoftonline.com/0e8108b1-18e9-41a4-961b-dfcddf92ef08/wsfed</wsa:Address></wsa:EndpointReference></fed:SecurityTokenServiceEndpoint><fed:PassiveRequestorEndpoint><wsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"><wsa:Address>https://login.microsoftonline.com/0e8108b1-18e9-41a4-961b-dfcddf92ef08/wsfed</wsa:Address></wsa:EndpointReference></fed:PassiveRequestorEndpoint></RoleDescriptor><RoleDescriptor xsi:type=\"fed:ApplicationServiceType\" protocolSupportEnumeration=\"http://docs.oasis-open.org/wsfed/federation/200706\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:fed=\"http://docs.oasis-open.org/wsfed/federation/200706\"><KeyDescriptor use=\"signing\"><KeyInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><X509Data><X509Certificate>MIIDPzCCAiegAwIBAgIQOpwRqLOiO5dOnZepSd5yJzANBgkqhkiG9w0BAQsFADAhMR8wHQYDVQQDDBZhZGZzLmF0dGFja3JhbmdlLmxvY2FsMB4XDTIxMDEwNjIyMzAyMloXDTIyMDEwNjIyNTAyMlowITEfMB0GA1UEAwwWYWRmcy5hdHRhY2tyYW5nZS5sb2NhbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKCwp37iASl3qvAbIyYGI1HOwIlZCAuwLZF+ROf0SVpl+KC19nR+ws7NjacsxsugHMUT1gc9On/l0Jn5pF6VFFcPyPsVvaxLJ+YMY0SBcIHp1iQOKfA2jIFXs4eoLzcrOpX0vqkKsZEPsUAN8tz7OYOPyIP4gylV6hh3nNJXQ2ogeTHXmrpI7wDrAY72g9tDCAitRvAu+nZOLnYaQ3YmnJJGZd+YvmRUd7WAwngYEbJss55ZcL/JU3VJQMJ7OGtjFhjayDT/dUdtvBUqsfF27cArbT5WgGm8WX+WWrJTJgqhQ9YpRUXFajt7Ky5fDLG1cuL6FCHpfrBuRsy7MdY/B+0CAwEAAaNzMHEwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATAhBgNVHREEGjAYghZhZGZzLmF0dGFja3JhbmdlLmxvY2FsMB0GA1UdDgQWBBQCPwpG/CPNUFbkjPjBuXJr1AOIdzANBgkqhkiG9w0BAQsFAAOCAQEAlzPZxjHF8tLmpf2KLeu9OlVSdcJ/vER7H/3gZmDEnNET/FHbY20npgiQgyk2XoM9WBe9zsuDcORfhndUnW+NHaAHZfdTvtvq1wPoqnEFdedRKMoXU7DtcHHnK533/4ysdcpI8rMS4Tg/WTmFHmubs0xc1TGHL4nVPC1p7Tz6ijkluHxkZFjf0VER/lc6LBXxhEgPuX+aYFvMq1Ty8dYbYjQ9C1sKWYavOnR11pB3uGTRYaj0FwTGhP/UfpkKuaKRhx0j1Iwe01rNDl1+tWhAwZXGDFFcJMTx/Z+vCcSlijBLeVCP7mmm0QgFn7AWrqhAUKkqfcVVvYLgi+FTcuJuSA==</X509Certificate></X509Data></KeyInfo></KeyDescriptor><KeyDescriptor use=\"signing\"><KeyInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><X509Data><X509Certificate>MIIC8DCCAdigAwIBAgIQMN9XaFEOfIpMuOqq+1JFzzANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDEylNaWNyb3NvZnQgQXp1cmUgRmVkZXJhdGVkIFNTTyBDZXJ0aWZpY2F0ZTAeFw0yMTAxMTcxODU2MTZaFw0yNDAxMTcyMTU2MTRaMDQxMjAwBgNVBAMTKU1pY3Jvc29mdCBBenVyZSBGZWRlcmF0ZWQgU1NPIENlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2GO3vs2HPr+EXEVnWNRDOIjxS5tP2i9xq/399CAl/sWSbJkooGjcCKWf0DN1cGbbbrzL/V+Hor/htEFBpsbUsL8NbaE5pZOnH3oWquiHFiMs1t3Dh4dSVViKyMgIx/i5j4qUW74fYHvgead3kTIV7oSIYHXPNSF6SGLR8qWgRSCLre5P80PnzQmFoI1MbfJbJWf4rWBRVylJaamRFi8X/9byGAQKNYtrjnxCPtdvqUG03EMvwrUCTOM49qnuUhHUCtrIk8MQ1/xzHePkWT3OXmfCi0ABDFAnb9GH763rLlrawVaZKMzmICQ/Rts3+NUm0urSbPlUq1+IfbCsRCwz/QIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQA+ZOJcY1oGsj/LLa0KLhlUolA7dojhwDtZFPRInLcyBQ6G2fkEZr7jdgY0vg8X86vFCw2JLIC5UmUrXsC1YGxD0kzdMAqr06uVOxGKD/QCRKfes3AYqv/axoJpSm1uZP2066816bYIpOMjcc5yQaEzFh6Y2d5Ovd+DJ/BLVmTFuKs9p9q5JCpOQQT73c0actHdXsjZeM0iHbuWtQOu6LHJuQRbl7BCdKblLvpnoF7DrAHLq1xArcSUEuXa590aga7Ld9P/6BrTQ26QdGGfmJlRiaWh5iu22lbI169NlFd+EmgXIFWK0Qu6i7zyNkGTTA2GOOG9Z/vNIGKRxmV4l7KN</X509Certificate></X509Data></KeyInfo></KeyDescriptor><fed:TargetScopes><wsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"><wsa:Address>https://sts.windows.net/0e8108b1-18e9-41a4-961b-dfcddf92ef08/</wsa:Address></wsa:EndpointReference></fed:TargetScopes><fed:ApplicationServiceEndpoint><wsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"><wsa:Address>https://login.microsoftonline.com/0e8108b1-18e9-41a4-961b-dfcddf92ef08/wsfed</wsa:Address></wsa:EndpointReference></fed:ApplicationServiceEndpoint><fed:PassiveRequestorEndpoint><wsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"><wsa:Address>https://login.microsoftonline.com/0e8108b1-18e9-41a4-961b-dfcddf92ef08/wsfed</wsa:Address></wsa:EndpointReference></fed:PassiveRequestorEndpoint></RoleDescriptor><IDPSSODescriptor protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"><KeyDescriptor use=\"signing\"><KeyInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><X509Data><X509Certificate>MIIDPzCCAiegAwIBAgIQOpwRqLOiO5dOnZepSd5yJzANBgkqhkiG9w0BAQsFADAhMR8wHQYDVQQDDBZhZGZzLmF0dGFja3JhbmdlLmxvY2FsMB4XDTIxMDEwNjIyMzAyMloXDTIyMDEwNjIyNTAyMlowITEfMB0GA1UEAwwWYWRmcy5hdHRhY2tyYW5nZS5sb2NhbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKCwp37iASl3qvAbIyYGI1HOwIlZCAuwLZF+ROf0SVpl+KC19nR+ws7NjacsxsugHMUT1gc9On/l0Jn5pF6VFFcPyPsVvaxLJ+YMY0SBcIHp1iQOKfA2jIFXs4eoLzcrOpX0vqkKsZEPsUAN8tz7OYOPyIP4gylV6hh3nNJXQ2ogeTHXmrpI7wDrAY72g9tDCAitRvAu+nZOLnYaQ3YmnJJGZd+YvmRUd7WAwngYEbJss55ZcL/JU3VJQMJ7OGtjFhjayDT/dUdtvBUqsfF27cArbT5WgGm8WX+WWrJTJgqhQ9YpRUXFajt7Ky5fDLG1cuL6FCHpfrBuRsy7MdY/B+0CAwEAAaNzMHEwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATAhBgNVHREEGjAYghZhZGZzLmF0dGFja3JhbmdlLmxvY2FsMB0GA1UdDgQWBBQCPwpG/CPNUFbkjPjBuXJr1AOIdzANBgkqhkiG9w0BAQsFAAOCAQEAlzPZxjHF8tLmpf2KLeu9OlVSdcJ/vER7H/3gZmDEnNET/FHbY20npgiQgyk2XoM9WBe9zsuDcORfhndUnW+NHaAHZfdTvtvq1wPoqnEFdedRKMoXU7DtcHHnK533/4ysdcpI8rMS4Tg/WTmFHmubs0xc1TGHL4nVPC1p7Tz6ijkluHxkZFjf0VER/lc6LBXxhEgPuX+aYFvMq1Ty8dYbYjQ9C1sKWYavOnR11pB3uGTRYaj0FwTGhP/UfpkKuaKRhx0j1Iwe01rNDl1+tWhAwZXGDFFcJMTx/Z+vCcSlijBLeVCP7mmm0QgFn7AWrqhAUKkqfcVVvYLgi+FTcuJuSA==</X509Certificate></X509Data></KeyInfo></KeyDescriptor><KeyDescriptor use=\"signing\"><KeyInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><X509Data><X509Certificate>MIIC8DCCAdigAwIBAgIQMN9XaFEOfIpMuOqq+1JFzzANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDEylNaWNyb3NvZnQgQXp1cmUgRmVkZXJhdGVkIFNTTyBDZXJ0aWZpY2F0ZTAeFw0yMTAxMTcxODU2MTZaFw0yNDAxMTcyMTU2MTRaMDQxMjAwBgNVBAMTKU1pY3Jvc29mdCBBenVyZSBGZWRlcmF0ZWQgU1NPIENlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2GO3vs2HPr+EXEVnWNRDOIjxS5tP2i9xq/399CAl/sWSbJkooGjcCKWf0DN1cGbbbrzL/V+Hor/htEFBpsbUsL8NbaE5pZOnH3oWquiHFiMs1t3Dh4dSVViKyMgIx/i5j4qUW74fYHvgead3kTIV7oSIYHXPNSF6SGLR8qWgRSCLre5P80PnzQmFoI1MbfJbJWf4rWBRVylJaamRFi8X/9byGAQKNYtrjnxCPtdvqUG03EMvwrUCTOM49qnuUhHUCtrIk8MQ1/xzHePkWT3OXmfCi0ABDFAnb9GH763rLlrawVaZKMzmICQ/Rts3+NUm0urSbPlUq1+IfbCsRCwz/QIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQA+ZOJcY1oGsj/LLa0KLhlUolA7dojhwDtZFPRInLcyBQ6G2fkEZr7jdgY0vg8X86vFCw2JLIC5UmUrXsC1YGxD0kzdMAqr06uVOxGKD/QCRKfes3AYqv/axoJpSm1uZP2066816bYIpOMjcc5yQaEzFh6Y2d5Ovd+DJ/BLVmTFuKs9p9q5JCpOQQT73c0actHdXsjZeM0iHbuWtQOu6LHJuQRbl7BCdKblLvpnoF7DrAHLq1xArcSUEuXa590aga7Ld9P/6BrTQ26QdGGfmJlRiaWh5iu22lbI169NlFd+EmgXIFWK0Qu6i7zyNkGTTA2GOOG9Z/vNIGKRxmV4l7KN</X509Certificate></X509Data></KeyInfo></KeyDescriptor><SingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\" Location=\"https://login.microsoftonline.com/0e8108b1-18e9-41a4-961b-dfcddf92ef08/saml2\" /><SingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\" Location=\"https://login.microsoftonline.com/0e8108b1-18e9-41a4-961b-dfcddf92ef08/saml2\" /><SingleSignOnService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST\" Location=\"https://login.microsoftonline.com/0e8108b1-18e9-41a4-961b-dfcddf92ef08/saml2\" /></IDPSSODescriptor></EntityDescriptor>",
    "sAMLProviderArn": "arn:aws:iam::111111111111:saml-provider/rodsotoonmicrosoft"
  },
  "responseElements": {
    "sAMLProviderArn": "arn:aws:iam::111111111111:saml-provider/rodsotoonmicrosoft"
  },
  "sourceIPAddress": "66.176.252.11",
  "userAgent": "aws-internal/3 aws-sdk-java/1.11.930 Linux/4.9.230-0.1.ac.223.84.332.metal1.x86_64 OpenJDK_64-Bit_Server_VM/25.275-b01 java/1.8.0_275 vendor/Oracle_Corporation",
  "userIdentity": {
    "accessKeyId": "ASIAYTOGP2RLMZGPIW6C",
    "accountId": "111111111111",
    "arn": "arn:aws:sts::111111111111:assumed-role/rodonmicrotestrole/rodsoto@rodsoto.onmicrosoft.com",
    "principalId": "AROAYTOGP2RLKFUVAQAIJ:rodsoto@rodsoto.onmicrosoft.com",
    "sessionContext": {
      "attributes": {
        "creationDate": "2021-01-20T03:10:32Z",
        "mfaAuthenticated": "false"
      },
      "sessionIssuer": {
        "accountId": "111111111111",
        "arn": "arn:aws:iam::111111111111:role/rodonmicrotestrole",
        "principalId": "AROAYTOGP2RLKFUVAQAIJ",
        "type": "Role",
        "userName": "rodonmicrotestrole"
      },
      "webIdFederationData": {}
    },
    "type": "AssumedRole"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sigma #

Elastic #

  • AWS IAM SAML Provider Updated source medium: Detects when an AWS IAM SAML provider is updated, which manages federated authentication between AWS and external identity providers (IdPs). Adversaries with administrative access may modify a SAML provider’s metadata or certificate to redirect authentication flows, enable unauthorized federation, or escalate privileges through identity trust manipulation. Because SAML providers underpin single sign-on (SSO) access for users and applications, unauthorized modifications may allow persistent or covert access even after credentials are revoked. Monitoring "UpdateSAMLProvider" API activity is critical to detect potential compromise of federated trust relationships.T1484, T1484.002

Splunk #

  • ASL AWS SAML Update identity provider source: The following analytic detects updates to the SAML provider in AWS. It leverages AWS CloudTrail logs to identify the UpdateSAMLProvider event, analyzing fields such as sAMLProviderArn, sourceIPAddress, and userIdentity details.…T1078
  • AWS SAML Update identity provider source: The following analytic detects updates to the SAML provider in AWS. It leverages AWS CloudTrail logs to identify the UpdateSAMLProvider event, analyzing fields such as sAMLProviderArn, sourceIPAddress, and userIdentity details.…T1078

Kusto #

YARA-L #

Panther #

References #

AcceptDelegationRequest

#
Service
iam

Description

Accepts a delegation request, granting the requested temporary access.

AddClientIDToOpenIDConnectProvider

#
Service
iam

Description

Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect (OIDC) provider resource.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "126c7588-1f63-4baf-9344-f084ad94f0b8",
  "eventName": "AddClientIDToOpenIDConnectProvider",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "a15861fa-ce6e-439a-8f5d-e4829ef2d4b7",
  "requestParameters": {
    "clientID": "dw2",
    "openIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/dwfix.example.com"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

AssociateDelegationRequest

#
Service
iam

Description

Associates a delegation request with the current identity.

ChangePassword

#
Service
iam

Description

Changes the password of the IAM user who is calling this operation.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "7a8c4b82-8204-46a4-8bec-1d2fd3893d2d",
  "eventName": "ChangePassword",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-09-17T14:58:53Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "b893c8c9-9bb8-11e7-8131-8dbb48affbdc",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "224.223.84.255",
  "userAgent": "signin.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIALR2UJQYQMI1PCH0G",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/piper",
    "invokedBy": "signin.amazonaws.com",
    "principalId": "AIDA7ZI0RCYCPBIR0OIC3",
    "sessionContext": {
      "attributes": {
        "creationDate": "2017-09-17T14:51:38Z",
        "mfaAuthenticated": "true"
      }
    },
    "type": "IAMUser",
    "userName": "piper"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Kusto #

References #

CreateAccountAlias

#
Service
iam

Description

Creates an alias for your Amazon Web Services account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "a6be01da-c13b-4ea2-8dee-eeabc6ca6b5e",
  "eventName": "CreateAccountAlias",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-09-17T14:50:38Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "91db2d49-9bb7-11e7-bc26-352f4de24173",
  "requestParameters": {
    "accountAlias": "flaws"
  },
  "responseElements": null,
  "sourceIPAddress": "224.223.84.255",
  "userAgent": "console.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIAF576WW146XVEURTA",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:root",
    "principalId": "811596193553",
    "sessionContext": {
      "attributes": {
        "creationDate": "2017-09-17T14:39:26Z",
        "mfaAuthenticated": "true"
      }
    },
    "type": "Root"
  }
}

References #

CreateDelegationRequest

#
Service
iam

Description

Creates an IAM delegation request for temporary access delegation.

CreatePolicy

#
Service
iam

Description

Creates a new managed policy for your Amazon Web Services account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "19373fa4-d15d-4c49-9e19-f19faa16e2ca",
  "eventName": "CreatePolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:06:32Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "fa33b91b-7fce-40cd-a58e-06f3e034071e",
  "requestParameters": {
    "description": "",
    "path": "/",
    "policyDocument": {
      "Statement": [
        {
          "Action": [
            "ec2:DescribeInstances"
          ],
          "Effect": "Allow",
          "Resource": "*"
        }
      ],
      "Version": "2012-10-17"
    },
    "policyName": "stratus-red-team-ec2lui-policy-pcccexdthk",
    "tags": [
      {
        "key": "StratusRedTeam",
        "value": "true"
      }
    ]
  },
  "responseElements": {
    "policy": {
      "arn": "arn:aws:iam::123837392027:policy/stratus-red-team-ec2lui-policy-pcccexdthk",
      "attachmentCount": 0,
      "createDate": "Jul 10, 2023 12:06:32 PM",
      "defaultVersionId": "v1",
      "isAttachable": true,
      "path": "/",
      "permissionsBoundaryUsageCount": 0,
      "policyId": "ANPATFQR7NSCRBSSSS4N4",
      "policyName": "stratus-red-team-ec2lui-policy-pcccexdthk",
      "tags": [
        {
          "key": "StratusRedTeam",
          "value": "true"
        }
      ],
      "updateDate": "Jul 10, 2023 12:06:32 PM"
    }
  },
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/4.67.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.261 (go1.19.8; linux; amd64) stratus-red-team_bc31c885-5ea0-4a6e-8bec-b6b10058bc44 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

CreateServiceLinkedRole

#
Service
iam

Description

Creates an IAM role that is linked to a specific Amazon Web Services service.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "8add0b2d-992a-42ad-b349-de6b699a291c",
  "eventName": "CreateServiceLinkedRole",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-02-11T16:43:23Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "ae973ee7-6d28-449f-97ad-8176ed3fdff1",
  "requestParameters": {
    "aWSServiceName": "cloudtrail.amazonaws.com"
  },
  "responseElements": {
    "role": {
      "arn": "arn:aws:iam::811596193553:role/aws-service-role/cloudtrail.amazonaws.com/AWSServiceRoleForCloudTrail",
      "assumeRolePolicyDocument": "%7B%22Version%22%3A%20%74163-10-17%22%2C%20%22Statement%22%3A%20%5B%7B%22Action%22%3A%20%5B%22sts%3AAssumeRole%22%5D%2C%20%22Effect%22%3A%20%22Allow%22%2C%20%22Principal%22%3A%20%7B%22Service%22%3A%20%5B%22cloudtrail.amazonaws.com%22%5D%7D%7D%5D%7D",
      "createDate": "Feb 11, 2019 4:43:23 PM",
      "path": "/aws-service-role/cloudtrail.amazonaws.com/",
      "roleId": "AROA3QALGXM98C6RU5U98",
      "roleName": "AWSServiceRoleForCloudTrail"
    }
  },
  "sourceIPAddress": "organizations.amazonaws.com",
  "userAgent": "organizations.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIAHW3DN22Y6XWXN9X7",
    "accountId": "811596193553",
    "arn": "arn:aws:sts::811596193553:assumed-role/AWSServiceRoleForOrganizations/AWSOrganizations",
    "invokedBy": "organizations.amazonaws.com",
    "principalId": "AROA3NG0ZZDBME9D8PSU9:AWSOrganizations",
    "sessionContext": {
      "attributes": {
        "creationDate": "2019-02-11T16:43:23Z",
        "mfaAuthenticated": "false"
      },
      "sessionIssuer": {
        "accountId": "811596193553",
        "arn": "arn:aws:iam::811596193553:role/aws-service-role/organizations.amazonaws.com/AWSServiceRoleForOrganizations",
        "principalId": "AROA3NG0ZZDBME9D8PSU9",
        "type": "Role",
        "userName": "AWSServiceRoleForOrganizations"
      }
    },
    "type": "AssumedRole"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Panther #

References #

CreateServiceSpecificCredential

#
Service
iam

Description

Generates a set of credentials consisting of a user name and password that can be used to access the service specified in the request.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "8c550334-e391-457c-94b1-ded1c47d5c08",
  "eventName": "CreateServiceSpecificCredential",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:57Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "62e341ac-c7af-4687-adca-9014181b7e47",
  "requestParameters": {
    "serviceName": "codecommit.amazonaws.com",
    "userName": "dwfix-user"
  },
  "responseElements": {
    "serviceSpecificCredential": {
      "createDate": "2026-06-29T19:02:56Z",
      "serviceName": "codecommit.amazonaws.com",
      "serviceSpecificCredentialId": "ACCA5ULUCSTR3XJSITRNV",
      "serviceUserName": "dwfix-user-at-123456789012",
      "status": "Active",
      "userName": "dwfix-user"
    }
  },
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Kusto #

DeleteAccessKey

#
Service
iam

Description

Deletes the access key pair associated with the specified IAM user.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "20e603c0-e2d6-4bc4-9f25-031d3e314950",
  "eventName": "DeleteAccessKey",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:24Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "a67baf7f-8ce8-49c0-9076-8270470ba791",
  "requestParameters": {
    "accessKeyId": "AKIATFQR7NSCQLA2F4OD",
    "userName": "malicious-iam-user"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "stratus-red-team_21b27090-a535-432d-97e9-a519a2bda2fe",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Kusto #

References #

DeleteAccountAlias

#
Service
iam

Description

Deletes the specified Amazon Web Services account alias.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "The account alias ddddd cannot be found.",
  "eventCategory": "Management",
  "eventID": "09d0ec6c-5c50-4877-8b4b-f9c1d0e81961",
  "eventName": "DeleteAccountAlias",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:24:38Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "5e0c83de-7322-494b-97ee-104d9a6daf95",
  "requestParameters": {
    "accountAlias": "ddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

DeleteGroupPolicy

#
Service
iam

Description

Deletes the specified inline policy that is embedded in the specified IAM group.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "dcaf8c86-fe9b-4eb6-8a00-2e4331b7ecaf",
  "eventName": "DeleteGroupPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:02Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "8b478f9d-68a5-49d7-9b0a-6739f0a2365b",
  "requestParameters": {
    "groupName": "dwfix-group",
    "policyName": "dwp"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Kusto #

Panther #

DeleteInstanceProfile

#
Service
iam

Description

Deletes the specified instance profile.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "a39e3e0c-9c2e-43f8-bcb5-23f5324b48db",
  "eventName": "DeleteInstanceProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:07:24Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "a39e69d7-a904-4d7c-a2f3-4a57ab1487c5",
  "requestParameters": {
    "instanceProfileName": "stratus-red-team-usr-data-instance"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

DeleteOpenIDConnectProvider

#
Service
iam

Description

Deletes an OpenID Connect identity provider (IdP) resource object in IAM.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "61ddb1c3-94ae-48f4-85b7-38bb09738d5e",
  "eventName": "DeleteOpenIDConnectProvider",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:01Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "2ebd7110-9670-4376-a342-2ddc015799d2",
  "requestParameters": {
    "openIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/dwfix.example.com"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

DeletePolicy

#
Service
iam

Description

Deletes the specified managed policy.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "7e6db27b-f0e4-4d05-9e8e-0609cf824f72",
  "eventName": "DeletePolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:08:01Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "25d12ec2-9894-4114-b5b1-3cae7d4f774b",
  "requestParameters": {
    "policyArn": "arn:aws:iam::123837392027:policy/stratus-red-team-ec2lui-policy-pcccexdthk"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/4.67.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.261 (go1.19.8; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Permission Boundary or Guardrail Policy Deleted by Unusual Identity source medium: Detects the first time an AWS identity successfully deletes an IAM managed policy whose ARN contains guardrail-related keywords (for example Boundary, Deny, Restrict, Guard, SCP, Guardrail). Adversaries who have obtained elevated IAM privileges may delete policies to remove restrictive permissions boundaries, eliminate deny-based guardrails, or clean up after a privilege escalation operation. Infrastructure-as-code tools (Terraform, CloudFormation, Pulumi, and Ansible) are excluded because policy lifecycle management is a routine part of automated deployments. A policy deletion by an identity not seen performing this activity during the prior seven days may indicate newly compromised credentials being used to modify the account's permission structure.T1098, T1562

References #

DeletePolicyVersion

#
Service
iam

Description

Deletes the specified version from the specified managed policy.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "615235ef-b93d-4561-8bd1-fee816666",
  "eventName": "DeletePolicyVersion",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-02-12T21:30:28Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "55926e-f16a-11e6-8abe-9409ef6d52ab",
  "requestParameters": {
    "policyArn": "arn:aws:iam::811596193553:policy/Level3",
    "versionId": "v3"
  },
  "responseElements": null,
  "sourceIPAddress": "255.253.125.115",
  "userAgent": "console.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIA79EXPHZ8SRL55OOE",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:root",
    "principalId": "811596193553",
    "sessionContext": {
      "attributes": {
        "creationDate": "2017-02-12T19:57:05Z",
        "mfaAuthenticated": "false"
      }
    },
    "type": "Root"
  }
}

References #

DeleteRole

#
Service
iam

Description

Deletes the specified role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "b6864c4d-fa98-43ea-9744-de457f4e70bc",
  "eventName": "DeleteRole",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:07:25Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "55b85220-a28e-4eac-8bbe-d112b19f9a82",
  "requestParameters": {
    "roleName": "stratus-red-team-usr-data-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Kusto #

References #

DeleteRolePermissionsBoundary

#
Service
iam

Description

Deletes the permissions boundary for the specified IAM role.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "a9b0c8b8-a2b0-4e01-9234-a63f1752fe76",
  "eventName": "DeleteRolePermissionsBoundary",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:01Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "dae50acf-bc82-4a81-9748-75e511ddb21f",
  "requestParameters": {
    "roleName": "dwfix-role"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Permissions Boundary Modified or Removed source medium: Identifies the modification or removal of an IAM permissions boundary on an IAM user or role. A permissions boundary caps the maximum permissions an identity can have, regardless of its attached identity policies. An adversary who can delete a boundary ("DeleteUserPermissionsBoundary", "DeleteRolePermissionsBoundary") or replace it with a more permissive one ("PutUserPermissionsBoundary", "PutRolePermissionsBoundary") can lift that cap and unlock permissions the identity's policies already grant, enabling privilege escalation. Boundary changes are infrequent and usually performed by a small set of administrators or infrastructure-as-code pipelines, so changes by unexpected principals warrant review.T1098↳ also matches DeleteUserPermissionsBoundary, PutRolePermissionsBoundary, PutUserPermissionsBoundary

DeleteRolePolicy

#
Service
iam

Description

Deletes the specified inline policy that is embedded in the specified IAM role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "53c16e86-82f9-4bfd-bbc3-6e5239b09cb5",
  "eventName": "DeleteRolePolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:08:00Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "221106ff-454f-4a15-a3aa-5e1e8493ea29",
  "requestParameters": {
    "policyName": "stratus-red-team-remove-flow-logs-policy",
    "roleName": "stratus-red-team-remove-flow-logs-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Panther #

References #

DeleteServerCertificate

#
Service
iam

Description

Deletes the specified server certificate.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "4c0189b6-deca-48e3-9a94-5ea2d6375cb1",
  "eventName": "DeleteServerCertificate",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:01Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "3d110f33-1228-4448-b505-9bf5959490d2",
  "requestParameters": {
    "serverCertificateName": "dwfix-cert"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

DeleteServiceLinkedRole

#
Service
iam

Description

Submits a service-linked role deletion request and returns a DeletionTaskId, which you can use to check the status of the deletion.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "Cannot find the service role to delete.",
  "eventCategory": "Management",
  "eventID": "52cbee4f-d9a5-4903-a5e1-54ceaa18b6ba",
  "eventName": "DeleteServiceLinkedRole",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:24:38Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "7212db3d-091a-43e4-9d4e-0b2bf26015e0",
  "requestParameters": {
    "roleName": "ddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

DeleteServiceSpecificCredential

#
Service
iam

Description

Deletes the specified service-specific credential.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "c42663ca-46c9-42ff-994b-70c89a7d7e1f",
  "eventName": "DeleteServiceSpecificCredential",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:03Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "811d5e91-4261-4fbc-a083-b22c9b818e69",
  "requestParameters": {
    "serviceSpecificCredentialId": "ACCA5ULUCSTR3XJSITRNV",
    "userName": "dwfix-user"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Kusto #

DeleteSigningCertificate

#
Service
iam

Description

Deletes a signing certificate associated with the specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "f217ea3a-7458-40f0-98e2-e22d1a21f8b6",
  "eventName": "DeleteSigningCertificate",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:02Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "8047d015-4141-4bfb-853d-6c7dbcbb5ecc",
  "requestParameters": {
    "certificateId": "O7DRCOAYSKP62QZS5G4OHJYLEQHUHBUI",
    "userName": "dwfix-user"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

DeleteSSHPublicKey

#
Service
iam

Description

Deletes the specified SSH public key.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "d3ac4534-7fe1-463c-bc01-d2a031ca3cf8",
  "eventName": "DeleteSSHPublicKey",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:03Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "20d9caed-f1c2-4bf5-9b95-447e8a4e3845",
  "requestParameters": {
    "sSHPublicKeyId": "APKAEXAMPLE00000000",
    "userName": "dwfix-user"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

DeleteUser

#
Service
iam

Description

Deletes the specified IAM user.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "08edca58-402f-4cc6-86dd-fa349a46bca3",
  "eventName": "DeleteUser",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:34Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "b123750a-4f42-46dc-a2b4-680a3f82be43",
  "requestParameters": {
    "userName": "stratus-red-team-nmfalu-gfjyeaypjt"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.20 (go1.17.6; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Kusto #

References #

DeleteUserPermissionsBoundary

#
Service
iam

Description

Deletes the permissions boundary for the specified IAM user.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "079f4988-b768-4a52-b90c-68e36688acef",
  "eventName": "DeleteUserPermissionsBoundary",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:03Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "4e8165c2-091c-410c-8209-d3c7d1d98cf3",
  "requestParameters": {
    "userName": "dwfix-user"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Permissions Boundary Modified or Removed source medium: Identifies the modification or removal of an IAM permissions boundary on an IAM user or role. A permissions boundary caps the maximum permissions an identity can have, regardless of its attached identity policies. An adversary who can delete a boundary ("DeleteUserPermissionsBoundary", "DeleteRolePermissionsBoundary") or replace it with a more permissive one ("PutUserPermissionsBoundary", "PutRolePermissionsBoundary") can lift that cap and unlock permissions the identity's policies already grant, enabling privilege escalation. Boundary changes are infrequent and usually performed by a small set of administrators or infrastructure-as-code pipelines, so changes by unexpected principals warrant review.T1098↳ also matches DeleteRolePermissionsBoundary, PutRolePermissionsBoundary, PutUserPermissionsBoundary

DeleteUserPolicy

#
Service
iam

Description

Deletes the specified inline policy that is embedded in the specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "da2d68b5-ba8e-4a86-a925-f7c7b5f42570",
  "eventName": "DeleteUserPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:03Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "880535fa-166b-442b-8a07-e0c20347ad50",
  "requestParameters": {
    "policyName": "dwp",
    "userName": "dwfix-user"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Panther #

DetachGroupPolicy

#
Service
iam

Description

Removes the specified managed policy from the specified IAM group.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "7163eab9-63a8-479d-bee1-deb723177adf",
  "eventName": "DetachGroupPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:02Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "dbb9a01d-aa4f-4212-90c0-d1bb6bac32f7",
  "requestParameters": {
    "groupName": "dwfix-group",
    "policyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Panther #

DetachRolePolicy

#
Service
iam

Description

Removes the specified managed policy from the specified role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "a1e18dc9-e6c5-4f76-83a6-52a74457e2b9",
  "eventName": "DetachRolePolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:07:23Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "8ec77514-b9ee-4dae-8204-a5e3284e43ae",
  "requestParameters": {
    "policyArn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore",
    "roleName": "stratus-red-team-usr-data-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Panther #

References #

DetachUserPolicy

#
Service
iam

Description

Removes the specified managed policy from the specified user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "7dfa2d8e-aa3d-44d1-bd90-d990f58311e0",
  "eventName": "DetachUserPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:24Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "1aa8128d-b2b8-42ec-85de-317ce511ecc0",
  "requestParameters": {
    "policyArn": "arn:aws:iam::aws:policy/AdministratorAccess",
    "userName": "malicious-iam-user"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "stratus-red-team_21b27090-a535-432d-97e9-a519a2bda2fe",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Panther #

References #

DisableOrganizationsRootCredentialsManagement

#
Service
iam

Description

Disables the management of privileged root user credentials across member accounts in your organization.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "OrganizationNotFoundException",
  "errorMessage": "Input account 123456789012 is not a member of an organization.",
  "eventCategory": "Management",
  "eventID": "7a9c7896-7a5f-41cf-bdd0-16846f2429fe",
  "eventName": "DisableOrganizationsRootCredentialsManagement",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:45:29Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "d88eabc2-1441-482a-9187-c4c38044e2da",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,Z,D cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

DisableOrganizationsRootSessions

#
Service
iam

Description

Disables root user sessions for privileged tasks across member accounts in your organization.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "OrganizationNotFoundException",
  "errorMessage": "Input account 123456789012 is not a member of an organization.",
  "eventCategory": "Management",
  "eventID": "9caf9ca4-9880-46b4-8f95-24a90a9ba42f",
  "eventName": "DisableOrganizationsRootSessions",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:45:29Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "36b67eb1-0b8f-42aa-96ef-30a4cef1b075",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,Z,D cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

DisableOutboundWebIdentityFederation

#
Service
iam

Description

Disables the outbound identity federation feature for your Amazon Web Services account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "FeatureDisabledException",
  "errorMessage": "Outbound identity federation is already disabled for account 123456789012",
  "eventCategory": "Management",
  "eventID": "74e4f3b0-2a73-4dac-aebc-2e2b33b670aa",
  "eventName": "DisableOutboundWebIdentityFederation",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:45:30Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "212f1438-d1eb-4f1c-8618-d8d8cc6b1bda",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,Z,D cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

EnableOrganizationsRootCredentialsManagement

#
Service
iam

Description

Enables the management of privileged root user credentials across member accounts in your organization.

EnableOrganizationsRootSessions

#
Service
iam

Description

Allows the management account or delegated administrator to perform privileged tasks on member accounts in your organization.

EnableOutboundWebIdentityFederation

#
Service
iam

Description

Enables the outbound identity federation feature for your Amazon Web Services account.

GenerateCredentialReport

#
Service
iam

Description

Generates a credential report for the Amazon Web Services account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "User: arn:aws:iam::731544447609:user/cloudsploit is not authorized to perform: iam:GenerateCredentialReport on resource: *",
  "eventCategory": "Management",
  "eventID": "769b6a98-b8c4-494e-ba93-bb30528fa668",
  "eventName": "GenerateCredentialReport",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-04-13T11:36:44Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "731544447609",
  "requestID": "60837f52-7a43-4fe4-bb6b-f73d185c48f1",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "34.12.134.20",
  "userAgent": "aws-sdk-nodejs/2.885.0 linux/v14.16.1 callback",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLGBSBSMH2",
    "accountId": "731544447609",
    "arn": "arn:aws:iam::731544447609:user/cloudsploit",
    "principalId": "AIDAYTOGP2RLMDEPWZWMJ",
    "type": "IAMUser",
    "userName": "cloudsploit"
  }
}

References #

GenerateOrganizationsAccessReport

#
Service
iam

Description

Generates a report for service last accessed data for Organizations.

GenerateServiceLastAccessedDetails

#
Service
iam

Description

Generates a report that includes details about when an IAM resource (user, group, role, or policy) was last used in an attempt to access Amazon Web Services services.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "User: arn:aws:iam::811596193553:user/Level6 is not authorized to perform: iam:GenerateServiceLastAccessedDetails on resource: arn:aws:iam::811596193553:user/backup",
  "eventID": "78c0a6e5-b4dc-4d06-8bc5-fdf7ffc3cc23",
  "eventName": "GenerateServiceLastAccessedDetails",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-05-16T08:18:37Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "003239bf-77b3-11e9-a412-513beb3c4b2f",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "147.81.243.93",
  "userAgent": "aws-cli/1.16.117 Python/2.7.12 Linux/4.15.0-36-generic botocore/1.12.107",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

References #

GetAccessKeyLastUsed

#
Service
iam

Description

Retrieves information about when the specified access key was last used.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "1f1de0a7-e055-465e-8e3a-f21e772db8a9",
  "eventName": "GetAccessKeyLastUsed",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-01-07T23:05:41Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "c10ec9c4-12d0-11e9-8b6d-11ea3238c34b",
  "requestParameters": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD"
  },
  "responseElements": null,
  "sourceIPAddress": "125.176.147.181",
  "userAgent": "aws-cli/1.16.61 Python/2.7.15 Darwin/17.7.0 botocore/1.12.51",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

References #

GetAccountPasswordPolicy

#
Service
iam

Description

Retrieves the password policy for the Amazon Web Services account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "5eb0fb9b-18ff-4be9-b90d-107a290e1d5c",
  "eventName": "GetAccountPasswordPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-01-26T22:39:06Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "111111111111",
  "requestID": "098fd0dd-e42e-4249-91fb-9637925bf2fe",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "23.93.193.7",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "aws-cli/2.7.25 Python/3.10.6 Darwin/21.6.0 source/x86_64 prompt/off command/iam.get-account-password-policy",
  "userIdentity": {
    "accessKeyId": "AKIASBMSCQHH5A5NJDM5",
    "accountId": "111111111111",
    "arn": "arn:aws:iam::111111111111:user/strt_fonder",
    "principalId": "AIDASBMSCQHHTH5NDF4GD",
    "type": "IAMUser",
    "userName": "strt_fonder"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
eventType (panther rule field)neAwsServiceEvent1 rulepanther

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Splunk #

Panther #

References #

GetContextKeysForCustomPolicy

#
Service
iam

Description

Gets a list of all of the context keys referenced in the input policies.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "InvalidInputException",
  "errorMessage": "Policy input list item 1 has invalid content",
  "eventID": "da3a0d60-7c6d-44e9-b14d-168db2aea4e8",
  "eventName": "GetContextKeysForCustomPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-07-30T16:17:54Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "960bc743-b2e5-11e9-b5b9-640360dea474",
  "requestParameters": {
    "policyInputList": [
      "arn:aws:iam::811596193553:policy/service-role/AWSLambdaBasicExecutionRole-b6ab3a24-1aa4-4855-94d4-40cdef59ec5b"
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "240.252.161.77",
  "userAgent": "Boto3/1.9.171 Python/3.7.3 Linux/5.1.0-parrot1-3t-amd64 Botocore/1.12.171",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

References #

GetContextKeysForPrincipalPolicy

#
Service
iam

Description

Gets a list of all of the context keys referenced in all the IAM policies that are attached to the specified IAM entity.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "6003f29b-5824-41e4-a89d-febf55524055",
  "eventName": "GetContextKeysForPrincipalPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2018-10-21T14:49:40Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "8a01d8ec-d540-11e8-bf2d-c0dc9efaa456",
  "requestParameters": {
    "policySourceArn": "arn:aws:iam::811596193553:user/Level6"
  },
  "responseElements": {
    "contextKeyNames": []
  },
  "sourceIPAddress": "9.245.1.85",
  "userAgent": "Botocore/1.12.25 Python/2.7.15 Linux/4.16.0-kali2-amd64",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

References #

GetDelegationRequest

#
Service
iam

Description

Retrieves information about a specific delegation request.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "DelegationRequest not found: dddddddddddddddd",
  "eventCategory": "Management",
  "eventID": "b998373e-6e71-4ae5-9b21-53fef86422e6",
  "eventName": "GetDelegationRequest",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:44:54Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "3a8ce343-e957-43bc-91c1-b32c6356c9f0",
  "requestParameters": {
    "delegationPermissionCheck": false,
    "delegationRequestId": "dddddddddddddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

GetGroup

#
Service
iam

Description

Returns a list of IAM users that are in the specified IAM group.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "The group with name flaws cannot be found.",
  "eventID": "12a9eea0-ea56-4375-b157-b487717f1c7a3",
  "eventName": "GetGroup",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-11-17T07:32:57Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "b69cb893-ffa8-4e08-b8da-d94b43a8b2db",
  "requestParameters": {
    "groupName": "flaws"
  },
  "responseElements": null,
  "sourceIPAddress": "8.103.248.255",
  "userAgent": "aws-cli/1.14.44 Python/3.6.8 Linux/4.4.0-039049-Microsoft botocore/1.8.48",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Panther #

References #

GetGroupPolicy

#
Service
iam

Description

Retrieves the specified inline policy document that is embedded in the specified IAM group.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "The group with name SecurityAudit cannot be found.",
  "eventID": "1ae409df-df98-49d6-a087-ec7d87e2197d",
  "eventName": "GetGroupPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-03-16T19:01:00Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "e564dd4d-0a7a-11e7-8fdc-f79b491f1dcc",
  "requestParameters": {
    "groupName": "SecurityAudit",
    "policyName": "SecurityAudit"
  },
  "responseElements": null,
  "sourceIPAddress": "5.3.205.235",
  "userAgent": "aws-cli/1.11.56 Python/2.7.10 Darwin/16.4.0 botocore/1.5.19",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Panther #

References #

GetHumanReadableSummary

#
Service
iam

Description

Retrieves a human readable summary for a given entity.

GetInstanceProfile

#
Service
iam

Description

Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "adda64e4-8107-483c-9735-2f1094dd29ff",
  "eventName": "GetInstanceProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:55:11Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "1915ec70-cdc6-49d6-bd81-e61c0bd12b75",
  "requestParameters": {
    "instanceProfileName": "stratus-red-team-ec2-steal-credentials-instance"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_6a7ec681-49a5-4403-99a2-d3c1229e8063 HashiCorp-terraform-exec/0.17.3 Waiter",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

GetMFADevice

#
Service
iam

Description

Retrieves information about an MFA device for a specified user.

GetOpenIDConnectProvider

#
Service
iam

Description

Returns information about the specified OpenID Connect (OIDC) provider resource object in IAM.

Example CloudTrail Event #

This is a projected export row, not a complete CloudTrail record: it shows only the envelope columns a SIEM export retained. The export never carried userIdentity, requestParameters, responseElements, sourceIPAddress, recipientAccountId, eventCategory, so their absence here says nothing about the real event. Account identifiers, ARNs and endpoint hostnames in eventID, requestID, resources, tlsDetails, userAgent are replaced with the placeholders AWS uses in its own documentation, so those values are structurally real but not the originals. errorMessage is withheld: it is free-form prose that names customer resources, which no substitution rule can find reliably. eventTime is withheld because the export renders it in the exporting system's local timezone rather than the UTC a CloudTrail record carries.

{
  "eventVersion": "1.11",
  "eventID": "886e3e14-2672-4954-96e1-b67ef6723eab",
  "eventSource": "iam.amazonaws.com",
  "eventName": "GetOpenIDConnectProvider",
  "awsRegion": "us-east-1",
  "eventType": "AwsApiCall",
  "readOnly": true,
  "managementEvent": true,
  "requestID": "32b5e2cd-5e65-478d-9835-91016456ccfc",
  "userAgent": "aws-sdk-go-v2/1.43.0 ua/2.1 os/linux lang/go#1.26.5 md/GOOS#linux md/GOARCH#arm64 api/iam#1.43.0 m/E,i",
  "tlsDetails": {
    "tlsVersion": "TLSv1.3",
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com"
  }
}

GetOrganizationsAccessReport

#
Service
iam

Description

Retrieves the service last accessed data report for Organizations that was previously generated using the GenerateOrganizationsAccessReport operation.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "You are not authorized to perform this operation.",
  "eventCategory": "Management",
  "eventID": "d6ed5fba-da70-4df5-8299-69d6dc3aba5d",
  "eventName": "GetOrganizationsAccessReport",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:44:56Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "a90cc597-efce-4162-83f2-a9ee0edafd4d",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

GetOutboundWebIdentityFederationInfo

#
Service
iam

Description

Retrieves the configuration information for the outbound identity federation feature in your Amazon Web Services account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "FeatureDisabledException",
  "errorMessage": "Outbound identity federation is disabled for account 123456789012",
  "eventCategory": "Management",
  "eventID": "64d6c982-aecf-41a9-b5aa-58c58d0414bf",
  "eventName": "GetOutboundWebIdentityFederationInfo",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:32:23Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "6c5b5544-dc6a-4383-88e7-888d8e15089e",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/D,Z,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

GetSAMLProvider

#
Service
iam

Description

Returns the SAML provider metadocument that was uploaded when the IAM SAML provider resource object was created or updated.

Example CloudTrail Event #

This is a projected export row, not a complete CloudTrail record: it shows only the envelope columns a SIEM export retained. The export never carried userIdentity, requestParameters, responseElements, sourceIPAddress, recipientAccountId, eventCategory, so their absence here says nothing about the real event. Account identifiers, ARNs and endpoint hostnames in eventID, requestID, resources, tlsDetails, userAgent are replaced with the placeholders AWS uses in its own documentation, so those values are structurally real but not the originals. errorMessage is withheld: it is free-form prose that names customer resources, which no substitution rule can find reliably. eventTime is withheld because the export renders it in the exporting system's local timezone rather than the UTC a CloudTrail record carries.

{
  "eventVersion": "1.11",
  "eventID": "accc2b48-8854-4bcf-af42-fe9d8c49f90e",
  "eventSource": "iam.amazonaws.com",
  "eventName": "GetSAMLProvider",
  "awsRegion": "us-east-1",
  "eventType": "AwsApiCall",
  "readOnly": true,
  "managementEvent": true,
  "requestID": "0fdaf535-60dd-4f9b-86a6-0226cf2509a8",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36",
  "tlsDetails": {
    "tlsVersion": "TLSv1.3",
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com"
  }
}

GetServerCertificate

#
Service
iam

Description

Retrieves information about the specified server certificate stored in IAM.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "The Server Certificate with name ddddd cannot be found.",
  "eventCategory": "Management",
  "eventID": "e3f43964-187f-496c-a5f6-937b6a25a77e",
  "eventName": "GetServerCertificate",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:44:56Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "1e914136-d4fd-422c-b98a-bd890a594fb5",
  "requestParameters": {
    "serverCertificateName": "ddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

GetServiceLastAccessedDetails

#
Service
iam

Description

Retrieves a service last accessed report that was created using the GenerateServiceLastAccessedDetails operation.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "Job dddddddddddddddddddddddddddddddddddd does not exist.",
  "eventCategory": "Management",
  "eventID": "38ecba9f-51b9-4e05-a185-00ae04480f75",
  "eventName": "GetServiceLastAccessedDetails",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:44:56Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "fd391d3b-a55f-45e9-8623-3e28f30ae047",
  "requestParameters": {
    "jobId": "dddddddddddddddddddddddddddddddddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

GetServiceLastAccessedDetailsWithEntities

#
Service
iam

Description

After you generate a group or policy report using the GenerateServiceLastAccessedDetails operation, you can use the JobId parameter in GetServiceLastAccessedDetailsWithEntities.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "InvalidInputException",
  "errorMessage": "Service namepace ddddd is either invalid or unsupported.",
  "eventCategory": "Management",
  "eventID": "024a8d26-f731-4e1f-b2a3-135a5e21200b",
  "eventName": "GetServiceLastAccessedDetailsWithEntities",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:44:56Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "1de7111e-fa41-487c-9f59-a1e7f9c94469",
  "requestParameters": {
    "jobId": "dddddddddddddddddddddddddddddddddddd",
    "serviceNamespace": "ddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

GetServiceLinkedRoleDeletionStatus

#
Service
iam

Description

Retrieves the status of your service-linked role deletion.

GetSSHPublicKey

#
Service
iam

Description

Retrieves the specified SSH public key, including metadata about the key.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "The user with name ddddd cannot be found.",
  "eventCategory": "Management",
  "eventID": "4c464353-f895-4f5b-87ef-b5c6961fa42b",
  "eventName": "GetSSHPublicKey",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:44:57Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "8b88d1d7-06db-4f27-a072-c3e5862ab463",
  "requestParameters": {
    "encoding": "SSH",
    "sSHPublicKeyId": "dddddddddddddddddddd",
    "userName": "ddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

ListAttachedGroupPolicies

#
Service
iam

Description

Lists all managed policies that are attached to the specified IAM group.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "The group with name Admins cannot be found.",
  "eventID": "dbdbc5fa-3a88-445c-8182-89877aa1dea",
  "eventName": "ListAttachedGroupPolicies",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-10-01T13:54:23Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "f10764f2-e452-11e9-a11e-03aed901deca",
  "requestParameters": {
    "groupName": "Admins"
  },
  "responseElements": null,
  "sourceIPAddress": "8.214.254.243",
  "userAgent": "aws-cli/1.16.239 Python/2.7.16+ Linux/5.2.0-kali2-amd64 botocore/1.12.229",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Panther #

References #

ListDelegationRequests

#
Service
iam

Description

Lists delegation requests based on the specified criteria.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "338a012a-243b-4a7c-9230-3f257ff7d938",
  "eventName": "ListDelegationRequests",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:32:23Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "81c99616-5b41-4a57-b531-d6f762f32d02",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/D,Z,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

ListEntitiesForPolicy

#
Service
iam

Description

Lists all IAM users, groups, and roles that the specified managed policy is attached to.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "2b20a459-ca66-4d64-a381-d9842a21abdb",
  "eventName": "ListEntitiesForPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:06:33Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "07861d55-a677-4777-8005-61f193c2346b",
  "requestParameters": {
    "policyArn": "arn:aws:iam::123837392027:policy/stratus-red-team-ec2lui-policy-pcccexdthk"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/4.67.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.261 (go1.19.8; linux; amd64) stratus-red-team_bc31c885-5ea0-4a6e-8bec-b6b10058bc44 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

ListGroupPolicies

#
Service
iam

Description

Lists the names of the inline policies that are embedded in the specified IAM group.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "User: arn:aws:sts::811596193553:assumed-role/flaws/i-aa2d3b42e5c6e801a is not authorized to perform: iam:ListGroupPolicies on resource: group level-6",
  "eventID": "e73313b-ef0f-4799-81a2-d3be626df61b",
  "eventName": "ListGroupPolicies",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2018-10-13T20:18:45Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "2f76e22b-cf25-11e8-89ee-daad2b870f77",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "126.13.212.254",
  "userAgent": "aws-cli/1.16.32 Python/3.6.6 Linux/4.18.0-kali1-amd64 botocore/1.12.22",
  "userIdentity": {
    "accessKeyId": "ASIA4OU83VYUG6MZXF8Z",
    "accountId": "811596193553",
    "arn": "arn:aws:sts::811596193553:assumed-role/flaws/i-aa2d3b42e5c6e801a",
    "principalId": "AROACW5CSA8C8WHOB3O7Q:i-aa2d3b42e5c6e801a",
    "sessionContext": {
      "attributes": {
        "creationDate": "2018-10-13T19:01:41Z",
        "mfaAuthenticated": "false"
      },
      "sessionIssuer": {
        "accountId": "811596193553",
        "arn": "arn:aws:iam::811596193553:role/flaws",
        "principalId": "AROACW5CSA8C8WHOB3O7Q",
        "type": "Role",
        "userName": "flaws"
      }
    },
    "type": "AssumedRole"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Panther #

References #

ListGroupsForUser

#
Service
iam

Description

Lists the IAM groups that the specified IAM user belongs to.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "887dcedd-6556-4e55-b58f-004218c2f80d",
  "eventName": "ListGroupsForUser",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:33Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "10711769-7894-4345-b4b7-84fbe32c0da0",
  "requestParameters": {
    "userName": "stratus-red-team-nmfalu-gfjyeaypjt"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.20 (go1.17.6; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
count_ (kusto rule field)gt501 rulekusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Kusto #

Panther #

References #

ListInstanceProfiles

#
Service
iam

Description

Lists the instance profiles that have the specified path prefix.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "a459c448-183f-4f35-a566-d00168fd10",
  "eventName": "ListInstanceProfiles",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-02-12T20:08:08Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "f8aac625-f15e-11e6-b084-c1f6879f5a25",
  "requestParameters": {
    "pathPrefix": "/"
  },
  "responseElements": null,
  "sourceIPAddress": "255.253.125.115",
  "userAgent": "aws-internal/3",
  "userIdentity": {
    "accessKeyId": "ASIAIB6AB67SP5RKU9Z4",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:root",
    "principalId": "811596193553",
    "sessionContext": {
      "attributes": {
        "creationDate": "2017-02-12T19:57:05Z",
        "mfaAuthenticated": "false"
      }
    },
    "type": "Root"
  }
}

References #

ListInstanceProfilesForRole

#
Service
iam

Description

Lists the instance profiles that have the specified associated IAM role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "cd7c1bc9-95c6-4906-86ff-765bf2ee83d5",
  "eventName": "ListInstanceProfilesForRole",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:07:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "73e1a537-785b-44bb-8dc2-76f9492b05de",
  "requestParameters": {
    "roleName": "stratus-red-team-leave-org-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

ListInstanceProfileTags

#
Service
iam

Description

Lists the tags that are attached to the specified IAM instance profile.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "Instance Profile ddddd cannot be found.",
  "eventCategory": "Management",
  "eventID": "d0434a0f-ed92-4082-a5d1-28e57a3e4d87",
  "eventName": "ListInstanceProfileTags",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:44:57Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "6891afa6-9824-4074-8706-9c0c48153b43",
  "requestParameters": {
    "instanceProfileName": "ddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

ListMFADeviceTags

#
Service
iam

Description

Lists the tags that are attached to the specified IAM virtual multi-factor authentication (MFA) device.

ListOpenIDConnectProviders

#
Service
iam

Description

Lists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the Amazon Web Services account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "11f0b6cf-ce70-4bcd-b025-1d67dd2eb4cc",
  "eventName": "ListOpenIDConnectProviders",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-04-13T13:11:34Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "760111141337",
  "requestID": "106e0f90-9bf8-40a7-8094-3ddd65180b54",
  "requestParameters": null,
  "responseElements": {
    "openIDConnectProviderList": []
  },
  "sourceIPAddress": "95.9.125.40",
  "userAgent": "Boto3/1.14.6 Python/3.9.4 Darwin/20.3.0 Botocore/1.17.6",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLIXX7QSZR",
    "accountId": "760111141337",
    "arn": "arn:aws:iam::760111141337:user/cloudmapper",
    "principalId": "AIDAYTOGP2RLK32EB7QZV",
    "type": "IAMUser",
    "userName": "cloudmapper"
  }
}

References #

ListOpenIDConnectProviderTags

#
Service
iam

Description

Lists the tags that are attached to the specified OpenID Connect (OIDC)-compatible identity provider.

Example CloudTrail Event #

This is a projected export row, not a complete CloudTrail record: it shows only the envelope columns a SIEM export retained. The export never carried userIdentity, requestParameters, responseElements, sourceIPAddress, recipientAccountId, eventCategory, so their absence here says nothing about the real event. Account identifiers, ARNs and endpoint hostnames in eventID, requestID, resources, tlsDetails, userAgent are replaced with the placeholders AWS uses in its own documentation, so those values are structurally real but not the originals. errorMessage is withheld: it is free-form prose that names customer resources, which no substitution rule can find reliably. eventTime is withheld because the export renders it in the exporting system's local timezone rather than the UTC a CloudTrail record carries.

{
  "eventVersion": "1.11",
  "eventID": "9afeb54a-724e-4506-a433-3d5e84ae70a1",
  "eventSource": "iam.amazonaws.com",
  "eventName": "ListOpenIDConnectProviderTags",
  "awsRegion": "us-east-1",
  "eventType": "AwsApiCall",
  "readOnly": true,
  "managementEvent": true,
  "requestID": "8625bf68-e307-4ea3-901a-0b0696d4d700",
  "userAgent": "Botocore/1.35.95 ua/2.0 os/linux#5.10.245-245.983.amzn2.x86_64 md/arch#x86_64 lang/python#3.9.23 md/pyimpl#CPython cfg/retry-mode#adaptive",
  "tlsDetails": {
    "tlsVersion": "TLSv1.3",
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com"
  }
}

ListOrganizationsFeatures

#
Service
iam

Description

Lists the centralized root access features enabled for your organization.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "OrganizationNotFoundException",
  "errorMessage": "Input account 123456789012 is not a member of an organization.",
  "eventCategory": "Management",
  "eventID": "bc944492-369a-402f-9985-047c9fd7d466",
  "eventName": "ListOrganizationsFeatures",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:32:23Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "c1105849-7a60-4ad6-a4e0-c65858aa718a",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/D,Z,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

ListPoliciesGrantingServiceAccess

#
Service
iam

Description

Retrieves a list of policies that the IAM identity (user, group, or role) can use to access each specified service.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "c93422fa-4ee9-426b-92af-65eb2ec03113",
  "eventName": "ListPoliciesGrantingServiceAccess",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-04-18T09:21:55Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "68e50a21-61bb-11e9-ad42-6b24cb9115fc",
  "requestParameters": {
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "serviceNamespaces": [
      "s3"
    ]
  },
  "responseElements": {
    "isTruncated": false,
    "policiesGrantingServiceAccess": [
      {
        "policies": [
          {
            "policyArn": "arn:aws:iam::811596193553:policy/MySecurityAudit",
            "policyName": "MySecurityAudit",
            "policyType": "MANAGED"
          }
        ],
        "serviceNamespace": "s3"
      }
    ]
  },
  "sourceIPAddress": "77.2.224.1",
  "userAgent": "aws-cli/1.16.130 Python/2.7.15rc1 Linux/4.15.0-47-generic botocore/1.12.120",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

References #

ListPolicyTags

#
Service
iam

Description

Lists the tags that are attached to the specified IAM customer managed policy.

Example CloudTrail Event #

This is a projected export row, not a complete CloudTrail record: it shows only the envelope columns a SIEM export retained. The export never carried userIdentity, requestParameters, responseElements, sourceIPAddress, recipientAccountId, eventCategory, so their absence here says nothing about the real event. Account identifiers, ARNs and endpoint hostnames in eventID, requestID, resources, tlsDetails, userAgent are replaced with the placeholders AWS uses in its own documentation, so those values are structurally real but not the originals. errorMessage is withheld: it is free-form prose that names customer resources, which no substitution rule can find reliably. eventTime is withheld because the export renders it in the exporting system's local timezone rather than the UTC a CloudTrail record carries.

{
  "eventVersion": "1.11",
  "eventID": "144f869c-2046-4db6-9b4f-cc0b42c1cac4",
  "eventSource": "iam.amazonaws.com",
  "eventName": "ListPolicyTags",
  "awsRegion": "us-east-1",
  "eventType": "AwsApiCall",
  "readOnly": true,
  "managementEvent": true,
  "requestID": "4da59141-6c91-4316-8ee7-1b815acaf290",
  "userAgent": "aws-sdk-go-v2/1.43.0 ua/2.1 os/linux lang/go#1.26.5 md/GOOS#linux md/GOARCH#arm64 api/iam#1.43.0 m/C,E,i",
  "tlsDetails": {
    "tlsVersion": "TLSv1.3",
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com"
  }
}

ListPolicyVersions

#
Service
iam

Description

Lists information about the versions of the specified managed policy, including the version that is currently set as the policy's default version.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "0b30d94e-57d4-4ecd-a5fe-d6cf7397f76b",
  "eventName": "ListPolicyVersions",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:08:01Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "f70ac6f6-2fde-48b0-89c0-314ce9b4ada8",
  "requestParameters": {
    "policyArn": "arn:aws:iam::123837392027:policy/stratus-red-team-ec2lui-policy-pcccexdthk"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/4.67.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.261 (go1.19.8; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

ListRolePolicies

#
Service
iam

Description

Lists the names of the inline policies that are embedded in the specified IAM role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "5407b562-9c40-4222-b457-9aebec29398d",
  "eventName": "ListRolePolicies",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:54:41Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "473ca0f9-3a60-48a5-bf5c-6cf8ba0e2276",
  "requestParameters": {
    "roleName": "stratus-red-team-ec2-get-password-data-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_39f95f43-cd2f-4beb-b69e-be60b6fe1f57 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

ListRoleTags

#
Service
iam

Description

Lists the tags that are attached to the specified role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "d0dd1126-5fda-4efb-9900-d2ad847958",
  "eventName": "ListRoleTags",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-03-03T16:27:07Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "2fd802039-3dd1-11e9-8e2f-5ce22b4f3cca",
  "requestParameters": {
    "roleName": "SummitRouteAudit"
  },
  "responseElements": null,
  "sourceIPAddress": "2.7.223.252",
  "userAgent": "console.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIA6IWSYSPXI70LJ166",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:root",
    "principalId": "811596193553",
    "sessionContext": {
      "attributes": {
        "creationDate": "2019-03-03T16:27:05Z",
        "mfaAuthenticated": "true"
      }
    },
    "type": "Root",
    "userName": "flaws"
  }
}

References #

ListSAMLProviders

#
Service
iam

Description

Lists the SAML provider resource objects defined in IAM in the account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "a02db39c-2ccb-4a4c-9d5b-273e16a10b5f",
  "eventName": "ListSAMLProviders",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-04-13T13:11:32Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "760111141337",
  "requestID": "139befb6-59c2-4377-b2c2-9d102b25ba59",
  "requestParameters": null,
  "responseElements": {
    "sAMLProviderList": [
      {
        "arn": "arn:aws:iam::760111141337:saml-provider/ADFS",
        "createDate": "Jan 15, 2021 3:02:06 AM",
        "validUntil": "Jan 15, 2121 3:02:06 AM"
      },
      {
        "arn": "arn:aws:iam::760111141337:saml-provider/rodsotoonmicrosoft",
        "createDate": "Jan 20, 2021 3:12:38 AM",
        "validUntil": "Jan 20, 2121 3:12:38 AM"
      }
    ]
  },
  "sourceIPAddress": "95.9.125.40",
  "userAgent": "Boto3/1.14.6 Python/3.9.4 Darwin/20.3.0 Botocore/1.17.6",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLIXX7QSZR",
    "accountId": "760111141337",
    "arn": "arn:aws:iam::760111141337:user/cloudmapper",
    "principalId": "AIDAYTOGP2RLK32EB7QZV",
    "type": "IAMUser",
    "userName": "cloudmapper"
  }
}

References #

ListSAMLProviderTags

#
Service
iam

Description

Lists the tags that are attached to the specified Security Assertion Markup Language (SAML) identity provider.

Example CloudTrail Event #

This is a projected export row, not a complete CloudTrail record: it shows only the envelope columns a SIEM export retained. The export never carried userIdentity, requestParameters, responseElements, sourceIPAddress, recipientAccountId, eventCategory, so their absence here says nothing about the real event. Account identifiers, ARNs and endpoint hostnames in eventID, requestID, resources, tlsDetails, userAgent are replaced with the placeholders AWS uses in its own documentation, so those values are structurally real but not the originals. errorMessage is withheld: it is free-form prose that names customer resources, which no substitution rule can find reliably. eventTime is withheld because the export renders it in the exporting system's local timezone rather than the UTC a CloudTrail record carries.

{
  "eventVersion": "1.11",
  "eventID": "12b11b45-7b04-4281-8c38-c96b90e9c2e3",
  "eventSource": "iam.amazonaws.com",
  "eventName": "ListSAMLProviderTags",
  "awsRegion": "us-east-1",
  "eventType": "AwsApiCall",
  "readOnly": true,
  "managementEvent": true,
  "requestID": "8d6e00ab-d21d-4991-99ea-bfc89d298ae7",
  "userAgent": "Botocore/1.35.95 ua/2.0 os/linux#5.10.245-245.983.amzn2.x86_64 md/arch#x86_64 lang/python#3.9.23 md/pyimpl#CPython cfg/retry-mode#adaptive",
  "tlsDetails": {
    "tlsVersion": "TLSv1.3",
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com"
  }
}

ListServerCertificates

#
Service
iam

Description

Lists the server certificates stored in IAM that have the specified path prefix.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "User: arn:aws:iam::731544447609:user/cloudsploit is not authorized to perform: iam:ListServerCertificates on resource: arn:aws:iam::731544447609:server-certificate/",
  "eventCategory": "Management",
  "eventID": "700fbee7-3067-4013-a1d2-eb386dab4bc3",
  "eventName": "ListServerCertificates",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2021-04-13T11:35:16Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "731544447609",
  "requestID": "c8bdcf98-f1fe-40f9-8325-3e9c5a08766e",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "34.12.134.20",
  "userAgent": "aws-sdk-nodejs/2.885.0 linux/v14.16.1 callback",
  "userIdentity": {
    "accessKeyId": "AKIAYTOGP2RLGBSBSMH2",
    "accountId": "731544447609",
    "arn": "arn:aws:iam::731544447609:user/cloudsploit",
    "principalId": "AIDAYTOGP2RLMDEPWZWMJ",
    "type": "IAMUser",
    "userName": "cloudsploit"
  }
}

References #

ListServerCertificateTags

#
Service
iam

Description

Lists the tags that are attached to the specified IAM server certificate.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "The Server Certificate with name ddddd cannot be found.",
  "eventCategory": "Management",
  "eventID": "875ff2e8-4399-4814-8e32-4b292e731917",
  "eventName": "ListServerCertificateTags",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T18:44:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "914c86cc-faa1-4c02-8232-fa3859f0df5a",
  "requestParameters": {
    "serverCertificateName": "ddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

ListServiceSpecificCredentials

#
Service
iam

Description

Returns information about the service-specific credentials associated with the specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "bf80b0a7-3ca6-4181-889b-5806ebd19e20",
  "eventName": "ListServiceSpecificCredentials",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:34Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "72251e3f-2530-4dcb-baa4-eb0a0c947e0b",
  "requestParameters": {
    "userName": "stratus-red-team-nmfalu-gfjyeaypjt"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.20 (go1.17.6; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

ListSigningCertificates

#
Service
iam

Description

Returns information about the signing certificates associated with the specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "9d9240cb-1f40-48cb-a185-77a1bec1c2e6",
  "eventName": "ListSigningCertificates",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:34Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "a53db33b-d1b1-4769-b9c4-2a85ca7dfbab",
  "requestParameters": {
    "userName": "stratus-red-team-nmfalu-gfjyeaypjt"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.20 (go1.17.6; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

ListSSHPublicKeys

#
Service
iam

Description

Returns information about the SSH public keys associated with the specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "dde55214-0c87-4aef-b36b-643796dd3793",
  "eventName": "ListSSHPublicKeys",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:33Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "f267e46d-3267-4678-a4ed-f6fc2738bd42",
  "requestParameters": {
    "userName": "stratus-red-team-login-profile-user"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

ListUserTags

#
Service
iam

Description

Lists the tags that are attached to the specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "7916eb51-6f9d-40af-ad19-41981a655",
  "eventName": "ListUserTags",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-03-03T16:31:51Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "d927e40d-3dd1-11e9-b003-9be845e9f497",
  "requestParameters": {
    "userName": "backup"
  },
  "responseElements": null,
  "sourceIPAddress": "2.7.223.252",
  "userAgent": "console.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIA6IWSYSPXI70LJ166",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:root",
    "principalId": "811596193553",
    "sessionContext": {
      "attributes": {
        "creationDate": "2019-03-03T16:27:05Z",
        "mfaAuthenticated": "true"
      }
    },
    "type": "Root",
    "userName": "flaws"
  }
}

References #

ListVirtualMFADevices

#
Service
iam

Description

Lists the virtual MFA devices defined in the Amazon Web Services account by assignment status.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "f3cc832f-346e-4135-9cf4-84c6016e1f15",
  "eventName": "ListVirtualMFADevices",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:28:34Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123837392027",
  "requestID": "8850cb88-5a9e-44c4-87a2-eee08e7d18d8",
  "requestParameters": {
    "assignmentStatus": "Assigned"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.20 (go1.17.6; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

PutGroupPolicy

#
Service
iam

Description

Adds or updates an inline policy document that is embedded in the specified IAM group.

CloudTrail management event, logged by default.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "72933063-670b-4f56-a7eb-2ccf81b35942",
  "eventName": "PutGroupPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:57Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "a9ae8278-f161-4d2d-8995-a9ad38e21b95",
  "requestParameters": {
    "groupName": "dwfix-group",
    "policyDocument": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Deny",
          "Action": "*",
          "Resource": "*"
        }
      ]
    },
    "policyName": "dwp"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
Effect (kusto rule field)eqallow11 ruleskusto
Resource (kusto rule field)eq*11 ruleskusto
aws::errorCode (kusto rule field)is_null11 ruleskusto
aws::errorMessage (kusto rule field)is_null11 ruleskusto
Action (kusto rule field)containsiam:*5 ruleskusto
Action (kusto rule field)containsiam:passrole5 ruleskusto
Action (kusto rule field)containskms:delete2 ruleskusto
Action (kusto rule field)containscloudformation:*1 rulekusto
Action (kusto rule field)containscloudformation:create*1 rulekusto
Action (kusto rule field)containscloudformation:createstack1 rulekusto
Action (kusto rule field)containscloudformation:describe*1 rulekusto
Action (kusto rule field)containscloudformation:describestacks1 rulekusto
Action (kusto rule field)containsdatapipeline:*1 rulekusto
Action (kusto rule field)containsdatapipeline:activate*1 rulekusto
Condition (kusto rule field)is_null2 ruleskusto

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Inline Policy Added to a Group source medium: Identifies an inline policy added to an IAM group via PutGroupPolicy. An inline policy attached to a group grants its permissions to every current and future member of that group. Adversaries can abuse this to escalate privileges (grant elevated permissions to a group they belong to, or will add themselves to) and to establish persistence through a durable, membership-based grant that is easy to overlook. Group inline policies are uncommon compared to managed-policy attachments, so their creation by an unexpected principal warrants review.T1098, T1098.003

Kusto #

Panther #

PutRolePermissionsBoundary

#
Service
iam

Description

Adds or updates the policy that is specified as the IAM role's permissions boundary.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "cbd2c0f0-8dba-4fb6-97ff-7daac9e0e6c1",
  "eventName": "PutRolePermissionsBoundary",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:58Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "c407c6f8-6d13-48d9-a269-2ddbe2a743ed",
  "requestParameters": {
    "permissionsBoundary": "arn:aws:iam::aws:policy/ReadOnlyAccess",
    "roleName": "dwfix-role"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Permissions Boundary Modified or Removed source medium: Identifies the modification or removal of an IAM permissions boundary on an IAM user or role. A permissions boundary caps the maximum permissions an identity can have, regardless of its attached identity policies. An adversary who can delete a boundary ("DeleteUserPermissionsBoundary", "DeleteRolePermissionsBoundary") or replace it with a more permissive one ("PutUserPermissionsBoundary", "PutRolePermissionsBoundary") can lift that cap and unlock permissions the identity's policies already grant, enabling privilege escalation. Boundary changes are infrequent and usually performed by a small set of administrators or infrastructure-as-code pipelines, so changes by unexpected principals warrant review.T1098↳ also matches DeleteRolePermissionsBoundary, DeleteUserPermissionsBoundary, PutUserPermissionsBoundary

PutUserPermissionsBoundary

#
Service
iam

Description

Adds or updates the policy that is specified as the IAM user's permissions boundary.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "813169f4-7106-4187-b70d-f07d562b670a",
  "eventName": "PutUserPermissionsBoundary",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:56Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "0c7b8ff6-c6e6-4b0f-98a0-57f71b5aa837",
  "requestParameters": {
    "permissionsBoundary": "arn:aws:iam::aws:policy/ReadOnlyAccess",
    "userName": "dwfix-user"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • AWS IAM Permissions Boundary Modified or Removed source medium: Identifies the modification or removal of an IAM permissions boundary on an IAM user or role. A permissions boundary caps the maximum permissions an identity can have, regardless of its attached identity policies. An adversary who can delete a boundary ("DeleteUserPermissionsBoundary", "DeleteRolePermissionsBoundary") or replace it with a more permissive one ("PutUserPermissionsBoundary", "PutRolePermissionsBoundary") can lift that cap and unlock permissions the identity's policies already grant, enabling privilege escalation. Boundary changes are infrequent and usually performed by a small set of administrators or infrastructure-as-code pipelines, so changes by unexpected principals warrant review.T1098↳ also matches DeleteRolePermissionsBoundary, DeleteUserPermissionsBoundary, PutRolePermissionsBoundary

RejectDelegationRequest

#
Service
iam

Description

Rejects a delegation request, denying the requested temporary access.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "Delegation request not found: dddddddddddddddd",
  "eventCategory": "Management",
  "eventID": "c080489a-dcac-4295-a678-a8d7bb7f1a8d",
  "eventName": "RejectDelegationRequest",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:24:38Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "5014c79f-ef19-4adf-b2a3-143ea329f207",
  "requestParameters": {
    "delegationRequestId": "dddddddddddddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

RemoveClientIDFromOpenIDConnectProvider

#
Service
iam

Description

Removes the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect (OIDC) provider resource object.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "2c95601b-25d3-418f-9ba0-0e889bc15894",
  "eventName": "RemoveClientIDFromOpenIDConnectProvider",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "4f7945df-5427-4d55-8df3-267966830938",
  "requestParameters": {
    "clientID": "dw2",
    "openIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/dwfix.example.com"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

RemoveRoleFromInstanceProfile

#
Service
iam

Description

Removes the specified IAM role from the specified Amazon EC2 instance profile.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "9a8666dd-4850-4ef5-9417-069e5ae7ab21",
  "eventName": "RemoveRoleFromInstanceProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T12:07:23Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "9140f9b9-07df-4fc4-921c-5baebb73c980",
  "requestParameters": {
    "instanceProfileName": "stratus-red-team-usr-data-instance",
    "roleName": "stratus-red-team-usr-data-role"
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

RemoveUserFromGroup

#
Service
iam

Description

Removes the specified user from the specified group.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "da19db4b-0691-497e-9328-b344e47b6ed2",
  "eventName": "RemoveUserFromGroup",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:02Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "07527a27-e706-4112-8fd8-33f284714eba",
  "requestParameters": {
    "groupName": "dwfix-group",
    "userName": "dwfix-user"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Kusto #

ResetServiceSpecificCredential

#
Service
iam

Description

Resets the password for a service-specific credential.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "No such credential dddddddddddddddddddd exists",
  "eventCategory": "Management",
  "eventID": "21cccd43-eb30-4727-bcc8-cde4746f4d8f",
  "eventName": "ResetServiceSpecificCredential",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:24:38Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "e6f096a9-c379-4a80-9eb7-29b19aee5115",
  "requestParameters": {
    "serviceSpecificCredentialId": "dddddddddddddddddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

ResyncMFADevice

#
Service
iam

Description

Synchronizes the specified MFA device with its IAM resource object on the Amazon Web Services servers.

SendDelegationToken

#
Service
iam

Description

Sends the exchange token for an accepted delegation request.

SetSecurityTokenServicePreferences

#
Service
iam

Description

Sets the specified version of the global endpoint token as the token version used for the Amazon Web Services account.

SimulateCustomPolicy

#
Service
iam

Description

Simulate how a set of IAM policies and optionally a resource-based policy works with a list of API operations and Amazon Web Services resources to determine the policies' effective permissions.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "3fd063f1-7a11-4742-b36f-ab97b5fb2d81",
  "eventName": "SimulateCustomPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:00Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": true,
  "recipientAccountId": "123456789012",
  "requestID": "04bf1c83-2cb8-427c-ae4a-e48645b849cd",
  "requestParameters": {
    "isRedacted": true,
    "reason": "HIDDEN_DUE_TO_SECURITY_REASONS"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

SimulatePrincipalPolicy

#
Service
iam

Description

Simulate how a set of IAM policies attached to an IAM entity works with a list of API operations and Amazon Web Services resources to determine the policies' effective permissions.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "bcadf8ec-6a29-4de7-a650-5618ed4ce28f",
  "eventName": "SimulatePrincipalPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2018-10-21T14:49:40Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "8a3c493c-d540-11e8-bf2d-c0dc9efaa456",
  "requestParameters": {
    "actionNames": [
      "iam:PutUserPolicy"
    ],
    "contextEntries": [],
    "policySourceArn": "arn:aws:iam::811596193553:user/piper",
    "resourceArns": [
      "arn:aws:iam::811596193553:user/piper"
    ]
  },
  "responseElements": {
    "evaluationResults": [
      {
        "evalActionName": "iam:PutUserPolicy",
        "evalDecision": "allowed",
        "evalDecisionDetails": {},
        "evalResourceName": "arn:aws:iam::811596193553:user/piper",
        "matchedStatements": [
          {
            "endPosition": {
              "column": 6,
              "line": 8
            },
            "sourcePolicyId": "AdministratorAccess",
            "startPosition": {
              "column": 17,
              "line": 3
            }
          }
        ],
        "missingContextValues": [],
        "resourceSpecificResults": [
          {
            "evalResourceDecision": "allowed",
            "evalResourceName": "arn:aws:iam::811596193553:user/piper",
            "matchedStatements": [
              {
                "endPosition": {
                  "column": 6,
                  "line": 8
                },
                "sourcePolicyId": "AdministratorAccess",
                "startPosition": {
                  "column": 17,
                  "line": 3
                }
              }
            ],
            "missingContextValues": []
          }
        ]
      }
    ],
    "isTruncated": false
  },
  "sourceIPAddress": "9.245.1.85",
  "userAgent": "Botocore/1.12.25 Python/2.7.15 Linux/4.16.0-kali2-amd64",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

References #

TagInstanceProfile

#
Service
iam

Description

Adds one or more tags to an IAM instance profile.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "a87cdb52-c05c-47a6-af1f-f020cfcb3035",
  "eventName": "TagInstanceProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2023-07-10T11:55:12Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.08",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123837392027",
  "requestID": "5a00d3f2-9fcb-49ae-b119-963106c99de8",
  "requestParameters": {
    "instanceProfileName": "stratus-red-team-ec2-steal-credentials-instance",
    "tags": [
      {
        "key": "StratusRedTeam",
        "value": "true"
      }
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "192.168.10.20",
  "tlsDetails": {
    "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.2"
  },
  "userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.1.2 (+https://www.terraform.io) terraform-provider-aws/3.76.1 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.157 (go1.19.3; linux; amd64) stratus-red-team_6a7ec681-49a5-4403-99a2-d3c1229e8063 HashiCorp-terraform-exec/0.17.3",
  "userIdentity": {
    "accessKeyId": "AKIATFQR7NSC8Q4X20BJ",
    "accountId": "123837392027",
    "arn": "arn:aws:iam::123837392027:user/bert-jan",
    "principalId": "AIDATFQR7NSC5AU2ZV3IE",
    "type": "IAMUser",
    "userName": "bert-jan"
  }
}

References #

TagMFADevice

#
Service
iam

Description

Adds one or more tags to an IAM virtual multi-factor authentication (MFA) device.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "871976a1-e7f0-4613-9bc0-bb7373352d48",
  "eventName": "TagMFADevice",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:00Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "2af3be73-0578-438f-aadf-7c636c7d50c9",
  "requestParameters": {
    "serialNumber": "arn:aws:iam::123456789012:mfa/dwfix-mfa",
    "tags": [
      {
        "key": "dw",
        "value": "fixture"
      }
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

TagOpenIDConnectProvider

#
Service
iam

Description

Adds one or more tags to an OpenID Connect (OIDC)-compatible identity provider.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "f5af8ed4-5db5-4a23-882f-fa9ade04cf78",
  "eventName": "TagOpenIDConnectProvider",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "29153a40-8644-4506-b255-de95fea1060c",
  "requestParameters": {
    "openIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/dwfix.example.com",
    "tags": [
      {
        "key": "dw",
        "value": "fixture"
      }
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

TagPolicy

#
Service
iam

Description

Adds one or more tags to an IAM customer managed policy.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "1b598f4d-a24e-4823-be80-30ab7311cf26",
  "eventName": "TagPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:58Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "858b3ab6-3865-4eaf-8dfa-2ec322128120",
  "requestParameters": {
    "policyArn": "arn:aws:iam::123456789012:policy/dwfix-pol",
    "tags": [
      {
        "key": "dw",
        "value": "fixture"
      }
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

TagRole

#
Service
iam

Description

Adds one or more tags to an IAM role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "1aaf7057-a0f8-44d9-a6eb-62b487215ee6",
  "eventName": "TagRole",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:58Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "83d5fe77-1bbb-4ad7-96ac-56e4f3cff5bb",
  "requestParameters": {
    "roleName": "dwfix-role",
    "tags": [
      {
        "key": "dw",
        "value": "fixture"
      }
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

TagSAMLProvider

#
Service
iam

Description

Adds one or more tags to a Security Assertion Markup Language (SAML) identity provider.

TagServerCertificate

#
Service
iam

Description

Adds one or more tags to an IAM server certificate.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "a3775be8-b0c3-4ac2-9420-88b2cd4638e0",
  "eventName": "TagServerCertificate",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "7be7d886-a246-428e-aa8b-85c784421aea",
  "requestParameters": {
    "serverCertificateName": "dwfix-cert",
    "tags": [
      {
        "key": "dw",
        "value": "fixture"
      }
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

TagUser

#
Service
iam

Description

Adds one or more tags to an IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "fd556b6c-28db-49af-9fea-3c94801a70bb",
  "eventName": "TagUser",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:56Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "20ef7702-0ec1-41ef-9cdd-f5380ba1b14e",
  "requestParameters": {
    "tags": [
      {
        "key": "dw",
        "value": "fixture"
      }
    ],
    "userName": "dwfix-user"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UntagInstanceProfile

#
Service
iam

Description

Removes the specified tags from the IAM instance profile.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "Instance Profile ddddd cannot be found.",
  "eventCategory": "Management",
  "eventID": "d8745e12-1e0b-462d-a708-c84e01a1ad5a",
  "eventName": "UntagInstanceProfile",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:24:38Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "3a5494a1-1500-4e09-8762-03e1238d2f26",
  "requestParameters": {
    "instanceProfileName": "ddddd",
    "tagKeys": [
      "ddddd"
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UntagMFADevice

#
Service
iam

Description

Removes the specified tags from the IAM virtual multi-factor authentication (MFA) device.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "d245655c-1852-440f-83f2-33b521f0c955",
  "eventName": "UntagMFADevice",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:00Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "107cf550-1240-4f67-8cdc-48c013c017df",
  "requestParameters": {
    "serialNumber": "arn:aws:iam::123456789012:mfa/dwfix-mfa",
    "tagKeys": [
      "dw"
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UntagOpenIDConnectProvider

#
Service
iam

Description

Removes the specified tags from the specified OpenID Connect (OIDC)-compatible identity provider in IAM.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "17f4e3e8-6077-418b-a77d-8dc2135ae7c5",
  "eventName": "UntagOpenIDConnectProvider",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:01Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "8d0b93d2-5262-4a1e-8a4e-7c604ad74e0f",
  "requestParameters": {
    "openIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/dwfix.example.com",
    "tagKeys": [
      "dw"
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UntagPolicy

#
Service
iam

Description

Removes the specified tags from the customer managed policy.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "6bca8645-9671-479a-aa52-370830484bea",
  "eventName": "UntagPolicy",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:01Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "c40f2a9b-6186-4ffd-b278-25546663f2e4",
  "requestParameters": {
    "policyArn": "arn:aws:iam::123456789012:policy/dwfix-pol",
    "tagKeys": [
      "dw"
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UntagRole

#
Service
iam

Description

Removes the specified tags from the role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "e29dc93b-237f-4075-b04c-2fa29d777e0f",
  "eventName": "UntagRole",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:01Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "a84da40e-2541-4dc9-b861-6ce911194dbc",
  "requestParameters": {
    "roleName": "dwfix-role",
    "tagKeys": [
      "dw"
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UntagSAMLProvider

#
Service
iam

Description

Removes the specified tags from the specified Security Assertion Markup Language (SAML) identity provider in IAM.

UntagServerCertificate

#
Service
iam

Description

Removes the specified tags from the IAM server certificate.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "735fd8b0-7979-45ee-894e-8c8f5f9ffdc7",
  "eventName": "UntagServerCertificate",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:00Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "3a8494e9-e436-4200-b0d5-2715b8a17928",
  "requestParameters": {
    "serverCertificateName": "dwfix-cert",
    "tagKeys": [
      "dw"
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UntagUser

#
Service
iam

Description

Removes the specified tags from the user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "0c74eeda-f397-453c-aa0c-c52bcb88f48e",
  "eventName": "UntagUser",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:03:03Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "267a5262-6206-48d8-8b61-de9fbcb5db6a",
  "requestParameters": {
    "tagKeys": [
      "dw"
    ],
    "userName": "dwfix-user"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UpdateAccessKey

#
Service
iam

Description

Changes the status of the specified access key from Active to Inactive, or vice versa.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventID": "9bf68594-f408-4283-8182-a2db7e3186ea",
  "eventName": "UpdateAccessKey",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2017-02-27T05:42:07Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.02",
  "recipientAccountId": "811596193553",
  "requestID": "79bf1108-fcaf-11e6-a895-b794192b4bcf0",
  "requestParameters": {
    "accessKeyId": "AKIAKZ5DMM2L61KYGILK",
    "status": "Inactive"
  },
  "responseElements": null,
  "sourceIPAddress": "255.253.125.115",
  "userAgent": "console.amazonaws.com",
  "userIdentity": {
    "accessKeyId": "ASIAJMHFGREHBKC9VXH6",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:root",
    "principalId": "811596193553",
    "sessionContext": {
      "attributes": {
        "creationDate": "2017-02-26T17:48:22Z",
        "mfaAuthenticated": "true"
      }
    },
    "type": "Root"
  }
}

References #

UpdateDelegationRequest

#
Service
iam

Description

Updates an existing delegation request with additional information.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "Delegation request not found: dddddddddddddddd",
  "eventCategory": "Management",
  "eventID": "0a52e6b0-aace-4fe0-bed8-875e4819a623",
  "eventName": "UpdateDelegationRequest",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:24:39Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "cb439932-8efe-4756-9a24-c2794d9c525b",
  "requestParameters": {
    "delegationRequestId": "dddddddddddddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UpdateGroup

#
Service
iam

Description

Updates the name and/or the path of the specified IAM group.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "503b28bb-8a04-4246-9a8f-da847f1a27d8",
  "eventName": "UpdateGroup",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:57Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "e6175fd2-43ed-412e-a502-3bf8b59a76c9",
  "requestParameters": {
    "groupName": "dwfix-group",
    "newPath": "/dw/"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UpdateOpenIDConnectProviderThumbprint

#
Service
iam

Description

Replaces the existing list of server certificate thumbprints associated with an OpenID Connect (OIDC) provider resource object with a new list of thumbprints.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "df8a6b99-6aff-4783-939c-0412883b5a1c",
  "eventName": "UpdateOpenIDConnectProviderThumbprint",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "4ab1f258-6cc3-4802-8d28-380fd1dca63d",
  "requestParameters": {
    "openIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/dwfix.example.com",
    "thumbprintList": [
      "abcdef0123456789abcdef0123456789abcdef01"
    ]
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UpdateRole

#
Service
iam

Description

Updates the description or maximum session duration setting of a role.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "ff7bf406-9aa7-404e-a995-22f8ef6fb503",
  "eventName": "UpdateRole",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:58Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "9c12ef97-e93d-4e9a-bb7e-f4f7cbded375",
  "requestParameters": {
    "description": "dw",
    "roleName": "dwfix-role"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UpdateRoleDescription

#
Service
iam

Description

Use UpdateRole instead.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "544d27bf-95dc-481a-9f6b-24b5297ca37d",
  "eventName": "UpdateRoleDescription",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:58Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "c2e61687-7fc9-401a-901b-ad8684603f78",
  "requestParameters": {
    "description": "dw2",
    "roleName": "dwfix-role"
  },
  "responseElements": {
    "role": {
      "arn": "arn:aws:iam::123456789012:role/dwfix-role",
      "assumeRolePolicyDocument": "%7B%22Version%22%3A%222012-10-17%22%2C%22Statement%22%3A%5B%7B%22Effect%22%3A%22Allow%22%2C%22Principal%22%3A%7B%22Service%22%3A%22ec2.amazonaws.com%22%7D%2C%22Action%22%3A%22sts%3AAssumeRole%22%7D%5D%7D",
      "createDate": "2026-06-29T19:02:58Z",
      "description": "dw2",
      "path": "/",
      "roleId": "AROAEXAMPLE00000000",
      "roleName": "dwfix-role"
    }
  },
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UpdateServerCertificate

#
Service
iam

Description

Updates the name and/or the path of the specified server certificate stored in IAM.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "2e64e7e1-df86-40f3-a3b6-6d2639ef2bf4",
  "eventName": "UpdateServerCertificate",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "97486daa-3840-4c95-8fca-8dbc4dd10bc5",
  "requestParameters": {
    "newPath": "/dw/",
    "serverCertificateName": "dwfix-cert"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UpdateServiceSpecificCredential

#
Service
iam

Description

Sets the status of a service-specific credential to Active or Inactive.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "No such credential dddddddddddddddddddd exists",
  "eventCategory": "Management",
  "eventID": "447793d5-4574-414b-a8d9-40012a1c736b",
  "eventName": "UpdateServiceSpecificCredential",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:24:39Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "6ca5db30-bfe2-407b-b172-ecf95f04c7f4",
  "requestParameters": {
    "serviceSpecificCredentialId": "dddddddddddddddddddd",
    "status": "Active"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UpdateSigningCertificate

#
Service
iam

Description

Changes the status of the specified user signing certificate from active to disabled, or vice versa.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "The Certificate with id dddddddddddddddddddddddd cannot be found.",
  "eventCategory": "Management",
  "eventID": "b47fb507-2b7a-46a7-8670-395b6fde1788",
  "eventName": "UpdateSigningCertificate",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:24:39Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "7c3a7ae6-fdb1-470b-8c81-534c4c305958",
  "requestParameters": {
    "certificateId": "dddddddddddddddddddddddd",
    "status": "Active"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UpdateSSHPublicKey

#
Service
iam

Description

Sets the status of an IAM user's SSH public key to active or inactive.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "NoSuchEntityException",
  "errorMessage": "The user with name ddddd cannot be found.",
  "eventCategory": "Management",
  "eventID": "73cfd2b9-696c-42c0-b567-85f290e21c1e",
  "eventName": "UpdateSSHPublicKey",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:24:39Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "f6719b66-c48c-4d18-b7ee-8c2e343d7a71",
  "requestParameters": {
    "sSHPublicKeyId": "dddddddddddddddddddd",
    "status": "Active",
    "userName": "ddddd"
  },
  "responseElements": null,
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/Z,D,b cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UpdateUser

#
Service
iam

Description

Updates the name and/or the path of the specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "errorCode": "AccessDenied",
  "errorMessage": "User: arn:aws:iam::811596193553:user/Level6 is not authorized to perform: iam:UpdateUser on resource: user piper",
  "eventID": "d52143-08c1-4d7c-b32a-ec32d5e297cb",
  "eventName": "UpdateUser",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2019-01-19T20:11:02Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.05",
  "recipientAccountId": "811596193553",
  "requestID": "583ba67d-1c26-11e9-92f6-b18bf4b95c54",
  "requestParameters": null,
  "responseElements": null,
  "sourceIPAddress": "250.5.250.32",
  "userAgent": "aws-cli/1.16.91 Python/3.7.2 Windows/10 botocore/1.12.81",
  "userIdentity": {
    "accessKeyId": "AKIA3Z2XBVUDFQ9TU4MD",
    "accountId": "811596193553",
    "arn": "arn:aws:iam::811596193553:user/Level6",
    "principalId": "AIDADO2GQD0K8TEF7KW1V",
    "type": "IAMUser",
    "userName": "Level6"
  }
}

References #

UploadServerCertificate

#
Service
iam

Description

Uploads a server certificate entity for the Amazon Web Services account.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "75c37942-d471-4e55-bfbb-40a92e312ef0",
  "eventName": "UploadServerCertificate",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:59Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "387fd420-ee88-4b7c-9cbd-d90513875b99",
  "requestParameters": {
    "certificateBody": "-----BEGIN CERTIFICATE-----\nMIIDCzCCAfOgAwIBAgIUHZqOig3g0gDwexDSpsaZFTk+99EwDQYJKoZIhvcNAQEL\nBQAwFTETMBEGA1UEAwwKZHctZml4dHVyZTAeFw0yNjA2MjkxOTAyNTVaFw0yNjA3\nMjkxOTAyNTVaMBUxEzARBgNVBAMMCmR3LWZpeHR1cmUwggEiMA0GCSqGSIb3DQEB\nAQUAA4IBDwAwggEKAoIBAQDBrDyJRYIMCgu7x5e/mhQaCoP2PRiKvDYgZtsaxmqt\nKovX6z04qNGZs1zsRxAbUA9GYaaJ6ik/wHTFq39hiheVeM79rKvlPXTp/EMgCFYJ\nc+mfQic4JbzTEz4xwQYcDW+Fst5cifA6xTqcKOT6MVp+nYo6Bnc0lLz38+3Yu5a2\n8z26QtfbYJRK61YXimILcSOUNH6qMYWWPFuA+Gv2FUAmN4ErI+bUxqOSnX6UgbV/\n2u9FwmLKidh0nCRDXq5Cq4j78DC2NW53sCfucTp/CYqzEzW9OPmgpTPwb35d1Kut\nZ/KFgM0lGDavnxUGgzxIsEcibX6dUs8tphdJ5jRyzvfVAgMBAAGjUzBRMB0GA1Ud\nDgQWBBQimLbA5mCaTktu3sQOJediD3ip7DAfBgNVHSMEGDAWgBQimLbA5mCaTktu\n3sQOJediD3ip7DAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBR\n9g2F0C/96+iQZAn9Vp7gbSYCdPaaXhsR3uKL8Ow5r/DdVQ0RE9PBRAQnJdn1ozF1\nRF8aCokb0+5QuMTordOEqWpRhAZt99DSperyaphF+3XkOg2cNrazmpntojeuHjeI\naAwJfK5h19DVnW9sCkqSlyJcdqKUz2O3Hf202yCEO+8A6mwVLlMU6LBLUT1KaWzq\nb+qEpjPkqVg84N4CgdRxaSXvcWCqQyWG+XP9uO9XbeWXSBUNE1lX81bXRUVR2w/6\ne/bjts3+j6QKdrYXvHEqunDpuWhW54KfZj+8C7Vs3pvdvXbZp1OFHk8DMk/KC4QO\ntkh12JRpZtCG4JU8rx1l\n-----END CERTIFICATE-----\n",
    "serverCertificateName": "dwfix-cert"
  },
  "responseElements": {
    "serverCertificateMetadata": {
      "arn": "arn:aws:iam::123456789012:server-certificate/dwfix-cert",
      "expiration": "2026-07-29T19:02:55Z",
      "path": "/",
      "serverCertificateId": "ASCA5ULUCSTRQMTLXXX73",
      "serverCertificateName": "dwfix-cert",
      "uploadDate": "2026-06-29T19:02:59Z"
    }
  },
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Kusto #

UploadSigningCertificate

#
Service
iam

Description

Uploads an X.509 signing certificate and associates it with the specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "dd7f47ae-5d5e-4bf7-b0c9-8ac02912fbce",
  "eventName": "UploadSigningCertificate",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:57Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "15e00051-5401-4a3d-8b37-ed4d0039a5bf",
  "requestParameters": {
    "certificateBody": "-----BEGIN CERTIFICATE-----\nMIIDCzCCAfOgAwIBAgIUHZqOig3g0gDwexDSpsaZFTk+99EwDQYJKoZIhvcNAQEL\nBQAwFTETMBEGA1UEAwwKZHctZml4dHVyZTAeFw0yNjA2MjkxOTAyNTVaFw0yNjA3\nMjkxOTAyNTVaMBUxEzARBgNVBAMMCmR3LWZpeHR1cmUwggEiMA0GCSqGSIb3DQEB\nAQUAA4IBDwAwggEKAoIBAQDBrDyJRYIMCgu7x5e/mhQaCoP2PRiKvDYgZtsaxmqt\nKovX6z04qNGZs1zsRxAbUA9GYaaJ6ik/wHTFq39hiheVeM79rKvlPXTp/EMgCFYJ\nc+mfQic4JbzTEz4xwQYcDW+Fst5cifA6xTqcKOT6MVp+nYo6Bnc0lLz38+3Yu5a2\n8z26QtfbYJRK61YXimILcSOUNH6qMYWWPFuA+Gv2FUAmN4ErI+bUxqOSnX6UgbV/\n2u9FwmLKidh0nCRDXq5Cq4j78DC2NW53sCfucTp/CYqzEzW9OPmgpTPwb35d1Kut\nZ/KFgM0lGDavnxUGgzxIsEcibX6dUs8tphdJ5jRyzvfVAgMBAAGjUzBRMB0GA1Ud\nDgQWBBQimLbA5mCaTktu3sQOJediD3ip7DAfBgNVHSMEGDAWgBQimLbA5mCaTktu\n3sQOJediD3ip7DAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBR\n9g2F0C/96+iQZAn9Vp7gbSYCdPaaXhsR3uKL8Ow5r/DdVQ0RE9PBRAQnJdn1ozF1\nRF8aCokb0+5QuMTordOEqWpRhAZt99DSperyaphF+3XkOg2cNrazmpntojeuHjeI\naAwJfK5h19DVnW9sCkqSlyJcdqKUz2O3Hf202yCEO+8A6mwVLlMU6LBLUT1KaWzq\nb+qEpjPkqVg84N4CgdRxaSXvcWCqQyWG+XP9uO9XbeWXSBUNE1lX81bXRUVR2w/6\ne/bjts3+j6QKdrYXvHEqunDpuWhW54KfZj+8C7Vs3pvdvXbZp1OFHk8DMk/KC4QO\ntkh12JRpZtCG4JU8rx1l\n-----END CERTIFICATE-----\n",
    "userName": "dwfix-user"
  },
  "responseElements": {
    "certificate": {
      "certificateBody": "-----BEGIN CERTIFICATE-----\nMIIDCzCCAfOgAwIBAgIUHZqOig3g0gDwexDSpsaZFTk+99EwDQYJKoZIhvcNAQEL\nBQAwFTETMBEGA1UEAwwKZHctZml4dHVyZTAeFw0yNjA2MjkxOTAyNTVaFw0yNjA3\nMjkxOTAyNTVaMBUxEzARBgNVBAMMCmR3LWZpeHR1cmUwggEiMA0GCSqGSIb3DQEB\nAQUAA4IBDwAwggEKAoIBAQDBrDyJRYIMCgu7x5e/mhQaCoP2PRiKvDYgZtsaxmqt\nKovX6z04qNGZs1zsRxAbUA9GYaaJ6ik/wHTFq39hiheVeM79rKvlPXTp/EMgCFYJ\nc+mfQic4JbzTEz4xwQYcDW+Fst5cifA6xTqcKOT6MVp+nYo6Bnc0lLz38+3Yu5a2\n8z26QtfbYJRK61YXimILcSOUNH6qMYWWPFuA+Gv2FUAmN4ErI+bUxqOSnX6UgbV/\n2u9FwmLKidh0nCRDXq5Cq4j78DC2NW53sCfucTp/CYqzEzW9OPmgpTPwb35d1Kut\nZ/KFgM0lGDavnxUGgzxIsEcibX6dUs8tphdJ5jRyzvfVAgMBAAGjUzBRMB0GA1Ud\nDgQWBBQimLbA5mCaTktu3sQOJediD3ip7DAfBgNVHSMEGDAWgBQimLbA5mCaTktu\n3sQOJediD3ip7DAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBR\n9g2F0C/96+iQZAn9Vp7gbSYCdPaaXhsR3uKL8Ow5r/DdVQ0RE9PBRAQnJdn1ozF1\nRF8aCokb0+5QuMTordOEqWpRhAZt99DSperyaphF+3XkOg2cNrazmpntojeuHjeI\naAwJfK5h19DVnW9sCkqSlyJcdqKUz2O3Hf202yCEO+8A6mwVLlMU6LBLUT1KaWzq\nb+qEpjPkqVg84N4CgdRxaSXvcWCqQyWG+XP9uO9XbeWXSBUNE1lX81bXRUVR2w/6\ne/bjts3+j6QKdrYXvHEqunDpuWhW54KfZj+8C7Vs3pvdvXbZp1OFHk8DMk/KC4QO\ntkh12JRpZtCG4JU8rx1l\n-----END CERTIFICATE-----\n",
      "certificateId": "O7DRCOAYSKP62QZS5G4OHJYLEQHUHBUI",
      "status": "Active",
      "uploadDate": "2026-06-29T19:02:57Z",
      "userName": "dwfix-user"
    }
  },
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

UploadSSHPublicKey

#
Service
iam

Description

Uploads an SSH public key and associates it with the specified IAM user.

Example CloudTrail Event #

{
  "awsRegion": "us-east-1",
  "eventCategory": "Management",
  "eventID": "c73a5c69-c985-4b54-86ec-495092156aa9",
  "eventName": "UploadSSHPublicKey",
  "eventSource": "iam.amazonaws.com",
  "eventTime": "2026-06-29T19:02:57Z",
  "eventType": "AwsApiCall",
  "eventVersion": "1.11",
  "managementEvent": true,
  "readOnly": false,
  "recipientAccountId": "123456789012",
  "requestID": "43891425-72b1-4f9c-9203-d7d0a0cc4d7f",
  "requestParameters": {
    "sSHPublicKeyBody": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwVQ1u/BHe+FN8NArEt4P6nMNXUgYjKszcGU6op6ZrnjJasipbsmNVE/A9lcYgObeFaqRRDZUy0bCPbP4fdl05l8LlCHnLHR4Q6GJxd0/03vQD78EGkumcEehsfdDFJMKmX3xaptlYWvjvss+CTzkLjAoERjehjlmFiAHG+tu7UDLH0m2u+N1wPpbMdpQkcoTndTvuP09O9HHL6VL6TNI2rW6/SewuQHiPXwF+4+Xq0CLXZOtoDf6ZhvDSxrhcz0smNWlQhWPCwIea/8INvHR19dYMvaxz/oYxtPemoFZ2F6j4keUP4w8nAMb5qgxs5yCcjHiXwdUyeLBDKiwet2MP debian@JD-kusto-emulator",
    "userName": "dwfix-user"
  },
  "responseElements": {
    "sSHPublicKey": {
      "fingerprint": "2b:2c:19:32:7c:0f:87:d3:a0:b6:ed:67:b1:59:62:f1",
      "sSHPublicKeyBody": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwVQ1u/BHe+FN8NArEt4P6nMNXUgYjKszcGU6op6ZrnjJasipbsmNVE/A9lcYgObeFaqRRDZUy0bCPbP4fdl05l8LlCHnLHR4Q6GJxd0/03vQD78EGkumcEehsfdDFJMKmX3xaptlYWvjvss+CTzkLjAoERjehjlmFiAHG+tu7UDLH0m2u+N1wPpbMdpQkcoTndTvuP09O9HHL6VL6TNI2rW6/SewuQHiPXwF+4+Xq0CLXZOtoDf6ZhvDSxrhcz0smNWlQhWPCwIea/8INvHR19dYMvaxz/oYxtPemoFZ2F6j4keUP4w8nAMb5qgxs5yCcjHiXwdUyeLBDKiwet2MP debian@JD-kusto-emulator",
      "sSHPublicKeyId": "APKAEXAMPLE00000000",
      "status": "Active",
      "uploadDate": "2026-06-29T19:02:57Z",
      "userName": "dwfix-user"
    }
  },
  "sourceIPAddress": "203.0.113.5",
  "tlsDetails": {
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "iam.amazonaws.com",
    "tlsVersion": "TLSv1.3"
  },
  "userAgent": "Boto3/1.43.36 md/Botocore#1.43.36 ua/2.1 os/linux#6.1.0-41-amd64 md/arch#x86_64 lang/python#3.11.2 md/pyimpl#CPython m/b,n,D,Z cfg/retry-mode#legacy Botocore/1.43.36",
  "userIdentity": {
    "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "accountId": "123456789012",
    "arn": "arn:aws:iam::123456789012:user/sample-user",
    "principalId": "AIDAEXAMPLE00000000",
    "type": "IAMUser",
    "userName": "sample-user"
  }
}

AcquireRole

#
Service
iam

Description

Creates an IAM role from the specified role template.

GetAccountProperties

#
Service
iam

Description

Retrieves the account-level properties for the caller's Amazon Web Services account.

GetRoleTemplateVersion

#
Service
iam

Description

Retrieves information about a version of the specified role template.

PutAccountProperties

#
Service
iam

Description

Sets account-level properties for the caller's Amazon Web Services account.