Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 408 #430

Merged
merged 26 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
514a734
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
f176657
Update step2.png
shuklaalok87 Dec 28, 2021
862dbbb
Update step3.png
shuklaalok87 Dec 28, 2021
158f48a
Update step4.png
shuklaalok87 Dec 28, 2021
2994873
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
4e884b3
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
ea931bf
Update step5.png
shuklaalok87 Dec 28, 2021
5e7ec0f
Merge branch 'patch-408' of https://github.com/shuklaalok87/security-…
shuklaalok87 Dec 28, 2021
4818122
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
7331031
Update step7.png
shuklaalok87 Dec 28, 2021
95d8053
Merge branch 'patch-408' of https://github.com/shuklaalok87/security-…
shuklaalok87 Dec 28, 2021
a751e8c
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
83286f4
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
1531c5f
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
8ee54b3
Update step8.png
shuklaalok87 Dec 28, 2021
eb96d71
Update step9.png
shuklaalok87 Dec 28, 2021
8ec0d04
Merge branch 'patch-408' of https://github.com/shuklaalok87/security-…
shuklaalok87 Dec 28, 2021
fe7e20b
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
42968ce
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
d4a2212
Update step10.png
shuklaalok87 Dec 28, 2021
5bcbc16
Merge branch 'patch-408' of https://github.com/shuklaalok87/security-…
shuklaalok87 Dec 28, 2021
e4a609b
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
5b8cef2
Update step11.png
shuklaalok87 Dec 28, 2021
e84d8cb
Merge branch 'patch-408' of https://github.com/shuklaalok87/security-…
shuklaalok87 Dec 28, 2021
3926d1c
Update vpc-flow-logs-enabled.md
shuklaalok87 Dec 28, 2021
2340f0a
Apply suggestions from code review
alphadev4 Nov 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions en/aws/ec2/vpc-flow-logs-enabled.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@
| **Recommended Action** | Enable VPC flow logs for each VPC |

## Detailed Remediation Steps
1. Log into the AWS Management Console.
1. Log in to the AWS Management Console.
2. Select the "Services" option and search for VPC. </br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step2.png"/>
3. Scroll down the left navigation panel and choose "Your VPC" under "VPC Dashboard". </br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step3.png"/>
3. Scroll down the left navigation panel and choose "Your VPCs" under "Virtual Private Cloud". </br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step3.png"/>
4. Select the "VPC" that needs to be verified for "VPC Flow Logs". </br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step4.png"/>
5. Scroll down the bottom dashboard panel and choose "Flow Logs" tab. If there are no flow logs then "You do not have any Flow Logs in this region" message will be displayed. </br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step5.png"/>
6. Repeat steps number 2 - 6 to verify "Flow Logs" are enabled or not in other VPCs in the region. </br>
7. Navigate to "VPC Dashboard" and choose "Your VPC" and click on the "Flow Logs" tab in the bottom dashboard panel.</br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step7.png"/>
5. Scroll down the bottom dashboard panel and choose "Flow Logs" tab. If there are no flow logs then "No flow logs found in this Region" message will be displayed. </br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step5.png"/>
6. Repeat steps number 2 - 6 to verify whether "Flow Logs" are enabled or not for other VPCs in the remaining regions. </br>
7. Navigate to "Your VPCs" in the left navigation panel, select the VPC and click on the "Flow Logs" tab in the bottom dashboard panel.</br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step7.png"/>
8. Click on the "Create flow log" button to create the "VPC Flow Logs". </br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step8.png"/>
9. In the "Create flow log" dialog box select the "Filter" from the dropdown menu that describes the type of traffic to be logged.</br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step9.png"/>
10. Select the destination to which the flow log data is to be published from the options.If the "S3 bucket" is selected for the log data to be published than provide the "S3 Bucket ARN" which is the ARN of the Amazon S3 bucket to which the flow log is published and click on the "Create" button at the bottom. </br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step10.png"/>
11. If destination for the "flow log data" is selected as "Send to CloudWatch Logs" then enter the log destination in "Destination Group" which is the name of the "Amazon CloudWatch Logs" log group to which the flow log is published.</br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step11.png"/>
12. Select the "IAM role" that has permission to publish to the "Amazon CloudWatch Logs" log group and click on the "Create" button to make the necessary changes. </br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step12.png"/>
13. Repeat steps number 7 - 12 to enable VPC flow logs for other "VPCs" in the region.</br>
9. In the "Create flow log" dialog box select the "Filter" that describes the type of traffic to be logged and select the "Maximum aggregation interval".</br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step9.png"/>
10. Select the destination to which the flow log data is to be published from the options. If the "S3 bucket" is selected then provide the "S3 Bucket ARN" in which the flow log is to be published. Also select the "Log Record Format" & "Log File Format" along with the "Partition logs by time" and click on the "Create flow log" button at the bottom. </br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step10.png"/>
11. If destination for the "flow log data" is selected as "Send to CloudWatch Logs" then enter the log destination in "Destination log group" which is the name of the "Amazon CloudWatch Logs" log group to which the flow log is published. Select the "IAM role" that has permission to publish to the "Amazon CloudWatch Logs" log group and specify the "Log record format". Then click on the "Create flow log" button to make the necessary changes.</br> <img src="/resources/aws/ec2/vpc-flow-logs-enabled/step11.png"/>
12. Repeat steps number 7 - 11 to enable VPC flow logs for other "VPCs" in the region.</br>
Binary file modified resources/aws/ec2/vpc-flow-logs-enabled/step10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/vpc-flow-logs-enabled/step11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/vpc-flow-logs-enabled/step2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/vpc-flow-logs-enabled/step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/vpc-flow-logs-enabled/step4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/vpc-flow-logs-enabled/step5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/vpc-flow-logs-enabled/step7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/vpc-flow-logs-enabled/step8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/vpc-flow-logs-enabled/step9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.