Skip to content
Mohammad Emmon Mohammad Emmon.

Unknown WordPress Files: Core Files, Malware Signs, and Cleanup in Dubai

Updated 31 Oct 2026 10 min read By Mohammad Emmon
Unknown PHP files listed inside a WordPress install folder

Quick answer

To tell if unknown WordPress files are malware, compare them against a fresh copy of WordPress core for your version, and check plugin and theme files against their official sources. Warning signs include PHP files in the uploads folder, random file names, recent modification dates and obfuscated code using functions like eval or base64_decode.

On this page

An unknown WordPress file is either a real core, plugin, or host file you have never looked at, or malware made to look like one. A free, official check sorts most of them before you touch anything. Most unknown files are harmless. A few are the reason a site keeps getting hacked.

Customers struggle with this because both kinds look the same in a file manager. The danger cuts both ways. Leave the wrong file and the attacker keeps a way back in. Delete the wrong file and you take your own site offline.

The stakes are real. Sucuri's 2023 Hacked Website and Malware Threat Report found at least one backdoor on 49.21% of compromised sites, and a backdoor is often a single extra file. This article covers what belongs in a WordPress install, how to verify core, the signs of malware, the real files people delete by mistake, and where attackers hide code.

What Counts as an Unknown File in a WordPress Install?

An unknown file is any file you cannot match to WordPress core, to a plugin or theme you installed, or to something your host added. Unknown does not mean bad. It means unverified.

The goal is not to recognise every file by sight. It is to sort files into verified core, known add-ons, and the small set left over that needs a closer look.

Which Files and Folders Belong in Every WordPress Install?

Every WordPress install has three folders: /wp-admin, /wp-includes, and /wp-content. The first two are core, and every update replaces them. /wp-content is yours, holding themes, plugins, and uploads.

The root holds files such as index.php, wp-config.php, wp-login.php, wp-settings.php, and .htaccess. WordPress.org's hacked-site guidance names index.php, header.php, footer.php, function.php, and .htaccess as the files to inspect above all.

How Do You Verify Your Core Files Against WordPress.org?

You verify core files with WP-CLI's wp core verify-checksums command, which checks your core files against the official checksums WordPress.org publishes for your version. It is free, official, and gives a clear answer per file.

The system works by comparing a digital fingerprint of each file with the genuine one. Change one character and the fingerprints stop matching. Add the --include-root flag and the command also warns about root items that are not part of WordPress.

If a core file fails, WordPress.org says to replace /wp-admin and /wp-includes by SFTP with the same version, never through the dashboard reinstall. The limit matters too. Checksums only cover core. They say nothing about /wp-content, where most hidden files end up.

What Are the Signs a File Is Malware, Not Core?

A file is likely malware when its location, name, contents, or date do not fit. One sign means look closer. Two or three together are hard to explain away.

1. A PHP File Inside the Uploads Folder

A PHP file inside wp-content/uploads is one of the strongest malware signs. That folder holds images and documents, and WordPress never needs to run code from it. A .php file sitting beside your product photos has no good reason to exist.

2. A Core-Looking Name in the Wrong Directory

A core-style name in a folder where core never puts it is a classic disguise. A real wp-config.php sits in the root or one level above. A second copy inside a plugin or uploads folder is not WordPress.

3. Random or Innocent-Sounding Filenames

Malware often uses random or harmless-sounding names. Google's guide to the cloaked keywords and links hack shows malicious .htaccess rules pointing at horsekeys.php and potatolake.php. Names like that are built to look like nothing at all.

4. Obfuscated or Encoded Code Inside

Obfuscated code in a PHP file is a strong warning sign. Look for long blocks of random characters and functions such as base64_decode, eval, or gzinflate. Some premium plugins encode their code for licensing, so pair this sign with another one.

5. A File Date That Does Not Match Any Update

A file changed on a day you ran no updates deserves a look. Core and plugin files change in batches when you update. One file changed alone stands out, though attackers can fake dates, so treat a strange date as a lead.

6. A File the Checksum Tool Does Not Recognise

Any file that wp core verify-checksums --include-root flags needs an explanation. Either your host or a plugin put it there for a reason you can name, or it should not be there. This is the only firm test, and only for core and the root.

Which Real WordPress Files Get Mistaken for Malware?

Four kinds of real WordPress files get mistaken for malware most often. This problem happens when someone scrolls a file list in a panic and deletes first. Knowing these four can save a site from its own owner.

1. wp-config.php and the Salts Inside It

wp-config.php is essential, and the salts inside it look like random junk on purpose. They are long random strings that protect logins and cookies. The file never matches a standard copy, so read it for added code, but never delete it.

2. The Must-Use Plugins Directory

The wp-content/mu-plugins folder is a real WordPress feature that many hosts use for their own tools. Plugins there load automatically and have no deactivate button. Deleting a host's helper can break caching or logins.

3. Host and Cache Drop-In Files

Drop-ins are real single files such as advanced-cache.php, object-cache.php, and db.php that replace parts of WordPress. Caching plugins and hosts create them. They sit loose in wp-content and look odd, but they belong.

4. Minified Theme and Plugin Assets

Minified files look like a wall of unreadable code, but they are normal. Developers squeeze JavaScript and CSS so pages load faster, usually ending in .min.js or .min.css. Unreadable PHP is a different story.

