| 110 | 119.75.23.81 |
| 110 | 61.160.232.38 |
| 117 | 117.79.235.90 |
| 133 | 61.160.232.39 |
| 138 | 46.17.97.76 |
| 154 | 61.160.232.22 |
| 183 | 222.186.26.164 |
| 196 | 222.186.25.134 |
| 565 | 220.161.150.70 |
| 825 | 46.17.100.26 |

select count(*) as count, hostname from watchdog where type = 'user' and message like '%Login attempt failed%' group by hostname order by count;

Comments

greggles’s picture

Status: Fixed » Active

It seems we need a more permanent/ongoing solution for this...

select count(*) as count, hostname from watchdog where type = 'user' and
-> message like '%Login attempt failed%' group by hostname order by count desc limit 10
-> ;
+-------+-----------------+
| count | hostname |
+-------+-----------------+
| 29206 | 60.176.106.86 |
| 110 | 46.17.97.28 |
| 105 | 188.163.66.75 |
| 81 | 220.161.150.114 |
... snipped some for privacy concerns... those who need to know can run the query.

10 rows in set (0.40 sec)

greggles’s picture

To find which account they are after see this:

select distinct hostname, variables from watchdog where hostname = '60.176.106.86' and type = 'user' and message like '%Login attempt failed%'

Gerhard Killesreiter’s picture

The top IP was trying to log in to a spam account that was blocked already.
The next one was also trying to log in to similar accounts.

I guess some scripts were trying this.

killes@www.drop.org’s picture

Blocked a couple more IPs. Seems that the accounts they are trying to log in to don't even exist.

Narayan is working on something that uses mod_sec to block these.

killes@www.drop.org’s picture

Narayan thinks this shoud be handled inside of Drupal. It could potentially set a special http return code which would then be caught by mod_sec and the IP blocked there.

429 looks like a good code for this:

https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#429

dddave’s picture

Issue summary: View changes

Status?

lizzjoy’s picture

Status: Active » Closed (works as designed)

We now have the CDN and don't block IPs so I'm closing this issue.