{
    "title": "Backdoor",
    "seo_title": "Backdoor: definition and detection on WordPress",
    "h1": "Backdoor",
    "description": "Backdoor: web shells, hidden accounts, booby-trapped plugins. Why a backdoor survives a partial cleanup and how to find one on WordPress.",
    "lead": "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.",
    "language": "en",
    "locale": "en-US",
    "type": "definition",
    "url": "https://www.wp-feint.com/glossary/backdoor/",
    "canonical": "https://www.wp-feint.com/glossary/backdoor/",
    "markdown": "https://www.wp-feint.com/glossary/backdoor/index.md",
    "json": "https://www.wp-feint.com/glossary/backdoor/index.json",
    "published": "2026-10-28T08:00:00+00:00",
    "modified": "2026-11-22T12:08:18+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "Backdoor",
            "url": "https://www.wp-feint.com/glossary/backdoor/",
            "markdown": "https://www.wp-feint.com/glossary/backdoor/index.md",
            "json": "https://www.wp-feint.com/glossary/backdoor/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Porte dérobée (backdoor)",
            "url": "https://www.wp-feint.com/fr/definitions/porte-derobee/",
            "markdown": "https://www.wp-feint.com/fr/definitions/porte-derobee/index.md",
            "json": "https://www.wp-feint.com/fr/definitions/porte-derobee/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Puerta trasera (backdoor)",
            "url": "https://www.wp-feint.com/es/glosario/puerta-trasera/",
            "markdown": "https://www.wp-feint.com/es/glosario/puerta-trasera/index.md",
            "json": "https://www.wp-feint.com/es/glosario/puerta-trasera/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "Backdoor (Hintertür)",
            "url": "https://www.wp-feint.com/de/glossar/backdoor/",
            "markdown": "https://www.wp-feint.com/de/glossar/backdoor/index.md",
            "json": "https://www.wp-feint.com/de/glossar/backdoor/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Backdoor",
            "url": "https://www.wp-feint.com/it/glossario/backdoor/",
            "markdown": "https://www.wp-feint.com/it/glossario/backdoor/index.md",
            "json": "https://www.wp-feint.com/it/glossario/backdoor/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Backdoor (porta dos fundos)",
            "url": "https://www.wp-feint.com/pt/glossario/backdoor/",
            "markdown": "https://www.wp-feint.com/pt/glossario/backdoor/index.md",
            "json": "https://www.wp-feint.com/pt/glossario/backdoor/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "Backdoor (achterdeur)",
            "url": "https://www.wp-feint.com/nl/woordenlijst/backdoor/",
            "markdown": "https://www.wp-feint.com/nl/woordenlijst/backdoor/index.md",
            "json": "https://www.wp-feint.com/nl/woordenlijst/backdoor/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "Backdoor"
        },
        {
            "level": 2,
            "text": "How a backdoor works"
        },
        {
            "level": 2,
            "text": "Common forms on WordPress"
        },
        {
            "level": 2,
            "text": "For WordPress: detecting a backdoor"
        },
        {
            "level": 2,
            "text": "How to protect against it"
        }
    ],
    "body": "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).\n\n## How a backdoor works\n\nA 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.\n\n![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)\n\n## Common forms on WordPress\n\n- a standalone PHP file, often in `wp-content/uploads` or hidden among the core files;\n- 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;\n- an inconspicuous administrator account, sometimes hidden from the user list;\n- a [WP-Cron](https://www.wp-feint.com/glossary/cron-wp-cron/) scheduled task that reinstalls the code if it disappears;\n- 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.\n\nThat 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.\n\n*Video: “explore a WordPress PHP BACKDOOR webshell” (John Hammond)*\n\n## For WordPress: detecting a backdoor\n\nComparing files with their originals is the most reliable method. With [WP-CLI](https://www.wp-feint.com/glossary/wp-cli/):\n\n```\nwp core verify-checksums\nwp plugin verify-checksums --all\nwp user list --role=administrator --fields=ID,user_login,user_registered\nwp cron event list\nfind wp-content/uploads -name \"*.php\"\n```\n\nPlugin 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.\n\n## How to protect against it\n\n- Restrict write permissions on the site's folders, as MITRE recommends, and disable the file editor with `DISALLOW_FILE_EDIT`.\n- Never install a plugin from a dubious source.\n- 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`.\n\nWP 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.\n\n## Related terms\n\n- [Malware](https://www.wp-feint.com/glossary/malware/)\n- [Supply chain attack](https://www.wp-feint.com/glossary/supply-chain-attack/)\n- [Remote code execution (RCE)](https://www.wp-feint.com/glossary/remote-code-execution/)\n- [Privilege escalation](https://www.wp-feint.com/glossary/privilege-escalation/)\n- [WP-CLI](https://www.wp-feint.com/glossary/wp-cli/)\n\n\n## Sources\n\n- [MITRE ATT&CK T1505.003 : Server Software Component, Web Shell](https://attack.mitre.org/techniques/T1505/003/)\n- [MITRE CWE-912 : Hidden Functionality](https://cwe.mitre.org/data/definitions/912.html)\n- [WordPress Advanced Administration : Hardening WordPress](https://developer.wordpress.org/advanced-administration/security/hardening/)",
    "definition": "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.",
    "group": "Web security",
    "aka": [
        "web shell",
        "webshell",
        "hidden access",
        "persistence"
    ],
    "related": [
        {
            "title": "Malware",
            "url": "https://www.wp-feint.com/glossary/malware/",
            "markdown": "https://www.wp-feint.com/glossary/malware/index.md"
        },
        {
            "title": "Supply chain attack",
            "url": "https://www.wp-feint.com/glossary/supply-chain-attack/",
            "markdown": "https://www.wp-feint.com/glossary/supply-chain-attack/index.md"
        },
        {
            "title": "Remote code execution (RCE)",
            "url": "https://www.wp-feint.com/glossary/remote-code-execution/",
            "markdown": "https://www.wp-feint.com/glossary/remote-code-execution/index.md"
        },
        {
            "title": "Privilege escalation",
            "url": "https://www.wp-feint.com/glossary/privilege-escalation/",
            "markdown": "https://www.wp-feint.com/glossary/privilege-escalation/index.md"
        },
        {
            "title": "WP-CLI",
            "url": "https://www.wp-feint.com/glossary/wp-cli/",
            "markdown": "https://www.wp-feint.com/glossary/wp-cli/index.md"
        }
    ],
    "sources": [
        {
            "title": "MITRE ATT&CK T1505.003 : Server Software Component, Web Shell",
            "url": "https://attack.mitre.org/techniques/T1505/003/"
        },
        {
            "title": "MITRE CWE-912 : Hidden Functionality",
            "url": "https://cwe.mitre.org/data/definitions/912.html"
        },
        {
            "title": "WordPress Advanced Administration : Hardening WordPress",
            "url": "https://developer.wordpress.org/advanced-administration/security/hardening/"
        }
    ],
    "format": "application/json"
}