AWS Certified Security – Specialty (SCS-C02) — Question 285

A security engineer received an Amazon GuardDuty alert indicating a finding involving the Amazon EC2 instance that hosts the company’s primary website. The GuardDuty finding received read:

UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.

The security engineer confirmed that a malicious actor used API access keys intended for the EC2 instance from a country where the company does not operate. The security engineer needs to deny access to the malicious actor.

What is the first step the security engineer should take?

Answer options

Correct answer: D

Explanation

Revoking the active IAM sessions for the instance profile is the most immediate way to invalidate the exfiltrated temporary credentials, preventing the attacker from making further unauthorized API calls. Modifying EC2 security groups only restricts network access to the instance itself but does not stop the attacker from using the stolen credentials from their own machine. Tools like Systems Manager and Amazon Inspector are useful for post-incident analysis and vulnerability assessment but do not mitigate active credential abuse.