Stopping Guard Duty Enable emails?

We’re looking to activate Guard Duty across all of our accounts / regions, but in my testing so far, it sends an email to the root account email address for all regions where it’s being enabled. Is there a way to stop this emails from sending? We have our root email addresses as a distro list with a few people on it, as well as our AWS TAMs, so I’d prefer not to bombard them with 100s of emails across all accounts.

Thanks!

Edit: I seem to have found the answer thanks to AWS support. There’s an optional parameter for the invite_members function call that can DisableEmailNotification. GuardDuty - Boto3 1.44.10 documentation - that did the trick!


Related discussions:

What do you do when you enable SES, ACM and other services that send an email on new setup?

A separate question for OP - are you comfortable with everyone on that company distro list having the potential to gain root access to your AWS account? Even if they do not currently have the password, the fact that they are able to receive password reset emails effectively grants them access (without consideration of any 2FA on the root account).

I knew that question would come up :slight_smile:

Yes, we’re comfortable with people who have access to the distro list (it’s 3 people in total). I’d be more concerned with our Office 365 admins that have access to add themselves to those distros and reset the root passwords, but there needs to be a level of trust in those type of positions.

We use DNS validation for ACM, so that hasn’t come up as of yet. SES we’ve enabled in a handful of regions/accounts only, so the quantity of emails has never been a problem.

With Guard Duty, we’re talking about 17 regions per account, across 20 accounts (over 300 emails).

We’ve seen that ACM dns validation sends a confirmation email to root on new region setup. Not a email validation but just a new region setup.

Interesting… I’ll have to look out for it, previously, all of our root email addresses were tied to our resellers domain, so we didn’t see them. We haven’t setup a new region with a new ACM cert since changing to our root logins, so you may very well be right. I’ll keep an eye out next time we setup a new cert.

The original question still stands, as the quantity of emails coming is significantly higher than what ACM would ever send.

there actually is a way. if you are doing the invite via api, you can use this documentation: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_InviteMembers.html

cli: https://docs.aws.amazon.com/cli/latest/reference/guardduty/invite-members.html

i believe there is also a checkbox when doing an invite via the console but cant remember

Yep, just found it like 10 minutes ago. We’re using the python script to enable it across multiple accounts, so it was a matter of putting that parameter into the invite_members function call and it did the trick.

Thanks for the info!

Do you run into guard duty api throttling?

Running it now 10 accounts at a time.. will let you know in a bit.

No issues with the api throttling.

Thanks for the update

Excellent news. We complained to AWS a while back that there was no option to disable the emails so we got thousands of them. It was lovely. Great to hear we can update the script now to disable the emails!

EDIT: 2 words. Was mobile for original post.

Were you the one who updated the GitHub issue? If so, thanks! I asked our AWS rep to get that fix merged but I figure the more requests they get the more likely it is to happen.

Sure was :).. Gotta spread the love around in case people find that comment thread.

I was going to do a PR myself and provide some code with an optional parameter to the script, but they’ll want to likely have do that themselves.

It shows that they at least listen to customers sometimes!

In my experience they listen to my company regularly. We have seen a lot of our requests (smaller feature things) get implemented.