This rule ensures that VPC Flow Logs are properly enabled to enhance network security.
Rule | VPC flow logs should be enabled |
Framework | NIST Cybersecurity Framework (CSF) v1.1 |
Severity | ✔ High |
Rule Description:
Enabling VPC flow logs is a crucial step for implementing the NIST Cybersecurity Framework (CSF) v1 in your AWS Virtual Private Cloud (VPC) environment. VPC flow logs capture detailed information about network traffic within your VPC, providing valuable insights for monitoring and analyzing network activities. By enabling VPC flow logs, you are able to detect potential security threats, troubleshoot network issues, and meet compliance requirements.
Troubleshooting Steps (if applicable):
If you encounter any issues during the process of enabling VPC flow logs, you can follow these troubleshooting steps:
Verify the IAM role permissions: Ensure that the IAM role used for flow logs has the necessary permissions, such as
ec2:CreateFlowLogs
and logs:CreateLogGroup
, to create flow logs and log groups respectively.Confirm the correct VPC and subnet: Double-check if the VPC and subnet selected for flow log creation are correct. It is essential to choose the target VPC and subnet where you want to monitor network traffic.
Necessary Codes (if applicable):
Here are the necessary codes to enable VPC flow logs for NIST Cybersecurity Framework (CSF) v1:
The following CLI command enables VPC flow logs for a specific VPC and subnet:
aws ec2 create-flow-logs --resource-ids <VPC_ID> --resource-type VPC --traffic-type ALL --log-destination-type cloud-watch-logs --log-group-name <LOG_GROUP_NAME> --deliver-logs-permission-arn <PERMISSION_ARN>
Replace
<VPC_ID>
with the actual ID of the VPC you want to enable flow logs for. <LOG_GROUP_NAME>
should be replaced with the desired name for the CloudWatch Logs group. <PERMISSION_ARN>
will be the ARN of the IAM role with appropriate permissions.Alternatively, you can use the AWS Management Console or AWS SDKs to enable VPC flow logs.
Step-by-Step Guide for Remediation:
Follow these steps to enable VPC flow logs for NIST Cybersecurity Framework (CSF) v1:
By completing these steps, you have successfully enabled VPC flow logs for NIST Cybersecurity Framework (CSF) v1 in your AWS VPC environment. This will help you monitor network traffic and enhance your overall security posture.