A SysOps Administrator is setting up automated security monitoring for an AWS environment. The administrator has enabled Amazon GuardDuty and wants to implement automated remediation for EC2 instances that are flagged with a finding type of 'UnauthorizedAccess:EC2/MaliciousIPCaller.Custom'. The remediation must isolate the affected EC2 instance by attaching a security group that denies all inbound and outbound traffic.
Which combination of actions must the administrator perform to meet these requirements? (Select TWO.)
- Create an Amazon EventBridge rule with an event pattern that filters for Amazon GuardDuty findings where the 'detail.type' matches 'UnauthorizedAccess:EC2/MaliciousIPCaller.Custom', and set the target to an AWS Systems Manager Automation document.Answer
- Ensure the Systems Manager Automation execution role has an IAM policy allowing the 'ec2:ModifyInstanceAttribute' action, and grant the administrator configuring the rule the 'iam:PassRole' permission for this execution role.Answer
- CEnable detailed monitoring on all EC2 instances in the VPC to ensure that GuardDuty processes network metrics at -minute intervals instead of the default -minute intervals.
- DConfigure an AWS Config custom rule to continuously poll the GuardDuty findings list and invoke the remediation workflow when a new threat is detected.
- EAdd a KMS key policy to the KMS key used by GuardDuty that allows the EC2 instances to decrypt the finding payloads before they are sent to EventBridge.
Answer
To implement this monitoring and automated remediation, the administrator must create an Amazon EventBridge rule that filters for the specific GuardDuty finding type and targets a Systems Manager Automation document, and ensure the execution role has the required EC2 modification permissions and is passed to the service with 'iam:PassRole' permissions.
Automating remediation of GuardDuty findings requires capturing the finding via Amazon EventBridge, which receives all GuardDuty findings natively. An EventBridge rule must be created with a pattern matching the finding type and targeted at a Systems Manager Automation document. To perform the isolation, the Systems Manager execution role requires the 'ec2:ModifyInstanceAttribute' action to change the instance's associated security groups. The administrator configuring this target must have 'iam:PassRole' permissions to grant EventBridge the ability to pass the execution role to Systems Manager.
Step-by-Step Solution
Key Concept
Centralized threat detection and automated remediation using Amazon GuardDuty, Amazon EventBridge, and AWS Systems Manager Automation with appropriate IAM execution roles.
Estimated Time:2m 0s