
Is your WordPress dashboard acting strange? Are new admin users appearing, pages redirecting, or your hosting provider sending alarming emails? That is not WordPress being “creative.” It may be a security issue hiding in your site files.
This strange behaviour of your website could be because of suspicious files & folders on your server that needs to be checked & fixed carefully. Not every unfamiliar file is malware. WordPress plugins, themes, cache tools, and hosts create files that can look cryptic. The real goal is to identify what does not belong, remove it safely, and close the security gap that allowed it in.
Start by understanding the normal WordPress file structure. A standard installation includes three major folders: wp-admin, wp-content, and wp-includes. You should also see core files such as wp-config.php, wp-login.php, and index.php in the main directory.
Files outside this structure are not automatically dangerous. However, they deserve a closer look when their names, location, or modification dates do not match your website activity.
The wp-admin and wp-includes folders should mostly contain WordPress core files. Be cautious if you find random PHP files with vague names such as:
Attackers often use names that resemble legitimate WordPress files. A file named wp-login1.php or wp-config-old.php may look harmless at a glance but can be used to maintain unauthorized access.
#2 Strange PHP files inside uploads
The wp-content/uploads folder is meant for media such as images, PDFs, videos, and documents. PHP files do not normally belong there.
A PHP file in uploads can be a major warning sign because it may allow code to run directly from a publicly accessible directory. Check for files ending in .php, .phtml, .php5, or unusual double extensions such as image.jpg.php.
#3 Recently modified files you did not change
Review file modification dates using your hosting file manager, SFTP, or a WordPress security scanner. Focus on files changed when nobody on your team was working on the site.
Pay extra attention to modified versions of:
Suspicious folders often have generic names designed to blend in, such as tmp, backup, old, test, images, or css. Those names can also be completely legitimate, which is why context matters.
Look for folders in unusual places, especially within wp-admin, wp-includes, or uploads. Also inspect old development folders, abandoned staging sites, and backup directories. A forgotten copy of WordPress with an outdated plugin can give an attacker a way back into the main website.
Create a full backup of your website files and database before cleanup. Keep a copy away from the same hosting account if possible. The backup may contain malware, but it is still useful for recovering business content, confirming changes, and investigating what happened.
If the website is actively redirecting visitors or sending spam, consider putting it into maintenance mode while the issue is reviewed.
Use a reputable WordPress security scanner to identify modified core files, known malware signatures, suspicious administrator accounts, and vulnerable plugins. Your hosting provider may also offer server-level malware scanning.
Scanner results are a starting point, not an automatic delete list. False positives happen, especially on customized websites. Review each flagged file against the plugin, theme, or custom development work on your site.
Open the Users section in WordPress and review every administrator account. Remove accounts that are unknown, inactive, or no longer required. A malicious admin account can restore infected files after you remove them.
Also review hosting access logs, FTP accounts, database users, scheduled tasks, and any connected third-party services. If an employee, former vendor, or old developer still has access, that access should be removed or reset.
Replace WordPress core files with clean copies matching your current version. Reinstall plugins & themes from trusted sources rather than manually editing infected files where possible.
For premium themes or plugins, download fresh files from the original developer. Avoid nulled themes and plugins. They may appear to save money, but they are one of the most common routes for WordPress malware infections.
After removing malicious code, reset WordPress admin passwords, hosting passwords, SFTP credentials, database passwords, and passwords for connected email accounts. Use unique, long passwords and enable two-factor authentication where available.
If you only change the WordPress password, an attacker with hosting or database access may still regain control.
Cleaning suspicious files is only half the job. The website must be hardened to reduce the chance of the same issue returning next week.
Keep WordPress core, plugins, and themes updated on a scheduled basis. Delete inactive plugins and themes instead of leaving them installed. Every unused extension is another possible vulnerability.
Use a trusted security plugin, limit login attempts, enable a web application firewall where suitable, and block PHP execution in folders that should only contain media uploads.
Get professional website support if Google has flagged the site, visitors are being redirected, the infection returns after cleanup, your website processes payments, or your team is not comfortable working with server files and databases.




Get an affordable quote for services like website maintenance, website repair, website upgrade, & website malware removal.

WordPress website broken after a PHP upgrade? Learn how to fix critical errors, plugin conflicts and PHP compatibility issues. Get WordPress support in Singapore.

WordPress website broken after a PHP upgrade? Learn how to fix critical errors, plugin conflicts and PHP compatibility issues. Get WordPress support in Singapore.

Protect your business from cyberattacks with professional website maintenance, website support, malware removal, website security and website upgrade services in Singapore.

Discover how the latest PHP2Shell security vulnerabilities affect WordPress, Drupal and OpenCart websites, and what website owners should do to stay protected.
WhatsApp us