Short answer: You can find malware in WordPress files without SSH. Start with a security plugin that compares your core files to the official WordPress versions, such as Wordfence or Sucuri Security, and scans themes and plugins for known malicious code. Then use your hosting control panel’s file manager to sort files by modification date, look for PHP files inside wp-content/uploads, unfamiliar files in the site root and changes to .htaccess, wp-config.php and theme files. Download a full copy of the site over SFTP or the file manager and scan it on your computer for a second opinion. Finally, ask your host whether they run malware scans; many shared hosts do.
Why this guide skips the command line
Many WordPress sites live on shared or managed hosting where SSH access is unavailable or disabled. The command-line approach with WP-CLI checksums and grep is powerful, and we cover it in our guide to WordPress malware scans over SSH. But you do not need a terminal to find most infections. The same logic applies: compare files against known-good copies, look where attackers usually hide code and check what changed recently.

Step 1: Back up first
Before you scan or delete anything, take a full backup of files and database using your host’s backup tool or a backup plugin. WordPress.org’s guidance for hacked sites recommends keeping a snapshot of the infected site, both as evidence and in case cleanup breaks something. Store it outside the hosting account.
Step 2: Run a scanner plugin
WordPress.org lists application scanners including Wordfence, Sucuri, Quttera and GOTMLS. Install one reputable scanner, not several at once. Two features matter most:
- Core file comparison. The scanner checks WordPress core files against the official versions and flags changed, added or missing files. Malware often modifies core files or drops extra PHP files into wp-admin or wp-includes.
- Signature and heuristic scanning. The plugin looks for known malicious code patterns in themes, plugins and uploads.
Scanners have limits. Malware that is already running can sometimes hide from them, and new variants may not match known signatures. Treat a clean result as a good sign, not a guarantee. Also use a remote scanner such as Sucuri SiteCheck or VirusTotal, which WordPress.org mentions, to see what visitors and search engines receive.
Step 3: Inspect files in the hosting file manager
Open your control panel’s file manager. Turn on the option to show hidden files, which reveals .htaccess and other dot files. Then check the areas below.
| Location | What is suspicious |
|---|---|
| wp-content/uploads | Any .php file; uploads should hold media, not code |
| Site root | Unfamiliar PHP files with random or system-like names |
| .htaccess (all folders) | Redirect rules, auto_prepend_file, unknown handlers |
| wp-config.php | Added include lines or long encoded strings |
| Theme functions.php, header.php, footer.php | Obfuscated code, unknown script tags |
| wp-content/mu-plugins | Files you did not add; they load automatically |
| Plugin folders | Plugins you never installed, or extra files |
Sort each folder by modification date. Files changed on the same day, especially when you made no updates, often belong to the same attack. Be aware that attackers can fake timestamps, so a normal date does not prove a file is clean.
When you open a suspicious PHP file in the file manager’s viewer, look for warning signs: very long lines of random characters, functions such as eval, base64_decode, gzinflate, str_rot13 or assert combined with encoded text, code that reads variables from cookies or request parameters and executes them, or files that start with a short line of PHP followed by a large encoded block. Legitimate plugins occasionally use some of these functions, so compare against a fresh copy before deleting.
WordPress.org notes that .htaccess is a frequent target and may exist in several directories. It also lists index.php, header.php, footer.php and functions.php as high-value files, because changes there affect every page load. Our guide to WordPress backdoor hiding places lists more locations.
Step 4: Compare with clean copies
Download the same WordPress version you run from wordpress.org and fresh copies of your plugins and themes from their official sources. Compare suspicious files against the clean versions, using a file comparison tool on your computer. Any extra files in core folders, or differences in core files, are strong evidence of compromise.

For cleaning, WordPress.org recommends reinstalling core manually by replacing the wp-admin and wp-includes folders, rather than using the dashboard reinstall button, which can leave injected files behind. Replace plugins and themes the same way.
Step 5: Scan a local copy
Download the entire site through SFTP or the file manager’s compress-and-download option. Scan the archive with your computer’s antivirus and an additional on-demand scanner. Many desktop antivirus products detect common PHP web shells. Do not open or run any files from the archive; just scan them.
Step 6: Check the database and accounts
Malware is not always in files. Check for administrator accounts you did not create, suspicious options or widgets with script tags, and injected content in posts. Change passwords for WordPress, hosting, SFTP and the database, and replace the salts in wp-config.php to sign everyone out. If you use cPanel, our guide to securing WordPress on cPanel hosting covers account isolation and permissions.
Step 7: Ask your host
Many hosts run server-side malware scanners and can tell you which files they flagged and whether other sites in your account are affected. WordPress.org suggests asking your host about shared hosting incidents. If you find a lot of infected files, or the infection returns, consider professional cleanup.
Keep a record as you go
Malware hunts without SSH involve a lot of clicking through folders, and it is easy to lose track of what you checked. Keep a simple log as you work: the date, each suspicious file path, why it looked wrong, whether you compared it against a clean copy and what you did with it. Save copies of removed files in your backup rather than deleting them outright. This record helps in three ways. If the infection returns, you can see whether the same folders were hit again. If you hire a professional or ask your host for help, they can start from your findings instead of repeating your work. And if Google or a blocklist asks what you fixed during a review request, you can give a specific answer.
After cleanup, schedule a weekly scan with your security plugin and set it to email you about changed core files, which is the closest substitute for command-line integrity checks on hosting without SSH.
Frequently asked questions
Can a security plugin find all WordPress malware?
No scanner catches everything. Plugins find most known malware and core file changes, but combine them with manual checks and a remote scan.
Is it safe to delete PHP files in uploads?
The uploads folder should normally contain media, not PHP. Back up first, then remove PHP files you cannot account for.
Should I use the Reinstall WordPress button?
WordPress.org advises against relying on it for cleanup, because it may leave injected files. Replace wp-admin and wp-includes manually.
How do I know the site is clean afterward?
Rescan with your plugin and a remote scanner, check Google Search Console for security issues and monitor for new files in the following weeks.



