Hi,
I'm wondering if anyone has experienced (and successfully thwarted) an attack like we're seeing.
Clients are unable to login to FTP: "421 50 users (the maximum) are already logged in, sorry". However, this box has far more FTP slots than clients, so I know this isn't just a case of all slots being full from legitimate use.
So I check the active FTP connections:
And the connections are from a variety of IP addresses, all of which seem to be from Asia:
However, the odd things are:
I opened a ticket with cPanel, and they told me that the connections show "root" because the users have not even logged in yet. And there are no CSF/LFD/BFD reports because the attackers apparently didn't even try to log in.
So I don't know what they are trying to do, or what they are gaining by taking up all slots without actually trying to log in (if that is indeed what is happening).
Even days later, we can't turn on FTP without this happening again.
Any ideas?
Thanks,
Mark
I'm wondering if anyone has experienced (and successfully thwarted) an attack like we're seeing.
Clients are unable to login to FTP: "421 50 users (the maximum) are already logged in, sorry". However, this box has far more FTP slots than clients, so I know this isn't just a case of all slots being full from legitimate use.
So I check the active FTP connections:
Code:
ps aux | grep ftp
root 25877 0.0 0.0 6424 1564 ? Ss 20:08 0:00 pure-ftpd (SERVER)
root 25879 0.0 0.0 6152 1228 ? S 20:08 0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
root 26313 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26314 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26315 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26316 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26319 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26320 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26321 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26322 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26323 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26324 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26335 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26336 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26337 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26338 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26343 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26344 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26345 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26346 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26347 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26348 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26349 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26350 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26351 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26352 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26353 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26354 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26360 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26361 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26366 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26367 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26368 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26369 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26370 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26371 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26372 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26373 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26375 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26376 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26377 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26378 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26379 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26380 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26381 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26382 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26383 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26384 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26385 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26386 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26390 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26391 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26394 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26395 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26441 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26442 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26456 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26457 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26462 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26463 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26477 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26478 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26493 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26494 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26511 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26512 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26521 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26522 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 26532 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 26533 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 27694 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 27695 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 27699 0.0 0.0 6428 824 ? S 20:09 0:00 pure-ftpd (IDLE)
root 27701 0.0 0.0 6428 624 ? S 20:09 0:00 pure-ftpd (PRIV)
root 27988 0.0 0.0 6428 824 ? S 20:10 0:00 pure-ftpd (IDLE)
root 27989 0.0 0.0 6428 624 ? S 20:10 0:00 pure-ftpd (PRIV)
root 28243 0.0 0.0 6428 824 ? S 20:10 0:00 pure-ftpd (IDLE)
root 28244 0.0 0.0 6428 624 ? S 20:10 0:00 pure-ftpd (PRIV)
root 28270 0.0 0.0 6428 824 ? S 20:10 0:00 pure-ftpd (IDLE)
root 28271 0.0 0.0 6428 624 ? S 20:10 0:00 pure-ftpd (PRIV)
root 28294 0.0 0.0 6428 824 ? S 20:10 0:00 pure-ftpd (IDLE)
root 28295 0.0 0.0 6428 624 ? S 20:10 0:00 pure-ftpd (PRIV)
root 28297 0.0 0.0 6428 824 ? S 20:10 0:00 pure-ftpd (IDLE)
root 28298 0.0 0.0 6428 624 ? S 20:10 0:00 pure-ftpd (PRIV)
root 28299 0.0 0.0 6428 824 ? S 20:10 0:00 pure-ftpd (IDLE)
root 28300 0.0 0.0 6428 624 ? S 20:10 0:00 pure-ftpd (PRIV)
root 28302 0.0 0.0 3100 764 pts/0 S+ 20:10 0:00 grep ftp
Code:
netstat -tpn | grep pure-ftpd | awk '{print $5}' | cut -d":" -f1 | sort | uniq -c | sort -nr
1 61.153.159.62
1 61.142.208.237
1 60.23.50.66
1 59.53.154.243
1 59.49.78.88
1 59.172.98.96
1 49.113.251.232
1 222.88.93.117
1 222.81.42.45
1 222.243.108.48
1 222.217.151.62
1 222.168.46.170
1 221.202.243.3
1 220.178.57.138
1 220.167.214.131
1 219.149.44.238
1 218.76.174.55
1 218.201.103.154
1 183.66.192.134
1 183.12.151.142
1 182.150.60.249
1 182.130.135.94
1 180.124.215.152
1 180.106.12.79
1 14.112.145.154
1 125.93.78.229
1 125.71.143.97
1 124.88.97.167
1 123.93.149.49
1 123.182.197.10
1 122.232.32.70
1 122.158.172.250
1 121.205.185.245
1 121.12.249.153
1 120.69.190.0
1 120.40.206.149
1 119.86.125.227
1 117.69.52.151
1 116.30.246.155
1 114.238.51.228
1 113.87.63.95
1 113.81.27.186
1 113.78.11.49
1 113.218.87.33
1 113.139.82.37
1 111.72.145.83
1 111.113.136.41
1 110.189.88.115
1 110.152.41.87
- All the connections show "root"; and
- CSF/LFD or CPHulk did not report any failed login attempts.
I opened a ticket with cPanel, and they told me that the connections show "root" because the users have not even logged in yet. And there are no CSF/LFD/BFD reports because the attackers apparently didn't even try to log in.
So I don't know what they are trying to do, or what they are gaining by taking up all slots without actually trying to log in (if that is indeed what is happening).
Even days later, we can't turn on FTP without this happening again.
Any ideas?
Thanks,
Mark