Where Do Attackers Hide Files Inside WordPress?

Attackers hide files in five places, each chosen because owners rarely look there.

1. wp-content/uploads

The uploads folder is a favourite because WordPress must write to it and nobody checks it. Unless someone blocks it, the server will often run a PHP file there like anywhere else. A single small file can sit among your images for months without anyone noticing.

2. wp-content/mu-plugins

Code in mu-plugins runs on every page and cannot be switched off from the dashboard. Sucuri documented a July 2025 backdoor at wp-content/mu-plugins/wp-index.php that stored its payload in the _hdra_core option and created a hidden administrator named officialwp. If accounts like that appear on your site, see the guide to rogue WordPress admin accounts.

3. Deep Inside a Legitimate Plugin Folder

Attackers also bury code inside a plugin you trust. Sucuri's November 2024 report on a PHP reinfector described malware that spread across all active plugins and code snippets. The fix is comparing the folder against a fresh official copy.

4. The Site Root Alongside Real Core Files

The root already holds many files with wp- names, so one more blends in. This is exactly what --include-root catches. Attackers also edit .htaccess, which is how Google's horsekeys.php example quietly ran.

5. In the Database Rather Than the Filesystem

Some malware has no file at all. Sucuri's reinfector hid its settings in wp_options under hexadecimal-named entries, Base64-encoded. Database malware is also how spam pages Google indexed can appear without a single new file on the server.

Why Is Deleting the Wrong File Worse Than Leaving It?

Deleting the wrong file causes certain damage now, while a suspicious file left for an hour costs little. Delete wp-config.php and the site stops. Delete a drop-in and pages throw errors.

Deletion also destroys evidence. The file shows how and when the attacker got in, which decides which backups are safe. And removing the file you can see, while a backdoor left behind keeps running elsewhere, only resets the clock. Knowing what a file actually is matters more than removing it fast.

How Does a Professional File Audit Work?

A professional file audit verifies what can be verified, compares what can be compared, and reads only what is left. The specialist copies the infected site as evidence, runs core checksums, then compares every plugin and theme against clean source copies. That step also exposes nulled themes and plugins carrying extra code.

Next come the uploads folder, the database, and the server logs. Audits often surface a mailer script nobody knew about, or the reason the site got slower months ago. The audit is one part of the wider cleanup, which starts with locking down access.

How Do You Keep Unknown Files From Appearing Again?

You keep unknown files away by closing the way in and making new files quick to spot.

  • Update on time: Patchstack's State of WordPress Security in 2026 puts 91% of vulnerabilities in plugins, with a median of 5 hours to mass exploitation.
  • Block PHP in uploads: One server rule closes the most common hiding place.
  • Turn off the file editor: DISALLOW_FILE_EDIT in wp-config.php stops browser edits to code.
  • Watch for changes: The free Sucuri Security plugin offers file integrity monitoring.
  • Review admin users: A new file often arrives with a new account, so check both together.

How Much Does a WordPress File Audit Cost in Dubai?

A WordPress file audit costs what the site's size and infection demand, so there is no honest flat price. Sucuri's Website Security Platform lists 229 to 549 USD per year with unlimited malware removals, as checked on 4 October 2026. Wordfence lists Care at 590 USD and Response at 1,250 USD per year, as recorded on 30 September 2026.

I do not publish a fixed rate, because a few odd files and a reinfected database are very different jobs. The free security check tells you which one you have first. For the market bands, see what a file audit costs in Dubai. The file audit itself is one part of a wider plan: what website security actually means sets out the layers, and what ongoing WordPress security services give you explains the return on keeping them in place.

WordPress File Audits in Dubai by Mohammad Emmon

How Mohammad Emmon Handles Unknown WordPress Files

I verify before I delete. Core gets checked against WordPress.org, plugins get compared against clean copies, and only the leftovers get read by hand. Then I clean the infection, close the entry point, and keep the site clean with hardening and monitoring. Every file audit job runs through my malware removal and security service, which covers the cleanup, the cause, and the follow-up in one scope.

Dubai Business and Hospitality Site Coverage

I work remotely with hotels, restaurants, clinics, and online stores across Dubai and the UAE, where years of plugins from different developers leave plenty of unknown files. The city detail is on my pages for WordPress security in Dubai and WordPress security in Abu Dhabi, and the wider service is on my WordPress security expert in the UAE page.

Get a Free Security Check from Mohammad Emmon

The free security check tells you whether your unknown files are real WordPress files or something worse. You get a written finding whether or not you hire me. Message me on WhatsApp or book a call. Contact Mohammad Emmon today for a free security check and find out which of your unknown files truly belong on your site.




Free security check

Worried your site is infected?

Get a free security check — I'll tell you if your WordPress site is compromised and exactly what it needs. No obligation.

Related

Take it further.

Mohammad Emmon

Written by

Mohammad Emmon

WordPress Malware Removal, Security, Ongoing Security Monitoring And Website Development

I'm a WordPress malware removal and security specialist — I've cleaned and secured over 10,000 sites. Once a site is safe, I can also build, run and automate the whole thing. Based in Dhaka, working worldwide.

  • 15,000+ sites secured
  • 745+ businesses
  • 96% come back

Worried about your site?

Think your WordPress site is hacked? Let's check it.

Google Business Profile

Find me on the map

Open in Google Maps