How to Check a Drupal Site for Compromise After Fail2Install
Security Intermediate 5 min read

How to Check a Drupal Site for Compromise After Fail2Install

How to check a Drupal site for compromise after Fail2Install: installer requests in access logs, user 1 changes, settings.php edits and new PHP files.

Published: November 27, 2026 • Updated: November 27, 2026
drupalincident responselog analysis

To check a Drupal site for compromise after Fail2Install, review web server logs for requests to /core/install.php, confirm the user 1 account's name, email and password are unchanged, look for modified settings.php and new PHP files since 2026-11-18, and verify the installer is now blocked. Drupal's SA-CORE-2026-019 states that any site which left its installer reachable after the first patch may already have been compromised, and that a compromised site may no longer appear vulnerable, so a clean version number proves nothing on its own.

Why is a version check not enough?

A compromised site may have completed the installer flow, which can leave it looking fully installed and no longer in the vulnerable state. Drupal says this directly in SA-CORE-2026-019. The only way to know is to look for evidence of what happened between 2026-11-18 and the moment you blocked the installer.

The exposure window matters. Drupal received a report of exploitation on live sites as early as 2026-11-19 19:00 UTC. The first fix shipped 2026-11-18 and the second on 2026-11-25. If your site was reachable from the internet and its installer was not blocked at the web server during any part of that period, assume it was scanned. The background is in the Fail2Install exploitation report.

Step 1: Search access logs for installer requests

A production site should receive no installer traffic at all. Any request to /core/install.php after your site went live is suspicious, and POST requests from addresses outside your administrative networks are the strongest signal. Beazley Security's advisory suggests a plain search across rotated Apache or nginx logs:

grep "install.php" /var/log/apache2/access.log* /var/log/nginx/access.log*

Adjust the paths for your distribution and for any reverse proxy or CDN in front of the site; if a CDN terminates connections, pull its logs too, because the origin log may show only the proxy address. Record every hit with its timestamp, method, source address and response code. A 200 response to a POST is the result you do not want to see. Note the earliest hit, because that date bounds your later checks.

Step 2: Audit the user 1 account

The public proof of concept described by Beazley Security replaces the user 1 administrator account through the installer. Drupal's advisory tells you to check for unexpected changes to or by user 1, to ensure its email address is one you control, and to consider resetting its password.

Beazley Security's advisory offers a Drush query that lists the most recently changed accounts:

drush sql:query "SELECT uid, name, mail, changed FROM users_field_data ORDER BY changed DESC LIMIT 20"

Compare the results against your records. Red flags are a changed name or email on uid 1, a changed timestamp on uid 1 that no administrator can account for, and any new account with an administrator role. Also check the roles table for accounts that gained administrative roles in the window. If user 1's email points anywhere you do not control, treat the site as compromised: a password reset from that address hands the attacker a fresh login whenever they want one.

Step 3: Check settings.php and file permissions

The installer can write settings.php and change permissions in the settings directory. Compare the current settings.php against your version-controlled copy or a backup from before 2026-11-18. Look for changed database credentials, added include lines, new hash salts or altered trusted host patterns. Confirm the file and the sites/default directory are no longer writable by the web server account; Drupal's advisory says that condition blocks some exploit paths, and the installer leaving the file writable is itself a sign it ran.

Step 4: Look for new or modified PHP files

A takeover through the installer often ends with a web shell or backdoor dropped into the web root or the public files directory. Beazley Security suggests a filesystem search for PHP files newer than the disclosure date:

find /path/to/drupal -name "*.php" -newermt "2026-11-18" -type f

Expect legitimate results from your own update on the dates you deployed; anything else needs an explanation. Pay attention to PHP files under sites/default/files or any other directory where PHP should not execute. The same checks that apply to cleaning a backdoored WordPress site apply here: compare against a known-good copy of core and contrib, and do not trust a file just because its name looks plausible.

Step 5: Check site state and configuration

Drupal's advisory lists changed site settings and a site that unexpectedly shows the installation screen as indicators. Review the site name, default email, front page and other basic settings for changes. Export configuration and diff it against your repository. If any user reports having seen the installer page on the live site, record when, because that is a direct sighting of the attack.

What should you do if you find evidence?

Treat the site as compromised. Beazley Security's recommendation is to rebuild from a known-good backup taken before 2026-11-18, apply the fixed release, run update.php, and rotate the database credentials stored in settings.php, every administrator password, and any API keys the site holds.

Do not clean in place and move on. Drupal's own guidance for hacked sites assumes an attacker with administrator access could have left changes anywhere in the database or filesystem, and the installer grants exactly that access. Rotate secrets even if you find nothing beyond the installer requests, because an attacker who reached settings.php has your database password. If the database host is shared, that password may open other sites.

Step 6: Close the door before you finish

Whatever the review finds, the end state is the same: core at 11.4.14, 11.3.23 or 10.6.23, update.php run so the install-state repair hook executes, and the installer blocked at the web server with the block confirmed from outside. Drupal states that a site which has secured its installer is not vulnerable to CVE-2026-136716. If you skip the update.php step, the code update alone does not repair an affected site; see why Drupal updates are not done until update.php runs for the reason.

Keep the log extracts, the account query output and the file list with dates. If the review later turns into an incident, those records are your timeline, and for sites that hold personal data they may also be what a breach notification decision rests on.