From 905e7848257bc66cf5867b675cc30136c8c33ffb Mon Sep 17 00:00:00 2001 From: Nick Frichette Date: Sat, 22 Jan 2022 20:24:19 -0600 Subject: [PATCH] Added note about a niche credential exfiltration GuardDuty bypass --- content/aws/avoiding-detection/steal-keys-undetected.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/aws/avoiding-detection/steal-keys-undetected.md b/content/aws/avoiding-detection/steal-keys-undetected.md index 3c004587..7cacda5c 100644 --- a/content/aws/avoiding-detection/steal-keys-undetected.md +++ b/content/aws/avoiding-detection/steal-keys-undetected.md @@ -14,4 +14,7 @@ On January 20th 2022, AWS released a new GuardDuty finding called [UnauthorizedA However, there is currently a functioning bypass for this - [VPC Endpoints](https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints.html). Using VPC Endpoints will not trigger the GuardDuty alert. What this means is that, as an attacker, `if you steal IAM credentials from an EC2 instance, you can use those credentials from your own EC2 instance while routing traffic through VPC Endpoints. This will not trigger the GuardDuty finding`. -To make this setup faster (and easier) for Penetration Testers and Red Teamers, [SneakyEndpoints](https://github.com/Frichetten/SneakyEndpoints) was created. This project has all the Terraform configurations necessary to spin up an environment to attack from. It will create an EC2 instance in a private subnet (no internet access) and create a number of VPC Endpoints for you to use. This setup ensures we don't accidentally expose ourselves and trigger the alert. \ No newline at end of file +To make this setup faster (and easier) for Penetration Testers and Red Teamers, [SneakyEndpoints](https://github.com/Frichetten/SneakyEndpoints) was created. This project has all the Terraform configurations necessary to spin up an environment to attack from. It will create an EC2 instance in a private subnet (no internet access) and create a number of VPC Endpoints for you to use. This setup ensures we don't accidentally expose ourselves and trigger the alert. + +!!! Note + There is another bypass option, however, it would only be useful in niche scenarios. The InstanceCredentialExfiltration finding is only tied to the AWS account, not the EC2 instance. As a result, if you compromise an EC2 instance in the target account and then compromise OTHER EC2 instances in the account, or steal their IAM credentials, you can safely use them from the initially compromised instance without fear of triggering GuardDuty. \ No newline at end of file