{"id":"0a5177f4-6ca9-44c2-aacf-d3f3d8b6e4d2","title":"AWS IAM Backdoor Users Keys","description":"Detects AWS API key creation for a user by another user.\nBackdoored users can be used to obtain persistence in the AWS environment.\nAlso with this alert, you can detect a flow of AWS keys in your org.\n","author":"faloker","status":"test","level":"medium","date":"2020-02-12","modified":"2022-10-09","tags":["attack.persistence","attack.privilege-escalation","attack.t1098"],"technique_ids":["T1098"],"logsource":{"product":"aws","service":"cloudtrail"},"falsepositives":["Adding user keys to their own accounts (the filter cannot cover all possible variants of user naming)","AWS API keys legitimate exchange workflows"],"references":["https://github.com/RhinoSecurityLabs/pacu/blob/866376cd711666c775bbfcde0524c817f2c5b181/pacu/modules/iam__backdoor_users_keys/main.py"],"source_path":"rules/cloud/aws/cloudtrail/aws_iam_backdoor_users_keys.yml","source_sha256":"3dd4fe36c892c8fefef93c24f29e5747f2b046ef129c33c92a283d1dcba188d5","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/cloud/aws/cloudtrail/aws_iam_backdoor_users_keys.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: AWS IAM Backdoor Users Keys\nid: 0a5177f4-6ca9-44c2-aacf-d3f3d8b6e4d2\nstatus: test\ndescription: |\n  Detects AWS API key creation for a user by another user.\n  Backdoored users can be used to obtain persistence in the AWS environment.\n  Also with this alert, you can detect a flow of AWS keys in your org.\nreferences:\n    - https://github.com/RhinoSecurityLabs/pacu/blob/866376cd711666c775bbfcde0524c817f2c5b181/pacu/modules/iam__backdoor_users_keys/main.py\nauthor: faloker\ndate: 2020-02-12\nmodified: 2022-10-09\ntags:\n    - attack.persistence\n    - attack.privilege-escalation\n    - attack.t1098\nlogsource:\n    product: aws\n    service: cloudtrail\ndetection:\n    selection_source:\n        eventSource: iam.amazonaws.com\n        eventName: CreateAccessKey\n    filter:\n        userIdentity.arn|contains: responseElements.accessKey.userName\n    condition: selection_source and not filter\nfalsepositives:\n    - Adding user keys to their own accounts (the filter cannot cover all possible variants of user naming)\n    - AWS API keys legitimate exchange workflows\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1098","id":"T1098","name":"Account Manipulation","page":"techniques/enterprise/T1098/"}],"data_path":"data/detection-rules/0a5177f4-6ca9-44c2-aacf-d3f3d8b6e4d2.json","kind":"sigma"}
