If any WordPress account on your site is named admin, replace it with a new administrator account and delete it. Give every administrator a long, unique password, update everything, and ask your host what it is blocking.

A week of guessing at the login page

Over the past week, hosting companies around the world have reported a large network of infected computers working through WordPress login pages, one site after another.

Each computer tries a username, almost always admin, with a password from a list of common ones. If it fails, it tries the next, and the next computer tries another.

Sites were not chosen. Any WordPress site that answers at the usual login address is on the list, whatever its size or trade.

Some site owners noticed because their sites slowed down, or because their host sent a notice. Many have noticed nothing at all.

How the guessing works

A botnet is a large number of home and office computers infected with software that takes orders from elsewhere. The people using them usually have no idea.

Spreading the attempts across so many machines defeats the simplest defence. A rule that blocks one address after five failed logins barely slows an attack coming from thousands of addresses.

A site taken over this way can be used to send spam, attack other sites or serve harmful files to its own visitors, and the business may learn of it from a warning in Google's results.

Why the username matters

Older WordPress installs created an account called admin automatically, and many installers still suggest it. An attacker who guesses the username has half the login already.

Remove the admin account and every one of those guesses fails, however good or bad the passwords on the list.

A less obvious username is not a secret, though. Author pages can reveal login names, so the password still has to stand on its own.

What a host can block

Hosts have been responding at the server, before requests reach any one site.

Ask your host which of these it has in place, and whether the second password can be turned on for your site. That extra prompt stops the guessing before WordPress sees it.

A password that holds

A strong password is long and used nowhere else. Four or five unrelated words strung together are easier to remember than a short jumble, and far harder to guess.

Common substitutions, such as a zero for the letter o, are on the attackers' lists too. So are the business name, the street and the year it opened.

A password manager lets each person keep a different long password for every login without writing any of them on sticky notes.

A worked example

A scrapbooking store in Vernon runs a WordPress site with a class calendar, a blog of sample layouts and a page of new paper arrivals.

Three staff posted to it, all through one account named admin, with a password made from the store's name and the year it opened. A former employee's administrator account was still active.

After the host's notice last week, the manager created an administrator account with a less obvious name and a long passphrase, logged in with it, and deleted admin, giving its posts to the new account.

Each staff member now has an account of their own with the Editor role, which can publish but cannot install add-ons or change settings. The former employee's account is gone.

WordPress, the theme and every add-on were updated, and the host turned on its second password for the login page.

The guessing still arrives, and it now finds no admin account to aim at. When a post changes, the store can also see whose account changed it.

Changing the username without losing posts

WordPress does not let you rename an account. Create a new one with the Administrator role instead, log out, and log back in with it.

Then delete the old admin account. WordPress asks what to do with its posts and pages; choose to attribute them to the new account, and nothing on the site changes.

In each profile, choose a public display name that differs from the login name, so bylines do not hand out half of every login.

Fewer administrators

Every administrator account is a door with full access. Most staff who write posts need the Editor or Author role, not Administrator.

Close the accounts of former staff, and check the email address on each remaining administrator, since password resets go to that address.

Fewer administrator accounts also means fewer passwords that can open everything. A contributor's weak password then exposes one person's drafts, not the whole site.

Signs a site was already reached

Look in the user list for accounts no one recognises, and at recent posts and pages for changes no one made. Search Google for your domain with words such as casino or loans beside it.

If anything looks wrong, call your developer or host before changing more. Restoring from a clean backup and closing the way in matter more than deleting what you can see.

Afterwards, give every login tied to the site a new password, the hosting account and the file transfer account included.

The counter-case

A site already using its own username, long unique passwords and current updates is in good shape. The attack will knock and fail.

Sites on Joomla, Drupal or hand-built code are not the target of this attack, though similar guessing reaches their login pages too.

And a host's protection is a strong layer, but not the whole defence. A guessable password left behind it still waits for a slower, more patient attack.

Changes to make today

  1. Open the user list and look for admin.
  2. Create a new administrator with a less obvious name.
  3. Delete admin and attribute its content to the new account.
  4. Give every administrator a long, unique password.
  5. Remove accounts for people who have left.
  6. Update WordPress, the theme and every add-on.
  7. Ask your host about a second password on the login page.

Step four protects the site long after this attack fades. Usernames can be found; a long password used nowhere else is what keeps the door shut.

A site that prints its own technical details gives attackers a head start too, and error messages that show strangers how the site is built shows how to keep them private.


Frequently asked questions

What is happening to WordPress sites right now?

A large network of infected computers is trying common usernames and passwords on WordPress login pages worldwide, mostly the username admin, in the hope of taking sites over.

Why does the admin username matter so much?

The attack guesses passwords for an account called admin. If no such account exists on your site, every one of those guesses fails, whatever the password list contains.

Can I rename the admin account in WordPress?

Not directly. Create a new administrator, log in with it, then delete admin and hand its posts and pages to the new account, so nothing on the site changes.

What makes a password strong enough?

Length and uniqueness. Four or five unrelated words together are easy to remember and hard to guess. Never reuse it, and avoid names, streets and years.

What can my host do about the attack?

Limit login requests, block addresses taking part, add a second password prompt before the login page, watch server load, and keep backups away from the server.

How do I know if my site was already taken over?

Look for unknown user accounts and changes no one made, and search Google for your domain with spam words. If anything looks wrong, call your developer or host.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Still logging in as admin?

Point us to your WordPress site, and we will help retire the admin account and tighten the login before the next wave.

Start a Conversation