---
title: "Backdoor"
description: "Backdoor: web shells, hidden accounts, booby-trapped plugins. Why a backdoor survives a partial cleanup and how to find one on WordPress."
language: "en"
locale: "en-US"
type: "definition"
canonical: "https://www.wp-feint.com/glossary/backdoor/"
published: "2026-10-28T08:00:00+00:00"
modified: "2026-11-22T12:08:18+00:00"
translations:
  en-US: "https://www.wp-feint.com/glossary/backdoor/index.md"
  fr-FR: "https://www.wp-feint.com/fr/definitions/porte-derobee/index.md"
  es-ES: "https://www.wp-feint.com/es/glosario/puerta-trasera/index.md"
  de-DE: "https://www.wp-feint.com/de/glossar/backdoor/index.md"
  it-IT: "https://www.wp-feint.com/it/glossario/backdoor/index.md"
  pt-BR: "https://www.wp-feint.com/pt/glossario/backdoor/index.md"
  nl-NL: "https://www.wp-feint.com/nl/woordenlijst/backdoor/index.md"
---

# Backdoor

A backdoor is hidden access, built into software or installed after an intrusion, that lets someone get back into a system while bypassing normal authentication. On a website, it often takes the form of a small PHP file, code added to a theme or an inconspicuous administrator account.

The term covers two situations. In the first, the backdoor is present in the software from the start: an undocumented feature added by the author or by someone who compromised its distribution chain. MITRE files it under hidden functionality (CWE-912). In the second, the most common on websites, the attacker installs the backdoor after an intrusion, to keep access even once the original vulnerability is fixed. The MITRE ATT&CK framework describes this persistence mechanism with web shells (T1505.003).

## How a backdoor works

A backdoor waits for a request from its author: a request to a specific file, a secret parameter, a particular cookie. It then runs whatever it is sent, or opens a full interface to browse files, query the database and send emails. Above all, it tries not to be seen: a file name that mimics a WordPress file, encrypted or encoded code, triggering only with the right password.

![Five-step reinfection cycle: intrusion through a vulnerability, a stolen password or a pirated theme, a backdoor planted, a partial cleanup by the owner, the attacker returning through the access left open, and a full cleanup that reviews files, accounts, tasks and secrets](https://www.wp-feint.com/media/2026/10/porte-derobee-persistance-en.webp)

## Common forms on WordPress

- a standalone PHP file, often in `wp-content/uploads` or hidden among the core files;
- a few lines added to the theme's `functions.php`, to a plugin or to a file in `wp-content/mu-plugins`, a folder whose plugins load automatically;
- an inconspicuous administrator account, sometimes hidden from the user list;
- a [WP-Cron](https://www.wp-feint.com/glossary/cron-wp-cron/) scheduled task that reinstalls the code if it disappears;
- a plugin booby-trapped at the source: pirated copies (see our article on “nulled” themes and plugins) or, more rarely, a compromised official release, such as [Rank Math PRO 3.0.123](https://www.wp-feint.com/rank-math-pro-3-0-123-backdoor/) in October 2026.

That last case is a [supply chain attack](https://www.wp-feint.com/glossary/supply-chain-attack/): the site did nothing wrong, it simply installed an update.

*Video: “explore a WordPress PHP BACKDOOR webshell” (John Hammond)*

## For WordPress: detecting a backdoor

Comparing files with their originals is the most reliable method. With [WP-CLI](https://www.wp-feint.com/glossary/wp-cli/):

```
wp core verify-checksums
wp plugin verify-checksums --all
wp user list --role=administrator --fields=ID,user_login,user_registered
wp cron event list
find wp-content/uploads -name "*.php"
```

Plugin verification only works for plugins from the official directory; reinstall premium plugins from their vendor. A PHP file in the media folder is almost always suspicious.

## How to protect against it

- Restrict write permissions on the site's folders, as MITRE recommends, and disable the file editor with `DISALLOW_FILE_EDIT`.
- Never install a plugin from a dubious source.
- After a hack, assume backdoors have been planted: reinstall core and plugins, review accounts and scheduled tasks, change every password and the keys in `wp-config.php`.

WP Feint Pro helps you spot traces, without replacing a cleanup: its [core integrity check](https://www.wp-feint.com/features/wordpress-integrity-check/) flags modified files and unknown PHP files in `wp-admin` and `wp-includes`, and the [activity log](https://www.wp-feint.com/features/administrator-activity-log/) records account creation and plugin installs. It doesn't detect a compromised plugin and is not an anti-malware tool.

## Related terms

- [Malware](https://www.wp-feint.com/glossary/malware/)
- [Supply chain attack](https://www.wp-feint.com/glossary/supply-chain-attack/)
- [Remote code execution (RCE)](https://www.wp-feint.com/glossary/remote-code-execution/)
- [Privilege escalation](https://www.wp-feint.com/glossary/privilege-escalation/)
- [WP-CLI](https://www.wp-feint.com/glossary/wp-cli/)


## Sources

- [MITRE ATT&CK T1505.003 : Server Software Component, Web Shell](https://attack.mitre.org/techniques/T1505/003/)
- [MITRE CWE-912 : Hidden Functionality](https://cwe.mitre.org/data/definitions/912.html)
- [WordPress Advanced Administration : Hardening WordPress](https://developer.wordpress.org/advanced-administration/security/hardening/)
