Back to Intelligence

Drupal Vulnerability Discovered by Anthropic Scanner Now Exploited in the Wild — CISA KEV Detection and Remediation Guide

SA
Security Arsenal Team
November 27, 2026
11 min read

CISA has added a Drupal vulnerability — notably discovered by Anthropic's automated AI security scanner — to its Known Exploited Vulnerabilities (KEV) catalog, confirming active exploitation in the wild. Federal civilian executive branch agencies have been instructed to remediate within three days, an unusually aggressive deadline that signals both confirmed exploitation and assessed severity. If your organization runs Drupal — and a significant share of government, higher education, healthcare, and enterprise web properties do — you should treat this as a patch-now event, not a patch-soon event.

Two aspects of this story deserve defender attention beyond the bug itself. First, the discovery vector: an AI-assisted scanner surfaced a flaw that survived Drupal's mature security review process, which tells us the volume of AI-discovered vulnerabilities entering the disclosure pipeline is going to increase sharply. Defenders need operational readiness for a faster vulnerability tempo. Second, the exploitation timeline: threat actors moved to weaponize this flaw rapidly enough that CISA exercised its shortest remediation windows. The gap between disclosure and exploitation continues to collapse.

Technical Analysis

Affected Component

The vulnerability affects Drupal core, the open-source PHP-based content management framework that powers a large percentage of public-sector and enterprise websites worldwide. Drupal core is the common dependency — any site running an affected core release is exposed regardless of contributed modules or theme customizations. Per the SecurityWeek reporting, Anthropic's automated scanner identified the flaw, after which it was triaged, patched, and subsequently observed under active attack.

Because the public summary does not enumerate the affected version branches, defenders should pull the authoritative list directly from the Drupal security advisory cross-referenced in the CISA KEV entry. As a general operating picture, Drupal maintains supported branches (currently the 10.x and 11.x lines); any core release below the patched build published in the advisory should be considered vulnerable until proven otherwise.

