What order should be followed after the website is found to be planted with backdoor scripts, for cleaning, rollback and reinforcement

📅 2026-11-01 👁️ 0

After a website is found to have been planted with a backdoor script, what is the correct sequence of cleaning, rollback, and strengthening? The correct sequence is to first cut off the writable channels, then repair the entry, then roll back the entire trusted backup, and finally strengthen and review. Most websites that are repeatedly hacked fail in the first step: delete files first.

The security agency has issued two principles in this round of announcements targeting content management systems: immediately patch affected platforms and extensions (Popular CMS platforms include WordPress, Joomla, and Craft CMS are common targets mentioned in the announcement), and restore compromised websites from known-good backups. These two principles are the basis for the sequence.

Step 1: Confirm the breach surface instead of deleting files first

Before deleting a visible script, fix four things first: file timestamps and paths, Web server and PHP or application process logs for the corresponding time period, the most recent version or configuration changes, and the background account list and scheduled tasks.

The output of this step is 'entry guessing': whether unauthorized uploads are exploited, weak passwords are brute-forced, or known issues have not been patched. Cleaning up without confirming the entry is like changing the furniture without knowing how the door lock is opened.

Step 2: Patch first, then discuss recovery.

The order is reversed and the”After being restored, it will come in through the same door again”. The reason why the immediate repair is placed before the restoration is that as long as the entrance is still open, any cleaning action is only temporary.

The objects to be repaired include the system body and the extension layer, and in practice, the extension layer is more likely to be ignored – system updates are recorded, and the sources and versions of third-party extensions and templates are often ignored. The restoration action is only entered after the repair is completed.

Step 3: Roll back from a good backup known to be good.

“Known good”requires you to clarify three things: this backup time point is before you are sure of the intrusion time, the recovery steps can be repeated, and the recovery content includes data and uploaded static files.

AnQiCMS's backup and recovery is a built-in feature of the background, and data along with static files are included in the backup scope. This design is most valuable in emergencies: only restoring the database backup will leave the articles and attachments empty, while the attachment directory is exactly the high-risk location for script writing.

On what conditions can on-the-spot cleaning be accepted? It is only feasible when you can confirm that there is only one entry point and that the script only appears in a small number of enumerable files. In all other cases, it is recommended to roll back. After cleaning, it is still necessary to do a persistent check: new accounts, scheduled tasks, hidden outputs in template files, and executable files in the upload directory.

Stage Action Completion criteria
Stop the bleeding Restricting the background entry and write permissions The attacker cannot continue to write new files
Repair The system core and extensions are upgraded to the fixed version The affected component versions can be checked
Rollback Restore the entire site using a trusted backup Verify the recovery results in an isolated environment
Rotation Change the signature configuration and all admin passwords All old sessions and credentials are invalid
Review Logs, accounts, tasks, upload directories All four items have check records

Step four: strengthen from the credentials

Upgrading to the fixed version only closes new exploit paths, does not revoke the sessions already obtained. The sequence of credential rotation is very important: first rotate the signature keys of all sites, so that all tickets issued before this are invalidated, then change all admin passwords, and require all management accounts to log in again.

AnQiCMS in the v3.6.6 upgrade prompt is written in this order: This version fixed two high-risk issues of list sorting parameter injection and the login credentials of site switching can be forged, and it requires the rotation of signature configurations of all sites and the modification of all administrator passwords. The built-in JWT authentication, content sensitive word filtering, and anti-crawling interference codes belong to the normal protection layer, responsible for narrowing the entry of SQL injection and XSS in daily operations.

Make sure to unify the external statements: The full-site replacement tool can batch replace keywords or links, during the **horse period, the content published often contains external anchor text and wording that should not be left, and it is costly to change each article one by one, and batch replacement followed by random review is more controllable.

Common questions

Question: Can we only do file monitoring without repairing?Answer: No. Monitoring only tells you that it has been changed, but does not prevent it from being changed; when the entry has not been repaired, the alarm will continue to repeat.

