Build and run your site from ChatGPT
Guides/Policies and safety/What to do if you suspect your site has been hacked

What to do if you suspect your site has been hacked

Last reviewed on December 3, 2026
Works with:

Security is built into every WordPress.com site — including automatic updates, daily malware scans, firewalls, and a dedicated security team — so it is very unlikely that your WordPress.com site could be hacked. If something still seems wrong, this guide explains how to check and what to do in the rare event your site is compromised. If Google or a visitor’s antivirus software has flagged your site as unsafe, see Fix a site flagged as unsafe.

Reset your passwords

A weak or leaked password is the single biggest source of website security breach. If you suspect someone has gained access, reset your account password first. Then reset your WP Admin user password at wp-admin/users.php, and ask everyone else with access to your site to reset their passwords too. For help choosing a secure password, see Create a strong password.

If you can’t log in to your account, follow the steps in Recover your account to regain access.

Enable two-step authentication

Two-step authentication adds a second step to your login: after your password, you also enter a code from your phone or a physical key. This stops anyone from logging in with your password alone.

Remove users you don’t recognize

Review the users on your site and remove anyone you don’t recognize. Check Administrators most carefully, because only Administrators can attach SSH keys to your site. Removing a user also detaches any SSH keys they attached.

Delete your SFTP credentials

Deleting your site’s SFTP credentials removes SFTP and SSH access to your site’s files. Resetting the SFTP password isn’t enough, because SSH keys attached to your site keep working after a reset. Deleting the credentials turns SSH access off and detaches every SSH key on your site, including keys added through an account someone else took over.

Delete your credentials after you reset your passwords, turn on two-step authentication, and remove users you don’t recognize. Your site’s users then lose SFTP and SSH access, and tools or scripts that use the credentials stop connecting. When your site is secure, create new credentials and attach SSH keys again for the people who need access, following the steps in Delete your SFTP credentials.

Check your activity log

Before assuming the worst, review your activity log to see who logged in, what they changed, and when. The activity log records every action taken on your site, so unusual changes — or the absence of any — will often put your mind at ease.

Check Jetpack Scan for malware

Jetpack Scan already checks your site daily for malware and other threats, so a real problem is usually caught for you. Review your Jetpack Scan history for any flagged files or vulnerabilities. For more on handling malware, see Protect your website from malware.

Check your site monitoring logs

Your site logs record the HTTP requests made to your site. Review them to find requests to plugin endpoints and to build a timeline of when any malware may have been introduced.

Update your plugins and themes

Outdated plugins and themes are the most common entry point for an attacker. Update your plugins and themes to close any security gaps.

Contact support

If you’re still unsure or need help, contact support. Share as much detail as you can about what you found, so the team can help you quickly.

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!