Nulled plugins and themes may look like a bargain, but they often carry a backdoor, and they are one of the reasons why WordPress sites get hacked. This guide explains how the malicious code works, shows a realistic example, and gives step-by-step instructions to protect or clean a site.

What exactly is a “nulled” WordPress plugin or theme?

A nulled extension is a paid product that has been cracked, stripped of its license check, and redistributed on unofficial sites. The original files are altered to add malicious payloads while keeping the original functionality visible, so site owners think they are getting a free, fully-featured plugin.

How does the hidden malicious code operate?

The attacker injects code that runs with the same access as the plugin itself, which means full access to WordPress, its database and its files. Common techniques include:

  1. Adding a hidden admin user via wp_insert_user().
  2. Hooking into init or admin_init to execute remote code fetched from a command-and-control server.
  3. Using WordPress functions like wp_remote_get() to download a payload after the initial installation, bypassing scanners that only look at the files you uploaded.
  4. Manipulating output buffers to inject spam links or redirect visitors without changing the visible content.

A concrete example of a nulled plugin backdoor

A typical case: a cracked page-builder plugin works exactly like the original, but one of its many files contains a few extra lines hooked to WordPress's init action. On every request they check for a secret query-string value; when it is present, they download code from the attacker's server and run it. The same lines also create an administrator account with an ordinary-looking name if it doesn't exist yet, and hide it from the Users screen. The extra code is encoded so that a quick search for suspicious function names finds nothing. The site owner sees a working plugin; the attacker has a permanent way in.

How to prevent installing nulled extensions

  1. Only download from official sources. The WordPress.org repository and the developer’s own site are the only places that guarantee the code matches the author’s releases.
  2. Verify file integrity. If the vendor publishes a checksum for a release, compare it with the checksum of the zip you downloaded.
  3. Enable file change detection. WordPress itself doesn't log file changes, so use a security plugin or your host's tools to compare plugin, theme and core files with known-good copies, and review any unexpected change.
  4. Restrict file editing. Add define('DISALLOW_FILE_EDIT', true); to wp-config.php to stop attackers from editing plugin files through the dashboard.
  5. Limit PHP execution in uploads. Configure the server so PHP files in wp-content/uploads can't run (on Apache, a .htaccess file there with a <FilesMatch "\.php$"> block containing Require all denied), so a dropped script cannot run.

How to clean a site that already has nulled code

If a nulled extension has been installed, treat the site as compromised even if nothing looks wrong yet, and look for the signs that a site is already hacked.

  1. Take the site offline (maintenance mode) to stop further damage.
  2. Create a fresh copy of the database and files for forensic analysis.
  3. Run a deep scanner that looks for obfuscated code, unknown admin users, and unexpected network calls. Tools that search for eval(base64_decode(, wp_remote_get(, and $_GET usage are useful.
  4. Remove unknown admin accounts. Go to Users → All Users and delete any accounts you did not create, especially those with the administrator role.
  5. Delete the nulled plugin/theme. Remove its directory from wp-content/plugins or wp-content/themes via FTP or the command line.
  6. Replace core files. Re-install WordPress core, and reinstall any legitimate plugins/themes from official sources.
  7. Search for backdoors. Look for files with recent modification dates that contain functions like eval, base64_decode, or gzuncompress. Delete or clean them. For guidance see the article on find and remove any backdoors.
  8. Change all passwords - admin accounts, database user, FTP/SFTP, and hosting control panel.
  9. Update everything. Ensure WordPress core, plugins, and themes are at the latest versions.
  10. Monitor traffic. Check server logs for unusual outbound connections that may indicate a lingering beacon.

Common mistakes when dealing with nulled code

  • Assuming a clean scan means safety. As described, many nulled pieces are obfuscated to evade basic scanners, and they may download payloads later.
  • Deleting only the visible plugin folder. Attackers often drop extra PHP files elsewhere (e.g., inside wp-includes or the uploads folder). A thorough search is required.
  • Leaving the hidden admin account. Even after removing the malicious files, the attacker can still log in with the backdoor user.
  • Skipping checksum verification for legitimate purchases. Without verification you cannot be sure the file wasn’t tampered with before you received it.
  • The steps remove known backdoors but cannot guarantee that a sophisticated attacker hasn’t hidden code in a less obvious place, such as a custom table in the database.
  • File-change detection and scanners rely on known signatures; novel obfuscation techniques may slip through.
  • Changing passwords and updating software reduces risk but does not protect against zero-day vulnerabilities that may exist in the core or a plugin you must keep.
  • Disabling PHP execution in uploads protects against dropped scripts but does not stop a backdoor that runs from within an allowed plugin directory.

How Silent Threads helps

Silent Threads scans for the backdoors, hidden admin accounts, and obfuscated code that nulled software typically carries, so if something slipped in, you can find and remove it.

The short version

Nulled plugins and themes are cracked copies that hide malicious code like hidden admin accounts, backdoors, and spam injectors. They bypass basic scans and can compromise a site the moment they are installed. Only use extensions from official sources, verify file integrity, and harden your WordPress installation. If you discover a nulled extension, treat the site as compromised: take it offline, remove the code, delete unknown admins, change all passwords, and run a deep scan to locate any remaining backdoors.