How to isolate an EC2 instance?

0

Hello, I am creating an incident response initiative with automated workflows and would like to know how I can isolate my EC2 instance if any malicious activity is detected, in order to conduct forensic analysis later?

Raphael
已提問 5 個月前檢視次數 318 次
1 個回答
2
已接受的答案

Hello, there are 3 options for you to perform instance isolation:

1 - Security Group-level containment: a. Create a dedicated “Isolation” security group b. Create a single rule of 0.0.0.0/0 (0-65535) for all traffic in both the inbound rules and outbound rules c. Application of these rules will convert all existing (and new) traffic to “untracked” d. Remove the existing security group association from the instance and associate the “Isolation” security group with the instance e. Delete both rules of 0.0.0.0/0 (0-65535) for all traffic from both the inbound rules and outbound rules of the “Isolation” security group

2 - Subnet-level containment: a. Identify the subnet associated with the instance b. Identify the NACL associated with the subnet c. Add a DENY ALL NACL rule to both the inbound and outbound rules as rule number 1 for all traffic (0.0.0.0/0) d. If you need to delete an existing rule to make space, ensure you record the details of the deleted rule in order to restore it in the future

3 - VPC-level containment: a. Remove all the IGW routes from all route tables b. Attach a custom route table with no routes to all subnets within the VPC c. Options available depending on your needs and the situation d. This is a big hammer: Use it wisely

https://docs.aws.amazon.com/vpc/latest/userguide/infrastructure-security.html

profile pictureAWS
已回答 5 個月前
profile picture
專家
已審閱 5 個月前
profile picture
專家
已審閱 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南