One update fixes seven security issues, should you upgrade first or check if you have been hacked first?
When faced with an update that includes multiple security fixes, whether to upgrade first or check for intrusion depends on a preliminary question: does the site currently show any signs of intrusion? WordPress 7.1.3 fixed 7 security issues in one go, and the official recommendation is to update immediately, but 'immediate update' is the action of closing the entrance, not equal to asking those who have already entered to leave. Whether there is an anomaly determines the order of these two things.
In two cases, the order is different
If a clean site encounters a security release, just go through the upgrade window: confirm that the version number goes up, observe whether there are any compatibility issues, and end. At this point, there is no intrusion, and the upgrade itself is a complete solution.
Once there are signs - abnormal files, unfamiliar administrators, login records not matching - the upgrade is just an emergency **step. It closes the entry for the vulnerability to continue being exploited, but the attacker may have already obtained login sessions, left backdoors, and exported data. If you only upgrade without investigating, the entry is closed, but the person is still inside. In this case, you should first secure the scene, investigate the traces, and then upgrade when the system is clean again.
What upgrading can close is the entry.
The security patch fixes whether this hole can still be exploited. The official also reminds in the instructions that only the latest versions are in active support status, and old branches are maintained by rolling back patches, which is a reality: not upgrading is the same as keeping the known exploitable entry open all the time.
But recognize the limits of upgrading: upgrading does not revoke old sessions. The login credentials and tokens issued by attackers during the period of exploiting vulnerabilities will not automatically expire due to version updates. Therefore, upgrading solves 'the new coming in', but does not solve 'the old still here'.
Three things to handle when there are signs.
If an intrusion is found during investigation, in addition to the upgrade, three things need to be done.
** Swap credentials. AnQiCMS v3.6.6 upgrade recommendations are ready for reference: This version fixes two high-risk issues of SQL injection in list sorting parameters and the ability to forge login credentials during site switching. The official upgrade notice explicitly requires the replacement of the site signature key and resetting the administrator password.The principle is to upgrade and only close the fake entry, but the attacker may have already established a session with forged credentials, and the key and password must be changed together in order to invalidate old credentials.Second, compare the traces. Look at the time points of the abnormal files, login records, and trusted backups together to determine when the intrusion occurred. Third, clean up and rollback.Confirm a clean baseline, and revert to a trusted data backup from before the upgrade if necessary, rather than continuing to run on the contaminated library.
AnQiCMS's backup and recovery covers data and static files, which is the fallback point for this step - when it needs to be restored after investigation, only with a clean backup can you have the confidence.
How to confirm the end of the disposal
The end of disposal is not 'the upgrade point is finished', but all three points match: the version number is indeed the repaired version, the old credentials have been fully rotated and the old sessions have expired, and there are no residual abnormal files or accounts in the trace investigation.
Every day, you can still do one thing to reduce the attack surface: put away the high-risk operation capabilities. The AnQiCMS MCP interface sets the exposure range according to the intent domain, and operations such as backup, upgrade, and multi-site are set to be disabled by default, and need to be explicitly enabled to be available. By default, it reduces the number of entry points that attackers can call, and also makes the action boundary clearer during emergencies.
Common questions
Q: The official says to update immediately, why do we still need to check for intrusions first? A: The immediate update is aimed at closing the entry; if there are already signs of intrusion, fix the scene first and then restore, and the upgrade is just one step.
How does the old session automatically expire after the upgrade?\nAnswer: No. The credential rotation (such as changing the site signature key, resetting the administrator password) needs to be done manually, otherwise the old credentials obtained by the attacker may still be valid.
How can you judge whether you have been attacked?\nAnswer: Compare abnormal files, unfamiliar accounts, login records with reliable backup time points, and any mismatch requires emergency procedure handling.
How can you reduce the attack surface in daily life?\nAnswer: Default to close backup, upgrade, multi-site and other full-site high-risk operations and open them as needed, to narrow the interfaces that can be misadjusted.