-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make "new login" notifications less spammy #5854
Comments
Hello @zulip/server-notifications members, this issue was labeled with the area: notifications label, so you may want to check it out! |
I think location and long-lived cookie may be common practice here based on past experience with using my laptop when travelling (it seems to very by product), though I'm sure the others could be helpful as well. @lfaraone do you have advice as to what the best practice is here? |
@gnprice can you ask around and get some advice on this? My belief is we probably just want a long-lived signed cookie containing a list of dicts with e.g. User ID, IP, and any other data we eventually choose to add to this security feature (it can just be a JSON dict that grows over time). We do a list so we can handle the user having multiple accounts they use regularly. Then we can write a function with unit tests that handles this, but I think V1 would be if it's the user has logged in before with that browser (aka has a cookie for that user ID), we skip the email, otherwise, we reject. Over time we can expand the function to include location/etc, but I don't want to block on integrating a geo-ip library. |
@timabbott |
FWIW, I could hardly disagree more with that statement. The only thing this will lead to is a kind of security fatigue making users ignore such emails. Every time a user gets a security warning that is a false positive, this leads to them caring slightly less about security warnings. Not showing any warning when everything is fine is almost as important as showing a warning when something goes wrong. These login notifications are not improving security. They are increasing the user's resistance against meaningful security-related error messages. I know of no other service that follows this practice, except for one vendor's VPS (virtual private server) control panel. That is a place that you rarely log in to and that has extremely high security impact, so it makes some sense. Doing this for a chat platform is... totally exaggerated.
If you are intending to recognize "same browser" by setting cookies, please note that, like any security-minded internet citizen, I have cookies set to clear on browser exit. If that means this will be a "new browser" each time, as far as Zulip is concerned, your changes won't help people that are willing to take some steps to protect their privacy. |
@zulipbot claim |
My original description apparently wasn't clear about this, so I'll try to be as clear as I can: I'm 100% in agreement that we send way too many of these notifications. That's what this issue is about.
Services I've gotten this kind of notification from in the past few months include (at least):
Of course they're much better at not sending them all the time; that's, again, what this issue is about.
There are a range of signals we could use; the general idea is just to identify "low-risk" vs "high-risk" logins, and send mail only for the latter. This is a useful point of data for choosing the combination of signals; thanks! |
(Posting the LINK to the conversation of the current approach to solve this.) |
There are two things to do here. One is that we need a user-level setting to disable these emails; this is useful for situations where the user is explicitly logging out a lot and wants that behavior (e.g. we heard from one user who clears cookies every time he closes his browser). The second is working on the signal stuff to provide fewer emails for users who aren't doing something like that. |
Apparently that setting issue #5795. @shubhamdhama @pragatiagrawal31 I'd really love to see that worked on; I think it should be pretty quick and should relieve the main pain point here for users like @RalfJung. |
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Fixes:zulip#5854
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Fixes:zulip#5854
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Fixes:zulip#5854
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Tweaked by tabbott to simplify the test. Fixes: zulip#5854.
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Tweaked by tabbott to simplify the test. Fixes: zulip#5854.
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Tweaked by tabbott to simplify the test. Fixes: zulip#5854.
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Tweaked by tabbott to simplify the test. Fixes: zulip#5854.
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Tweaked by tabbott to simplify the test. Fixes: zulip#5854.
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Tweaked by tabbott to simplify the test. Fixes: zulip#5854.
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Tweaked by tabbott to simplify the test. Fixes: zulip#5854.
This adds a feature under "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Tweaked by tabbott to simplify the test. Fixes: zulip#5854.
Just a quick update here: We've now merged #5795 (aka added a user setting for turning this feature off). @RalfJung this should be available on zulipchat.com in about a day if you'd like to try it out; I think for your usage model of removing cookies, you probably just want this feature disabled. I'm leaving this issue open, since there's probably going to be some additional signals that we'll want to add to the default behavior before closing this out. |
That's awesome, thanks :) I'll be on the look. |
makes sense, so I'm abandoning this issue for now @zulipbot abandon |
This adds a feature in the "Notification" section of "Settings" tab, which lets user enable or disable login emails notification. Tweaked by tabbott to simplify the test. Fixes: zulip#5795, progress towards zulip#5854.
This issue has been open for a long time. (Chat thread here that brought it to mind again.) I think it's likely that there are one or two fairly doable, concrete steps we can take that would improve the situation quite a lot. We don't need to learn all the clever things that Google or Dropbox etc. might do before we can make things substantially better. Currently, if you log out and then immediately log back in again from the same browser, do we send one of these emails? That would be good to prevent, and would I think get us most of the way there. The most straightforward thing to do would be to leave behind a long-lived cookie even when you log out. If that cookie is still present when you log in, then we'd say no email is necessary. I suspect this is one thing that services with good full-time security teams (like Google or Dropbox or Twitter or GitHub) typically do; one can try to check by logging into and out of one of those and then looking at what cookies your browser has for them. |
+1 on this. At least one member asked about it. |
Like any good security citizens, we send notification emails to tell a user that there's been a new login to their account. Currently we send these too readily, though -- even if the user logs in from the same browser on the same machine at the same IP as they've done before, we send them an email about it. This ends up feeling spammy, and a recurring bit of feedback is to dial back on these emails, sometimes phrased as a request for a setting (like #5795). The spamminess also damages the security value of the login notification emails in general.
Empirically from using accounts with places like Google and Dropbox that have teams of full-time security experts, they're pretty successful at sending these messages only when the login really does feel like a new one -- like a device I haven't used that account on before. We should find out what current best practices are here (excluding any bleeding-edge refinements that make things 5% better for a huge amount of work, which those companies might be doing), and do those.
Some things we can speculate those apps might be looking at to identify a "not new" login include:
But really we should find out what experts say.
The text was updated successfully, but these errors were encountered: