Tag: threat hunting

Detecting Cacti 4HTTP2SHELL: 4 Sigma rules for web logs, the poller and the web root

Detecting Cacti 4HTTP2SHELL: 4 Sigma rules for web logs, the poller and the web root

An unpatched bug with a public proof of concept and no CVE is the worst kind of week for a detection team: no vendor signature, no scanner plugin, nothing in the threat feeds. That is where Cacti users are with 4HTTP2SHELL, the four-request chain that turns an enabled guest account on Cacti 1.2.31 into command execution. Cacti merged matching fixes into its source branches on November 28, but no release carries them yet. I covered the bug, who is exposed and what to switch off in my analysis of the zero-day.

This post is the detection side. I found no published IOCs or request samples in the sources I read, so these four rules are built from the behaviour that watchTowr and RavenAI describe, plus my own reasoning where I say so. They are all experimental. Treat them as starting points to tune, not as alerts to page someone on at 3 a.m.

At a glance

  • Rules: 4 (one Sigma v2 correlation with three base rules, two host rules, one hunting rule).
  • Domains: Web/App and Linux.
  • Log sources: web server access logs with query strings, the PHP or web server error log and the Cacti log, Linux process creation and file creation (Sysmon for Linux, auditd or EDR).
  • ATT&CK: T1190, T1059.004, T1105, T1505.003.
  • Status: experimental. No CVE tag, because there is no CVE.
  • GitHub: Detection Rules/Linux and Detection Rules/Web-App.

The case in brief

The chain needs Cacti’s guest account to be enabled, which is not the default. According to RavenAI’s breakdown, the guest saves a text value into preview_graphs_per_page through auth_profile.php, a display setting that should be a number. A graph_view.php preview request then concatenates that stored value into a SQL LIMIT clause, and a stacked statement rewrites the arg1 command of a poller_item row. Finally a guest-reachable realtime graph request runs the poller path, which executes the command as the Cacti web and poller account. watchTowr adds that a warning about a non-numeric value may be logged along the way (RavenAI calls it a PHP warning), and lists new files created by the poller process as a pivot. The full story is in the analysis.

So the traces land in four places: the web access log (the request order), the PHP error log or Cacti log (the warning), the database (the rewritten poller command) and the host (whatever that command starts, and any files it writes). Sigma covers three of them. The database is the gap.

Detection map

Block diagram: web access logs, the PHP or Cacti log and Linux host process and file events feed four Sigma rules (request-order correlation, non-numeric warning hunt, suspicious poller child, PHP written in the Cacti tree) mapped to ATT&CK T1190, T1059.004 with T1105, and T1505.003, with the poller_item database rewrite marked as a gap.
Three log sources, four rules. The SQL rewrite of the poller command stays a database check.

Read it left to right. Web logs feed the correlation rule, which watches for the request order. The PHP error log or Cacti log feeds a keyword hunt. Host telemetry feeds the two rules I trust most: a suspicious child process under PHP, the web server or the spine poller, and a PHP file written into the Cacti tree by one of those processes. On the right, the red dashed box is the part none of the rules can see: the SQL write into poller_item. You close that with a scheduled database query, not a SIEM rule.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
Suspicious command spawned by Cacti web server or pollerLinuxlinux / process_creationExecution / T1059.004, C2 / T1105HighExperimental
Profile update, then preview, then realtime graph (correlation)Web/AppwebserverInitial Access / T1190MediumExperimental
PHP file written in Cacti web root by a web processLinuxlinux / file_eventPersistence / T1505.003MediumExperimental
Non-numeric value warning in the PHP or Cacti log (hunting)Web/Appcacti / application (PHP or Cacti log)Initial Access / T1190LowExperimental

The rules

Suspicious command spawned by Cacti web server or poller

Context: the last step of the chain is the poller running a command an anonymous guest chose. Whatever the attacker does next (download a tool, open a reverse shell, check who they are) starts as a process under PHP, Apache or spine. This is the rule I would turn on first, because it does not depend on how the command got into the poller.

Condition: alert when PHP, Apache/httpd or spine starts a shell whose command line contains curl, wget, a /dev/tcp redirect, base64, whoami, netcat, socat, chmod +x or an inline Python one-liner, or starts one of those tools directly. The lineage is my inference: I assume Cacti hands the stored command to a shell, so I match both the shell and the direct case.

ATT&CK: Execution (TA0002) – T1059.004 Unix Shell; Command and Control (TA0011) – T1105 Ingress Tool Transfer.

title: Suspicious Command Spawned by Cacti Web Server or Poller - Possible 4HTTP2SHELL Exploitation
id: 60c2cf77-4095-4bbf-9a3d-fd67b80c2a27
status: experimental
description: |
    Detects a shell running download, reverse-shell, discovery or encoding commands, or such a tool started directly,
    under the PHP, web server or spine poller processes on a Linux Cacti host. The 4HTTP2SHELL chain rewrites a
    poller command that a realtime graph request then executes as the Cacti service account (inferred process lineage).
references:
    - https://watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.execution
    - attack.t1059.004
    - attack.command-and-control
    - attack.t1105
    - detection.emerging-threats
logsource:
    product: linux
    category: process_creation
detection:
    selection_parent:
        - ParentImage|contains: '/php'
        - ParentImage|endswith:
              - '/apache2'
              - '/httpd'
              - '/spine'
    selection_shell:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
    selection_shell_payload:
        CommandLine|contains:
            - 'curl '
            - 'wget '
            - '/dev/tcp/'
            - 'base64'
            - 'whoami'
            - 'nc -'
            - 'ncat '
            - 'socat '
            - 'chmod +x'
            - 'python -c'
            - 'python3 -c'
    selection_direct_tool:
        Image|endswith:
            - '/curl'
            - '/wget'
            - '/nc'
            - '/ncat'
            - '/netcat'
            - '/socat'
            - '/whoami'
            - '/base64'
    condition: selection_parent and ((selection_shell and selection_shell_payload) or selection_direct_tool)
falsepositives:
    - Custom Cacti data input scripts that call curl or wget to poll HTTP APIs (scope by the script path and add a filter)
    - Other PHP applications on the same host; scope the rule to Cacti servers
level: high

View on GitHub

False positives and tuning: custom data input scripts that poll HTTP APIs with curl are the obvious one. Add a filter on their script path rather than dropping curl from the list. Scope the rule to hosts tagged as Cacti servers, because on a general PHP web server it will be noisier.

How to test: on a lab Cacti host, run a harmless command through PHP as the web user, for example sudo -u www-data php -r 'system("whoami");'. That produces PHP starting a shell that runs whoami, the same lineage the rule looks for.

Profile update, then preview, then realtime graph from one client

Context: RavenAI describes the chain’s footprint as a guest profile update followed by graph preview and realtime graph initialisation requests. Each request on its own is normal Cacti use. The order, from one client in a short window, is what stands out.

Condition: three informational base rules match auth_profile.php with action=update_data, graph_view.php with action=preview, and graph_realtime.php. A Sigma v2 temporal_ordered correlation fires when the same client IP hits all three in that order within 10 minutes. The action=update_data string comes from InfoSec Monkey’s hunting grep; action=preview is the standard Cacti preview URL and my assumption. Access logs do not show request bodies, so the rule cannot see the injected value itself.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Cacti Profile Update Request
id: 79a15d1d-b432-48fb-8b57-83e92d9f520c
name: cacti_profile_update_request
status: experimental
description: |
    Base rule for the 4HTTP2SHELL sequence correlation. Matches a request to the Cacti user profile update action,
    the step where the chain stores a value in a per-user display setting.
references:
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://infosecmonkey.com/cacti-4http2shell-zero-day/
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|endswith: '/auth_profile.php'
        cs-uri-query|contains: 'action=update_data'
    condition: selection
falsepositives:
    - Users changing their own profile settings (expected; this base rule is not meant to alert on its own)
level: informational
---
title: Cacti Graph Preview Request
id: d3eb6803-9216-45a4-98d5-c877fc4f3a35
name: cacti_graph_preview_request
status: experimental
description: |
    Base rule for the 4HTTP2SHELL sequence correlation. Matches the graph_view.php preview action, which reads the
    stored page-size preference back into a SQL query.
references:
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|endswith: '/graph_view.php'
        cs-uri-query|contains: 'action=preview'
    condition: selection
falsepositives:
    - Normal graph browsing in preview mode (expected; this base rule is not meant to alert on its own)
level: informational
---
title: Cacti Realtime Graph Request
id: 7d465808-b5cb-44ec-be1f-89fbedd54bb0
name: cacti_realtime_graph_request
status: experimental
description: |
    Base rule for the 4HTTP2SHELL sequence correlation. Matches a request to graph_realtime.php, the page that
    triggers the realtime poller path where the rewritten command runs.
references:
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|endswith: '/graph_realtime.php'
    condition: selection
falsepositives:
    - Users opening realtime graphs (expected; this base rule is not meant to alert on its own)
level: informational
---
title: Cacti Profile Update Followed by Graph Preview and Realtime Graph - Possible 4HTTP2SHELL Chain
id: efe4f9f7-cadc-41a8-b8f0-d7fd9ad6127f
status: experimental
description: |
    Detects one client sending a Cacti profile update, then a graph_view.php preview, then a graph_realtime.php
    request within ten minutes, the request order RavenAI describes for the 4HTTP2SHELL guest-to-shell chain.
    Inferred from published analyses; I found no published request samples in the sources I read.
references:
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
correlation:
    type: temporal_ordered
    rules:
        - cacti_profile_update_request
        - cacti_graph_preview_request
        - cacti_realtime_graph_request
    group-by:
        - c-ip
    timespan: 10m
falsepositives:
    - A logged-in user who changes the preview page size and then opens a realtime graph; check whether the client is a known admin or NOC address
level: medium

View on GitHub

False positives and tuning: a logged-in admin who changes the preview page size and then opens a realtime graph will trigger it. Exclude your NOC and admin subnets, or better, enrich with the session user if your web server logs it and alert only when it is the guest. If guest is off on all your servers, this rule should be silent; any hit is worth a look.

How to test: on a lab install, log in, change the graphs-per-page preference, open preview mode, then open a realtime graph, all within a few minutes.

PHP file written in the Cacti web root by a web process

Context: watchTowr lists new files created by the poller process as a detection pivot, and RavenAI mentions an unexpected web shell or marker file. Once an attacker can run commands as the web user, dropping a PHP file in the Cacti tree is the cheapest way to keep access after you turn guest off.

Condition: alert when a file ending in .php is created under a path containing /cacti/, and the writing process is PHP, Apache/httpd, spine or a shell. Legitimate Cacti code arrives through the package manager or an admin’s deployment, not through those processes.

ATT&CK: Persistence (TA0003) – T1505.003 Web Shell.

title: PHP File Written in Cacti Web Root by Web Server or Shell Process
id: 23d1ea44-9240-49d3-9768-00be868c537d
status: experimental
description: |
    Detects a .php file created under a Cacti installation path by PHP, the web server, the spine poller or a shell.
    watchTowr lists new files created by the poller process, and RavenAI an unexpected web shell or marker file, as pivots
    after 4HTTP2SHELL exploitation. Legitimate Cacti code is written by the package manager or an admin, not by these processes.
references:
    - https://watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.persistence
    - attack.t1505.003
    - detection.emerging-threats
logsource:
    product: linux
    category: file_event
detection:
    selection_path:
        TargetFilename|contains: '/cacti/'
        TargetFilename|endswith: '.php'
    selection_writer:
        - Image|contains: '/php'
        - Image|endswith:
              - '/apache2'
              - '/httpd'
              - '/spine'
              - '/sh'
              - '/bash'
              - '/dash'
    condition: all of selection_*
falsepositives:
    - Cacti plugin installs or upgrades done through the web UI (match the time against change records)
    - Installs where Cacti lives outside a path containing /cacti/ will not match; adjust the path
level: medium

View on GitHub

False positives and tuning: plugin installs through the web UI write PHP as the web user, so match hits against change records. If Cacti lives in a path without /cacti/ in it, change the path. A shell writing the file is in the list on purpose: an attacker’s echo into a file comes from sh, not PHP.

How to test: as the web user, have PHP write a harmless file into the Cacti directory, check for the alert, then delete the file.

Non-numeric value warning in the PHP or Cacti log

Context: watchTowr and BleepingComputer both say a warning about a non-numeric value in a graph display setting may be logged when the chain runs, while the request itself succeeds. RavenAI describes it as a PHP warning. Depending on your setup it lands in the PHP or web server error log, or in Cacti’s own log, so forward both.

Condition: match the keyword non-numeric in the forwarded PHP error log or Cacti log. I could not find the exact message text in the sources, so I kept it to the keyword. That makes it a hunting rule, not an alert.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Non-Numeric Value Warning on a Cacti Host - 4HTTP2SHELL Hunting
id: af338bec-2440-4abd-8619-e984ec9031de
status: experimental
description: |
    Hunts for warnings about non-numeric values on a Cacti host. watchTowr notes a warning about a non-numeric value in a
    graph display setting may be logged when the 4HTTP2SHELL chain runs, while the request still succeeds; RavenAI calls it
    a PHP warning. Where it lands (PHP or web server error log, or the Cacti log) depends on the setup. The exact text is
    not published, so this matches the keyword only and needs review.
references:
    - https://watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/
    - https://www.bleepingcomputer.com/news/security/unpatched-cacti-zero-day-with-public-poc-gives-remote-code-execution/
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - detection.threat-hunting
logsource:
    product: cacti
    service: application
    definition: 'Requirement: forward the PHP or web server error log and the Cacti log from the Cacti host to the SIEM (locations vary by install).'
detection:
    keywords:
        - 'non-numeric'
    condition: keywords
falsepositives:
    - PHP warnings from unrelated code paths or plugins with sloppy numeric handling
level: low

View on GitHub

False positives and tuning: any plugin with sloppy number handling can produce the same PHP warning. Once you see a real hit, copy the exact message into the rule and raise its level.

How to test: append a line containing “non-numeric” to the forwarded log in a lab and confirm it reaches the SIEM and matches.

Coverage and gaps

Step in caseTacticTechniqueRuleCovered?
Guest profile write, preview, realtime requestsInitial Access (TA0001)T1190Correlation rule, PHP or Cacti log huntYes (inferred URIs)
Stacked SQL rewrites poller_item.arg1Initial Access (TA0001)T1190NoneGap: database only
Poller runs the attacker commandExecution (TA0002)T1059.004Suspicious poller childYes, with process telemetry
Tool downloadCommand and Control (TA0011)T1105Suspicious poller childPartial
Web shell or file dropPersistence (TA0003)T1505.003PHP written in Cacti treeYes, with file telemetry
Follow-on actions (reading credentials, pivoting to devices)Variousn/aNoneGap: not described by sources

The biggest blind spot is the SQL write. Most teams do not audit the Cacti database, and a rewritten poller_item row looks like any other config change. I would close it with a scheduled read-only query: alert when a preview_graphs_per_page value in settings_user is not a plain number, and diff poller_item.arg1 against yesterday’s copy. The analysis post has the queries. The second gap is everything after the first command. Cacti servers hold SNMP credentials (the poller_item table itself has SNMP community and password columns) and can usually reach most network devices, so if the host rule fires, assume the attacker read the config and check your devices’ logs for logins from the Cacti server.

Deploying the rules

Grab the YAML from GitHub and convert it with sigma-cli for your SIEM. The Linux rules need a pipeline that maps Sysmon for Linux or your EDR’s field names; the web rules need your access log fields mapped to cs-uri-stem, cs-uri-query and c-ip. Correlation rules need a backend that supports Sigma v2 correlations (check yours); otherwise build the sequence as a saved search by hand. For example:

sigma list pipelines
sigma convert -t splunk --without-pipeline proc_creation_lnx_cacti_web_poller_suspicious_child.yml
sigma convert -t lucene --without-pipeline file_event_lnx_cacti_webroot_php_written_by_web_process.yml
sigma convert -t splunk --without-pipeline web_cacti_guest_profile_preview_realtime_sequence_correlation.yml

The --without-pipeline output keeps the Sigma field names, so rename them to your own schema, or swap in a pipeline from sigma list pipelines that matches your log source; pipeline names change between sigma-cli plugin versions. Run everything in alert-only mode for a week before it pages anyone, and tune the process rule’s filters with what your own data input scripts actually run.

My take

Honestly, the best detection for this bug is not a rule. It is setting Guest User to No User and taking the web UI off the internet, which closes the chain completely. Everything in this post is for the case where you cannot do that today, or where guest was on before you read about this and you need to know if someone got in.

Of the four, the process rule is the one worth keeping forever. Cacti has had four guest-reachable or unauthenticated paths published this year, and most of the impact flows through a poller that runs commands from a database table. Watching what that poller starts catches this chain and the next one. What I would really like is for Cacti to log changes to poller_item and to guest profile settings by default, with the user and source IP. That single log line would turn the biggest gap in this post into the easiest alert.

Sources

Detecting Drupal installer takeover: 4 Sigma rules for web logs and host files

Detecting Drupal installer takeover: 4 Sigma rules for web logs and host files

Drupal’s installer flaws are a detection engineer’s dream and nightmare at once. The dream: the attack has to go through one URL, /core/install.php, that a finished production site has no business serving. The nightmare: neither Drupal nor the researchers published a single IP address, hash or user agent, and Drupal itself says a compromised site may no longer look vulnerable.

This post is the companion to my analysis of CVE-2026-136716 and the earlier Fail2Install bug. Here you get four Sigma rules built on behaviour, what each one catches, how to tune it, and how to test it safely in a lab.

At a glance

  • Rules: 4 rule files (one of them a Sigma v2 correlation with its own base rule).
  • Domains: Web/App (3) and Linux (1).
  • Log sources: web server access logs with method and full path; host file events from Sysmon for Linux, auditd or an EDR.
  • ATT&CK: T1190 Exploit Public-Facing Application (Initial Access) and T1505.003 Web Shell (Persistence).
  • Status: one rule test (vector confirmed by Drupal), three experimental (built from researcher write-ups and my own reasoning).
  • GitHub: Detection Rules/Web-App and Detection Rules/Linux.

The case in brief

Drupal fixed CVE-2026-132165 (SA-CORE-2026-017) on November 18, 2026, and reported exploitation on live sites from November 19 at 19:00 UTC. A week later, on November 25, it fixed CVE-2026-136716 (SA-CORE-2026-019) for sites in unusual or incomplete installation states that the first fix missed, and said that one is exploited in the wild too. In both cases the attacker uses the installer to reinstall Drupal on a live site and take it over. The full story is in the analysis.

For detection, the steps that matter and where they leave traces are these. The attacker requests the installer, and for Fail2Install, puts pressure on the database or the server so that the “already installed” check fails (Searchlight Cyber’s research). That shows up in access logs. The attacker then most likely submits installer forms (my inference), which are POST requests to the same path. On some setups the attacker can go further: Searchlight describes writing a SQLite database file with a .php name into the web root and running it through a crafted path. The CSA and Hive Security write-ups give that path shape as .php/core/ in the middle. That leaves a file on disk and one more odd line in the access log. The account takeover itself happens inside Drupal and does not reach the web server logs in a useful way.

Detection map

Block diagram: web access logs and Linux host file events feed four Sigma rules (installer POST request, installer request burst correlation, .php/core/ path trick, PHP file in public files) mapped to ATT&CK T1190 and T1505.003, with the user 1 takeover marked as a gap to check by hand.
Two log sources, four rules. The admin takeover itself stays a manual check.

Two log sources feed four rules. The web access log carries three of them: the installer POST, the burst correlation and the .php/core/ path. Host file events carry the fourth, a PHP file appearing under sites/*/files. Together they cover the initial access and the web shell step. The account takeover in the middle is the gap: it lives in Drupal’s own logs and state, so I treat it as a manual check, not a rule.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
Drupal installer POST requestWeb/AppwebserverInitial Access / T1190Hightest
Burst of installer requests from one clientWeb/Appwebserver (correlation)Initial Access / T1190Mediumexperimental
PHP file requested with trailing /core/ pathWeb/AppwebserverPersistence / T1505.003Highexperimental
PHP file created in Drupal public filesLinuxlinux / file_eventPersistence / T1505.003Highexperimental

The rules

Drupal installer POST request

Context: Drupal names the installer as the vector for both exploited bugs. My inference is that a reinstall most likely needs someone to submit installer forms on a site that is already running, with or without a resource flood, so this is the rule with the best signal. It is test rather than experimental because Drupal itself names the installer as the vector.

Condition: alert on any POST request whose path contains /install.php. The contains match also catches /core/install.php/foo style paths, which Drupal’s own hardening guide warns about.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Drupal Installer POST Request - Potential CVE-2026-136716 / CVE-2026-132165 Site Takeover
id: d251aa0a-f5e0-4e6a-85f2-31c59d86e62c
status: test
description: |
    Detects HTTP POST requests to the Drupal installer (install.php). Drupal names the installer as the vector for both
    exploited flaws, SA-CORE-2026-017 and SA-CORE-2026-019. A reinstall most likely requires submitting installer
    forms (inference), which a site that is already installed should never receive.
references:
    - https://www.drupal.org/sa-core-2026-019
    - https://www.drupal.org/sa-core-2026-017
    - https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/securing-the-installer-installphp
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-136716
    - cve.2026-132165
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_path:
        cs-uri-stem|contains:
            - '/core/install.php'
            - '/install.php'
    selection_method:
        cs-method: 'POST'
    condition: all of selection_*
falsepositives:
    - Building a brand new Drupal site or adding a multisite site through the browser installer
    - Staging or development hosts that are reinstalled on purpose (scope the rule to production hosts)
level: high

View on GitHub

False positives and tuning: new site builds and multisite additions done in the browser will fire it. Scope it to production host names, or add a filter for the IP addresses your team installs from. If you have already blocked the installer, you’ll see hits with status 403 or 404. Keep them; they tell you who is probing, and you can lower the level for blocked responses with a filter on sc-status.

How to test: on a lab Drupal site, send any harmless POST to /core/install.php (an empty form body is enough) and check that the access log line matches.

Burst of Drupal installer requests from one client

Context: Searchlight’s Fail2Install technique depends on a database check failing at exactly the right moment. My inference is that real attempts will hit the installer many times in a short window, much more than a scanner checking once. This rule is a Sigma v2 event_count correlation: a low-level base rule matches any installer request, and the correlation fires when one client crosses a threshold.

Condition: alert when one client address sends 30 or more requests to the installer on one host within one minute. The threshold is my starting point, not a value from any source.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Drupal Installer Request From Any Client
id: 75e838b2-152b-43ec-b7a4-413b0331d848
name: web_drupal_installer_request_any
status: experimental
description: |
    Base rule for the burst correlation below: any request to the Drupal installer. Not meant to alert on its own.
references:
    - https://www.drupal.org/sa-core-2026-017
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-132165
    - detection.threat-hunting
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|contains:
            - '/core/install.php'
            - '/install.php'
    condition: selection
falsepositives:
    - Uptime checks or scanners that request install.php
level: low
---
title: Burst Of Drupal Installer Requests From One Client - Potential Fail2Install Attempt
id: 8d2db544-b525-4e65-9bb3-fad5250d6ca7
status: experimental
description: |
    Detects one client sending many requests to the Drupal installer within a minute. The Fail2Install technique
    (CVE-2026-132165) relies on making database checks fail at the right moment, so I expect attempts to repeat the
    installer request many times (inference). The threshold of 30 per minute is my own starting point, not a source value.
references:
    - https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
    - https://www.drupal.org/sa-core-2026-017
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-132165
    - detection.emerging-threats
correlation:
    type: event_count
    rules:
        - web_drupal_installer_request_any
    group-by:
        - c-ip
        - cs-host
    timespan: 1m
    condition:
        gte: 30
falsepositives:
    - Load tests or security scans aimed at the site
    - Many users behind one NAT or proxy address (group by X-Forwarded-For if your logs keep it)
level: medium

View on GitHub

False positives and tuning: load tests and authorised scans will trip it, and so will many users behind one NAT or proxy address. If your logs keep X-Forwarded-For, group by that instead of c-ip. Remember that CVE-2026-136716 may not need a flood at all, so a quiet result here does not clear a site. The base rule on its own is a decent hunting query for the retro-hunt.

How to test: send 30 plain GET requests to /core/install.php on a lab site from one machine within a minute and check that the correlation fires once your backend supports Sigma correlations.

PHP file requested with trailing /core/ path

Context: Searchlight explains that the stock Drupal .htaccess rule meant to stop PHP files outside core from running was not anchored, so a crafted path slipped past it. The Cloud Security Alliance note and Hive Security give the shape to look for: a .php file followed by an extra /core/<name>.php segment. I am matching the path shape only, not a full request.

Condition: alert on any request whose path contains a .php file followed by /core/ and another .php name.

ATT&CK: Persistence (TA0003) – T1505.003 Web Shell.

title: Drupal PHP File Requested With Trailing /core/ Path - Potential Fail2Install Code Execution
id: aba8fc39-98da-47fa-be7a-8609c0d87300
status: experimental
description: |
    Detects requests where a .php path is followed by an extra /core/<name>.php segment. Searchlight Cyber says a crafted
    path got past the stock Drupal Apache .htaccess rule in the Fail2Install chain (CVE-2026-132165); the CSA and Hive
    Security write-ups list this path shape as an indicator. Built from published research, not from vendor IOCs.
references:
    - https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
    - https://labs.cloudsecurityalliance.org/research/csa-research-note-drupal-fail2install-ai-found-installer-tak/
    - https://hivesecurity.gitlab.io/blog/drupal-cve-2026-136716-installer-takeover/
    - https://www.drupal.org/sa-core-2026-017
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.persistence
    - attack.t1505.003
    - cve.2026-132165
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|re: '\.php/core/[^/]*\.php'
    condition: selection
falsepositives:
    - Scanners and vulnerability checks that probe this path pattern (still worth a look on a Drupal host)
level: high

View on GitHub

False positives and tuning: I don’t know of a legitimate Drupal route with this shape, so expect hits from scanners testing for the bug. Check the response code: a 200 for one of these paths deserves an incident ticket, a 404 is a probe. Make sure your log format keeps the full path; some setups split the path info part out.

How to test: request /modules/test.php/core/test.php on a lab site. It will typically return 404, depending on the server, and the log line should match.

PHP file created in Drupal public files directory

Context: Drupal’s public files directory under sites/<site>/files is for uploads and generated assets. The CSA note lists PHP files in the public files directory as an indicator. The exception is my own: from general Drupal knowledge, the default compiled Twig cache lives under files/php/twig, so I filter that path. A new PHP file anywhere else in that tree is most likely a web shell or a database file planted through the installer. This rule outlives the CVE, which is why it carries no emerging-threat tag.

Condition: alert when a file ending in .php is created under a path containing /sites/ and /files/, unless the path contains /files/php/twig/.

ATT&CK: Persistence (TA0003) – T1505.003 Web Shell.

title: PHP File Created In Drupal Public Files Directory
id: 9857fb99-344e-4407-8333-68aadb13f0f1
status: experimental
description: |
    Detects creation of a .php file under a Drupal sites/<site>/files directory. CSA lists PHP files in the public files
    directory as an indicator; excluding files/php/twig (the default compiled Twig cache) is my own tuning. A new PHP
    file there points to a web shell or to a database file planted through the installer (Fail2Install chain).
references:
    - https://labs.cloudsecurityalliance.org/research/csa-research-note-drupal-fail2install-ai-found-installer-tak/
    - https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
    - https://www.drupal.org/sa-core-2026-019
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.persistence
    - attack.t1505.003
    - cve.2026-132165
    - cve.2026-136716
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|contains: '/sites/'
        TargetFilename|endswith: '.php'
    selection_files_dir:
        TargetFilename|contains: '/files/'
    filter_main_twig_cache:
        TargetFilename|contains: '/files/php/twig/'
    condition: all of selection* and not 1 of filter_main_*
falsepositives:
    - Sites that moved the Twig cache or other generated PHP into a custom path under files/ (add that path as a filter)
    - Backup or migration tools that copy PHP files into the files directory
level: high

View on GitHub

False positives and tuning: if you moved the Twig cache or keep other generated PHP under files/, add that path as a filter. Backup and migration tools that copy whole trees can also trip it. The bigger limit is telemetry: file creation events are not collected by default on Linux, so you need Sysmon for Linux, an auditd watch on the files directory, or an EDR. A file written somewhere other than files/ will not match.

How to test: on a lab host with file telemetry on, run touch sites/default/files/test.php and check for an alert, then create a file under sites/default/files/php/twig/ and check that the filter keeps it quiet.

Coverage and gaps

Step in the caseTacticTechniqueRuleCovered?
Reach the installer and flood it (Fail2Install)Initial Access (TA0001)T1190Installer request burstPartly, threshold based
Submit installer forms and reinstallInitial Access (TA0001)T1190Installer POST requestYes
Take over user 1 or create an adminPersistence (TA0003)T1078 Valid AccountsNoneGap: Drupal logs and state, manual check
Write PHP through a SQLite filePersistence (TA0003)T1505.003PHP file in public filesYes, with host file telemetry
Run it through a .php/core/ pathPersistence (TA0003)T1505.003.php/core/ pathYes

What none of these rules can see is the account takeover itself. Drupal’s advice is to check logs for changes to or by user 1, set its email to one you control and consider resetting its password. Do that by hand, along with looking for administrators you don’t recognise. Hive Security also suggests checking the installer state with drush state:get install_task (expect done) and drush state:get install_time (expect the original install time). The CSA note lists database error strings that appear during the resource flood, such as PostgreSQL refusing extra clients or MySQL reporting too many connections. Those are worth a manual search of your database and PHP error logs for the days after November 18, but ordinary overload produces them too, so I did not turn them into a rule.

Deploying the rules

Pull the YAML from the GitHub folders above and convert it with sigma-cli for your SIEM. The web rules use the standard webserver field names (cs-uri-stem, cs-method, c-ip), so you need a pipeline that maps them to your Apache or nginx fields. The Linux rule uses TargetFilename as Sysmon for Linux does. A few examples:

sigma convert -t splunk --without-pipeline web_drupal_installer_post_request.yml
sigma convert -t lucene --without-pipeline web_drupal_php_path_info_core_bypass.yml
sigma convert -t splunk --without-pipeline file_event_lnx_drupal_php_file_in_public_files.yml

--without-pipeline keeps the Sigma field names as they are, so rename them to your own log schema (or write a small pipeline) before the query returns anything. The correlation rule needs a backend that supports Sigma correlations; if yours does not, run the base rule as a scheduled search with a count. Run everything in alert-only mode for a week before it pages anyone, and do a retro-hunt back to November 18, 2026 on day one.

My take

This is one of the more detectable critical bugs I’ve written rules for, and that’s because of where it lives. Every variant has to pass through one URL that a finished site never needs. If I could only deploy one rule, it would be the installer POST, and I’d pair it with the web server block from the analysis so that a hit means “someone tried” rather than “someone got in”.

The weak spot is the part attackers care about most: the takeover of user 1 happens inside Drupal, and default logging does not make it easy to see from outside. I’d like Drupal to log any write to the installer state, and any change to user 1’s email or password, to syslog by default, with a clear event name a SIEM can key on. Until then, the manual checks in the gaps section are not optional.

Sources

Hunting after CVE-2026-58630: 6 Sigma rules for App Service credential abuse

Hunting after CVE-2026-58630: 6 Sigma rules for App Service credential abuse

Writing detections for a CVE with no IOCs, no mechanism and no patch feels a bit like building a smoke alarm for a fire that already went out. Microsoft gave CVE-2026-58630 a 10.0, fixed it on its own side before the July 23, 2026 advisory, and published one sentence about it. I covered what is and isn’t known in my analysis of the bug.

So let me be upfront: none of the six rules below detects CVE-2026-58630. They detect what anyone with elevated access to an App Service app would do next, whether they got it through a platform bug, a phished admin or an over-broad role: pull the deployment credentials, use them, and change the app so access sticks. That behaviour is the same with or without a CVE, which is why I think these are worth running permanently, and why I’d retro-hunt them over whatever log history you still have from before July 24.

At a glance

  • Rules: 6 (four single-event rules, one hunting base rule, one Sigma correlation). One is test, five are experimental.
  • Domain: Cloud-Azure.
  • Log sources: Azure Activity log (azure/activitylogs, Sentinel AzureActivity) and the App Service resource log AppServiceAuditLogs. Microsoft says resource logs aren’t collected by default and need a diagnostic setting.
  • ATT&CK: T1552 Unsecured Credentials, T1078.004 Cloud Accounts, T1556 Modify Authentication Process, T1505 Server Software Component.
  • What they are: hunting and hardening rules for App Service credential and config abuse. Not exploit signatures.
  • YAML: Detection Rules/Cloud/Azure in my GitHub repo.

The case in brief

CVE-2026-58630 is an improper access control (CWE-284) elevation of privilege in Azure App Service. Microsoft scored it AV:N/PR:N/UI:N with scope changed, says it was not exploited, and marked it “no customer action required”. The component, the exposure window and the rollout date of the fix are not public as of November 25, 2026. The full story, including the Azure Stack Hub naming mismatch, is in the analysis.

For detection that leaves one useful question: what does elevated access to an App Service app buy you, and where does using it show up? Microsoft answered that in May 2026, in a different case. In its Storm-2949 report, the actor called publishxml/action to download publishing profiles, which carry FTP, Web Deploy and Kudu credentials, and used them to get into auxiliary App Service apps. I used that as the template. Step one, credentials through the management plane, lands in the Activity log. Step two, logging in with them, lands in AppServiceAuditLogs. Step three, persistence through auth or deployment changes, is back in the Activity log.

Detection map

Block diagram: the Azure Activity log and AppServiceAuditLogs feed six Sigma rules (publishing profile retrieved, basic-credential publishing login, profile pulled then used correlation, basic auth policy changed, source control or extension changed, settings or Functions keys listed) mapped to ATT&CK T1552, T1078.004, T1556 and T1505, with the exploit itself and routine deploys and reads marked as gaps.
Two log sources, six rules. The CVE itself leaves no known tenant-visible trace.

Two log sources feed six rules. The single highest-signal one is the correlation in the middle: a profile pulled and then used for a basic-auth login on the same app within an hour. Around it sit the single-event rules for credential access and persistence, two of them tuned as hunting rules because they fire on everyday admin work. On the right are the gaps I couldn’t close with Sigma, starting with the obvious one: the exploit itself happened on Microsoft’s side, and nobody has said it leaves anything a tenant can see.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
Publishing profile retrievedCloud-AzureActivity logCredential Access / T1552Mediumtest
Publishing login with basic credentialsCloud-AzureAppServiceAuditLogsPersistence / T1078.004Low (hunting)experimental
Profile retrieved, then used for basic login (correlation)Cloud-AzureBothCredential Access, Persistence / T1552, T1078.004Highexperimental
Basic auth publishing policy changedCloud-AzureActivity logPersistence / T1556Mediumexperimental
Source control or site extension changedCloud-AzureActivity logPersistence / T1505Mediumexperimental
Sensitive settings or Functions keys listedCloud-AzureActivity logCredential Access / T1552Low (hunting)experimental

A note on tags: I left the cve.2026-58630 tag off on purpose. Plenty of tooling counts CVE tags as coverage, and these rules don’t cover the CVE. The CVE is named in each description instead.

The rules

Azure App Service Publishing Profile Retrieved

Context: Microsoft says a publishing profile often contains basic-auth credentials for FTP, Web Deploy and the Kudu console. Datadog’s Stratus Red Team goes further: it says the XML holds the FTP and Web Deploy credentials in cleartext and that anyone with read-or-higher access can call publishxml without touching Key Vault. This is the step Storm-2949 used, and Stratus documents a sample Activity log event for it. That’s why this is the only rule I marked test: the operation name and the telemetry are confirmed, not guessed.

Condition: alert when anyone calls the publish-profile action on an App Service app or deployment slot.

ATT&CK: Credential Access (TA0006) – T1552 Unsecured Credentials.

title: Azure App Service Publishing Profile Retrieved
id: 1619694c-4499-4da8-b517-04386221afcb
name: azure_app_service_publishxml
status: test
description: |
    Detects retrieval of an App Service or slot publishing profile through the Azure management plane. Microsoft says the
    profile often contains basic-auth credentials for FTP, Web Deploy and Kudu; Storm-2949 used this action to compromise
    App Service apps. Hunting and hardening rule, not an exploit signature for CVE-2026-58630 (no IOCs are public).
references:
    - https://github.com/DataDog/stratus-red-team/blob/main/docs/attack-techniques/azure/azure.credential-access.app-service-publishing-credentials.md
    - https://www.microsoft.com/en-us/security/blog/2026/05/18/storm-2949-turned-compromised-identity-into-cloud-wide-breach/
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/permissions/web-and-mobile
    - https://netsec101.com/?p=502
author: netsec101.com
date: 2026-11-25
tags:
    - attack.credential-access
    - attack.t1552
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName:
            - 'MICROSOFT.WEB/SITES/PUBLISHXML/ACTION'
            - 'MICROSOFT.WEB/SITES/SLOTS/PUBLISHXML/ACTION'
    condition: selection
falsepositives:
    - Developers clicking "Download publish profile" in the portal, or Visual Studio and older pipeline tasks that import a profile
    - Infrastructure-as-code or backup tooling that exports profiles; baseline callers per app and alert on a new caller or IP
level: medium

View on GitHub

False positives and tuning: the portal’s “Download publish profile” button, Visual Studio publish and older pipeline tasks all call this. Baseline callers and source IPs per app for 30 days, then alert on a new caller or a new IP. Stratus notes the operation is logged even when basic auth is disabled. Keep the rule on for those apps too: there, in my view, a profile download is even more suspicious, because nobody should need it.

How to test: in a lab subscription run az webapp deployment list-publishing-profiles -g <rg> -n <app> --xml, or stratus detonate azure.credential-access.app-service-publishing-credentials.

Azure App Service Publishing Login With Basic Credentials

Context: once someone has the profile, they log in over FTP, Web Deploy or Kudu. AppServiceAuditLogs records publishing logins with User, UserAddress and Protocol. Microsoft’s two pages differ on scope: the table reference says successful logons, the basic auth guide says successful and attempted logins, and the records carry no result field. The table reference says UserDisplayName holds an email address when publishing was authorised through Entra, and Microsoft’s basic-auth FTP example shows the app’s $ publishing user there instead. My inference: no @ in that field means basic publishing credentials. That’s not documented in so many words, so the rule is experimental.

Condition: flag any publishing login event where UserDisplayName contains no email address.

ATT&CK: Persistence (TA0003) – T1078.004 Valid Accounts: Cloud Accounts.

title: Azure App Service Publishing Login With Basic Credentials
id: f76d71dd-63dc-4f23-8283-15c6f486f4b8
name: azure_app_service_publishing_login_basic
status: experimental
description: |
    Hunting rule for FTP, Web Deploy or Kudu login events on an App Service app where UserDisplayName holds no email
    address. Microsoft documents an email there for Entra-authorised publishing, and its basic-auth FTP example shows
    the $app publishing user instead; treating "no @" as basic auth is my inference. Not a CVE-2026-58630 signature.
references:
    - https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/appserviceauditlogs
    - https://learn.microsoft.com/en-us/azure/app-service/configure-basic-auth-disable
    - https://netsec101.com/?p=502
author: netsec101.com
date: 2026-11-25
tags:
    - attack.persistence
    - attack.t1078.004
    - detection.threat-hunting
logsource:
    product: azure
    service: appserviceauditlogs
detection:
    selection:
        Category: 'AppServiceAuditLogs'
    filter_main_entra_user:
        UserDisplayName|contains: '@'
    condition: selection and not filter_main_entra_user
falsepositives:
    - Legacy FTP or Web Deploy pipelines that still use the publishing profile; move them to OIDC or managed identity
    - Apps where basic auth is intentionally enabled
level: low

View on GitHub

False positives and tuning: on apps that still deploy with FTP or a publishing profile this fires on every deploy, which is why it’s low and mainly feeds the correlation. Field names are the Log Analytics columns; if you stream resource logs through Event Hub they sit under properties.*, so map them in your pipeline. The logsource service appserviceauditlogs is my own name: SigmaHQ’s taxonomy appendix lists only activitylogs, auditlogs, riskdetection, pim and signinlogs for Azure.

How to test: enable basic auth on a lab app, add a diagnostic setting for AppServiceAuditLogs, and connect with an FTP client using the profile credentials.

Azure App Service Publishing Profile Retrieved Then Used For Basic Login

Context: either event alone is common in a busy subscription. A profile pull followed by a basic-auth login on the same app shortly after is the sequence Microsoft describes for Storm-2949. In my experience it’s uncommon for legitimate users, and Microsoft’s own guidance pushes deployments toward Entra, managed identity and OpenID Connect instead of basic auth.

Condition: alert when a publishing profile is downloaded and, within one hour, a basic-credential publishing login hits the same App Service resource. The one-hour window is my choice; no source gives a timing.

ATT&CK: Credential Access (TA0006) – T1552 Unsecured Credentials; Persistence (TA0003) – T1078.004 Cloud Accounts.

title: Azure App Service Publishing Profile Retrieved Then Used For Basic Login
id: e4c61c2a-dcaf-47f7-9685-ac7fe75fc695
status: experimental
description: |
    Detects a publishing profile download followed, within one hour, by a basic-credential FTP, Web Deploy or Kudu login
    on the same App Service resource, the sequence Microsoft's Storm-2949 report describes. Hunting and
    hardening rule, not an exploit signature for CVE-2026-58630; the one-hour window is my choice, not a source value.
references:
    - https://www.microsoft.com/en-us/security/blog/2026/05/18/storm-2949-turned-compromised-identity-into-cloud-wide-breach/
    - https://github.com/DataDog/stratus-red-team/blob/main/docs/attack-techniques/azure/azure.credential-access.app-service-publishing-credentials.md
    - https://netsec101.com/?p=502
author: netsec101.com
date: 2026-11-25
tags:
    - attack.credential-access
    - attack.persistence
    - attack.t1552
    - attack.t1078.004
correlation:
    type: temporal_ordered
    rules:
        - azure_app_service_publishxml
        - azure_app_service_publishing_login_basic
    aliases:
        app_resource:
            azure_app_service_publishxml: resourceId
            azure_app_service_publishing_login_basic: _ResourceId
    group-by:
        - app_resource
    timespan: 1h
falsepositives:
    - A developer who downloads the profile and deploys with it from Visual Studio or an FTP client in the same hour
level: high

View on GitHub

False positives and tuning: a developer downloading the profile and deploying from Visual Studio in the same hour will trip it. That’s also a habit worth breaking. The join is on the resource ID, which the Activity log often writes in upper case and resource logs in lower case, so normalise case first. If your backend can’t convert Sigma correlations, this KQL does the same job in Sentinel or Log Analytics:

AzureActivity
| where OperationNameValue in~ ("MICROSOFT.WEB/SITES/PUBLISHXML/ACTION",
                                "MICROSOFT.WEB/SITES/SLOTS/PUBLISHXML/ACTION")
| project PullTime = TimeGenerated, Caller, CallerIpAddress, Site = tolower(_ResourceId)
| join kind=inner (
    AppServiceAuditLogs
    | where UserDisplayName !contains "@"
    | project LoginTime = TimeGenerated, User, UserAddress, Protocol, Site = tolower(_ResourceId)
  ) on Site
| where LoginTime between (PullTime .. (PullTime + 1h))
| project PullTime, LoginTime, Site, Caller, CallerIpAddress, User, UserAddress, Protocol

How to test: run the two tests above against the same lab app within the hour.

Azure App Service Basic Auth Publishing Policy Changed

Context: Microsoft’s guidance, and my advice in the analysis, is to disable FTP and SCM basic auth through the basicPublishingCredentialsPolicies resource. An attacker who wants the profile credentials to work flips it back. That should almost never happen once a tenant has rolled out the hardening.

Condition: alert on any write to the FTP or SCM basic auth policy of an app or slot, unless the logged request body shows "allow": false.

ATT&CK: Persistence (TA0003) – T1556 Modify Authentication Process.

title: Azure App Service Basic Auth Publishing Policy Changed
id: 3c3f0ea3-b47b-47c1-96f1-59e7ea4f1ee3
status: experimental
description: |
    Detects a write to the FTP or SCM basic authentication publishing policy of an App Service app or slot, unless the
    logged request body shows it being disabled. Re-enabling basic auth brings back long-lived deploy passwords. Hardening
    rule, not an exploit signature for CVE-2026-58630; the request body logic is inferred and depends on your export.
references:
    - https://learn.microsoft.com/en-us/azure/app-service/configure-basic-auth-disable
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/permissions/web-and-mobile
    - https://netsec101.com/?p=502
author: netsec101.com
date: 2026-11-25
tags:
    - attack.persistence
    - attack.t1556
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName:
            - 'MICROSOFT.WEB/SITES/BASICPUBLISHINGCREDENTIALSPOLICIES/WRITE'
            - 'MICROSOFT.WEB/SITES/SLOTS/BASICPUBLISHINGCREDENTIALSPOLICIES/WRITE'
    filter_main_disable:
        properties.requestbody|contains:
            - '"allow":false'
            - '"allow": false'
    condition: selection and not filter_main_disable
falsepositives:
    - Planned exceptions where a team needs FTP or Web Deploy basic auth for a legacy tool
    - Policy writes without a logged request body fire as well; check the resulting setting before escalating
    - ARM or Bicep deployments that re-apply the policy resource on every run
level: medium

View on GitHub

False positives and tuning: I built the filter as an exclusion on purpose. If your export doesn’t carry properties.requestbody for this operation (I couldn’t confirm that it does), the rule still fires on every policy write instead of going silent. Expect noise from ARM or Bicep templates that re-apply the policy on each deployment; exclude those deployment identities by caller. The Azure Policy remediation task that turns basic auth off will also show up if no request body is logged.

How to test: on a lab app, run Microsoft’s documented command with true instead of false: az resource update --resource-group <rg> --name scm --namespace Microsoft.Web --resource-type basicPublishingCredentialsPolicies --parent sites/<app> --set properties.allow=true. That covers SCM (Web Deploy and Git); use --name ftp for FTP, and note Microsoft says SCM basic auth must be on before FTP basic auth can be enabled. Repeat both with false to check the filter.

Azure App Service Source Control or Site Extension Changed

Context: pointing an app’s deployment source at a new repository, or installing a site extension, both can put code into the app. My view, not a documented fact: they draw less attention than dropping a file over FTP, and resetting the publishing credentials alone doesn’t undo them.

Condition: alert when someone writes the source control configuration or installs a site extension on an app or slot.

ATT&CK: Persistence (TA0003) – T1505 Server Software Component.

title: Azure App Service Source Control or Site Extension Changed
id: 4053a354-7f2c-413a-9b0d-98efe1ca0b68
status: experimental
description: |
    Detects changes to an App Service app's source control (deployment source) configuration, or installation of a site
    extension, on the app or a slot. Either one lets a caller run code inside the app. Hunting and hardening rule for
    App Service config abuse, not an exploit signature for CVE-2026-58630.
references:
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/permissions/web-and-mobile
    - https://learn.microsoft.com/en-us/azure/app-service/monitor-app-service-reference
    - https://netsec101.com/?p=502
author: netsec101.com
date: 2026-11-25
tags:
    - attack.persistence
    - attack.t1505
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName:
            - 'MICROSOFT.WEB/SITES/SOURCECONTROLS/WRITE'
            - 'MICROSOFT.WEB/SITES/SLOTS/SOURCECONTROLS/WRITE'
            - 'MICROSOFT.WEB/SITES/EXTENSIONS/WRITE'
            - 'MICROSOFT.WEB/SITES/SLOTS/EXTENSIONS/WRITE'
    condition: selection
falsepositives:
    - Initial setup of GitHub Actions or Azure DevOps deployment from the portal Deployment Center
    - Teams that install site extensions such as monitoring agents; scope to production apps and known owners
level: medium

View on GitHub

False positives and tuning: Deployment Center setup and monitoring-agent extensions are the usual hits. Both are one-off events per app, so the volume stays manageable. Scope to production subscriptions and route to the app owner rather than the SOC queue if you need to.

How to test: connect a test GitHub repository in Deployment Center on a lab app, or install any site extension on a Windows lab app.

Azure App Service Sensitive Settings or Functions Keys Listed

Context: config/list/Action returns what Microsoft calls security-sensitive settings: publishing credentials, app settings and connection strings. The listkeys actions return Functions host and function keys. For a retro-hunt this is where a credential grab would show up if it didn’t use the profile.

Condition: return every call that lists sensitive settings or Functions keys, for review by caller, IP and app.

ATT&CK: Credential Access (TA0006) – T1552 Unsecured Credentials.

title: Azure App Service Sensitive Settings or Functions Keys Listed
id: 26acce63-709c-4cbb-a608-6d163674c25d
status: experimental
description: |
    Hunting rule for listing App Service security-sensitive settings (publishing credentials, app settings, connection
    strings) or Azure Functions host and function keys through the management plane. Useful for a retro-hunt by caller
    and IP; noisy as an alert. Not an exploit signature for CVE-2026-58630.
references:
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/permissions/web-and-mobile
    - https://netsec101.com/?p=502
author: netsec101.com
date: 2026-11-25
tags:
    - attack.credential-access
    - attack.t1552
    - detection.threat-hunting
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName:
            - 'MICROSOFT.WEB/SITES/CONFIG/LIST/ACTION'
            - 'MICROSOFT.WEB/SITES/SLOTS/CONFIG/LIST/ACTION'
            - 'MICROSOFT.WEB/SITES/HOST/LISTKEYS/ACTION'
            - 'MICROSOFT.WEB/SITES/SLOTS/HOST/LISTKEYS/ACTION'
            - 'MICROSOFT.WEB/SITES/FUNCTIONS/LISTKEYS/ACTION'
            - 'MICROSOFT.WEB/SITES/SLOTS/FUNCTIONS/LISTKEYS/ACTION'
    condition: selection
falsepositives:
    - The portal Configuration and Function keys blades call these actions whenever someone opens them
    - Deployment pipelines, Terraform and the Azure CLI read settings and keys on every run
level: low

View on GitHub

False positives and tuning: opening the Configuration blade in the portal calls this, and so does every Terraform plan. Don’t alert on it. Stack it by caller and IP and read the bottom of the list, or join it to your list of identities that normally manage each app.

How to test: az webapp config appsettings list -g <rg> -n <app> or az functionapp keys list -g <rg> -n <app>.

Retro-hunting the pre-fix window

If your workspace still holds data from before July 24, 2026, start with a stack count rather than alerts. These are the two queries from the analysis draft, slightly widened to cover slots, deployments and slot swaps:

AzureActivity
| where TimeGenerated < datetime(2026-07-24)
| where OperationNameValue has "MICROSOFT.WEB/SITES"
| where OperationNameValue has_any ("PUBLISHXML/ACTION", "CONFIG/LIST/ACTION",
    "LISTKEYS/ACTION", "CONFIG/WRITE", "BASICPUBLISHINGCREDENTIALSPOLICIES/WRITE",
    "EXTENSIONS/WRITE", "SOURCECONTROLS/WRITE", "DEPLOYMENTS/WRITE", "SLOTSSWAP/ACTION")
| summarize events = count(), first = min(TimeGenerated), last = max(TimeGenerated)
    by Caller, CallerIpAddress, OperationNameValue, _ResourceId
| order by events asc

AppServiceAuditLogs
| where TimeGenerated < datetime(2026-07-24)
| summarize logins = count(), first = min(TimeGenerated), last = max(TimeGenerated)
    by _ResourceId, User, UserDisplayName, UserAddress, Protocol
| order by logins asc

Remember the retention maths from the analysis: the platform keeps the Activity log for 90 days, which on November 25 reaches back only to August 27. If you never exported it, these queries come back empty for July, and that tells you nothing about July.

Coverage and gaps

StepTacticTechniqueRuleCovered?
Exploit CVE-2026-58630Privilege EscalationUnknown, platform-side–Gap: no mechanism or tenant-visible trace published
Pull publishing profileCredential AccessT1552Publishing profile retrievedYes
List settings, connection strings, Functions keysCredential AccessT1552Settings or keys listedYes (hunting)
Log in with publishing credentialsPersistenceT1078.004Basic login + correlationYes, needs AppServiceAuditLogs
Re-enable basic authPersistenceT1556Basic auth policy changedYes
New deployment source or site extensionPersistenceT1505Source control or extension changedYes
Deployments, zip deploy, slot swaps, app settings rewritesPersistenceT1505–Gap: too routine for a rule; retro-hunt query only
App’s managed identity used against other resourcesCredential AccessT1528–Gap: needs a per-identity baseline
Files and environment variables read through KuduCollection––Gap: the Activity log typically does not capture read operations

The biggest gap is the one I can’t do anything about: the vulnerability itself. CWE-284 with scope changed suggests a boundary inside the platform, and Microsoft hasn’t said whether exploiting it would leave anything in tenant logs at all. Beyond that, two gaps are worth closing with other tools. Managed identity token misuse (MITRE’s T1528 page uses managed identity tokens as an example) needs a baseline of which resources each app identity normally calls, which is a UEBA job on AADManagedIdentitySignInLogs rather than a Sigma rule. Kudu file and environment reads are data-plane activity that the Activity log typically does not capture; the HTTP logs of the app’s SCM site may show some of it, but I haven’t verified what they record. For platform-side detection, Microsoft’s Storm-2949 report recommends Defender for App Service and names a Defender for Resource Manager alert, “Suspicious invocation of a high-risk ‘Credential Access’ operation detected (Preview)”. I haven’t tested what either one fires on.

Deploying the rules

Clone the repo, take the six files from Detection Rules/Cloud/Azure, and convert them with sigma-cli. For Sentinel or Log Analytics the Kusto backend fits best, but its azure_monitor pipeline is marked alpha and, per its README, maps fields only for SecurityEvent and SigninLogs. So pass a small custom pipeline that sets the table to AzureActivity and renames the fields. I checked that this pipeline loads and renames the fields with pySigma’s built-in test backend; I haven’t run it through the Kusto backend itself:

# azureactivity_pipeline.yml
name: AzureActivity table for azure/activitylogs rules
priority: 1
transformations:
- id: azureactivity_table
  type: set_state
  key: "query_table"
  val: ["AzureActivity"]
  rule_conditions:
  - type: logsource
    product: azure
    service: activitylogs
- id: azureactivity_fields
  type: field_name_mapping
  mapping:
    operationName: OperationNameValue
    resourceId: _ResourceId
  rule_conditions:
  - type: logsource
    product: azure
    service: activitylogs

# then
python -m pip install sigma-cli pysigma-backend-kusto
sigma check "Detection Rules/Cloud/Azure"
sigma convert -t kusto -p azure_monitor -p azureactivity_pipeline.yml azure_app_service_publishing_profile_retrieved.yml

The pipeline doesn’t map properties.requestbody, which in AzureActivity sits inside the Properties column, so adjust the basic auth policy rule by hand. For Splunk or Elastic you’ll map the fields yourself: operationName is the Event Hub schema name, and your add-on or integration may rename it. With no pipeline at all, sigma-cli needs --without-pipeline (for example sigma convert -t splunk --without-pipeline <file>) and keeps the field names as written. The AppServiceAuditLogs rule uses Log Analytics column names, so expect to remap it anywhere else. Not every backend converts Sigma correlations yet; where yours doesn’t, use the KQL join above. Run everything in alert-only mode for a week, baseline your pipeline identities, and only then page anyone. All six passed my structural validator (6 of 6 files, no errors or warnings) and sigma check (0 errors, 0 issues) on November 25, 2026. I haven’t converted them with a production backend or run them against a live workspace.

My take

Honestly, CVE-2026-58630 is barely detectable from where a customer sits, and I’d distrust anyone selling a “CVE-2026-58630 detection”. What you can detect is the playbook that follows any App Service takeover, and that playbook is well documented now. If I could turn on only one thing it would be the publishing profile rule, with a per-app caller baseline. It’s cheap, the telemetry is confirmed, and it sits on the exact step Storm-2949 relied on.

The better answer is to make the rules boring. Disable basic auth everywhere, and the profile becomes useless and the login rule goes quiet. Then the policy-change rule becomes your tripwire. I’d also like Microsoft to log App Service publishing logins by default rather than behind a per-app diagnostic setting. A platform that issues 10.0 cloud CVEs with “no customer action” should at least make sure customers have the logs to check that claim against their own tenants.

Sources

CVE-2026-58630: A CVSS 10 Azure App Service Flaw With Nothing to Patch

CVE-2026-58630: A CVSS 10 Azure App Service Flaw With Nothing to Patch

On July 23, 2026, Microsoft published a perfect 10.0 for Azure App Service. Network attack, no credentials, no user interaction, scope changed. Then, in the same advisory, it told every customer there was nothing to do. CVE-2026-58630 is the rare critical bug that you can’t patch, can’t scan for and, four months later, probably can’t fully investigate either.

That last part is why I’m writing about it now. Microsoft says the flaw is fully mitigated on its side. I believe that. But “mitigated” describes the platform after the fix, not your tenant before it, and the default Azure log retention windows have quietly rolled past July 23. If you want to know whether anything touched your apps before the fix, the clock has mostly run out unless you exported logs.

Severity: critical on paper, no known exploitation, zero patch work. The real work is a log question.

At a glance

  • CVE: CVE-2026-58630, CWE-284 (improper access control), elevation of privilege.
  • CVSS 3.1: 10.0 from Microsoft (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N, temporal 8.7). NVD’s own score is 9.8 (S:U, A:H).
  • Product: advisory title says “Azure App Service on Azure Stack Hub”; the CVE record and NVD list “Azure App Service for Linux”, version “-“.
  • Exploitation: Microsoft says not exploited and not publicly disclosed. CISA’s SSVC entry says exploitation none, automatable yes, technical impact total. Not in CISA’s KEV catalog (checked against catalog version 2026.11.25).
  • Fix: mitigated server-side by Microsoft. Customer action required: no.
  • Who should care: anyone running production workloads on App Service (especially Linux plans) who wants to rule out pre-fix abuse, and Azure Stack Hub operators confused by the title.

What we actually know

Very little, and I want to be precise about it. The MSRC entry went live on July 23, 2026 as part of the July 2026 release, revision 1. The full description is one sentence: improper access control in Azure App Service allows an unauthorized attacker to elevate privileges over a network. The FAQ adds that the issue “has already been fully mitigated by Microsoft” and that users have nothing to do. No researcher is credited.

NVD published the CVE on July 24, finished its analysis, and last modified the entry on October 24. The CVE record itself was updated again on November 19, 2026, without any new technical detail that I could find. Both carry the exclusively-hosted-service tag, which is Microsoft’s marker for “this lives only in our cloud, you don’t patch it”.

What nobody has published, as of November 25, 2026: the affected component, the attack surface (front end, Kudu, worker isolation, something else), when the bug was introduced, when the mitigation actually rolled out, and whether any tenant was notified. If you read a write-up that explains the mechanism, ask where it came from. The secondary coverage I checked, including the Safeguard.sh post from October 18, says plainly that the MSRC page could not be read, so it couldn’t describe the mechanism either. Some pages get the fix wrong: the IONIX threat center entry from July 24 tells readers to “Apply the security update published by Microsoft” and recommends immediate patching. There is no update to apply.

How it works, and why I can’t tell you

I won’t invent a mechanism. CWE-284 is the broadest access control bucket there is: “the system didn’t check whether you were allowed to do this”. What the vector does tell us is the shape of the problem.

PR:N and UI:N mean no account and no victim click. AC:L means no special conditions. C:H and I:H with A:N means reading and changing things, not knocking them over. The interesting part is S:C, scope changed. In CVSS terms that means the vulnerable component and the impacted component sit under different security authorities. On a multi-tenant platform, that is the kind of score you’d expect for a bug that crosses a boundary Microsoft relies on, such as from one app or sandbox into something it shouldn’t reach. I’m careful here: Microsoft has not said tenant-to-tenant, and S:C can also describe a jump from an app into the platform layer.

NVD disagreed. NIST scored it S:U with availability high, landing at 9.8. Two scorers, same one-line description, different reading of the blast radius. That tells me NIST didn’t have more information than the rest of us.

Then there is the name. The advisory title says Azure App Service on Azure Stack Hub, which is the version that customers run themselves on their own Stack Hub hardware. The affected-product field says Azure App Service for Linux, the public multi-tenant service. The MITRE record even uses a generic azure_app_service CPE while NVD uses azure_app_service_for_linux. A cloud-only tag plus “no customer action” fits the public service much better than a product you install and upgrade yourself. My read is that the title is the outlier, but that’s an inference, not something Microsoft has confirmed.

Timeline from Microsoft's June 2024 cloud CVE policy through the July 23, 2026 advisory, NVD publication and analysis, the Azure Stack Hub 26R1 release, the November 19 CVE record update, and the point where the 90-day activity log window passed the advisory date.
CVE-2026-58630 disclosure timeline. The start of the vulnerable window and the mitigation rollout date are not public.

Who is affected and how badly

Going forward, nobody. The open question is backward-looking: was it exploited before the fix, and did anyone notice? Microsoft says no exploitation, which is a statement about what Microsoft observed. It’s the best signal available and I’d weight it, but platform-level abuse may not leave traces in the logs a tenant can see.

For Azure Stack Hub operators I checked the App Service on Azure Stack Hub 26R1 release notes (build 102.20.2.2, announced September 28, 2026). They list runtime, Kudu and OS updates and two fixed issues, and they don’t mention CVE-2026-58630 or any CVE. I found no Stack Hub update tied to this bug. Combined with customerActionRequired set to false, I would not treat this as a Stack Hub patch item. If you run Stack Hub and want certainty, open a support case and ask directly; the title alone justifies the question.

My risk rating for a typical tenant: low residual risk, high uncertainty. Worth an hour of checking what your logs can still show.

The log retention problem

Here is the uncomfortable math. Azure keeps activity log events for 90 days and then deletes them. Counting back 90 days from November 25, 2026 lands on August 27, 2026, five weeks after the advisory. Entra sign-in and audit logs are kept for 7 days on Free and 30 days on P1/P2. App Service resource logs, like AppServiceAuditLogs, are not collected at all unless you set up a diagnostic setting.

So if you never exported anything, the portal can’t show you July. If you send logs to a Log Analytics workspace, Sentinel or a third-party SIEM with longer retention, you can still look. That’s the split that decides what you do next.

Bar chart comparing default Azure log retention as of November 25, 2026: activity log 90 days back to August 27, Entra sign-ins 30 days on P1/P2 and 7 days on Free, App Service resource logs not collected by default, all ending after the July 23 advisory date.
With default retention, none of the native Azure logs still cover the period before July 23, 2026.

What to do now

  1. Don’t open a patch ticket. There’s nothing to deploy. If a scanner or vendor feed flags this CVE against an asset, close it with a reference to the MSRC FAQ.
  2. Check retention first. Find out whether AzureActivity, AppServiceAuditLogs and the Entra sign-in tables reach back before the July 23, 2026 advisory in your workspace. If they don’t, write that down and move to hardening.
  3. If they do, run the hunt in the detection section below for the period before the July 23, 2026 advisory, starting as far back as your data allows. The queries end at July 24 so that time zone offsets don’t cut off the last hours of July 23. Nobody knows when the bug was introduced.
  4. Turn off basic auth publishing credentials. Set basicPublishingCredentialsPolicies/ftp and /scm to allow=false per Microsoft’s guide, and assign the built-in Azure Policy audit and remediation definitions. Long-lived username/password deploy creds are exactly what you’d want to steal after any access control bug.
  5. Rotate what an App Service app holds if you can’t rule things out: publishing profiles, connection strings and secrets in app settings, Functions host keys. Move secrets to Key Vault references and managed identity where you haven’t already.
  6. Fix the retention gap for next time. Export the activity log and Entra logs to a workspace or storage with at least a year of retention, and enable AppServiceAuditLogs on production apps. The next cloud CVE with no customer action will ask the same question.

Detection and monitoring

There are no IOCs for this CVE. Microsoft published none, and I won’t make any up. So nothing below detects the bug itself. What you can catch is what anyone does with elevated access to an App Service app: pull its deployment credentials and secrets, log in with them, and change the app’s config so access survives. That lives in two places: the Azure Activity log (control plane, collected by default but kept for 90 days) and AppServiceAuditLogs (FTP, Web Deploy and Kudu logins, a resource log that Microsoft says isn’t collected until you add a diagnostic setting).

I wrote six Sigma rules for that, all hunting and hardening rules rather than exploit signatures:

RuleCategoryLog sourceATT&CKLevel
Publishing profile retrievedCloud-AzureActivity logT1552Medium
Publishing login with basic credentialsCloud-AzureAppServiceAuditLogsT1078.004Low (hunting)
Profile retrieved, then basic login on the same app within an hour (correlation)Cloud-AzureActivity log + AppServiceAuditLogsT1552, T1078.004High
Basic auth publishing policy changed (not to disabled)Cloud-AzureActivity logT1556Medium
Source control or site extension changedCloud-AzureActivity logT1505Medium
Sensitive settings or Functions keys listedCloud-AzureActivity logT1552Low (hunting)

The one I’d turn on first is the publishing profile rule. A call to publishxml/action returns the app’s publishing profile, which Microsoft says often contains basic-auth credentials for FTP, Web Deploy and Kudu. Microsoft documented Storm-2949 using it in May 2026 to compromise App Service apps. Stratus Red Team’s sample event confirms the operation shows up in the Activity log, and Stratus notes it is logged even when basic auth is disabled. Alert on any caller, then baseline who legitimately downloads profiles per app.

title: Azure App Service Publishing Profile Retrieved
id: 1619694c-4499-4da8-b517-04386221afcb
name: azure_app_service_publishxml
status: test
description: |
    Detects retrieval of an App Service or slot publishing profile through the Azure management plane. Microsoft says the
    profile often contains basic-auth credentials for FTP, Web Deploy and Kudu; Storm-2949 used this action to compromise
    App Service apps. Hunting and hardening rule, not an exploit signature for CVE-2026-58630 (no IOCs are public).
references:
    - https://github.com/DataDog/stratus-red-team/blob/main/docs/attack-techniques/azure/azure.credential-access.app-service-publishing-credentials.md
    - https://www.microsoft.com/en-us/security/blog/2026/05/18/storm-2949-turned-compromised-identity-into-cloud-wide-breach/
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/permissions/web-and-mobile
    - https://netsec101.com/?p=502
author: netsec101.com
date: 2026-11-25
tags:
    - attack.credential-access
    - attack.t1552
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName:
            - 'MICROSOFT.WEB/SITES/PUBLISHXML/ACTION'
            - 'MICROSOFT.WEB/SITES/SLOTS/PUBLISHXML/ACTION'
    condition: selection
falsepositives:
    - Developers clicking "Download publish profile" in the portal, or Visual Studio and older pipeline tasks that import a profile
    - Infrastructure-as-code or backup tooling that exports profiles; baseline callers per app and alert on a new caller or IP
level: medium

For the retro-hunt, run the same conditions over everything your workspace holds before July 24, 2026, and sort by caller and IP so the rare ones float up. Keep expectations honest: a clean result means nothing suspicious reached your tenant-visible logs. It doesn’t prove the platform bug was never used against you, because the Activity log typically does not capture read operations and isn’t an authentication audit log. Going forward, keep the rules on as standing detections; “basic auth re-enabled” and “profile pulled, then used within the hour” are worth an alert in any tenant, CVE or not. There are no IOCs to age out here, only retention to extend.

I wrote up all six rules, with the KQL retro-hunt, tuning notes, lab tests and ATT&CK gaps, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

I’m glad this CVE exists. Since June 2024 Microsoft has committed to “issue CVEs for critical cloud service vulnerabilities, regardless of whether customers need to install a patch.” My guess is that before that policy, a fix like this would most likely have gone out without a CVE, since no customer had anything to install.

But a CVE with one sentence of description, a contradictory product name and two different CVSS vectors is transparency in format more than in substance. It tells you a 10.0 existed in a service you depend on and gives you nothing to judge your own exposure: no component, no rollout date, no exposure window. Customers need the window more than anything else. “Fixed before publication” without a “vulnerable since” leaves defenders guessing how far back to hunt.

The real lesson is about us, not Microsoft. Cloud CVEs with no customer action are going to keep arriving, and the only thing they ever ask of you is a look backward. Ninety days of activity log and thirty days of sign-ins can’t answer that. If your retention is still on defaults, fixing that is the one action this CVE actually gives you, and I’d do it this week. I’d also ask Microsoft, through your account team, for the exposure window. They’re the only ones who know it.

Sources

ARTEX: the AI pentest framework attackers kept after the takedown, and how to spot it

ARTEX: the AI pentest framework attackers kept after the takedown, and how to spot it

In one intrusion Unit 42 investigated this autumn, the attacker validated more than 200 stolen client secrets in about three minutes. In another, Huntress watched Microsoft Graph tokens get requested across customer tenants in sorted GUID order, the way a loop works through a list. No human types like that. Both cases are linked to ARTEX, an open-source “agentic” penetration testing framework that hands the tedious parts of an intrusion to large language models (LLMs).

On November 13, 2026 the FBI published FLASH-20261113-001, warning that a variety of threat actors have used ARTEX since at least August 2026 against sectors from banking to semiconductors. The original author pulled the GitHub repository on October 8. It made no difference: an English-language continuation is shipping releases as I write this, and ReversingLabs counts 11 fork families. I rate this high. There’s no patch because there’s no vulnerability, so this post skips the stale IP lists and focuses on behaviour that survives forks.

At a glance

  • What: ARTEX, a multi-agent LLM pentest framework written in Go, published on GitHub by “Autumn-27” in July 2026.
  • CVE / patch: none. Mitigation is identity, API and cloud-credential hardening plus behavioural detection.
  • Exploited: yes, per the FBI (its IOC tables also name Storm-3358), Microsoft (Storm-0940), CrowdStrike (VAPOR PANDA), Zscaler and Unit 42.
  • Speed: Microsoft saw initial targeting reach privileged access in under three hours in multiple cases.
  • Scale: the FBI cites more than 1,600 exposed ARTEX consoles in early November; ReversingLabs confirmed 969 live consoles and 3,147 associated IPs; Unit 42 counted 609 internet-facing hosts in October. Methods and dates differ.
  • Who should care: anyone with peripheral internet-facing apps, self-service password reset or registration, long-lived cloud keys, or multi-tenant vendor apps in Microsoft 365.

What we know

ARTEX takes an objective in plain language and has LLM agents pursue it from reconnaissance to exfiltration. It ships no model of its own. The FBI lists Claude, GPT, DeepSeek, GLM, Grok and Kimi as backends and says attacker instances mostly run Chinese models, DeepSeek’s Flash family above all, for cost and the lack of observable guardrails when a request is framed as a pentest.

The main campaigns, by primary source:

  • South Korean finance. Zscaler (October 14) describes a financially motivated, Chinese-speaking actor, first seen in late September, who used SQL injection and authentication bypass on peripheral web apps at multiple financial firms and exfiltrated PII on about 67,000 people. ARTEX’s default blocklist covered government and university domains, not banks. BleepingComputer names Shinhan, KB Kookmin and Hana; I haven’t seen those names in a primary source.
  • ConnectWise Cloud Backup. Microsoft (October 21) attributes this multi-tenant app compromise to Storm-0940, a China-state-aligned actor, which used ARTEX to attempt sign-ins to more than 2,250 downstream tenants. Huntress confirmed unauthorized sign-ins in 162 tenants as of October 16 and says it has not independently verified the ARTEX link.
  • VAPOR PANDA. CrowdStrike (October 29) says one ARTEX controller targeted more than 200 organizations in at least 14 countries over 11 days from October 17, with post-exploitation confirmed at nine.
  • Korean arrests. Seoul police arrested seven suspects over about 90 breached organizations and 8.2 million records, per Korea JoongAng Daily (October 26). That report doesn’t name ARTEX; BleepingComputer reports it was used in most of the intrusions.

Barracuda’s 44-hour cloud intrusion, where Barracuda says the tooling resembles ARTEX, fits the same pattern; I covered it in a separate post.

Timeline from ARTEX's July 2026 GitHub release through abuse from August, the October 8 takedown, the ConnectWise and VAPOR PANDA campaigns, the October 23 fork release and the November FBI FLASH.
Taking the original repo down on October 8 did not slow the campaigns or the forks.

How an ARTEX intrusion unfolds

Architecturally, ARTEX is a planner plus a pool of workers. The planner breaks the goal into small “intents”. Each worker claims one, runs ordinary tools (crawlers, fuzzers, template scanners, sqlmap) and writes results into a shared graph of assets and findings, which the planner reads to decide the next step (per the project’s own documentation). It isn’t fully hands-off: CrowdStrike saw a human operator issuing instructions in Chinese at decision points.

The bugs are old. The FBI’s technique table reads like a training deck: SQL injection, IDOR, SSRF, XXE, SSTI, unsigned SAML assertions, unauthenticated APIs, admin passwords hardcoded in JavaScript bundles. What changed is tempo. An agent never gets bored of the partner portal nobody owns, and it can work on many of them in parallel.

Five-step chain: map exposed specs, abuse self-service identity flows, validate a found credential within a minute, persist via OAuth app credentials, collect and exfiltrate.
A typical ARTEX-driven chain, based on Unit 42, Microsoft and FBI reporting.

A typical chain, pieced together from Unit 42, Microsoft and the FBI:

  1. Map the edge: pull exposed OpenAPI specs, source maps and config files, then hit the routes they reveal almost immediately.
  2. Abuse self-service identity: password reset, registration and verification-code flows. Unit 42 saw this reach cloud access in under a day with no software exploit.
  3. Validate credentials instantly: pivot within about a minute of finding a key, then probe permissions with sub-second checks, AWS DryRun calls, Azure ARM validation dry-runs and test blob writes and deletes.
  4. Persist in the identity plane: in the ConnectWise case, credentials added to existing OAuth apps and self-assigned directory roles. Microsoft shows more than 200 sign-ins in under four minutes using four app credentials.
  5. Collect and exfiltrate: the FBI lists mass blob reads, mailbox access, 100 GB staging volumes and output sent to rotating webhook.site endpoints.

The repo that would not stay down

I read BaaRai/ARTEX on GitHub only (no cloning, no running). It calls itself an English translation and continuation of Autumn-27/ARTEX, whose upstream “is no longer public”. This is not a snapshot reupload: the changelog carries upstream history back to version 0.3.2 (August 20, 2026), mostly credited to Autumn-27, and compare links switch from the original repo to the fork at v0.4.0. That first fork release landed on October 23, 15 days after the takedown. v0.7.0 shipped November 21 and commits were still landing on November 22. When I looked it showed about 15.4k stars, 5.9k forks and 1,298 commits, under AGPL-3.0 with an authorised-use disclaimer.

No source I read ties this fork to any attack, and it isn’t among ReversingLabs’ named fork families. It shows the ecosystem is alive and maintained. Architecturally, defenders should note:

  • Model choice is flexible: Anthropic, OpenAI, any OpenAI-compatible gateway and local Ollama, with failover and rotation across workers. Blocking one provider at your egress does nothing against an operator on their own server.
  • It records traffic: a man-in-the-middle proxy and a browser extension capture authenticated sessions, so agents can work behind a login a human set up.
  • A “noise governor” (v0.7.0, off by default) paces the tool’s own HTTP requests per host, with presets from 2 to 20 requests per second, adds jitter, backs off on 429/503 responses and lets the operator set the User-Agent. Raw scanners and commands that bypass its proxy aren’t paced.
  • A “php2shell” skill (v0.4.0) turns a file-inclusion finding into verified remote code execution, gated on program policy.

The noise governor matters for detection. A per-IP rate threshold tuned for noisy ARTEX misses an operator on the “quiet” preset, and a configurable User-Agent kills “Mozilla/5.0 (ARTEX)”, one of only three high-specificity UA strings ReversingLabs found. What pacing can’t remove is the model’s thinking time, or the agent’s habit of checking its own work.

Who is affected and how badly

Exposure is not tied to one product. The FBI stresses peripheral systems: partner and supplier portals, mobile backends, employee applications, sales-support systems, legacy services. No zero-day is needed when a staging API accepts unauthenticated writes, and an agent will find that faster than your next attack-surface review.

The supply-chain angle worries me more. ConnectWise showed that one compromised multi-tenant app credential gives an agent thousands of tenants to try. If you ever consented to a vendor app in Entra ID, you inherit that vendor’s key hygiene.

What to do now

  1. Remove public attack maps: OpenAPI specs, source maps and config files with tokens or client IDs, on production and staging. Stop returning stack traces and SQL errors to unauthenticated users.
  2. Require authentication on every write endpoint, including dev and staging, and server-side authorization on record access in partner and employee portals.
  3. Harden self-service flows: rate-limit and bot-protect reset, registration and verification codes; remove unauthenticated account-existence checks; block local passwords for workforce accounts in customer and partner IdPs; make sure a reset can never unlink a federated identity.
  4. Kill long-lived cloud keys in favour of role-based access, move function secrets to a secrets manager, and scan repos, images and build artifacts for secrets. ReversingLabs flags AI assistant credential folders (such as ~/.claude and ~/.codex) leaking into web roots and images.
  5. Audit multi-tenant apps in Entra ID by application ID, not display name. Review successful and failed service principal sign-ins separately, and look for credential additions, new owners and self-assigned roles since October 1, 2026. If you ever authorized the affected ConnectWise or SkyKick apps, disable them rather than deleting them (Huntress), and keep them disabled until ConnectWise gives restoration instructions (Microsoft).
  6. Restrict Kudu/SCM, backup, hypervisor and cloud admin interfaces to trusted networks and disable basic publishing auth (both FBI recommendations), and apply Conditional Access IP restrictions to high-privilege service principals.

Detection and monitoring

Unit 42 makes the key point: each ARTEX habit has an innocent explanation, and only the combination points to an agent. So I built most of the rules as Sigma correlations keyed on an object, an access key or an identity, not on per-IP request rates. The BaaRai fork’s noise governor adds jitter and lets the operator pick the User-Agent, which defeats rate thresholds and UA lists. It doesn’t change the fact that an agent writes a test object and deletes it, or reads every vault it can reach. You need web or WAF access logs, CloudTrail, Key Vault diagnostic logs, Entra ID audit logs and Windows process creation with command lines. Three of those are off by default: S3 data events, Key Vault diagnostics and the 4688 command-line field.

RuleCategoryLog sourceATT&CKLevel
ARTEX default User-Agent or canary valuesWeb/AppWeb server / WAFT1595.002Medium
Spec fetch, then API route sweep (correlation)Web/AppWeb server / WAFT1594, T1190Medium
S3 object written and deleted within a minute (correlation)Cloud-AWSCloudTrail S3 data eventsT1580, T1078.004Medium
DryRun sweep across five or more APIs (correlation)Cloud-AWSCloudTrailT1580, T1078.004Medium
Key Vault read burst across vaults (correlation)Cloud-AzureKey Vault AuditEventT1555.006Medium
App assigns a directory role to a service principalIdentityEntra ID audit logsT1098.003High
“artx”/”artex” command lines or artx5v folderWindowsProcess creationT1059High

The one I’d turn on first is the identity rule. In the ConnectWise case Huntress watched compromised multi-tenant apps assign themselves directory roles from 01:58 UTC on October 15. SigmaHQ already flags any role assigned to a service principal; this version keeps only assignments where the actor is itself an application, which is rare in most tenants and hard for an operator to tune away.

title: Entra ID Directory Role Assigned to a Service Principal by an Application
id: f0ade3d8-3877-4830-83f2-6d97006ca11c
status: test
description: |
    Detects a directory role assignment to a service principal where the actor is an application, not a user.
    Huntress saw compromised multi-tenant apps in the ConnectWise campaign assign themselves directory roles
    from 01:58 UTC on October 15, 2026. Narrows the SigmaHQ rule "App Assigned To Azure RBAC/Microsoft Entra
    Role" (b04934b2-0a68-4845-8a19-bdfed3a68a7a) to app-initiated changes.
references:
    - https://www.huntress.com/blog/vendor-credential-enables-unauthorized-access
    - https://www.microsoft.com/en-us/security/blog/2026/10/21/storm-0940-uses-artex-agentic-ai-connectwise-supply-chain-compromise/
    - https://github.com/SigmaHQ/sigma/blob/master/rules/cloud/azure/audit_logs/azure_app_role_added.yml
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1098.003
logsource:
    product: azure
    service: auditlogs
detection:
    selection_role:
        properties.message:
            - 'Add member to role'
            - 'Add eligible member to role'
            - 'Add scoped member to role'
        targetResources.type: 'Service Principal'
    selection_actor_app:
        initiatedBy.app.servicePrincipalId|exists: true
    condition: all of selection_*
falsepositives:
    - Identity governance or provisioning apps built to assign roles; list them by servicePrincipalId and exclude them
level: high

For monitoring, retro-hunt from at least October 1, 2026: the FBI says October 1, and Microsoft says October 15, or October 1 where logs go back that far. The string rules age fastest: CrowdStrike’s markers (“artx” or “artex” inside command lines, cloud role names prefixed “artx”, comments prefixed “art18-“) and the ReversingLabs User-Agent belong to specific operators and builds, and the FBI and ReversingLabs IP lists are for retro-hunting July to November 2026, not blocking. Think-then-act cadence, fixed-interval polling, read-after-write on APIs, 422 self-correction and credential-to-use latency have no rule here: they need timing statistics or joins with secret-scanning alerts that your SIEM can compute and Sigma can’t express. Also watch for unexpected internal calls to LLM APIs (api.anthropic.com, api.deepseek.com, open.bigmodel.cn, api.x.ai) and check your own ranges for ReversingLabs’ console favicon hash (mmh3 -576220750).

I wrote up all seven rules, with the correlation logic, tuning notes, lab tests and ATT&CK gaps, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

The coverage gets one thing wrong and one thing right. Wrong: ARTEX is not a new capability. Right: tempo is a real change, and it breaks programmes that assume days between initial access and impact. Under three hours to privileged access means the morning triage queue is a crime scene, not an early warning.

The takedown was never going to matter. The code was open source and already widely forked, and a maintained continuation shipped 15 days later. Pressuring a GitHub author is not a control. Removing the cheap wins agents feed on is: public specs, unauthenticated writes, reset flows that leak account existence, long-lived keys. Agents struggle when every error looks the same and no credential is lying around.

With one evening, I’d run two hunts: first use of any cloud key or app secret from a new IP in the last 90 days, and read-after-write pairs on public APIs. Both catch the agent’s habits rather than its infrastructure, and habits survive forks.

Sources

Detecting SAP Portal JNDI injection CVE-2025-42884: 5 Sigma rules from request to shell

Detecting SAP Portal JNDI injection CVE-2025-42884: 5 Sigma rules from request to shell

CISA put CVE-2025-42884 in its Known Exploited Vulnerabilities catalog on November 20, 2026 and gave agencies until November 23. What it didn’t give anyone is something to search for. No IOCs, no request samples, no attacker infrastructure, no vulnerable parameter name. SAP’s note is behind a login, and I found no detection guidance from the researchers credited with the bug, though I couldn’t open their advisory. If you run SAP NetWeaver Enterprise Portal 7.50 and want to know whether somebody already used this on you, you’re hunting blind.

Not completely blind, though. JNDI injection is a well-understood bug class, and it has to touch a few things you can log. The background (what the bug is, why a 6.5 deserves RCE-class priority, what to patch) is in my analysis of the bug. This post is the detection side: five experimental Sigma rules, the telemetry they need, honest false-positive notes and the gaps none of them close.

At a glance

  • Rules: 5 (two high, three medium), all hunting heuristics built from the bug class, none from observed attacks
  • Domains: Web/App (two rules), Linux (two rules), Windows (one rule)
  • Log sources: reverse proxy or portal HTTP access logs with full query strings; host network connection events with process image (Sysmon event 3, Sysmon for Linux or EDR); Linux process creation with parent image
  • ATT&CK: T1190 Exploit Public-Facing Application; T1059.004 Unix Shell and T1105 Ingress Tool Transfer for the post-exploitation rule
  • Status: all experimental
  • YAML: Detection Rules repo on GitHub (Web-App, Linux and Windows folders)

The case in brief

The CVE record says an unauthenticated attacker can inject JNDI environment properties, or pass a URL that the portal uses during a JNDI lookup, and so reach “an unintended JNDI provider”. SAP scores the result as limited disclosure or modification of server information. Onapsis, which found the bug, claims more: according to Rescana’s summary of the Onapsis advisory, the lookup can be pointed at an attacker-run RMI registry and, with a usable gadget chain and no deserialization filter, end in code execution. I couldn’t verify that claim, and CISA says nothing about what the observed exploitation achieved. The analysis has the details.

That gives three moments to catch: the request (if the properties or URL travel in the query string), the callback from the portal’s Java server to the attacker’s provider, and, only if the RCE claim holds, a shell or download tool started by the Java process. Everything specific here (match strings, ports, process names) is my inference from the bug class. The one piece I could anchor in a source is the process name: WithSecure’s write-up of the 2025 NetWeaver attacks shows the SAP Java launcher as jstart.EXE under \usr\sap\<SID>\J00\exe\ on Windows. That the server process image is also jstart on Linux is my assumption; check it with ps on your own hosts before you rely on rules 3 and 5.

Detection map

Detection map: proxy and portal access logs, host network events and Linux process creation feed five Sigma rules (JNDI property in request, provider URL in request, Java server outbound LDAP or RMI on Linux and Windows, shell from Java server) mapped to T1190 and T1059.004/T1105, with POST bodies, odd ports and in-memory payloads marked as gaps.
Which telemetry feeds which rule, and what stays dark. All five rules are experimental hunting heuristics; no IOCs have been published.

Left to right: access logs feed the two request rules, host network events feed the Linux and Windows callback rules, and Linux process creation feeds the shell rule. The callback rules are the ones I trust most in principle, because a JNDI injection that works has to connect somewhere, however the request was encoded. The dashed box is what stays dark: injection in POST bodies or headers, callbacks on non-standard ports or over DNS, and any payload that never starts a process.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
JNDI environment property in SAP portal requestWeb/AppwebserverInitial Access / T1190HighExperimental
JNDI provider URL scheme in SAP portal requestWeb/AppwebserverInitial Access / T1190MediumExperimental
SAP Java server outbound LDAP or RMI to public IP (Linux)Linuxlinux / network_connectionInitial Access / T1190MediumExperimental
SAP Java server outbound LDAP or RMI to public IP (Windows)Windowswindows / network_connectionInitial Access / T1190MediumExperimental
Shell or download tool spawned by SAP Java server (Linux)Linuxlinux / process_creationExecution / T1059.004, Command and Control / T1105HighExperimental

The rules

JNDI environment property in SAP portal request

Context: the CVE text names “JNDI environment properties” as one of the two injection paths. In Java those properties have fixed, documented names that all start with java.naming.: the provider URL, the initial context factory, the object and URL factory packages, the security principal. If an attacker sends them in a GET request, the name has to appear in the query string.

Condition: alert when the request URI or query string contains java.naming., or its URL-encoded form java%2enaming. Sigma’s contains is case-insensitive, so %2E matches too. I put the stem in a second selection because some parsers keep the whole URI in one field.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Potential CVE-2025-42884 Exploitation - JNDI Environment Property in SAP Portal Request
id: 06184bae-fd4a-4a75-896c-0af780ed4e0b
status: experimental
description: |
    Hunting heuristic for CVE-2025-42884: detects HTTP requests whose URI or query string carries a standard
    JNDI environment property name (java.naming.*), plain or URL-encoded. The CVE describes unauthenticated
    injection of JNDI environment properties into SAP NetWeaver Enterprise Portal. No IOCs or request samples
    are public, so the match strings are inferred from the bug class, not from observed attacks.
references:
    - https://cveawg.mitre.org/api/cve/CVE-2025-42884
    - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-42884
    - https://support.sap.com/en/my-support/knowledge-base/security-notes-news/bulletin-2025.html
    - https://netsec101.com/?p=429
author: netsec101.com
date: 2026-11-22
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2025-42884
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_query:
        cs-uri-query|contains:
            - 'java.naming.'
            - 'java%2enaming'
    selection_stem:
        cs-uri-stem|contains:
            - 'java.naming.'
            - 'java%2enaming'
    condition: 1 of selection_*
falsepositives:
    - Vulnerability scanners and authorised penetration tests probing for JNDI injection
    - Administrators testing JNDI or UME settings through the portal from an internal admin workstation (scope the rule to external or reverse-proxy traffic)
level: high

View on GitHub

False positives and tuning: I expect very few from outside. Scanners that probe for JNDI injection will hit it, and an administrator testing JNDI or UME settings through the portal might. Scope the rule to logs from your reverse proxy or to requests from outside your admin networks, and it should stay quiet enough for high. The blind spot is the request body: if the vulnerable endpoint takes these properties in a POST, access logs won’t show them, and you need WAF or reverse proxy body logging to see them.

How to test: send a harmless GET to a lab web server whose logs you ship, with ?test=java.naming.provider.url in the query, and confirm the alert. No exploit involved; the log line is the test.

JNDI provider URL scheme in SAP portal request

Context: the other injection path in the CVE is a URL used during the lookup. JNDI providers that matter for this bug class take ldap://, ldaps://, rmi://, iiop:// or dns:// URLs. Unlike Log4Shell, there is no ${jndi: wrapper here, so SigmaHQ’s Log4j rules, which match on the wrapper, won’t catch a bare provider URL. I borrowed the scheme list from SigmaHQ’s “Log4j RCE CVE-2021-44228 Generic” rule by Florian Roth; the logic is my own.

Condition: alert when the URI or query string matches one of those schemes followed by ://, with the colon and slashes plain, URL-encoded or double-encoded. The regex is case-insensitive. It does not match ordinary links such as http://ldap.example.com/.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Potential CVE-2025-42884 Exploitation - JNDI Provider URL Scheme in SAP Portal Request
id: debb5055-ec28-4b73-bf08-4d7c766bba3d
status: experimental
description: |
    Hunting heuristic for CVE-2025-42884: detects HTTP requests whose URI or query string contains a
    JNDI-capable provider URL (ldap, ldaps, rmi, iiop, dns), plain, URL-encoded or double-encoded. The CVE
    says an attacker can pass a URL used during a JNDI lookup. No IOCs are public; the logic is inferred
    from the bug class and will also fire on Log4Shell-style spraying.
references:
    - https://cveawg.mitre.org/api/cve/CVE-2025-42884
    - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-42884
    - https://netsec101.com/?p=429
author: netsec101.com
date: 2026-11-22
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2025-42884
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_query:
        cs-uri-query|re|i: '(ldaps?|rmi|iiop|dns)(:|%3a|%253a)(/|%2f|%252f){2}'
    selection_stem:
        cs-uri-stem|re|i: '(ldaps?|rmi|iiop|dns)(:|%3a|%253a)(/|%2f|%252f){2}'
    condition: 1 of selection_*
falsepositives:
    - Internet-wide Log4Shell and JNDI scanners (expected background noise on any exposed web server; triage by response code and by outbound connections from the portal host)
    - Portal or UME administration pages that take an LDAP server URL as a parameter (usually POST bodies, which access logs do not record)
    - Redirect or deep-link parameters that legitimately embed an ldap:// URL (rare; allowlist by cs-uri-stem)
level: medium

View on GitHub

False positives and tuning: this is the noisy one. Any internet-facing web server still gets Log4Shell-style spraying, and much of it carries ldap:// URLs. Don’t page on every hit. Group by source IP and check whether the portal host connected out to the host named in the URL shortly afterwards: that correlation turns a scanner hit into an incident. Admin pages that take an LDAP URL usually send it in a POST body, which access logs don’t record. If the volume is high, drop the level to low and use it for hunting.

How to test: request ?ref=ldap%3A%2F%2Ftest.invalid%2Fx against a lab web server. The .invalid top-level domain never resolves, so nothing leaves your network.

SAP Java server outbound LDAP or RMI to public IP (Linux)

Context: a successful JNDI injection makes the server talk to a provider the attacker chose. For the RCE path Onapsis describes, that’s an RMI registry; for classic JNDI tricks, an LDAP server. Either way the connection starts from the SAP Java server process, and a portal has little reason to talk LDAP or RMI to the internet. This rule sees the callback regardless of how the request was encoded or whether it came in a body.

Condition: alert when jstart (or a java binary under /usr/sap/) opens a connection to a non-private IP on port 389 (LDAP), 636 (LDAPS), 3268 or 3269 (Active Directory global catalog) or 1099 (the default RMI registry port).

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application. The callback is part of the exploit, so I map it there rather than inventing a C2 technique for it.

title: SAP NetWeaver Java Server Outbound LDAP or RMI Connection to Public IP - Linux
id: 7fd81d3d-f4d9-4b13-85b8-61f056e16923
status: experimental
description: |
    Hunting heuristic: detects the SAP NetWeaver AS Java server process (jstart, or a java binary under
    /usr/sap/) opening an outbound connection to a non-private address on an LDAP, LDAPS, global catalog or
    RMI registry port. A JNDI injection such as CVE-2025-42884 makes the server contact an attacker-chosen
    provider; this is that callback. Process names and ports are inferred, not from observed attacks.
references:
    - https://cveawg.mitre.org/api/cve/CVE-2025-42884
    - https://labs.withsecure.com/publications/netweaver-cve-2025-31324
    - https://netsec101.com/?p=429
author: netsec101.com
date: 2026-11-22
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2025-42884
logsource:
    product: linux
    category: network_connection
detection:
    selection_img_jstart:
        Image|endswith: '/jstart'
    selection_img_java:
        Image|contains: '/usr/sap/'
        Image|endswith: '/java'
    selection_port:
        DestinationPort:
            - 389
            - 636
            - 1099
            - 3268
            - 3269
    filter_main_private:
        DestinationIp|cidr:
            - '10.0.0.0/8'
            - '172.16.0.0/12'
            - '192.168.0.0/16'
            - '127.0.0.0/8'
            - '169.254.0.0/16'
            - '100.64.0.0/10'
            - '::1/128'
            - 'fc00::/7'
            - 'fe80::/10'
    condition: 1 of selection_img_* and selection_port and not filter_main_private
falsepositives:
    - Portals configured against a directory hosted on public address space (cloud LDAP or a partner directory); add those destinations to a filter
    - Organisations that use public IP ranges internally; replace the private-range filter with your own internal ranges
level: medium

View on GitHub

False positives and tuning: the main one is a portal that really does use a directory on public address space, such as a cloud LDAP service or a partner directory. Add those destinations as a filter. If your company uses public IP ranges internally, replace the private-range filter with your own ranges. Attackers can use any high port, so also run a version without the port selection as a weekly hunt and stack the destinations. Without host telemetry, use firewall logs: outbound flows from portal IPs to non-allowlisted destinations.

How to test: you can’t safely make the SAP server do a JNDI lookup on demand, so replay a network connection event into a test index instead. Set the image to your real jstart path, destination port 389 and a documentation address such as 203.0.113.10.

SAP Java server outbound LDAP or RMI to public IP (Windows)

Context: the same callback idea for portals on Windows, which is where WithSecure saw jstart.EXE in the 2025 NetWeaver investigations. It needs Sysmon event 3 or an EDR that records the initiating process.

Condition: alert when jstart.exe (or java.exe under \usr\sap\) initiates a connection to a non-private IP on 389, 636, 3268, 3269 or 1099.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: SAP NetWeaver Java Server Outbound LDAP or RMI Connection to Public IP - Windows
id: f7521fb5-300b-4416-97d4-6fec90c317f9
status: experimental
description: |
    Hunting heuristic: detects the SAP NetWeaver AS Java server process (jstart.exe, or java.exe under
    \usr\sap\) initiating a connection to a non-private address on an LDAP, LDAPS, global catalog or RMI
    registry port. A JNDI injection such as CVE-2025-42884 makes the server contact an attacker-chosen
    provider; this is that callback. Process names and ports are inferred, not from observed attacks.
references:
    - https://cveawg.mitre.org/api/cve/CVE-2025-42884
    - https://labs.withsecure.com/publications/netweaver-cve-2025-31324
    - https://netsec101.com/?p=429
author: netsec101.com
date: 2026-11-22
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2025-42884
logsource:
    product: windows
    category: network_connection
detection:
    selection_img_jstart:
        Image|endswith: '\jstart.exe'
    selection_img_java:
        Image|contains: '\usr\sap\'
        Image|endswith: '\java.exe'
    selection_net:
        Initiated: 'true'
        DestinationPort:
            - 389
            - 636
            - 1099
            - 3268
            - 3269
    filter_main_private:
        DestinationIp|cidr:
            - '10.0.0.0/8'
            - '172.16.0.0/12'
            - '192.168.0.0/16'
            - '127.0.0.0/8'
            - '169.254.0.0/16'
            - '100.64.0.0/10'
            - '::1/128'
            - 'fc00::/7'
            - 'fe80::/10'
    condition: 1 of selection_img_* and selection_net and not filter_main_private
falsepositives:
    - Portals configured against a directory hosted on public address space (cloud LDAP or a partner directory); add those destinations to a filter
    - Organisations that use public IP ranges internally; replace the private-range filter with your own internal ranges
level: medium

View on GitHub

False positives and tuning: same as the Linux version. Many Windows-hosted portals authenticate against Active Directory over 389 or 3268, but to internal addresses, which the private-range filter removes. If your domain controllers sit on public ranges, filter them by address. Some Sysmon configs drop network events for noisy processes, so check that yours doesn’t exclude jstart.exe.

How to test: replay a Sysmon event 3 with the image set to your jstart.exe path, Initiated true, destination port 1099 and destination 203.0.113.10.

Shell or download tool spawned by SAP Java server (Linux)

Context: this rule only matters if the RCE claim holds. If it does, whatever the attacker runs starts inside the Java server, and the first visible step is usually a shell, an interpreter or a download tool. SigmaHQ already has “Suspicious Child Process of SAP NetWeaver – Linux” (from Elastic’s idea, written for the 2025 Visual Composer attacks), but it keys on the IRJ web application directories, which suits web shells. A JNDI or deserialization payload runs in the server process itself, so I key on the parent image instead. Elastic’s “Suspicious Java Child Process” follows the same idea for any Java parent.

Condition: alert when jstart (or a java binary under /usr/sap/) starts sh, bash, dash, ksh, zsh, busybox, python, perl, curl, wget, nc, ncat or socat.

ATT&CK: Execution (TA0002) – T1059.004 Unix Shell; Command and Control (TA0011) – T1105 Ingress Tool Transfer.

title: Shell or Download Tool Spawned by SAP NetWeaver Java Server Process - Linux
id: 6b5f1a48-c9b3-4966-980f-beed8b0a5a7e
status: experimental
description: |
    Detects the SAP NetWeaver AS Java server process (jstart, or a java binary under /usr/sap/) starting a
    shell, scripting interpreter or network/download tool. If a JNDI injection such as CVE-2025-42884 is
    chained into code execution (an Onapsis claim, unconfirmed), the payload runs as a child of the Java
    server. Complements the SigmaHQ CVE-2025-31324 rule, which keys on IRJ web-application paths instead.
references:
    - https://cveawg.mitre.org/api/cve/CVE-2025-42884
    - https://www.rescana.com/post/sap-netweaver-enterprise-portal-cve-2025-42884-jndi-injection-kev-patch-now
    - https://detection.fyi/sigmahq/sigma/emerging-threats/2025/exploits/cve-2025-31324/proc_creation_lnx_sap_netweaver_susp_child_process/
    - https://netsec101.com/?p=429
author: netsec101.com
date: 2026-11-22
tags:
    - attack.execution
    - attack.t1059.004
    - attack.command-and-control
    - attack.t1105
    - cve.2025-42884
logsource:
    product: linux
    category: process_creation
detection:
    selection_parent_jstart:
        ParentImage|endswith: '/jstart'
    selection_parent_java:
        ParentImage|contains: '/usr/sap/'
        ParentImage|endswith: '/java'
    selection_child:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
            - '/ksh'
            - '/zsh'
            - '/busybox'
            - '/python'
            - '/python3'
            - '/perl'
            - '/curl'
            - '/wget'
            - '/nc'
            - '/ncat'
            - '/socat'
    condition: 1 of selection_parent_* and selection_child
falsepositives:
    - SAP-delivered or custom jobs that run OS commands from the Java stack (for example scripts started through NetWeaver Administrator or a scheduler); baseline the CommandLine values for two weeks and filter them by exact match
    - Support engineers running OS diagnostics through SAP tooling
level: high

View on GitHub

False positives and tuning: some SAP shops run OS commands from the Java stack on purpose, through NetWeaver Administrator, a job scheduler or custom code. Run the rule silently for two weeks, list the command lines it catches and filter the legitimate ones by exact match, not by a broad contains an attacker could imitate. If the baseline is clean, keep it at high.

How to test: on a lab Linux host with Sysmon for Linux or EDR, copy /bin/bash to /tmp/test/jstart and run /tmp/test/jstart -c '/bin/sh -c id; true'. The trailing ; true stops bash from replacing itself, so /bin/sh becomes a real child of a process whose image ends in /jstart. Not on a production SAP host.

Coverage and gaps

Step in caseTacticTechniqueRuleCovered?
JNDI properties in requestInitial Access (TA0001)T1190JNDI environment property ruleYes, query string only
Provider URL in requestInitial Access (TA0001)T1190Provider URL scheme ruleYes, query string only
Injection in POST body or headersInitial Access (TA0001)T1190NoneGap: access logs don’t record bodies
Callback to attacker LDAP or RMIInitial Access (TA0001)T1190Linux and Windows callback rulesYes on standard ports; gap for high ports, IIOP, DNS
Information read or changedCollection / ImpactUnknownNoneGap: no telemetry for what the lookup returned
Possible RCE, shell or download on LinuxExecution (TA0002), C2 (TA0011)T1059.004, T1105Java server child process ruleYes
Possible RCE on a Windows hostExecution (TA0002)T1059.001 / T1059.003None of minePartly: SigmaHQ’s CVE-2025-31324 Windows rule covers IRJ paths only
In-memory payload, no new processExecution / PersistenceUnknownNoneGap: needs JVM-level or EDR memory telemetry

The biggest hole is that nobody has said which endpoint or parameter is vulnerable, or whether the payload goes in a GET or a POST. If it’s a POST, both web rules are blind and the callback rules carry the load. The second hole is the payload that never forks: code running in a JVM can do a lot without a shell. What would help: body logging at the reverse proxy or WAF for portal paths, deny-by-default egress on SAP Java hosts (every blocked callback becomes a firewall log line), and the NetWeaver default trace in your SIEM so naming exceptions from portal requests are searchable, a check SentinelOne’s entry also suggests. A published request sample would allow a proper Suricata signature.

For a quick retro-hunt before you deploy anything, the same strings work with grep over raw access logs:

grep -Eai "(ldaps?|rmi|iiop|dns)(:|%3a|%253a)(/|%2f|%252f){2}|java(\.|%2e)naming" \
  /path/to/reverse-proxy/access*.log /path/to/httpaccess/*.log

Deploying the rules

Grab the YAML from the GitHub repo and convert it with sigma-cli after installing the backend plugin for your SIEM. Pick a pipeline that matches each rule’s log source: the Windows rule works with the standard Windows pipelines, while the web and Linux rules need your own field mappings for cs-uri-query, cs-uri-stem, Image, ParentImage and DestinationIp. A few examples (I haven’t run these here; check the target and pipeline names against the sigma-cli plugins you have installed):

sigma convert -t splunk -p splunk_windows net_connection_win_sap_java_outbound_ldap_rmi_public.yml
sigma convert -t lucene -p ecs_windows net_connection_win_sap_java_outbound_ldap_rmi_public.yml
sigma convert -t kusto -p microsoft_xdr net_connection_win_sap_java_outbound_ldap_rmi_public.yml
sigma convert -t splunk --without-pipeline web_cve_2025_42884_sap_portal_jndi_property_in_request.yml

Check two things in the converted queries. The |re|i regex in the URL scheme rule needs a backend that supports case-insensitive regex; if yours doesn’t, lower-case the field first or expand the pattern. And the |cidr filters need the destination IP field mapped as an IP type, otherwise some backends silently match nothing. Run all five in alert-only mode for a week before anything pages a human.

My take

This bug is hard to detect well from the request side. Without a known endpoint or request sample, the web rules are educated guesses that catch lazy GET-based exploitation and plenty of scanner noise. The callback is where I’d put my effort. A portal server connecting to an unknown LDAP or RMI server on the internet is suspicious for this CVE, for the next JNDI bug and for Log4Shell-style payloads hitting any Java component on that box. If I could turn on only one rule, it would be the callback rule for whichever OS your portals run on, paired with an egress deny policy so the attack fails even when the alert is missed.

What I’d like from SAP is a log line. The fix validates request parameters; logging the rejected ones, with the parameter name, would give every customer a high-fidelity signal for free. Until then, if your portal was on the internet and unpatched at any point since November 11, 2025, the absence of alerts from these rules is weak evidence, and I’d treat it that way.

Sources

Detecting Java4Shell: 4 Sigma rules for trigger-shaped headers and JVM crashes

Detecting Java4Shell: 4 Sigma rules for trigger-shaped headers and JVM crashes

Java4Shell is an awkward bug to detect. There are no IOCs, no exploit in the wild as of November 18, 2026, and the vulnerable code is not in any application you could put a WAF signature in front of: it is hand-written assembly inside the JVM’s JIT compiler. It is reached when attacker input goes to the java.util.Base64 basic or URL decoder after C2 has compiled it, on a CPU with AVX-512 VBMI. The patch is the answer. Detection is what tells you whether someone got there first, or is trying to knock your SSO server over while you wait for a maintenance window.

If you want the bug first, read my analysis of Java4Shell (CVE-2026-114938). This post is the detection side: four behaviour-based Sigma rules, the telemetry each one needs, tuning, safe tests, a correlation for “decode errors, then a crash”, corrected inventory and crash-log commands, and a plain list of what none of it can see.

At a glance

  • Rules: 4 (one high, three medium). No IOC rules, because no IOCs have been published.
  • Domains: Web/App (two header rules and one JVM output rule) and Cross-Platform (crash-log file creation on Windows and Linux).
  • Log sources you need: a WAF, reverse proxy or API gateway that can inspect the Authorization header (not logged by default, and for good reason), file creation events on Java hosts (Sysmon EID 11 or an EDR), and the stdout of Java services (journald, container and pod logs).
  • ATT&CK: T1190 Exploit Public-Facing Application, T1499.004 Endpoint Denial of Service: Application or System Exploitation.
  • Status: three rules are test because the behaviour they match is confirmed by Calif, VulnCheck or Oracle’s documentation; the JWT rule is experimental because it rests on reasoning, not observed traffic.
  • YAML: Detection Rules repo on GitHub (Web-App and Cross-Platform folders).

The case in brief

On x86-64 CPUs with AVX-512 VBMI, HotSpot’s C2 compiler replaces hot java.util.Base64 decode calls with a vectorised routine. Calif found that this routine miscounts = padding: the remaining-length counter drops below zero, the store mask becomes “all lanes”, and 62 bytes land past the end of the output array. The decoder then throws an ordinary IllegalArgumentException (in OpenJDK’s source, the message is “Input byte array has wrong 4-byte ending unit”), so the application sees bad input while its heap is already damaged.

Three facts matter for detection. Warming the decoder with valid input looks like normal traffic. The trigger is Base64 ending in padding just past a 64-character block, an impossible length for valid Base64. And short of a finished chain, the outcome is a crash: VulnCheck says a burst of requests reliably brought a service down, and Calif says failed grooming can crash the JVM. Routes include Basic headers, JWTs, body fields, WebSocket frames and a client-side TLS case (Calif, Equixly, HeroDevs). The full chain is in the analysis.

Detection map

Block diagram: WAF or proxy logs, file creation events and Java service output feed four Sigma rules (Basic auth impossible padding, JWT with padding, hs_err_pid log created, fatal error banner) mapped to T1190 and T1499.004, with body, WebSocket and TLS routes and post-exploitation marked as gaps.
Three telemetry sources, four rules. The input is caught at the edge, the crash on the host.

Two rules read the Authorization header for input no honest client sends. Two catch the JVM crashing, once as a file on disk and once as the header it prints to standard output. The red boxes are the gaps: Base64 in bodies, WebSocket frames and the TLS client route never reach a standard log, and SigmaHQ already covers post-exploitation.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
Basic Authorization with impossible Base64 paddingWeb/Appwebserver (WAF, proxy)Initial Access, Impact / T1190, T1499.004Hightest
JWT Bearer token containing paddingWeb/Appwebserver (WAF, proxy)Initial Access, Impact / T1190, T1499.004Mediumexperimental
JVM fatal error log hs_err_pid createdCross-Platformfile_eventImpact, Initial Access / T1499.004, T1190Mediumtest
JVM fatal error banner in application outputWeb/Appjvm / applicationImpact, Initial Access / T1499.004, T1190Mediumtest

Sigma has no standard field for request headers, so the header rules use cs-authorization. Map it to your WAF’s field, or better, run the logic in the WAF and log only the match.

The rules

Basic Authorization with impossible Base64 padding

Context: the HTTP Basic header is the most widely reachable pre-auth route. Equixly says Spring Security decodes it with java.util.Base64 before any password check, and HeroDevs adds Jetty’s BasicAuthenticator and Tomcat’s BasicAuthenticator (9.0.89 and later, 10.1.23 and later) as routes. Equixly suggested flagging invalid padding here. This is the rule I would turn on first.

Condition: alert when a Basic credential has at least 32 Base64 characters, ends in one or two =, and its total length is not a multiple of four. Padded Base64 from any real encoder always is, so this matches only hand-built or corrupted values. The regular expression spells out the four invalid cases (zero, one, two or three characters after the last full block, combined with the wrong amount of padding). I tested it offline against valid encodings of 1 to 79 bytes (no match) and every combination of 28 to 139 characters with one or two =. The 32-character floor follows Equixly’s note that Java 21 and 25 need more than 31 bytes of input to reach the vulnerable path (Java 17 needs more than 128).

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application; Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation.

title: Java4Shell Trigger Shape - Basic Authorization With Impossible Base64 Padding
id: 9dc30520-911b-44ef-a532-16ff2ef66e47
name: java4shell_basic_auth_impossible_padding
status: test
description: |
Detects HTTP Basic Authorization values of 32 or more Base64 characters that end in '=' padding but whose
total length is not a multiple of four, which no valid encoder produces. This is the input shape that
triggers the CVE-2026-114938 (Java4Shell) heap overflow in the HotSpot AVX-512 Base64 decode intrinsic.
references:
- https://calif.io/java4shell/
- https://equixly.com/blog/2026/11/17/cve-2026-114938-pre-auth-heap-overflow-in-java-17-21-and-25/
- https://www.vulncheck.com/blog/java4shell
- https://netsec101.com/?p=326
author: netsec101.com
date: 2026-11-18
tags:
- attack.initial-access
- attack.impact
- attack.t1190
- attack.t1499.004
- cve.2026-114938
- detection.emerging-threats
logsource:
category: webserver
definition: 'Requirement: a WAF, reverse proxy or API gateway that can inspect the Authorization request header, mapped to the field cs-authorization. Access logs do not record this header by default, and storing Basic credentials in a SIEM is a risk in itself: prefer running this logic inside the WAF and logging only the verdict.'
detection:
selection_impossible_padding:
cs-authorization|re: '^[Bb][Aa][Ss][Ii][Cc] +(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]?={1,2}|[A-Za-z0-9+/]{2}=|[A-Za-z0-9+/]{3}==)$'
selection_min_length:
cs-authorization|re: '^[Bb][Aa][Ss][Ii][Cc] +[A-Za-z0-9+/]{32}'
condition: all of selection_*
falsepositives:
- Vulnerability scanners and fuzzers that send malformed Basic credentials
- Broken clients that truncate or hand-build the header (rare; baseline first)
level: high

View on GitHub

False positives and tuning: exclude authorised scanners by source address, and baseline a week in alert-only mode. The bigger issue is privacy: a Basic header is a username and password in Base64, so do not start shipping it to your SIEM. Most WAFs can run a regex on a header and log only the rule ID; if yours cannot, a length check plus “ends with =” gets most of the value.

How to test: in a test index, write a synthetic WAF log line whose header is a valid Basic value with 32 or more data characters before its == padding, with one = deleted. That value has an impossible length and should match; the unedited value should not. Do not send trigger-shaped input to a real JVM, even in staging, unless it is a box you are happy to crash.

JWT Bearer token containing Base64 padding

Context: libraries that decode JWT segments with Base64.getUrlDecoder(), such as Auth0 java-jwt, reach the flawed decoder (Equixly, HeroDevs). Jackson, Commons Codec, JJWT and Nimbus use their own decoders and do not. Equixly points out that JWT segments are encoded without padding, so a JWT containing = is malformed by definition, and the trigger needs a padding character.

Condition: alert when the Authorization header holds a Bearer token shaped like a JWT (three dot-separated base64url segments, the first starting with eyJ, which is how a JSON header starting with a brace encodes) and the value contains an =. This one is experimental: the logic is sound, but nobody has shown which product’s JWT route is exploitable this way.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application; Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation.

title: Java4Shell Trigger Shape - JWT Bearer Token Containing Base64 Padding
id: a176c9f0-eb2f-4c07-a9c0-aa016d23a82e
name: java4shell_jwt_bearer_with_padding
status: experimental
description: |
Detects Bearer tokens shaped like a JWT (three dot-separated base64url segments starting with eyJ) that
contain an '=' character. JWT segments are encoded without padding, and the CVE-2026-114938 (Java4Shell)
trigger needs a padding character, so padding inside a JWT may be an attempt to reach the flawed decoder.
references:
- https://equixly.com/blog/2026/11/17/cve-2026-114938-pre-auth-heap-overflow-in-java-17-21-and-25/
- https://www.herodevs.com/blog-posts/java4shell-cve-2026-114938-spring-boot-tomcat-jetty
- https://calif.io/java4shell/
- https://netsec101.com/?p=326
author: netsec101.com
date: 2026-11-18
tags:
- attack.initial-access
- attack.impact
- attack.t1190
- attack.t1499.004
- cve.2026-114938
- detection.emerging-threats
logsource:
category: webserver
definition: 'Requirement: a WAF, reverse proxy or API gateway that can inspect the Authorization request header, mapped to the field cs-authorization. Not logged by default; tokens in logs are secrets, so prefer evaluating this in the WAF.'
detection:
selection_jwt_shape:
cs-authorization|re: '^[Bb][Ee][Aa][Rr][Ee][Rr] +eyJ[A-Za-z0-9_=-]+\.[A-Za-z0-9_=-]+\.[A-Za-z0-9_=-]*$'
selection_padding:
cs-authorization|contains: '='
condition: all of selection_*
falsepositives:
- Non-compliant token issuers or clients that pad base64url segments (verify against your identity provider)
- Security testing and fuzzing of API authentication
level: medium

View on GitHub

False positives and tuning: check your own identity provider and API clients first. A non-compliant issuer that pads its segments would fire on every request, which you will see on day one. JWTs also travel in cookies and query strings; if your applications accept them there, copy the logic to those fields. JWE tokens have five segments and are not matched.

How to test: take a token from a development tenant, add a single = to the end of its payload segment in a synthetic log line, and check that only the edited line matches.

JVM fatal error log hs_err_pid created

Context: when HotSpot crashes it writes a fatal error log named hs_err_pid<pid>.log. Oracle’s troubleshooting guide says it goes to the process working directory, falling back to /tmp on Linux or the TMP/TEMP directory on Windows, unless -XX:ErrorFile moves it. HeroDevs recommends looking for these files since November 17, 2026. Equixly adds that the log will probably not mention Base64, because the corrupted object is usually noticed later, typically by the garbage collector. So the rule does not try to read the content.

Condition: alert when a file whose name is hs_err_pid, a number and .log is created in any directory, on Windows or Linux. There is no product in the log source on purpose, so one rule covers both.

ATT&CK: Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation; Initial Access (TA0001) – T1190 Exploit Public-Facing Application (a crash can be a failed exploitation attempt).

title: JVM Fatal Error Log hs_err_pid Created
id: 6d8a889e-1a29-4c85-997f-2504dec3eed4
name: jvm_hs_err_pid_crash_log_created
status: test
description: |
Detects creation of a HotSpot fatal error log (hs_err_pid<pid>.log), which the JVM writes when it crashes.
Failed CVE-2026-114938 (Java4Shell) heap grooming and bursts of trigger input crash the JVM, so a new crash
log on an internet-facing Java service running on AVX-512 hardware deserves a look.
references:
- https://calif.io/java4shell/
- https://www.vulncheck.com/blog/java4shell
- https://www.herodevs.com/blog-posts/java4shell-cve-2026-114938-spring-boot-tomcat-jetty
- https://docs.oracle.com/en/java/javase/21/troubleshoot/fatal-error-log.html
- https://netsec101.com/?p=326
author: netsec101.com
date: 2026-11-18
tags:
- attack.impact
- attack.initial-access
- attack.t1499.004
- attack.t1190
- cve.2026-114938
logsource:
category: file_event
definition: 'Requirement: file creation telemetry (Sysmon EID 11 on Windows, Sysmon for Linux EID 11 or an EDR on Linux). Sysmon for Linux file events need an explicit config. Containers: the EDR must see inside the container file system, and the file is lost when the pod restarts.'
detection:
selection:
TargetFilename|re: '[\\/]hs_err_pid[0-9]+\.log$'
condition: selection
falsepositives:
- Ordinary JVM crashes from native code, out-of-memory in native allocations or JDK bugs
- Developers and CI jobs crashing JVMs on build agents (scope to production service hosts)
- Custom -XX:ErrorFile names are not matched; add them if you set one
level: medium

View on GitHub

False positives and tuning: JVMs crash for dull reasons too: native libraries, JDK bugs, bad memory. Scope the rule to production service hosts and drop build agents and developer machines. Then raise the priority where the host is internet-facing and its CPU has AVX-512 VBMI (Ice Lake or newer Xeon, Zen 4 or newer AMD); a crash on a Graviton box is not Java4Shell. If you set a custom -XX:ErrorFile, add that pattern. In Kubernetes the file disappears with the container, which is why the next rule exists.

How to test: with file-event telemetry on, run touch /tmp/hs_err_pid99999.log on Linux or New-Item "$env:TEMP\hs_err_pid99999.log" on Windows, then delete the file.

JVM fatal error banner in application output

Context: the same crash also prints a header to standard output. Oracle’s troubleshooting guide says the header of the fatal error log is also printed to standard output, and its first line is “A fatal error has been detected by the Java Runtime Environment”. In containers, stdout is the one thing almost everyone already collects, and it survives the restart that wipes the hs_err file.

Condition: alert when that sentence appears in the output of a Java service. It is the only header text I match on, because it is the one I could confirm in Oracle’s documentation.

ATT&CK: Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation; Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: JVM Fatal Error Banner In Application Output
id: 988ead27-6a7c-477b-9c70-4d77dcdd6b4a
name: jvm_fatal_error_banner_in_output
status: test
description: |
Detects the HotSpot fatal error header that the JVM prints to standard output when it crashes. It catches
crashes where the hs_err_pid file is lost, such as containers that restart, and is a signal for failed
CVE-2026-114938 (Java4Shell) exploitation or trigger-based denial of service.
references:
- https://docs.oracle.com/en/java/javase/21/troubleshoot/fatal-error-log.html
- https://calif.io/java4shell/
- https://www.vulncheck.com/blog/java4shell
- https://netsec101.com/?p=326
author: netsec101.com
date: 2026-11-18
tags:
- attack.impact
- attack.initial-access
- attack.t1499.004
- attack.t1190
- cve.2026-114938
logsource:
product: jvm
category: application
definition: 'Requirement: the stdout/stderr of Java services collected into the SIEM (systemd journal, container runtime logs, Kubernetes pod logs or the application console log such as catalina.out).'
detection:
keywords:
- 'A fatal error has been detected by the Java Runtime Environment'
condition: keywords
falsepositives:
- Ordinary JVM crashes unrelated to Java4Shell (native libraries, JDK bugs, hardware faults)
level: medium

View on GitHub

False positives and tuning: the same dull crashes as the previous rule, with the same scoping. Two signals sit around it that are worth adding in your SIEM: a container that exits with code 134 (128 plus SIGABRT, which is how a crashing JVM usually ends) and a systemd unit whose main process exited with code=dumped. Both say “this service died hard” without depending on log text.

How to test: print the sentence from a throwaway container or systemd unit whose output you collect, for example echo '# A fatal error has been detected by the Java Runtime Environment:', and check that the rule fires with the right host and service fields.

Correlation: trigger header, then a crash

The pattern I would really alert on is a burst of trigger-shaped input followed by the JVM going down. Most applications swallow the decode exception and return a 400 or 401 without logging it, so the “decode error spike” has to come from the edge rule. Below is a Sigma temporal correlation that joins the Basic header rule and the banner rule on the same backend within 15 minutes. It is an example, not a shipped rule: my validator only handles single rules and I could not run sigma check on it. The alias matters because the proxy’s host field is the virtual host the client asked for, not the machine the JVM runs on, so map backend to an upstream or asset field you actually have.

title: Java4Shell Trigger Header Followed By JVM Crash On The Same Backend
id: 8abecdac-41af-4776-8989-f82a3fa39368
status: experimental
correlation:
type: temporal
rules:
- java4shell_basic_auth_impossible_padding
- jvm_fatal_error_banner_in_output
aliases:
backend:
java4shell_basic_auth_impossible_padding: upstream-host
jvm_fatal_error_banner_in_output: Hostname
group-by:
- backend
timespan: 15m
level: high

The field names upstream-host and Hostname are placeholders: replace them with your own. If you have no edge visibility, a weaker version of the same idea is a spike of 400 or 401 responses from one client address in your access logs, followed by a crash rule firing on that backend.

Retro-hunt and inventory commands, corrected

The draft commands that went around on disclosure day mostly work, with two traps. find / -xdev stays on the root file system, so it misses /var, /opt, /home or /tmp when they are separate mounts, which is common on servers. And java -XX:+PrintFlagsFinal -version starts a fresh JVM from your PATH; it says nothing about the flags of the service that is already running. Here are the versions I would use, on Linux, run inside the container when the JVM lives in one:

# JVM crash logs since October 18, 2026, on all mounted file systems
# (without -xdev this includes network mounts; prune them if that is slow)
find / \( -path /proc -o -path /sys \) -prune -o -type f -name 'hs_err_pid*.log' -newermt '2026-10-18' -print 2>/dev/null
# Was a custom crash-log location set for this JVM?
tr '\0' '\n' < /proc/<PID>/cmdline | grep ErrorFile
# CPU gate: prints 4 when avx512f, avx512bw, avx512vbmi and bmi2 are all present
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -cE '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
# Is the workaround set on the running process?
tr '\0' '\n' < /proc/<PID>/cmdline | grep -E 'UseBASE64Intrinsics|UseAVX'
tr '\0' '\n' < /proc/<PID>/environ | grep JAVA_TOOL_OPTIONS
jcmd <PID> VM.flags | tr ' ' '\n' | grep -E 'UseBASE64Intrinsics|UseAVX'

Why about a month and not just since disclosure? The vulnerable intrinsic shipped in 17.0.6 in January 2023, Wiz says its tooling had an exploit before full disclosure, and you need a baseline of how often your JVMs crash anyway. jcmd must run as the same user as the JVM and ships only with a full JDK. As for the fix: the Oracle builds that Tenable and HeroDevs report (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 and 8u513-perf) are still unverified, because Oracle’s own page returned HTTP 403 when I tried it. Confirm the version in your vendor’s release notes before you close a ticket on it.

Coverage and gaps

Step in caseTacticTechniqueRuleCovered?
Trigger via Basic auth headerInitial Access (TA0001)T1190Basic impossible paddingYes, if the header is inspected
Trigger via JWTInitial Access (TA0001)T1190JWT with paddingYes, if the header is inspected
Trigger via body field, WebSocket frame or outbound TLSInitial Access (TA0001)T1190–Gap: not in standard logs
Warming the decoder–––Gap: looks like normal traffic
JVM crash, denial of serviceImpact (TA0040)T1499.004hs_err_pid created, fatal error bannerYes
Memory disclosure to beat ASLR–––Gap: product-specific, unpublished
Code execution and what followsExecution (TA0002)T1059.004SigmaHQ Java child-process rulesPartial, not mine

The biggest blind spot is an exploit that never crashes. If the heap grooming works first time, the only evidence before code execution is the trigger, and only if it came in a header you inspect. After that, Java4Shell looks like any Java web RCE, and SigmaHQ’s “Suspicious Java Children Processes” (Linux, Nasreddine Bencherchali, 2022) and “Shell Process Spawned by Java.EXE” (Windows) already cover a JVM starting shells; expect noise from Jenkins controllers that build on the built-in node. Closing the payload gaps needs body inspection in a WAF or a network sensor. VulnCheck’s Snort and Suricata rules are customer-only, so I cannot judge them.

Deploying the rules

Grab the YAML from the repo and convert it with sigma-cli. I have not run these conversions (sigma-cli is not installed where I built the rules), so treat the commands below as untested starting points. The pipeline has to match the log source, and none of these rules fits a stock pipeline cleanly: the header rules use a field you map yourself, the banner rule is a keyword search, and the crash-log rule has no product, so you may need to add product: windows or product: linux to a copy before an OS-specific pipeline will accept it:

# Untested. Crash log: no pipeline, then map TargetFilename to your file-event field
sigma convert -t splunk --without-pipeline file_event_java_hs_err_pid_crash_log_created.yml
# Untested. Fatal error banner: keyword search over your container or journald index
sigma convert -t splunk --without-pipeline java_jvm_fatal_error_banner_in_output.yml
# Untested. Header rules: map cs-authorization to your WAF field first
sigma convert -t splunk --without-pipeline web_cve_2026_114938_java4shell_basic_auth_impossible_padding.yml

Check the generated regex by hand for your backend, since regex dialects differ between SIEMs and I have not tested any of them with these patterns. If yours rejects the non-capturing groups or the anchors, rewrite the expression in its dialect and test it against a valid and an invalid header. Run everything in alert-only mode for a week, look at what fires, then decide what pages someone.

My take

Java4Shell is more detectable than its name suggests, but only at the two ends. The input has a shape no legitimate client produces, and the most likely outcome of a failed or sloppy attempt is a crash, which every runtime announces loudly. The middle, a careful attacker who warms the decoder and lands the exploit first time, is close to invisible. That makes the crash rules the ones I would deploy today on every Java host, and not only for this CVE: an unexplained JVM crash on an internet-facing identity provider has deserved a ticket for years.

If I could ask one thing of the frameworks, it would be a log line. As far as I can tell, Spring Security, Tomcat and Jetty treat a malformed Basic header as a failed login and answer 401 without logging anything at default levels. One WARN-level event with the source address for “credential header failed to decode” would have turned this bug, and the next parser bug, into a one-line SIEM rule. Until then, put the header check in your WAF, watch for crashes, and patch.

Sources