Website Reinfection: Why Cleaned Sites Get Hacked Again & How to Stop It

"I already cleaned this" is one of the most frustrating sentences in website security. Here's exactly why it happens, and the specific process for making sure it actually stops happening.

📅 Published August 2026· ⏳ 22 min read· ✍️ ToolsNovaHub Editorial Team
🛠️ Related tool: Open Malware Scanner →

Reinfection Is a Signal, Not Bad Luck

It's tempting, understandably, to treat a reinfection as simply bad luck — being targeted a second time, purely by unfortunate coincidence. In the overwhelming majority of real cases, this framing is wrong in a genuinely useful way: reinfection almost always has a specific, identifiable, and fixable cause, and treating it as a diagnostic signal rather than random misfortune is exactly what breaks the cycle. A site that gets reinfected shortly after cleanup isn't unlucky; it's telling you, quite specifically, that something from the original compromise wasn't actually resolved — most commonly the original vulnerability itself, sometimes a hidden persistence mechanism like a backdoor or scheduled task that survived the cleanup process, occasionally something more subtle like a contaminated backup or a shared hosting environment issue. This article works through each of these specific causes in turn, because correctly identifying which one applies to your situation is the actual difference between a cleanup that finally holds and another frustrating repeat of the same cycle.

ToolsNovaHub Pro Tip
Treat every reinfection as evidence that something specific from the first cleanup was incomplete, and go looking for exactly what that was rather than simply repeating the same cleanup process again. Doing the same thing twice and expecting a different result rarely works in security any more than anywhere else.
⚠️
Common Beginner Mistake
Assuming reinfection means you're specifically being targeted by a determined, sophisticated attacker who will always find a way back in. The much more common explanation is a mundane, fixable gap in the original cleanup — an unpatched vulnerability, a missed backdoor — not an unbeatable, highly skilled adversary.

The Five Most Common Causes of Reinfection

CauseHow It HappensRelative Frequency
Original vulnerability never actually patchedMalware was removed but the software flaw that allowed entry remains exploitableVery common — the single largest cause by far
Undiscovered backdoor survived cleanupA hidden persistence file was missed during the initial investigation and removalCommon, especially in cleanups that focused only on the most visible symptoms
Malicious scheduled task (cron job)An attacker-planted scheduled task periodically re-creates or re-downloads malicious contentLess common but a genuine cause of seemingly mysterious, delayed reinfection
Contaminated backup restorationA backup taken after the original compromise, believed clean, is restored and reintroduces the infectionOccurs specifically when backup timeline isn't carefully verified before restoration
Shared hosting cross-contaminationA neighboring, still-infected site on the same server spreads back into an already-cleaned siteLess common but a genuine risk factor on poorly isolated shared hosting

Why Attackers Specifically Favor Persistence Mechanisms

Understanding attacker motivation helps explain why backdoors and other persistence mechanisms are such a common, deliberate feature of real-world compromises rather than an occasional edge case. Once an attacker has gone through the effort of finding and exploiting a vulnerability — a process that, even when automated, still represents some investment of the attacker's own infrastructure and effort — losing that access the moment a site owner notices and cleans up the most visible symptom represents a poor return on that investment from the attacker's perspective. A backdoor specifically designed to survive a typical, symptom-focused cleanup preserves the value of that original access, letting the attacker either immediately re-establish the same infection or, in more patient campaigns, wait for a more opportune moment. This is precisely why professional, thorough malware cleanup processes treat backdoor discovery as a mandatory, explicit phase rather than an optional afterthought — from the attacker's side, planting a durable backdoor is often considered a standard, expected part of a successful compromise, not an unusual escalation.

Distinguishing True Reinfection From an Incomplete Original Cleanup

It's worth drawing a precise distinction that matters for how you approach the investigation: "reinfection" implies a cleanup that was genuinely successful followed by a new compromise event, while what's sometimes labeled reinfection is actually a cleanup that was never fully successful in the first place — the malware simply never left, and what looked like a temporary resolution was really just the most visible symptom being addressed while other components remained active and eventually became visible again. This distinction matters practically because the investigation approach differs slightly: genuine reinfection through the same vulnerability warrants focus on why that vulnerability wasn't successfully closed, while an incomplete original cleanup warrants a more comprehensive, ground-up re-investigation treating the site as still actively compromised rather than assuming a second, separate incident has occurred. In practice, distinguishing between these two scenarios with certainty can be difficult, and the practical response — comprehensive investigation covering vulnerability status, backdoors, and scheduled tasks — is largely the same regardless of which specific framing turns out to be accurate.

Case Study Pattern: A Realistic Reinfection Scenario Walked Through

To make the abstract causes covered so far more concrete, consider a realistic, composite scenario reflecting a common real-world pattern. A WordPress site is infected through an outdated plugin with a known file-upload vulnerability, resulting in SEO spam injection discovered when the site owner notices unusual search result descriptions. The owner performs a cleanup: they identify and delete the specific files containing the spam injection code and update the vulnerable plugin to its current version, then consider the matter resolved. Two weeks later, the same spam content reappears. Investigation reveals the actual root cause: the original file-upload vulnerability had also allowed the attacker to plant a small, disguised backdoor file in the site's uploads directory, unrelated to and separate from the plugin itself, which the owner's cleanup — focused specifically on removing the spam injection code and patching the plugin — never discovered or removed. The backdoor, still fully functional, allowed the attacker to simply re-inject the same spam content once their automated monitoring detected the original infection had been cleaned. The actual fix required a comprehensive file-system search specifically for backdoor patterns (not just the previously identified spam-related files), finding and removing the disguised uploads-directory backdoor, and only then was the reinfection cycle finally broken.

Tools and Techniques for Comprehensive Backdoor Detection

TechniqueHow It WorksBest Suited For
File comparison against known-good sourceCompare live site files directly against a fresh, official download of the same CMS/plugin versionDetecting unauthorized modifications to core files and well-known plugins
Pattern-based grep searchingSearch file contents directly for common backdoor indicator strings (eval, base64_decode, etc.)Sites with command-line or search-tool access to their file system
Recently modified file reviewList and review every file modified since before the estimated original compromise dateNarrowing an otherwise large file tree down to a manageable, high-priority review set
Specialized malware scanning tools/pluginsAutomated tools specifically built to recognize common backdoor and infection patternsSites without deep manual investigation expertise, as a starting point before manual verification
Professional forensic file analysisIn-depth, expert manual review, often including code behavior analysis beyond simple pattern matchingPersistent, sophisticated infections that have evaded simpler detection approaches

Combining several of these techniques rather than relying on just one meaningfully improves detection confidence — automated scanning is fast and catches known patterns efficiently, while manual file comparison and review catches novel or heavily disguised backdoors an automated pattern-matching tool might miss entirely.

How to Test Whether Your Vulnerability Closure Actually Worked

Simply updating software and assuming the vulnerability is closed leaves room for a specific, easily overlooked failure mode: the update might not have actually applied successfully, or might not have actually addressed the specific vulnerability that was exploited, particularly if your identification of the original vulnerability wasn't entirely precise to begin with. Directly verifying the fix took effect — confirming the actual installed software version matches what you believe you updated to, checking official changelogs or security advisories to confirm your specific version genuinely addresses the vulnerability in question, and where feasible, testing the specific exploitation technique against your own site in a safe, controlled way to confirm it no longer succeeds — provides considerably more confidence than simply assuming an update process completed correctly without direct verification. This extra verification step takes relatively little additional time compared to the cleanup process as a whole, and it specifically closes the gap where "I updated the plugin" turns out to not have actually resolved the underlying issue for a reason that wasn't immediately obvious.

Cause 1: The Original Vulnerability Was Never Actually Closed

This deserves the most attention because it's genuinely the dominant cause of reinfection in practice. A cleanup that successfully removes every trace of malware but doesn't identify and fix the specific software vulnerability that allowed the original attacker in leaves the site exactly as exploitable as it was before the infection was even noticed. Since a large share of initial infections come from automated scanning tools targeting known, publicly disclosed vulnerabilities, and since these same automated tools often continue periodically re-scanning previously identified targets, a site with an unpatched vulnerability is genuinely likely to be reinfected again through the exact same path, sometimes remarkably quickly. The fix here isn't complicated in concept, even though it requires real diligence in practice: don't consider a cleanup complete until you've specifically identified which vulnerability was exploited and confirmed it's been patched, not just assumed patched because "the site was updated at some point."

Cause 2: A Backdoor Survived the Original Cleanup

Backdoors are deliberately designed to be hard to find — they're typically disguised to resemble legitimate system files, placed in locations that don't draw obvious attention, and constructed specifically to remain functional and undetected through a cursory cleanup that focuses primarily on removing the most visible infection symptoms. A cleanup that deletes an obvious spam-injection script but doesn't perform a comprehensive search for backdoor patterns throughout the entire codebase can leave the attacker's actual persistent access completely intact, meaning they can simply re-establish whatever was removed at their convenience, sometimes immediately, sometimes after a deliberate delay specifically intended to avoid an obvious, suspicious pattern of "infection returns right after every cleanup."

