LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-03-2024, 04:01 PM   #1
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Why try to crack IMAP?


I believe I have things under control, but was wondering why anyone would try to hack/crack into an IMAP server? I have a server that gets many ‘unknown user’ attempts per hour. All one could do if successful is read/delete email messages. Why do they bother?

I’ve set up fail2ban to jail IPs after one failed attempt…for 24 hours. There are currently 224 jailed IPs…so 224 attempts in the last 24 hours.

Thoughts?

Last edited by scasey; 03-03-2024 at 04:18 PM.
 
Old 03-03-2024, 04:47 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by scasey View Post
I believe I have things under control, but was wondering why anyone would try to hack/crack into an IMAP server? I have a server that gets many ‘unknown user’ attempts per hour. All one could do if successful is read/delete email messages. Why do they bother?

I’ve set up fail2ban to jail IPs after one failed attempt…for 24 hours. There are currently 224 jailed IPs…so 224 attempts in the last 24 hours. Thoughts?
Depends on where you work as far as what they want to read...anything with user information that could be used for identity theft would be a good target, along with any banking info. Past that, they could be looking to use your IMAP server to shovel out spam messages, so that when YOU get banned/blocked/blacklisted, they just move to another server, leaving you to deal with the mess.
 
Old 03-03-2024, 07:26 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
A scam recently reported involving faked email.
 
Old 03-03-2024, 08:05 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Or it is possible that your are experiencing random port scans, in which wannabe hackers keep trying doors hoping to find ones that are unlocked. They are extremely common.
 
Old 03-09-2024, 11:15 AM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Original Poster
Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
The count dropped off to around 150, then crept back up to over 200. Just for fun, I’ve set the jail time to 10 days. Wonder how many IPs will be jailed in that time?

The hackers make two attempts in a minute with the same bogus user but from two different IP addresses. They do that every few minutes, averaging 10-12 attempts per hour. Since each IP is immediately jailed, they aren’t used (don’t get through) more than once. Has crept up to 300+ while composing this…
 
Old 03-09-2024, 12:13 PM   #6
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 774

Rep: Reputation: 243Reputation: 243Reputation: 243
Why not rope off the server with libwrap so they can't even swing at it or do you have clients all over? All those attempts and blocks are still using resources. Plus, attackers rent out VPSs off large cloud providers nowadays. They dirty up an IP, and then move on quickly so your block-by-IP isn't doing much good. The days of one-IP-one-bad-guy ended 12 (or more) years ago. I'd be willing to bet most of them don't even have a domain name set and are from Linode or Digital Ocean.

Email username/password pairs are often sold in bulk on the darknet.
 
2 members found this post helpful.
Old 03-09-2024, 04:35 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Original Poster
Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by jayjwa View Post
Why not rope off the server with libwrap so they can't even swing at it or do you have clients all over? All those attempts and blocks are still using resources. Plus, attackers rent out VPSs off large cloud providers nowadays. They dirty up an IP, and then move on quickly so your block-by-IP isn't doing much good. The days of one-IP-one-bad-guy ended 12 (or more) years ago. I'd be willing to bet most of them don't even have a domain name set and are from Linode or Digital Ocean.

Email username/password pairs are often sold in bulk on the darknet.
I don’t actually have any paying clients anymore, having just retired from the business of hosting domains and building applications.. There are only three active mail users on the server: me, my wife and one of our daughters, so yes, I could use tcp wrappers…although we all currently connect with dynamic IPs. Still, I know what those are, and have even configured fail2ban to never block them.

I do still host some family and “public service” websites, and am a domain registration reseller. I’m currently mulling over if and how best to continue these “hobbies.” Meantime I can tinker with things like jailing hundreds of IPs.
 
Old 03-14-2024, 07:20 PM   #8
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Original Poster
Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Six days in…1059 IPs blocked. Number of attempts has dropped considerably…only eight in the last 24 hours.
 
Old 03-15-2024, 04:15 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310
I'm not sure if they know it's an imap server and want to hack it. They may have different goals.
 
Old 03-19-2024, 06:39 AM   #10
MilesWeb
LQ Newbie
 
Registered: Jan 2024
Posts: 8

Rep: Reputation: 1
224 attempts in 24 hours is definitely a lot in numbers.

with Fail2ban, you are already making it hard for attackers to succeed. This will prevent attacks where someone keeps trying different passwords.

1. check if someone has a list of email addresses and passwords.
2. someone might be targeting your server for access
3. attacker might be looking for inactive email accounts
 
Old 03-19-2024, 07:25 AM   #11
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by scasey View Post
All one could do if successful is read/delete email messages. Why do they bother?
Because this is a massive issue, if they can read someone's e-mail messages they can read password reset e-mails / links / 2FA codes. Can also read any notifications they've had, so get a good guess at what services the person is signed up for.

Being able to read someone's e-mail messages is by far the biggest security risk in terms of identity theft.
 
Old 03-19-2024, 08:22 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310
Quote:
Originally Posted by TenTenths View Post
Because this is a massive issue, if they can read someone's e-mail messages they can read password reset e-mails / links / 2FA codes. Can also read any notifications they've had, so get a good guess at what services the person is signed up for.

Being able to read someone's e-mail messages is by far the biggest security risk in terms of identity theft.
not to mention the case when they know you're on vacation and no one is home.
They can collect a huge amount of information from your mails, including accounts, cards, whatever is available. And they can also use your mail (communicate) instead of you.
 
Old 03-19-2024, 11:53 PM   #13
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Original Poster
Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
The count jailed peaked yesterday (the 10th day) at 1100. Has dropped to 750-ish now.
 
Old 03-20-2024, 12:08 AM   #14
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Original Poster
Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by pan64 View Post
I'm not sure if they know it's an imap server and want to hack it. They may have different goals.
They are attacking the imap port, and they are trying email addresses. The user ID is logged, and often repeated.
 
Old 03-20-2024, 10:09 PM   #15
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Rep: Reputation: 8
While the chances of anyone breaking into one of your imap accounts, and then getting to actually use it for anything, is rather slim ...

It is possible that "they" are someone working for one of the spam-control lists, who is not so good or saintly. With their intent being that if they can break in at all, ever, they can exxagerate that your imap server has weak security making it some haven for spammers. And then quite-legally harass and extort you under the threat of spam filtering your whole email domain off the net.

It has happened before, so why not again?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why i am getting error when i type "make check" when i try to install GCC (10.2.0) when i try to make LFS D3VBG Linux - Software 3 05-04-2021 01:59 AM
LXer: Why Can’t Linux Crack The Desktop? LXer Syndicated Linux News 1 06-29-2012 04:27 AM
LXer: How to crack a wireless WEP key using AIR Crack LXer Syndicated Linux News 1 05-09-2010 07:59 AM
UW IMAP problem downloading IMAP folders nuzzy Linux - Software 1 04-17-2003 04:25 AM
Why is Windows on Crack? finegan Linux - Software 3 01-30-2002 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration