Credential Access (TA0006)(external, opens in a new tab or window)
text code block:data_stream.dataset: "aws.cloudtrail" and event.provider: "s3.amazonaws.com" and event.action: "GetObject" and event.outcome: "success" and aws.cloudtrail.flattened.request_parameters.key: ( */.aws/credentials or */.aws/config or */id_rsa or */id_ed25519 or */id_ecdsa or */id_dsa or */.env or */.env.* or *.ppk or *.pem or *.key or *private_key* or */.ssh/authorized_keys ) and not aws.cloudtrail.user_identity.type: "AWSService"
Install detection rules in Elastic Security
Detect AWS S3 Credential File Retrieved from Bucket in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).