Why the "Most Visible Symptom First" Cleanup Approach Fails So Often

It's worth naming the underlying pattern that leads to reinfection so often, since recognizing it explicitly helps avoid repeating it. A cleanup driven primarily by "what's visibly wrong" — fix the redirect everyone's complaining about, remove the spam content search engines flagged, delete the file that's obviously out of place — is a completely natural, understandable first instinct, but it inherently stops investigating the moment the visible symptom disappears, regardless of whether anything else related to the same compromise remains. This is precisely why the systematic, comprehensive investigation process covered throughout our companion Malware Cleanup guide, and reinforced again here specifically in the context of reinfection prevention, deliberately continues past the point where visible symptoms are resolved — because a competent attacker's entire persistence strategy depends on exactly this natural human tendency to stop looking once the obvious problem seems to be fixed. Breaking this pattern requires a genuine mindset shift: treating "the visible symptom is gone" as the midpoint of an investigation, not its conclusion.

Common Backdoor Hiding Patterns Worth Specifically Searching For

PatternWhat to Look For
Disguised filenamesFiles with names very similar to legitimate system files, differing by a subtle character or capitalization
Encoded/obfuscated contentFiles containing large blocks of base64 or hex-encoded content decoded and executed at runtime
Unusual file locationsScript files present in directories that shouldn't normally contain executable code, like media upload folders
Recently modified core filesLegitimate-looking core CMS files with modification timestamps inconsistent with your own known update history
Suspicious function combinationsCode combining eval(), base64_decode(), gzinflate() or similar functions in ways legitimate code rarely does

Cause 3: Malicious Scheduled Tasks

A less commonly discussed but genuinely important cause of delayed, seemingly mysterious reinfection is a malicious scheduled task or cron job planted during the original compromise. Unlike a static backdoor file sitting passively until manually triggered, a scheduled task actively runs on its own predetermined schedule, potentially re-downloading or re-creating malicious content even after every currently visible infected file has been carefully removed. This is precisely why a comprehensive cleanup needs to include reviewing scheduled tasks specifically, not just file system content — a site that appears completely clean immediately after cleanup but shows the same infection reappearing days or weeks later, on a suspiciously consistent interval, should specifically investigate this possibility rather than assuming a brand-new, unrelated compromise occurred.

How to Detect a Malicious Scheduled Task Directly

