After a WordPress security incident, an attacker may create a new administrator account to maintain access to your website. This account can remain active even after you change your passwords or remove malicious files.
Reviewing administrator accounts is an important part of securing a compromised website. This guide explains how to identify suspicious WordPress users, verify whether they are authorized, and safely remove unauthorized access.
Table of Contents
Why Unauthorized Administrator Accounts Are a Security Risk
WordPress administrators have extensive permissions to manage a website.
Depending on the WordPress configuration, an administrator can:
- Create, modify, and delete user accounts.
- Change website settings.
- Install or modify plugins and themes.
- Edit or delete website content.
- Access information stored in WordPress.
- Create additional administrator accounts.
An attacker with administrator access may be able to modify website files, install malicious plugins, or create another account to regain access later.
Important: Changing your WordPress password does not remove other administrator accounts. Any unauthorized accounts must be identified and addressed separately.
For a broader explanation, see Why Changing Passwords Is Not Enough After a Hack.
Step 1: Review Administrator Accounts in WordPress
The WordPress dashboard provides a list of registered users and their assigned roles.
- Log in to your WordPress dashboard at
yourdomain.com/wp-admin. - Select Users → All Users from the left-hand menu.
- Click Administrator above the user list to filter accounts by role.
- Review the usernames and email addresses displayed.
Every account in this list has administrator permissions for your WordPress website.
Compare the listed accounts with the people who should have administrative access, including website owners, developers, and authorized maintenance providers.
Note: Before modifying accounts during a security investigation, preserve a backup of your website files and database. Keep a record of suspicious usernames, email addresses, and other relevant information.
Step 2: Identify Suspicious Administrator Accounts
An unfamiliar administrator account does not automatically mean your website has been compromised. Some accounts may have been created by developers, administrators, or services you previously authorized.
However, certain details deserve closer investigation.
| Warning sign | What to check |
|---|---|
| Unfamiliar username | Confirm whether the account belongs to an authorized user |
| Unknown email address | Check whether the address belongs to someone responsible for the website |
| Unexpected administrator role | Verify whether the user actually requires administrative access |
| Recently created account | Compare its creation date with the suspected incident |
| Multiple unfamiliar administrators | Check whether additional accounts were created without authorization |
| Account resembling an existing administrator | Verify whether someone created a similar username to avoid attention |
Examples of usernames that may deserve investigation include admin_backup, wp_support, or system_admin if you do not recognize them.
These names are not inherently malicious. Their legitimacy depends on whether they were created and authorized by someone responsible for the website.
Important: WordPress does not display the account creation date or complete login history in the standard Users screen. You can retrieve registration dates using WP-CLI or examine existing activity logs.
Step 3: Check Administrator Accounts Using WP-CLI
If you have SSH access to your hosting account, WP-CLI provides another way to inspect WordPress users.
This can be useful when the WordPress dashboard is unavailable or when you need account registration dates.
- Connect to your hosting account through SSH.
- Navigate to the directory containing your WordPress installation.
- Run the following command:
wp user list --role=administrator
The command displays the administrator accounts registered in WordPress.
The output includes information such as:
- User ID
- Username
- Display name
- Email address
- Registration date
- Assigned role
You can also request specific fields:
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered,roles --format=table
Check the registration dates of unfamiliar accounts.
For example, if you noticed suspicious website activity on October 20 and an unknown administrator was registered shortly before that date, the account requires further investigation.
However, the registration date alone does not establish whether an account is malicious.
Note: WP-CLI must be available in your hosting environment. Run these commands from the correct WordPress installation directory. These commands list accounts without modifying them.
For WordPress Multisite installations, administrator permissions are managed per site, while Super Administrators have network-level access. You can list Super Administrators using:
wp super-admin list
Step 4: Review Recent Login and Account Activity
Account information can help you identify suspicious users, but reviewing activity provides additional context.
Check whether:
- An unknown administrator logged in around the time of the incident.
- A new administrator account was created unexpectedly.
- An existing user’s role was changed to Administrator.
- Plugins, themes, or website settings were modified without authorization.
- User account details were changed unexpectedly.
WordPress does not include a complete login history by default.
If you already use a security or activity logging plugin, review its records for relevant events. Logs generally cover only activity recorded while logging was enabled.
Server access logs may also contain requests to /wp-login.php or /wp-admin/, although these requests do not necessarily prove that a login succeeded.
For detailed instructions, see How to Check Recent Logins in WordPress.
Important: An IP address alone is not enough to identify an attacker. Legitimate administrators may use different networks, mobile connections, or VPN services.
Step 5: Verify Whether an Account Is Authorized
Before removing an unfamiliar administrator, confirm whether someone with legitimate responsibility for the website created it.
- Record the account’s username and email address.
- Check your list of authorized website administrators.
- Contact the website owner or responsible developer through a trusted communication channel.
- Confirm whether the account was intentionally created.
- Record the result of your investigation.
Avoid contacting an unknown email address listed on a suspicious account to verify its legitimacy. That address may be controlled by an attacker.
If the account cannot be verified and there is evidence of unauthorized access, treat it as potentially compromised.
Step 6: Remove Unauthorized Administrator Access
If an account has been confirmed as unauthorized, revoke its access.
Before making changes, preserve relevant evidence and confirm that you still have access through a trusted administrator account.
Option 1: Change the User’s Role
You can remove administrator permissions without immediately deleting the account.
- Open Users → All Users.
- Select the confirmed unauthorized account.
- Locate the Role setting.
- Change the role to Subscriber.
- Save the changes.
This removes the account’s normal administrator permissions while preserving the user record for further review.
Changing the role does not necessarily terminate existing sessions or remove additional permissions granted by plugins or custom code.
Option 2: Delete the Unauthorized Account
After preserving evidence and reviewing any content associated with the account, you can remove it from WordPress.
- Open Users → All Users.
- Locate the confirmed unauthorized account.
- Click Delete.
- Select the option to attribute its content to a trusted existing user, if applicable.
- Confirm the deletion.
WordPress may ask what should happen to content associated with the deleted user.
Choose carefully. Deleting content instead of reassigning it could remove legitimate posts or pages.
If you use WP-CLI, you can also delete a confirmed unauthorized user with:
wp user delete 123 --reassign=2
In this example, 123 is the user ID being deleted and 2 is the trusted user’s ID receiving the reassigned posts.
Replace both IDs with the correct values for your website.
Important: Removing a suspicious administrator does not guarantee that the website is secure. If the attacker installed malicious code or another access mechanism, the account could be recreated.
Step 7: Secure the Remaining Administrator Accounts
After removing unauthorized access, review the remaining accounts.
- Reset the passwords of legitimate administrators using strong, unique passwords.
- Terminate other active administrator sessions.
- Enable two-factor authentication where supported.
- Review and revoke unfamiliar WordPress application passwords.
- Remove administrator permissions from users who no longer require them.
- Update WordPress core, plugins, and themes after assessing the compromised installation.
Also review your hosting, SFTP, SSH, and database credentials if they may have been exposed.
For additional protection measures, see WordPress: Updates and Security – How to Take Care of Your Website.
What to Expect After Removing an Unauthorized Account
After the account is deleted, it should no longer appear in the standard WordPress user list.
If you changed its role instead, it should no longer appear under the Administrator filter.
You can verify the updated administrator list using:
wp user list --role=administrator
Check that only authorized accounts remain.
Continue monitoring the website for unexpected administrator accounts, account changes, and suspicious activity.
If an unauthorized account reappears, this may indicate that malicious code or another unauthorized access method remains active.
When to Contact mybox Support
Contact mybox support if:
- You cannot access your WordPress dashboard after a security incident.
- Unknown administrator accounts continue to appear.
- You suspect malicious files or backdoors are recreating accounts.
- You need help checking hosting-related access or identifying suspicious server activity.
- Your website remains compromised after removing unauthorized users.
When contacting support, include the affected domain, relevant account usernames, approximate incident time, and a description of the suspicious activity.
Do not share passwords or other sensitive authentication credentials.
Summary
Unauthorized WordPress administrator accounts can allow an attacker to retain access after a security incident. Reviewing user roles, checking account registration dates, and examining available activity logs can help identify accounts that require investigation.
Only remove accounts after confirming that they are unauthorized. Account cleanup should be part of a broader security review, because removing an administrator does not automatically eliminate malicious code or other access methods.