Exploitation Mechanics (Defender's View)

Without overstating specifics not present in the public reporting, web application vulnerabilities of this class — the ones that earn three-day KEV deadlines — typically share a recognizable exploitation pattern defenders can hunt against:

  1. Reconnaissance and fingerprinting — attackers enumerate Drupal installs via response headers, CHANGELOG.txt, core/modules/system/system.info-style paths, or distinctive cookie patterns (SESS/SSESS prefixes).
  2. Crafted request delivery — the exploit is delivered over HTTP(S) to the web tier, meaning every observable action traverses your WAF, reverse proxy, load balancer, and web server logs.
  3. Post-exploitation on the host — successful exploitation of a PHP application frequently results in the web server process (php-fpm, apache2, nginx worker context) writing files (web shells into uploadable directories such as sites/default/files/), spawning child processes (sh, bash, curl, wget, python), or initiating outbound connections for second-stage tooling.

That third phase is where endpoint telemetry gives you high-fidelity detection: a PHP-FPM or Apache worker spawning an interactive shell is almost never legitimate on a production web node.

Exploitation Status

  • Confirmed active exploitation in the wild — this is the threshold for KEV inclusion, not a theoretical or PoC-only listing.
  • CISA KEV: added. Federal agencies bound by BOD 22-01 must remediate within three days of the directive — a deadline reserved for vulnerabilities CISA assesses as posing immediate, severe risk.
  • Discovery attribution: identified by Anthropic's automated scanner, underscoring that AI-driven offensive discovery is now feeding real, exploitable bugs into the ecosystem faster than traditional research pipelines.

Detection & Response

This is a technical threat. The detections below target the observable behaviors common to exploitation and post-exploitation of a PHP web application under active attack. Tune the paths and process names to your actual Drupal deployment (document root, file storage path, and FPM pool naming vary by environment).

Sigma Rules

The first rule targets endpoint post-exploitation behavior — the highest-fidelity signal available. The second targets web shell placement in Drupal's writable file directories. The third targets reconnaissance and exploit probing visible in web access telemetry. Deploy the endpoint rules at high/critical confidence; treat the web request rule as a hunting rule you pivot from, not a paging alert.

YAML
---
title: Web Server or PHP Process Spawning Shell or Downloader
id: 8c2a4f71-3b6e-4d19-9a52-7e1f0c8b3d44
status: experimental
description: Detects PHP-FPM, Apache, or Nginx worker processes spawning shells or downloader utilities, consistent with post-exploitation of a web application vulnerability such as the actively exploited Drupal flaw added to CISA KEV.
references:
  - https://www.securityweek.com/drupal-flaw-found-by-anthropic-scanner-exploited-in-attacks/
  - https://www.cisa.gov/known-exploited-vulnerabilities-catalog
  - https://attack.mitre.org/techniques/T1059/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.execution
  - attack.t1059
  - attack.initial_access
  - attack.t1190
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith:
      - '/php-fpm'
      - '/php8.3-fpm'
      - '/php8.2-fpm'
      - '/apache2'
      - '/httpd'
      - '/nginx'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/curl'
      - '/wget'
      - '/python'
      - '/python3'
      - '/perl'
      - '/nc'
      - '/ncat'
      - '/base64'
  condition: selection_parent and selection_child
falsepositives:
  - Rare legitimate administrative tooling invoked by cron-driven PHP maintenance scripts; investigate parent command line and FPM pool before dismissing
level: high
---
title: PHP File Written to Drupal Uploadable Files Directory
id: 2f7b9d3e-61a4-4c8f-b305-9d6e2a1f7c55
status: experimental
description: Detects creation of PHP files inside Drupal's public files directories (sites/default/files), a classic web shell placement pattern following CMS exploitation. These directories should contain uploaded media, not executable code.
references:
  - https://www.securityweek.com/drupal-flaw-found-by-anthropic-scanner-exploited-in-attacks/
  - https://attack.mitre.org/techniques/T1505/003/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.persistence
  - attack.t1505.003
logsource:
  category: file_event
  product: linux
detection:
  selection_path:
    TargetFilename|contains:
      - '/sites/default/files/'
      - '/sites/default/files/php/'
      - '/web/sites/default/files/'
  selection_ext:
    TargetFilename|endswith:
      - '.php'
      - '.phtml'
      - '.phar'
      - '.inc'
  condition: selection_path and selection_ext
falsepositives:
  - Extremely rare; legitimate site administration does not place PHP executables in upload directories. Treat any hit as an incident.
level: critical
---
title: Drupal Exploitation Reconnaissance and Probing in Web Access Logs
id: 4a1d8c62-9e37-4f5b-a608-2b7c3d9e5f11
status: experimental
description: Detects request patterns in web/proxy logs consistent with Drupal fingerprinting and exploit probing, including requests to core metadata files and suspicious POST bodies against user and node endpoints from unusual sources.
references:
  - https://www.securityweek.com/drupal-flaw-found-by-anthropic-scanner-exploited-in-attacks/
  - https://attack.mitre.org/techniques/T1190/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.initial_access
  - attack.t1190
  - attack.reconnaissance
  - attack.t1595.002
logsource:
  category: webserver
detection:
  selection_fingerprint:
    cs-uri|contains:
      - '/CHANGELOG.txt'
      - '/core/CHANGELOG.txt'
      - '/INSTALL.txt'
      - '/update.php'
      - '/install.php'
  selection_probe:
    cs-uri|contains:
      - '/user/register'
      - '/user/login'
      - '/node/add'
      - '?_format=json'
      - '?_format=hal_json'
    cs-method: 'POST'
  condition: 1 of selection_*
falsepositives:
  - Legitimate user registration and API traffic will match the probe selection; correlate with source IP reputation, request volume per source, and user-agent anomalies before escalating
level: medium

KQL (Microsoft Sentinel / Defender)

If your Drupal tier is fronted by a WAF or reverse proxy shipping logs to Sentinel (CommonSecurityLog), and your Linux web nodes report via the Defender agent or Syslog collection, the following hunt covers both the network-facing and host-facing phases. Run it over a rolling 14-day window and extend lookback if you find hits — exploitation may predate the KEV listing.

KQL — Microsoft Sentinel / Defender
// Hunt 1: Web-tier probing and exploit delivery against Drupal paths
let drupal_paths = dynamic(["/CHANGELOG.txt", "/core/CHANGELOG.txt", "/update.php", "/install.php", "/user/register", "/node/add", "_format=hal_json", "_format=json"]);
CommonSecurityLog
| where TimeGenerated > ago(14d)
| where RequestURL has_any (drupal_paths)
| summarize Requests=count(), DistinctURLs=dcount(RequestURL), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated), URLs=make_set(RequestURL, 20) by SourceIP, RequestMethod, SourceUserAgent
| where Requests > 5 or DistinctURLs > 3
| order by Requests desc;
// Hunt 2: Post-exploitation — web server/PHP spawning shells or downloaders (Defender for Endpoint on Linux web nodes)
let web_parents = dynamic(["php-fpm", "apache2", "httpd", "nginx"]);
let suspect_children = dynamic(["sh", "bash", "dash", "curl", "wget", "python3", "perl", "nc", "ncat", "base64"]);
DeviceProcessEvents
| where TimeGenerated > ago(14d)
| where InitiatingProcessFileName has_any (web_parents)
| where FileName has_any (suspect_children)
| project TimeGenerated, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, AccountName
| order by TimeGenerated desc;
// Hunt 3: Web shell placement in Drupal files directories via Syslog (auditd/execve telemetry)
Syslog
| where TimeGenerated > ago(14d)
| where SyslogMessage has "sites/default/files" and SyslogMessage has_any (".php", ".phtml", ".phar")
| project TimeGenerated, Computer, ProcessName, SyslogMessage
| order by TimeGenerated desc;

