Contain an infection that appeared after a plugin, check where it came from, clean out the persistence and reinstall from a trustworthy source only. The priority is to restore a situation under control without wiping the traces useful to the diagnosis.

How do I recognise the problem?
An infection is not resolved by deleting the visible file alone. You have to contain the incident, identify the point of entry, clean out every persistence mechanism, renew the secrets and then watch for files or accounts reappearing. Start by noting when it appeared, the most recent changes, the URLs concerned and the behaviour observed.
Test the site from a browser with no session, on mobile, and by arriving from a Google result: many infections only fire for certain visitors, or for crawlers. Note the suspicious URLs, the redirects you see and the Search Console warnings.
The incident started right after installation
Obfuscated files in the plugin or in uploads
New accounts, cron jobs or redirects
One signal alone does not prove the cause: “The incident started right after installation” can come from “A nulled plugin, or one downloaded from an untrustworthy source” just as easily as from “An official plugin already compromised locally”. Look for at least two findings that agree before you apply a lasting fix.
A hacked plugin, a nulled plugin, or a known flaw
An infection after installing a plugin usually has one of three origins: a “nulled” copy of a paid plugin downloaded from somewhere other than the vendor's site, which often carries a back door; a public flaw in a legitimate plugin nobody updated; or, more rarely, a plugin bought up and then altered by a new, malicious owner.
The public WordPress vulnerability databases list flaws by plugin and by version. Check whether the version you have is listed, and when a fix was published: that tells you how long the site was exposed.
Replace the plugin rather than clean it
Delete the plugin's folder entirely, then reinstall a copy downloaded from the official directory or from the vendor's customer area, in its fixed version. Trying to clean a compromised plugin by hand usually leaves some malicious code behind.
Then look for persistence mechanisms it may have installed elsewhere: files in uploads, unfamiliar must-use plugins in wp-content/mu-plugins, scheduled tasks, accounts added. From then on, install only plugins from official sources, and delete the ones you no longer use.
Causes to check
For a WordPress infection after installing a plugin, the 4 causes below are ranked from the commonest to the rarest. Test the one matching the site’s most recent change first, one at a time.
A nulled plugin, or one downloaded from an untrustworthy source
An official plugin already compromised locally
A vulnerability exploited after activation
A false link with an earlier intrusion
Search Console's Security Issues report, the server access logs, the user list, the recently changed files and the scheduled tasks all give precise dates. Keep that trail: it is how you find the way in.
A good fix does not merely make the symptom disappear. It explains why the problem appeared and how to check that it does not come back.
Precautions before starting
Take a full copy of the files and the database, then keep it aside as evidence: it must not serve as a restore point until the infection is understood.
Then change the administrator, FTP, database and hosting passwords, and rotate WordPress's security keys, to close the doors the attacker could use again.
Which cause best matches your situation?
Pick the situation closest to what you are seeing to get the first recommended action.
Want a human opinion on your exact situation?
Get a recommendationDiagnosis and fix
| Phase | Objective | A mistake to avoid |
|---|---|---|
| Observe | Reproduce it and gather the evidence | Changing several settings before you have a baseline |
| Isolate | Confirm the component or the rule responsible | Deleting files without keeping a copy |
| Fix | Apply the smallest documented change | Restoring a version that still contains the same cause |
| Validate | Test the whole journey and monitor it | Concluding from the home page loading alone |
How do I resolve the problem?
The 4 steps below tackle a WordPress infection after installing a plugin from the least intrusive to the heaviest. After each change, repeat the same test; if nothing changes, go back to the previous state before moving on to the next step.
- 01
Step 1
Isolate the site and keep the installed package for analysis.
- 02
Step 2
Delete the compromised plugin without running its uninstall routine.
- 03
Step 3
Look for files, options, accounts and tasks added since the installation.
- 04
Step 4
Restore a clean database if you need to, then rotate every secret.
If a step changes the database or the code directly, do it on a copy first. Once the fix is in place, the first check is still this: compare the files over several hours.
Validate the resolution
After the clean-up, scan the files and the database again, review the administrator list, and test the redirects from several devices and from Google. Where Search Console reported a problem, request the review only once those checks are done.
Validation checks
Schedule a second integrity check a few days later: a back door you missed can reinfect the site after a clean-up that looked successful.
Prevent a recurrence
Prevention has to answer the cause you identified. For a WordPress infection after installing a plugin, the first measure is “Use the official directory or the vendor”; note too the signal that would have shown the incident sooner, and who is responsible for watching for it.
Use the official directory or the vendor
Check the reputation and the update history
Test away from production
Restrict installing to authorised administrators only
Delete the plugins you do not use, keep administrator accounts few, turn on two-factor authentication and monitor file changes. Security rests on those layers together, not on a single plugin.
Frequently asked questions
Is a “nulled” plugin really dangerous?
Yes. These copies of paid plugins, passed around outside the official channels, frequently carry added code: a back door, link injection or account creation. They get no security fixes either.
Is deleting the plugin enough to clean the site?
Rarely. The plugin may have dropped files elsewhere, created accounts or added scheduled tasks. You have to hunt those persistence mechanisms down before calling the site clean.
How do you tell whether the plugin had a known flaw?
The public WordPress vulnerability databases list flaws by plugin and by version, with the version that fixed them. The vendor's changelog also mentions security fixes.
How do you check the fix will hold?
Compare the files over several hours. Test the site with a clean official version. Check the indicators of compromise have gone. Then watch the logs, the alerts and the relevant metrics for several days.
How to resolve it
If a WordPress infection after installing a plugin persists after these steps, we can pick the diagnosis up again from your logs and your access details, without acting blind on the site.
Get a diagnosisSummary with an AI
Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

































🍪