In this step we will create a EventBridge Rule for create a snapshot for the BasicLinuxTarget.
gd-compromised-instance-remediation
, the description is optional, then foward to the creation.{
"source": ["aws.guardduty"],
"detail": {
"type": ["UnauthorizedAccess:EC2/TorClient", "Backdoor:EC2/C&CActivity.B!DNS", "Trojan:EC2/DNSDataExfiltration", "CryptoCurrency:EC2/BitcoinTool.B", "CryptoCurrency:EC2/BitcoinTool.B!DNS"]
}
}
Make sure the instance is already isolated before taking snapshots otherwise you may end up with many snapshots created every 15 minutes (or 6H depending your GuardDuty setting). The author recommend disabling this rule once you’ve completed the testing.
When you are done with all the steps, head to the next part of the Workshop which is Configure Automated Response or you can do the Step Function response