Velociraptor VQL

For live forensics on suspected Drupal hosts, this artifact combines process inspection with a sweep for recently created PHP files in Drupal's writable directories — the two fastest triage questions during IR: "what is the web tier executing?" and "did anything get dropped?"

VQL — Velociraptor
-- Security Arsenal: Drupal exploitation triage
-- Phase 1: enumerate web-tier child processes (shells, downloaders spawned by PHP-FPM/Apache/Nginx)
SELECT Pid, Ppid, Name, CommandLine, Exe, Username, CreateTime
FROM pslist()
WHERE Name =~ '(sh|bash|dash|curl|wget|python|perl|nc|ncat)$'
  AND CommandLine =~ '(http|/tmp/|/dev/shm/|base64)'

-- Phase 2: locate PHP files written into Drupal uploadable directories in the last 14 days
SELECT FullPath, Size, Mtime, Ctime
FROM glob(globs='/**/sites/default/files/**/*.php')
WHERE Mtime > (now() - 1209600)
ORDER BY Mtime DESC

-- Phase 3: outbound connections from web server processes (C2 or payload retrieval)
SELECT Pid, Name, LocalAddr, LocalPort, RemoteAddr, RemotePort, State
FROM netstat()
WHERE Name =~ '(php|apache|httpd|nginx)'
  AND RemoteAddr !~ '^(10\\.|172\\.(1[6-9]|2[0-9]|3[01])\\.|192\\.168\\.|127\\.)'

Remediation and Verification Script