On most hosting environments, scheduled tasks can be reviewed directly through your control panel's cron job management interface, or via command-line access if available, and this review deserves the same systematic attention as file-system investigation rather than being skipped as a less-likely afterthought. Look specifically for scheduled tasks you don't personally recognize as ones you or a legitimate plugin created, tasks that reference unfamiliar file paths or execute unusual, unrecognized commands, and tasks running at unusual, oddly specific intervals inconsistent with typical legitimate maintenance schedules (like nightly backups or routine cache clearing, which usually run at predictable, round-number intervals). Many CMS platforms and hosting environments also allow scheduled tasks to be created programmatically by plugins or scripts without necessarily appearing prominently in a casual control panel review, meaning a genuinely thorough check sometimes requires reviewing the underlying task scheduling system directly (like a server's actual crontab, for Unix-based hosting) rather than relying solely on whatever a CMS's own admin interface happens to surface.

Cause 4: Contaminated Backup Restoration

Restoring from a backup is often a fast, appealing path back to normal operation after a cleanup, but it carries a specific risk worth taking seriously: if the backup being restored was itself taken after the original compromise occurred, even if it looks entirely normal on casual inspection, restoring it can reintroduce the exact infection you believed was resolved. This is particularly likely when the actual compromise timeline isn't precisely known — a site might have been compromised weeks before any visible symptom appeared, meaning backups taken during that window, well before the infection was ever noticed, already contain it. Before restoring any backup as part of recovery, specifically verify its timeline against your best estimate of when the compromise actually occurred, and where genuine uncertainty exists, scan the backup's own files directly before trusting it as a clean restoration point.

Cause 5: Shared Hosting Cross-Contamination

On shared hosting environments without robust account isolation, an infection on a completely different website sharing the same underlying server infrastructure can sometimes spread into your own site even after your own cleanup is genuinely thorough and complete. This is a less common cause than the previous four, but worth specifically ruling out if reinfection keeps happening despite confident, thorough cleanup and vulnerability closure on your own site's side — contacting your hosting provider directly to ask about server-level security status and account isolation configuration is a reasonable step if this cause seems plausible given your specific hosting situation.

A Systematic Reinfection Investigation Process

StepWhat It Checks
1. Confirm the original vulnerability was actually patchedVerify software versions directly rather than assuming an update occurred
2. Comprehensive backdoor searchSystematically search for the hiding patterns covered above, not just the originally found infection
3. Review scheduled tasks and cron jobsCheck for any unauthorized scheduled task that could be re-triggering the infection
4. Verify backup timeline if restoration was usedConfirm any restored backup predates the original compromise, not just appears clean
5. Check hosting environment for shared infrastructure issuesContact your host if reinfection persists despite thorough own-site investigation
6. Full rescan and extended monitoringConfirm clean status and monitor closely for several weeks before considering the issue resolved

Reinfection Patterns Specific to Different CMS Platforms

PlatformCommon Reinfection-Specific PatternInvestigation Priority
WordPressBackdoors planted in uploads directories or disguised as legitimate-looking plugin filesComprehensive uploads directory and plugin file review beyond just the originally affected plugin
JoomlaMalicious extensions or components that survive removal of the initially identified vulnerable extensionReview of all installed extensions and components, not just the one initially identified as vulnerable
DrupalPersistence through modified core files or malicious modules disguised among legitimate onesCore file integrity comparison against official Drupal distribution
Custom-built sitesPersistence highly specific to the custom codebase's own structure, harder to generalizeClose collaboration with whoever built or maintains the custom code, given their unique familiarity with expected file structure

While the underlying principles covered throughout this guide apply broadly across platforms, understanding your specific CMS's common reinfection patterns — often documented by that platform's own security community or official security resources — helps focus your investigation on the locations and techniques most likely to be relevant for your particular situation.

Monitoring Strategy Specifically Designed to Catch Reinfection Early

Given how common reinfection genuinely is even after a good-faith, reasonably thorough cleanup effort, building specific reinfection-focused monitoring into your post-cleanup process is a worthwhile investment beyond the general prevention monitoring covered in our companion Malware Prevention guide. This means monitoring with particular attention during the weeks immediately following a cleanup, since this is when reinfection is statistically most likely to occur if the original issue wasn't fully resolved. Specific things worth monitoring closely during this heightened-attention window include file integrity alerts for any modification to files you touched during cleanup (since a reinfection often specifically targets the same files or locations as the original infection), renewed blocklist status checks on a more frequent cadence than your normal baseline, and closer-than-usual review of server access logs for any patterns resembling the original compromise's initial exploitation signature. Once several weeks pass without any recurrence, returning to your normal, less intensive ongoing monitoring cadence is reasonable, but that initial heightened-attention window specifically catches reinfection early, when it's still a quick, contained fix rather than a fully re-established, more deeply embedded second compromise.

When Reinfection Indicates a Need to Reconsider Your Hosting Environment

For persistent reinfection that survives multiple genuinely thorough cleanup and investigation cycles, and where the shared hosting cross-contamination cause covered earlier has been specifically ruled out or addressed, it's worth honestly considering whether your current hosting environment itself has a deeper, unresolved issue beyond what's visible at the application level. This might include a compromised hosting account credential you haven't yet identified and rotated, a server-level vulnerability in the hosting infrastructure itself (rare, but not impossible, particularly on less reputable or poorly maintained hosting providers), or in genuinely severe cases, a hosting environment that has itself been broadly compromised at a level beyond any individual customer account's own security practices to fully address. Migrating to a new, reputable hosting provider — with careful attention to migrating only verified-clean files and content, not a wholesale copy that might carry the infection along with it — is a legitimate, sometimes necessary response when reinfection genuinely persists despite exhausting every other reasonable investigation avenue at the application level.

Documenting Reinfection Incidents for Pattern Recognition

If your site experiences reinfection more than once, maintaining detailed documentation across each incident — not just within a single incident, but across multiple occurrences over time — often reveals patterns that a single incident's investigation alone wouldn't surface. Comparing the specific files affected, the timing relative to previous cleanups, and the exact malware behavior across multiple incidents can reveal whether you're dealing with a single, persistent, well-hidden compromise that keeps resurfacing despite incomplete cleanup attempts, versus genuinely separate, unrelated compromises each requiring their own independent investigation. This kind of cross-incident pattern recognition is considerably harder to achieve without deliberate documentation, since human memory of specific technical details across multiple stressful incidents, potentially spread over weeks or months, is genuinely unreliable compared to a clear, contemporaneous written record kept during and immediately after each occurrence.

Expert Tips for Breaking the Reinfection Cycle

💡
Never Repeat the Exact Same Cleanup Twice
If a cleanup didn't hold the first time, something specific was missed — investigate what that specific gap was rather than simply repeating identical steps expecting a different outcome.
💡
Search Comprehensively, Not Just for the Known Symptom
A reinfection investigation should search broadly for any persistence mechanism, not just look for a recurrence of the exact same file or pattern found the first time.
💡
Verify, Don't Assume, That Fixes Actually Took Effect
Directly confirm software versions and configuration changes were genuinely applied rather than assuming an update process completed successfully without checking.
💡
Know When to Escalate to Professional Help
Repeated reinfection despite genuine, careful effort is a reasonable point to bring in specialized expertise rather than continuing an approach that has already demonstrably not held.

Real-World Use Cases

🔍
Diagnosing a Site That's Been Reinfected Three Times
Working through each of the five common causes systematically, rather than repeating the same visible-symptom cleanup that has already failed twice before.
🎓
Agency Investigating a Client's Recurring Complaint
An agency handling a client site with a history of repeated infections applies this systematic framework to finally identify a persistent backdoor previous, less thorough cleanups had consistently missed.
🛡️
Post-Incident Process Improvement
A team that experienced reinfection after their first cleanup attempt builds backdoor and scheduled-task checks into their standard cleanup process going forward, preventing a repeat of the same gap.
📈
Verifying Cleanup Thoroughness Before Closing an Incident
Using the systematic investigation checklist as a final verification step before formally declaring an incident resolved, catching any remaining gap before it becomes a repeat incident.

Final Word: Reinfection Is Fixable, Not Inevitable

The single most important message of this entire guide is that reinfection, however frustrating and demoralizing it feels after a genuine cleanup effort, is almost always a fixable, specific problem rather than an indication that your site is simply doomed to be perpetually compromised. Every cause covered throughout this guide — an unpatched vulnerability, an undiscovered backdoor, a malicious scheduled task, a contaminated backup, a shared hosting issue — is identifiable through systematic investigation and addressable through a specific, concrete fix. The frustration of reinfection often comes from a sense that the problem is mysterious or unbeatable, but in the overwhelming majority of real cases, it's neither — it's simply evidence that the first cleanup, however well-intentioned, missed one specific thing. Approach the second investigation with that framing directly: not "why does this keep happening to me," but "what specific thing did the first cleanup miss, and how do I find it" — a subtly different question, but one that actually leads somewhere productive.

Building Confidence Through Verification, Not Just Time

A natural but ultimately unreliable instinct after a cleanup is to gain confidence simply through the passage of time — if a week goes by without visible symptoms, it's tempting to conclude the problem is genuinely resolved. This isn't a reliable signal on its own, since some persistence mechanisms (particularly scheduled tasks with longer intervals, or a patient attacker deliberately waiting before re-triggering an infection specifically to avoid an obvious, suspicious pattern) can remain dormant for considerably longer than a week before resurfacing. Genuine confidence comes from active verification — confirming the specific vulnerability was closed, confirming a comprehensive backdoor search was performed and came back clean, confirming no unauthorized scheduled tasks exist — rather than passive waiting and hoping. A site owner who has done this active verification work can reasonably trust a clean status after a shorter period than one who has only passively waited without ever directly confirming these specific items, since the active verification directly addresses the actual causes covered throughout this guide rather than simply hoping enough time has passed for reassurance to feel justified.

Related Reading

For the complete cleanup process this guide assumes as a starting point, see Malware Cleanup. For understanding how the original infection likely happened, read Website Malware. For hardening measures that prevent reinfection through the same or similar vulnerabilities, see Malware Prevention. For understanding how detection tools work, including what they might have missed the first time, read Malware Signatures. To verify your site's current status after addressing a reinfection, use the Malware Scanner.

Reviewed by: ToolsNovaHub Editorial Team📅 Last updated: August 2026📜 Sourced from: Google Search Central recurring hacked-site guidance and general website incident response best practices

ToolsNovaHub tools are built and independently maintained with a focus on accurate, no-signup network and security utilities. Spotted an error? Let us know.

📋 Related Tools & Guides Comparison

ResourceTypeLink
Malware ScannerToolOpen Tool →
Website Security ScannerToolOpen Tool →
SSL Certificate CheckerToolOpen Tool →
Website MalwareGuideRead Guide →
Malware CleanupGuideRead Guide →
Malware PreventionGuideRead Guide →
Malware SignaturesGuideRead Guide →

Frequently Asked Questions

The overwhelming majority of reinfections happen because the original vulnerability that allowed the first compromise was never actually identified and fixed — removing the malware without closing the entry point leaves the exact same path available for the exact same or a similar attack to succeed again, often quickly given continued automated scanning.
Often within hours to days if the original vulnerability remains unpatched, particularly if automated scanning tools have already identified the site as vulnerable and continue periodically re-checking it even after the initial infection is removed.
Yes, and this is one of the most common specific causes of reinfection — a hidden backdoor file, deliberately designed to look unremarkable, is easy to miss during cleanup focused primarily on removing the most obviously visible infection symptoms rather than systematically searching for every planted component.
Yes — restoring from a backup taken after the actual compromise occurred, even if it looks visually normal, can reintroduce the exact infection you thought you'd removed, which is why confirming backup cleanliness before restoration matters as much as the restoration itself.
Yes — if a site has multiple unpatched vulnerabilities, or if automated scanning tools continue finding new issues after the first is fixed, a site can experience what looks like the same infection returning but is actually a genuinely new, separate compromise through a different entry point.
It helps close one specific potential entry point (credential compromise) but doesn't address other common causes like an unpatched software vulnerability or an undiscovered backdoor — password rotation alone is rarely sufficient on its own to prevent reinfection.
Signs include reinfection with the same or very similar malware shortly after a seemingly thorough cleanup, unexplained admin account creation recurring, or file modification timestamps appearing on files you're confident weren't touched during your own legitimate activity — a comprehensive file-level scan specifically searching for backdoor patterns is the most reliable way to confirm.
For persistent, hard-to-resolve reinfection where standard cleanup and investigation repeatedly fail to identify the root cause, a clean rebuild from trusted, verified-clean source files (with content migrated carefully, not wholesale file copying) can be a reasonable, if more drastic, solution.
Yes, in certain configurations — if a neighboring site on the same shared server remains infected and the hosting environment doesn't properly isolate accounts from each other, an infection can spread from the still-compromised neighbor back into your own, already-cleaned site.
If a backdoor was planted during the original compromise, updating plugins addresses the vulnerability that originally let the attacker in, but doesn't remove a backdoor already established through that now-closed door — the backdoor itself needs to be specifically found and removed separately.
This pattern strongly suggests either an undiscovered backdoor that reactivates after a delay, an unpatched vulnerability being re-exploited, or in some cases a scheduled task (cron job) an attacker planted that periodically re-establishes the infection even after files are cleaned.
Yes — an attacker with sufficient access can plant a scheduled task that periodically re-downloads or re-creates malicious files, meaning a cleanup that removes the visible malicious files but misses the scheduled task will see the infection reappear on that task's next scheduled run.
Beyond confirming the visible malware is gone, specifically verify the original entry point has been closed (through a software update or configuration fix), search comprehensively for backdoors and scheduled tasks rather than just the initially discovered infection, and monitor closely for at least several weeks afterward.
It can meaningfully reduce the risk of reinfection through the same vulnerability class by blocking exploitation attempts at the network level, though it doesn't address an already-planted backdoor from before the WAF was implemented — both measures are complementary, not substitutes for each other.
Reinfection typically refers to the same or very similar malware returning through the same unaddressed vulnerability or an undiscovered backdoor from the original compromise; a new, unrelated infection is a distinct compromise through a different vulnerability, though both can look similar from the outside without detailed investigation distinguishing them.
Generally yes at that point — repeated reinfection despite genuine effort often indicates either a persistence mechanism sophisticated enough to evade standard cleanup approaches, or an underlying vulnerability not being correctly identified, both situations where professional expertise and more specialized investigation tools often succeed where self-managed efforts have repeatedly fallen short.
Don't repeat the exact same cleanup process expecting a different result — instead, specifically search for backdoors and scheduled tasks that might have survived the first cleanup, re-verify the original vulnerability was genuinely closed rather than assumed closed, and consider whether the infection might be entering through a different vulnerability entirely, treating the situation as a fresh, comprehensive investigation rather than a repeat of the previous one.