Watchful’s Early Warning Audit monitors critical files on your WordPress and Joomla! websites. When it detects a change, Watchful records the event in the site activity logs and can send you an email notification.
Most file changes have harmless causes, such as software updates or routine maintenance. However, unexpected changes can also indicate that someone has gained unauthorized access to your website.
This guide explains how to review a file change alert and decide whether you need to take further action.
1. Review the file change alert
Start by identifying which file triggered the alert.
- Open the
Sites Dashboardin Watchful. - Select the affected website to open its
site drawer. - Review the site activity logs.
- Find the file change event and note the file path and date.
Next, check whether the alert matches any recent work on your website.
For example, an update to a theme, template, or plugin may change files that Watchful monitors.
2. Determine what changed
The Early Warning Audit monitors sensitive files using information such as file checksums and modification times.
As a result, Watchful may report a change when:
- The file contents have changed.
- The file’s modification timestamp has changed.
- A monitored file has been added or removed.
Importantly, a change to a file’s timestamp does not always mean its contents have changed.
For example, a backup restore or file transfer may update a timestamp without changing the code.
Watchful detects these changes but does not identify the exact lines of code that changed.
Therefore, you may need to compare the file with an earlier version to determine what happened.
3. Check whether the change was expected
Before treating an alert as a security issue, review recent website activity.
Common causes include:
- WordPress or Joomla! updates.
- Plugin or extension updates.
- Theme or template changes.
- Changes made by a developer or administrator.
- Backup restoration or website migration.
- Server maintenance.
If the change matches planned work, you can usually treat the alert as expected.
However, if nobody can explain the change, continue investigating.
4. Compare the file with an earlier version
If you cannot explain the alert, compare the affected file with a copy from a trusted backup.
A DIFF tool can highlight changes between two versions of a text file.
Pay particular attention to:
- New or unfamiliar PHP code.
- Unexpected links to external websites.
- Changes to access or login settings.
- Unknown scripts or hidden code.
Also, remember that a changed timestamp alone does not prove that the file contents differ.
If the file contents match a trusted version and you find no other warning signs, the alert may reflect a harmless change to file metadata.
5. Investigate suspicious changes
If you find changes that you cannot explain, treat them as a possible security issue.
First, preserve a backup of the affected website. Next, review other recent changes and check for signs of malware or unauthorized access.
You can also use Watchful’s Vulnerability Scanner, if available on your plan, to check for known software vulnerabilities and malware.
However, a scan cannot guarantee that your website is free from threats.
For a complete investigation and recovery process, see What to do if your WordPress or Joomla site has been hacked.
6. Continue monitoring your website
After reviewing the alert, continue monitoring the website for further changes.
Watchful’s Early Warning Audit runs automatically and records changes to critical files and other important site settings.
You can also run an audit manually using Refresh Data.
To receive email alerts, make sure you have enabled the relevant notifications in your Watchful settings.
Regular monitoring helps you spot unexpected activity and respond before a small problem becomes a larger one.