Run this on each Drupal host to inventory the installed core version, stage the patched release via Composer (Drupal's supported update path), and sweep for indicators of compromise. It will not auto-deploy — patching a CMS during a potential compromise without a forensic snapshot is how evidence gets destroyed. Snapshot first, patch second, verify third.

Bash / Shell
#!/usr/bin/env bash
# Security Arsenal - Drupal KEV remediation + verification helper
# Usage: sudo ./drupal_kev_triage.sh /path/to/docroot
set -euo pipefail
DOCROOT="${1:-/var/www/html}"
TS=$(date +%Y%m%d-%H%M%S)
REPORT="/root/drupal-triage-${TS}.txt"

{
echo "=== [1] Installed Drupal core version ==="
cd "$DOCROOT"
if command -v composer >/dev/null 2>&1; then
  composer show drupal/core 2>/dev/null | grep -E '^(name|versions)' || echo "composer metadata unavailable"
fi
grep -r "define('DRUPAL_VERSION'\|const VERSION" core/lib/Drupal.php 2>/dev/null || true

echo "=== [2] Check Drupal + CISA advisory status (manual step) ==="
echo "Compare version above against the patched release listed at:"
echo "  https://www.drupal.org/security"
echo "  https://www.cisa.gov/known-exploited-vulnerabilities-catalog"

echo "=== [3] Stage patch (dry-run first, then apply after snapshot) ==="
echo "composer update drupal/core-recommended drupal/core-composer-scaffold drupal/core-project-message --with-all-dependencies --dry-run"
echo "# After VM/disk snapshot: re-run without --dry-run, then:"
echo "# vendor/bin/drush updatedb -y && vendor/bin/drush cr"

echo "=== [4] Web shell sweep in files directories ==="
find "$DOCROOT" -path '*sites/default/files*' \( -name '*.php' -o -name '*.phtml' -o -name '*.phar' \) -ls 2>/dev/null || echo "none found"

echo "=== [5] Recently modified PHP anywhere in docroot (last 14 days) ==="
find "$DOCROOT" -name '*.php' -mtime -14 -type f -ls 2>/dev/null | head -100

echo "=== [6] Suspicious child processes of web tier ==="
for p in $(pgrep -f 'php-fpm|apache2|httpd|nginx'); do
  ps --ppid "$p" -o pid,ppid,user,cmd 2>/dev/null
done | grep -E 'sh$|bash|curl|wget|python|nc ' || echo "no suspicious children"

echo "=== [7] Untrusted outbound connections from web processes ==="
ss -tupn 2>/dev/null | grep -E 'php|apache|httpd|nginx' | grep -vE '127\.0\.0\.1|::1' || echo "none"

echo "=== [8] Integrity: files dir permissions (should not allow PHP execution) ==="
grep -rEi 'php_handler|SetHandler|AddType.*php' "$DOCROOT"/sites/default/files/.htaccess 2>/dev/null || echo "WARNING: no .htaccess PHP execution block in files dir"
} | tee "$REPORT"

echo "Report written to $REPORT"

Key hardening note in step 8: Drupal's files directory must deny PHP execution at the web server layer (php_flag engine off / SetHandler restrictions in .htaccess for Apache, or an explicit location block excluding PHP in Nginx). This single control neutralizes the most common web shell persistence path even when the primary vulnerability is exploited.

Remediation

  1. Patch immediately. Apply the Drupal core security release referenced in the Drupal security advisory cross-linked from the CISA KEV entry. Use Composer: composer update drupal/core-recommended --with-all-dependencies, then run database updates (drush updatedb) and rebuild caches (drush cr). Federal agencies are under a three-day BOD 22-01 deadline; treat that as your internal SLA regardless of sector — CISA's urgency assessment is threat-informed, not arbitrary.
  2. Snapshot before patching. If you have any exposure (internet-facing Drupal on an affected branch), take a disk/memory snapshot prior to remediation. If exploitation already occurred, you need that evidence for scoping. Patching over a compromised host gives you a patched, compromised host.
  3. Hunt before and after. Run the KQL and VQL above against at least 14 days of telemetry. KEV inclusion means exploitation is happening; the question is whether it happened to you. Pay particular attention to web-tier child processes and PHP files in upload directories.
  4. Block PHP execution in file storage. Verify your web server config denies script execution under sites/default/files/. This is in Drupal's own hardening guidance and is chronically missed in Nginx deployments where .htaccess is ignored.
  5. Reduce attack surface. Ensure update.php and install.php are access-restricted, remove or block access to CHANGELOG.txt and other version-disclosing files, and put a WAF rule in front of anomalous POST traffic to user/node endpoints while patching is in flight.
  6. Rotate credentials if compromise is suspected. Drupal stores site credentials in the database and salts in settings.php. Any confirmed post-exploitation activity means rotating database credentials, Drupal admin accounts, API keys, and any service accounts reachable from the web tier.
  7. Prepare for the new vulnerability tempo. An AI scanner found this bug. More are coming, faster. If your vulnerability management program still operates on weekly scan cycles and 30-day patch SLAs for internet-facing criticals, recalibrate: KEV-tracked items on perimeter services need a 24–72 hour path from listing to remediation.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.