A security engineer must monitor and record all rejected TCP connection attempts to a fleet of EC2 instances within a private subnet. The logs must be stored in a durable manner for three years to meet regulatory compliance. Which solution meets these requirements with the least operational overhead?
Trap 1: Install the CloudWatch Logs agent on all instances to capture local…
Installing and managing agents on every EC2 instance increases operational overhead significantly. While kernel logs provide detailed internal information, they do not capture traffic blocked by security groups at the infrastructure level, as those packets never reach the operating system's networking stack for the agent to see.
Trap 2: Enable Amazon GuardDuty and review the…
GuardDuty is a threat detection service that analyzes logs to find malicious activity, but it does not provide a complete record of every rejected connection. Using findings alone would miss legitimate traffic patterns or non-malicious failures that are required for a comprehensive three-year regulatory compliance audit.
Trap 3: Configure an AWS Config rule to monitor the state of all Security…
AWS Config monitors the configuration of resources rather than the actual traffic flows. While it can alert a security engineer if a security group rule is changed, it cannot provide any visibility into the actual packets being accepted or rejected by the network interfaces based on those rules.
- A
Enable VPC Flow Logs and configure the destination as an Amazon S3 bucket.
Flow logs configured for S3 delivery provide the necessary raw data for auditing and forensic investigations. This method is cost-effective for high-volume logs and integrates seamlessly with Amazon Athena for querying specific traffic patterns or identifying anomalies in network communication between different tiers of an application.
- B
Install the CloudWatch Logs agent on all instances to capture local kernel network logs.
Why wrong: Installing and managing agents on every EC2 instance increases operational overhead significantly. While kernel logs provide detailed internal information, they do not capture traffic blocked by security groups at the infrastructure level, as those packets never reach the operating system's networking stack for the agent to see.
- C
Enable Amazon GuardDuty and review the 'UnauthorizedAccess:EC2/SSHBruteForce' findings.
Why wrong: GuardDuty is a threat detection service that analyzes logs to find malicious activity, but it does not provide a complete record of every rejected connection. Using findings alone would miss legitimate traffic patterns or non-malicious failures that are required for a comprehensive three-year regulatory compliance audit.
- D
Configure an AWS Config rule to monitor the state of all Security Group rules daily.
Why wrong: AWS Config monitors the configuration of resources rather than the actual traffic flows. While it can alert a security engineer if a security group rule is changed, it cannot provide any visibility into the actual packets being accepted or rejected by the network interfaces based on those rules.