QuestionQ37

VerifiedNetwork Security, Compliance, and Governance

A company operates a workload in one VPC on AWS. Its architecture includes several interface VPC endpoints for AWS services, including Amazon CloudWatch Logs and AWS Key Management Service (AWS KMS). The endpoints are set up to use a shared security group. That security group is not used by any other workloads or resources.

Following a security review of the environment, the company found that the shared security group is more permissive than required. The company needs to restrict the security group rules. The rule changes must not stop VPC resources from accessing AWS services through interface VPC endpoints, while preventing unnecessary access.

The security group currently has these rules:

  • Inbound – Rule 1

    • Protocol: TCP
    • Port: 443
    • Source: 0.0.0.0/0
  • Inbound – Rule 2

    • Protocol: TCP
    • Port: 443
    • Source: VPC CIDR
  • Outbound – Rule 1

    • Protocol: All
    • Port: All
    • Destination: 0.0.0.0/0

Which rule or rules should the company remove to satisfy these requirements?

Explanation

An interface endpoint security group needs an inbound TCP 443 rule from the VPC resources that use the endpoint, which the VPC CIDR rule provides. The public inbound rule is not needed. Security groups are stateful, so return traffic for an allowed inbound HTTPS connection is permitted regardless of outbound rules; the unrestricted outbound rule can therefore be removed.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!