- NACL vs Default NACL
A Network Access Control List (NACL) is a critical security component in an AWS environment, as it provides a virtual stateless firewall to control inbound and outbound traffic at the subnet level. The default NACL in AWS allows all inbound and outbound traffic, which presents a security risk and warrants the creation of custom NACL rules to restrict traffic further for improved security. A customized NACL enforces strict rules that apply to inbound and outbound traffic, enabling the customer to specify acceptable traffic while also denying unauthorized access or communication between subnets within the VPC.
- NACL for Private Subnets
Creating NACL rules for private subnets ensures that only authorized traffic can access these subnets, which contain the most critical resources and data. To secure the private subnets, start by designing ingress and egress rules explicitly sorted by their priority that deny traffic from unauthorized sources while only allowing trusted connections. Additionally, by implementing NACL rules that restrict access to and from specific IP addresses, a more secure environment can be achieved by allowing least-privilege access to critical resources in the private subnets.
- Building IAM policy for existing users with . admin privileges
It is crucial to follow the security principle of least privilege when creating IAM policies for your existing users. Providing . admin privileges grants excessive permissions and may put the whole environment at risk of unauthorized modifications or data exfiltration. To address this concern, create IAM policies based on users' current scope of work, granting them only the necessary privileges. Customize the policies by directly attaching them to specific users or adding users to relevant IAM groups. Monitor and audit the user activity, and continuously update the IAM policies as needed to secure access over time.
- Enabling AWS Config in all regions
AWS Config is a valuable tool that allows customers to create a visual representation of the AWS environment, retrieve historical configurations, get notified of configuration changes, and analyze changes' impact. Enabling Config across all AWS regions will help the customer maintain security and configuration compliance through better visibility. Once enabled in all regions, AWS Config must be configured to record across accounts with proper retention policies while integrating with Amazon SNS to obtain real-time notifications of configuration changes.
- Encrypting CloudTrail logs
AWS CloudTrail logs provide valuable insight into user activity within the AWS environment. To ensure that these logs are not tampered with and to retain the confidentiality of log information, it is essential to encrypt the logs using an encryption algorithm, usually via AWS Key Management Service (KMS). By encrypting CloudTrail logs at rest, the customer can meet stringent security and compliance requirements and protect the logs from unauthorized access.
- S3 bucket access logging for CloudTrail bucket
S3 bucket access logging is valuable for monitoring and analyzing traffic patterns, troubleshooting issues, auditing, and detecting security incidents related to stored CloudTrail logs. To implement access logging, configure the CloudTrail bucket to aggregate and store access log records in another S3 bucket, preferably with a different name and access permissions. Enable server-side encryption using AWS KMS when writing access logs. Continuously monitor and analyze the access logs to detect suspicious activity or unauthorized access within the CloudTrail bucket.