# Multi Country Authentication Alert

**URL:** <https://discuss.rapid7.com/t/multi-country-authentication-alert/13531>\
**Category:** Alerts\
**Created:** [July 8, 2022, 2:26pm UTC](https://discuss.rapid7.com/t/multi-country-authentication-alert/13531 "2022-07-08T14:26:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ge72w108](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/g/a88e4f/32.png) [@Ge72w108](https://discuss.rapid7.com/u/Ge72w108)\
**Post date:** [July 8, 2022, 2:26pm UTC](https://discuss.rapid7.com/t/multi-country-authentication-alert/13531/1 "2022-07-08T14:26:21Z")

</div>

Hello guys,

we are getting a lot of multi country authentication alerts in our environment. I have a question about a possible exception that can be used to close this incident:

- Exception: “Ignore multiple country authentications from these countries for this user”

Let’s say somebody logged in from France and Belgium and I use this exception:

- Will I still receive an alert when this user logged in from Belgium and Italy or will  
it ignore all multiple country authentications alerts that involve Belgium or France?

I’m also wondering about how others handle these alerts. I was thinking about having a workflow which checks the involved IPs against VirusTotal and then immediately close the incident if the IP is not suspicious.

---

<div class="post-metadata">

**Author:** ![SDavis](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/sdavis/32/843_2.png) [@SDavis](https://discuss.rapid7.com/u/SDavis)\
**Post date:** [July 8, 2022, 3:12pm UTC](https://discuss.rapid7.com/t/multi-country-authentication-alert/13531/2 "2022-07-08T15:12:47Z")

</div>

Hey @Ge72w108,

To answer your question, if you make an alert modification for that user for authing from Belgium and France, then it will fire off for any other variations as long as they don’t include Belgium and then France:

Belgium and France Auths = no alert  
Belgium and Italy = alert  
Italy and France = alert

Depending on your organization’s needs and global footprint, there are multiple ways of handling these alerts:

Create modifications and allow countries that you have an active presence in so that only the non-approved countries fire off alerts (not a big fan of whitelisting so I won’t say this is or isn’t best practice as if an account is compromised within a country you have a user in, then it can go unnoticed)

Set Multi-country alerts to notable behavior in UBA and create a custom alert for any country that isn’t approved (MDR customers work with the SOC to do things like this for non-approved countries, but again alert modifications can create blindspots)

I would also recommend you setup the automation for enriching data which will help add visibility and information to alerts with IP info.

---

<div class="post-metadata">

**Author:** ![aanthonyc](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/a/0ea827/32.png) [@aanthonyc](https://discuss.rapid7.com/u/aanthonyc)\
**Post date:** [November 16, 2023, 12:56pm UTC](https://discuss.rapid7.com/t/multi-country-authentication-alert/13531/3 "2023-11-16T12:56:45Z")

</div>

How does one for contractors in lets say India, create an exception for every contractor? Yikes, that might be messy, that seems cumbersome.

---

<div class="post-metadata">

**Author:** ![SDavis](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/sdavis/32/843_2.png) [@SDavis](https://discuss.rapid7.com/u/SDavis)\
**Post date:** [November 16, 2023, 2:40pm UTC](https://discuss.rapid7.com/t/multi-country-authentication-alert/13531/4 "2023-11-16T14:40:32Z")

</div>

Depending on how many contractors we are talking about, you could add them as values for a variable of your own creation, then add a single exception for the variable, then all you need to manage is that variable.  
[https://docs.rapid7.com/insightidr/use-variables-in-queries](https://docs.rapid7.com/insightidr/use-variables-in-queries)

edit: What I’m referring to is NOT the UBA alert for Multi-country, but if you created a Custom ABA detection which works with the Exceptions and Variables.

---

<div class="post-metadata">

**Author:** ![aanthonyc](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/a/0ea827/32.png) [@aanthonyc](https://discuss.rapid7.com/u/aanthonyc)\
**Post date:** [November 17, 2023, 3:38pm UTC](https://discuss.rapid7.com/t/multi-country-authentication-alert/13531/5 "2023-11-17T15:38:24Z")

</div>

Thanks for the info, I started looking at the UBA rules so we might look at that as well.

---

<div class="post-metadata">

**Author:** ![SDavis](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/sdavis/32/843_2.png) [@SDavis](https://discuss.rapid7.com/u/SDavis)\
**Post date:** [November 17, 2023, 3:51pm UTC](https://discuss.rapid7.com/t/multi-country-authentication-alert/13531/6 "2023-11-17T15:51:55Z")

</div>

Not a problem, are you an MDR customer or IDR customer?

---

<div class="post-metadata">

**Author:** ![emeijer](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@emeijer](https://discuss.rapid7.com/u/emeijer)\
**Post date:** [November 29, 2023, 9:04am UTC](https://discuss.rapid7.com/t/multi-country-authentication-alert/13531/7 "2023-11-29T09:04:37Z")

</div>

We have had an alert modification for Multiple country for Netherlands and Belgium at a customer. There is a user that has been traveling between Netherlands and Germany for over a year now. This started creating investigations this month. we went from 3 in a month to 39 investigations till now.

My theory was that this was because of the change from “Netherlands” to “The Netherlands” in the logs but that does not comply with the explanation given by Stephen in July '22 because Germany had no Alert Modification.

Thanks for any input.

Eelco Meijer

---

<div class="post-metadata">

**Author:** ![emeijer](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@emeijer](https://discuss.rapid7.com/u/emeijer)\
**Post date:** [November 29, 2023, 12:35pm UTC](https://discuss.rapid7.com/t/multi-country-authentication-alert/13531/8 "2023-11-29T12:35:34Z")

</div>

We have conducted a test within our own InsightIDR environment. We had no Alert Modifications for countries in our own environment to begin with. These are the steps we have taken:

- I authenticated to Office365 using a NordVPN from Brazil.
- We got a Multple Country investigation
- we closed and modified that investigation, allowing The Netherlands and Brazil for all users.
- My coworker signed in from Luxembourg using NordVPN.
- No investigation for Mult. Country, but we did get a NordVPN suspicious authentication with a notable behaviour on first signin from Luxembourg.
- We removed the Alert Modification for The Netherlands.
- My coworker signed in from Luxembourg again.
- Now we get a Multiple Country investigation.

So it really looks like it is not working like intended.

---

<div class="post-metadata">

**Author:** ![ps1](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/p/bc8723/32.png) [@ps1](https://discuss.rapid7.com/u/ps1)\
**Post date:** [April 3, 2024, 3:02am UTC](https://discuss.rapid7.com/t/multi-country-authentication-alert/13531/9 "2024-04-03T03:02:31Z")

</div>

Hi can you please tell me the basic steps to build the workflow for multi country authentication we are new to the rapid7.
