A retail company operates a multi-tier web application on AWS. The application tier runs on Amazon EC2 instances in a private VPC subnet. A security audit requires the company to monitor network traffic for suspicious activities, such as communication with known malicious command-and-control (C2) servers. If a threat is detected, the company must automatically block all traffic to and from the malicious IP address at the subnet level in near real-time. Which TWO options should a solutions architect combine to meet these requirements with the least operational overhead?
- Enable Amazon GuardDuty to analyze VPC Flow Logs and generate findings for malicious network activity.Cevap
- Configure an Amazon EventBridge rule to match GuardDuty findings, triggering an AWS Lambda function that dynamically adds a stateless deny rule to the Network ACL associated with the subnet.Cevap
- CDeploy AWS Shield Advanced on the EC2 instances' Elastic Network Interfaces (ENIs) to automatically detect traffic anomalies and block them at the network layer.
- DConfigure AWS WAF on the subnet's VPC interface endpoints to inspect all outgoing traffic and block connections to known malicious IP addresses.
- ECreate an AWS Lambda function triggered by Amazon CloudWatch Logs metric filters on VPC Flow Logs to append a deny rule to the stateful Security Groups associated with the EC2 instances.
Cevap
The solutions architect should enable Amazon GuardDuty to analyze VPC Flow Logs and generate findings, and configure an Amazon EventBridge rule to match those findings to trigger an AWS Lambda function that dynamically adds a stateless deny rule to the Network ACL associated with the subnet.
To monitor network traffic for threats such as communication with known malicious command-and-control (C2) servers, Amazon GuardDuty is the ideal service. GuardDuty continuously analyzes VPC Flow Logs, DNS logs, and CloudTrail events without impacting network performance or requiring manual logging infrastructure. To automatically block the malicious IP at the subnet level in near real-time, GuardDuty findings can be sent to Amazon EventBridge. An EventBridge rule detects the threat event and triggers an AWS Lambda function. This Lambda function can programmatically add a stateless deny rule to the Network ACL associated with the subnet, which successfully blocks traffic at the subnet boundary as required.
Adım Adım Çözüm
Anahtar Kavram
Automated threat detection and network boundary remediation using Amazon GuardDuty, Amazon EventBridge, AWS Lambda, and Network ACLs.