Articles → AWS → Send An Email If Any Finding Is Logged In AWS Guard Duty
Send An Email If Any Finding Is Logged In AWS Guard Duty
Steps
- Create a topic and a subscription
- Create a rule in CloudWatch
- Enable Guard Duty
- Create a role
- Create a new security group
- Launch an EC2 instance
- Assign role to the EC2 instance
- Download tor browser and open the site
Create A Topic And A Subscription
Click to Enlarge
Create A Rule In CloudWatch
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
{
"source": [
"aws.guardduty"
],
"detail-type": [
"GuardDuty Finding"
],
"detail": {
"severity": [
4,
4.0,
4.1,
4.2,
4.3,
4.4,
4.5,
4.6,
4.7,
4.8,
4.9,
5,
5.0,
5.1,
5.2,
5.3,
5.4,
5.5,
5.6,
5.7,
5.8,
5.9,
6,
6.0,
6.1,
6.2,
6.3,
6.4,
6.5,
6.6,
6.7,
6.8,
6.9,
7,
7.0,
7.1,
7.2,
7.3,
7.4,
7.5,
7.6,
7.7,
7.8,
7.9,
8,
8.0,
8.1,
8.2,
8.3,
8.4,
8.5,
8.6,
8.7,
8.8,
8.9
]
}
}
Click to Enlarge
Click to Enlarge
Click to Enlarge
{
"severity": "$.detail.severity",
"Finding_ID": "$.detail.id",
"Finding_Type": "$.detail.type",
"region": "$.region",
"Finding_description": "$.detail.description"
}
Click to Enlarge
"You have a severity <severity> GuardDuty finding type <Finding_Type> in the <region> region."
Click to Enlarge
Click to Enlarge
Click to Enlarge
Enable Guard Duty
Create A Role
Click to Enlarge
Create A New Security Group
Click to Enlarge
Launch An EC2 Instance
Assign Role To The EC2 Instance
Click to Enlarge
Download Tor Browser And Open The Site
Click to Enlarge
Click to Enlarge