Question: How can we confirm that it is clean after recovery?Answer: Look at three points - whether the backup time point is earlier than the intrusion time, whether the same type of files appear after recovery, and whether there are new successful logins in the suspicious period. All three points can be answered to be closed loop.

Question: Should we change the host?Answer: Only when the server layer is taken over is it needed. The basis for judgment is whether there are abnormal processes and accounts outside the site, and it is not enough to draw this conclusion solely based on the on-site script.

Related articles

Will AI spiders comply with robots.txt, and how many sites have blocked them in actual testing?

The public dataset has conducted a statistics on 261 readable sites and 15 types of spiders: 35% of the sites block at least one type of training spider, and 21% block at least one type of search spider. Whether to comply cannot be based on assumption, this article explains what robots.txt actually controls, the scope of the actual data, and its division of labor with llms.txt and the verification method of background configuration.

2026-11-01

Whether it is a cloud server or a hosted website, how to calculate the deployment bill for the first year of a small and medium-sized enterprise official website?

The first-year deployment invoice should be calculated based on the three items of host, domain and certificate, and operation and maintenance time, rather than just the monthly fee. The cost of the website construction fee on the day it was approved shows that the shared host is between three to fifteen dollars per month, and the hosted website construction packages the host and maintenance into the subscription. This article provides two routes of cost structure and explains how to choose between the Baota, aaPanel, and Docker deployment methods of AnQiCMS.

2026-11-01

When AI quotes a page, which part of the content does it pay more attention to, and whether GEO writing should put the answer in the first 200 words.

The unit for retrieving answers from the generative engine is a paragraph, not a whole page, so when writing GEO, conclusions that can be directly cited should be placed at the beginning of the text. This article explains the magnitude of this change using the AI search traffic data from the day, and provides the style of the first 200 words, the review position of AI automatic writing, and the role of llms.txt in the link.

2026-11-01

What are the first three things small and medium-sized enterprises should do for large-scale utilization activities of content management systems?

Large-scale exploitation activities of content management systems were named in the announcement, with attacks concentrated on unauthorized uploads and remote code execution. Small and medium-sized enterprises have limited resources, and should do three things first: incorporate patches into a fixed schedule, prepare recoverable trusted backups, and replace the entire site with sensitive word filtering to clear残留 and unify external statements, rather than spending expensive reinforcement procurement first.

2026-11-01

How should static site generators and dynamic CMS be divided, where is the boundary of the hybrid architecture?

Static site generator solves "The published pages need to be fast and save", dynamic CMS solves "Collaboration, authorization and structured content". This article outlines the differences in the operation models of the two types of tools, gives three ways to staticize marketing pages and dynamicize core stations, and explains what pseudo-static rules and custom content models undertake in the hybrid architecture.

2026-11-01

The importance of brand names and entity mentions in AI search is increasing, should the keyword strategy change?

The answer engine relies more on entities and independently citable paragraphs, but this does not mean giving up the keyword library. The statistics on the day show that 86.7% of commercial intent searches appear with an AI summary layer, and the share of generative traffic is also being redistributed. This article provides the division of labor between the keyword library and entity expression, as well as the role of AI Chat, MCP, and llms.txt in maintaining consistency in external statements.

2026-11-01

Where does the difference in running costs lie between Go and PHP on the same server that runs a content management system?

Running a content management system on the same server, the cost difference between Go and PHP mainly comes from the process model rather than the language itself. This article explains the differences between the resident process model and the request-rebuilding model in terms of memory, concurrency, and cold start, and provides the resource calculation steps for selection, and explains how to understand the official statement that memory is reduced by about 80% and single-machine about 5 million PV.

2026-11-01

Regular support for Joomla 5.x has ended, and for sites still using it, when should they migrate?

Support for Joomla 5.4.x ended on October 13, 2026, and the support window for the 6.2 branch extends to October 17, 2028. This article provides four conditions for determining the migration point, the backup and rollback preparation checklist before migration, and explains how to verify the compatibility of templates and extensions item by item to avoid turning migration into a passive emergency event.

2026-11-01