Tag: Sigma Correlation

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

Detecting ARTEX: 7 Sigma rules for web probes, cloud key tests and identity abuse

Detecting ARTEX: 7 Sigma rules for web probes, cloud key tests and identity abuse

ARTEX doesn’t bring new exploits. It brings an agent that never gets tired, checks its own work and pivots within about a minute of finding a credential. That makes it a bad fit for the usual emerging-threat rule: the IPs rotate, the original repo is gone, and the BaaRai fork, still actively maintained, now lets the operator pace requests and pick any User-Agent. What stays constant is how an LLM-driven agent behaves, and that behaviour lands in logs most of us already collect. The background is in my analysis of ARTEX and the FBI FLASH.

This post gives you seven Sigma detections, four of them Sigma v2 correlation rules, with the telemetry each one needs, the tuning I’d do before trusting it, a safe lab test, and the habits none of them can see.

At a glance

  • Rules: 7 detections in 12 YAML files (8 base rules, 7 correlation documents). Correlation files reference their base rules by name, so deploy them together.
  • Domains: Web/App, Cloud-AWS, Cloud-Azure, Identity, Windows.
  • Log sources: web server or WAF access logs, AWS CloudTrail (including S3 data events), Azure Key Vault diagnostic logs, Entra ID audit logs, Windows process creation with command lines.
  • ATT&CK: T1595.002, T1594, T1190, T1580, T1078.004, T1555.006, T1098.003, T1059.
  • Status: four rules are test (values or thresholds published by Unit 42, ReversingLabs, Microsoft, Huntress or CrowdStrike), three are experimental (my windows and thresholds). All pass sigma check.
  • GitHub: Detection Rules repo, files under Web-App, Cloud/AWS, Cloud/Azure, Identity and Windows.

The case in brief

An ARTEX intrusion is a planner handing small tasks to parallel workers. Unit 42 describes the habits that follow: routes from a downloaded OpenAPI spec or source map get hit almost immediately, placeholder values such as evil[.]com, test@example[.]com and deadbeefdeadbeefdeadbeef12 go into forms and APIs, storage gets a write-then-delete test, and a found credential is used within about a minute. The FBI adds AWS DryRun permission tests and Azure blob write and delete tests. In the ConnectWise case, Huntress saw compromised apps assign themselves directory roles, and Microsoft published a Key Vault hunting threshold: one identity reading at least 20 secrets across at least three vaults in 15 minutes. CrowdStrike’s VAPOR PANDA write-up gives host markers: “artx” or “artex” inside command lines, cloud role names prefixed “artx”, and a C:\ProgramData\artx5v\ folder.

The detection problem is the noise governor in the BaaRai fork, which I cover in the analysis. It is off by default, but when on it paces requests per host with jitter and lets the operator set the User-Agent. A per-IP threshold tuned on noisy ARTEX misses the “quiet” preset. So the correlations here group by an S3 object key, an access key, an identity or a client that just downloaded your spec, never by raw request rate alone.

Detection map

Block diagram: web access logs, AWS CloudTrail, Key Vault diagnostics, Entra ID audit log and Windows process creation feed seven Sigma rules (default strings, spec fetch then route sweep, S3 write-then-delete, DryRun sweep, Key Vault read burst, app-assigned directory role, artx command lines) mapped to ATT&CK techniques, with timing patterns marked as a gap.
Five log sources, seven rules. Timing habits such as cadence and polling stay outside Sigma.

Read it left to right. Five log sources feed seven detections; the four marked CORR only fire when a base event repeats or follows another in a set window for the same key. The identity rule needs no correlation: an app assigning a directory role is rare enough on its own. The dashed box is what I could not express in Sigma: timing patterns.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
ARTEX default User-Agent or canary valuesWeb/AppwebserverReconnaissance / T1595.002Mediumtest
Spec fetch, then API route sweepWeb/Appwebserver (correlation)Initial Access / T1190, Reconnaissance / T1594Mediumexperimental
S3 object written and deleted within a minuteCloud-AWSaws/cloudtrail (correlation)Discovery / T1580, Initial Access / T1078.004Mediumexperimental
DryRun permission sweepCloud-AWSaws/cloudtrail (correlation)Discovery / T1580, Initial Access / T1078.004Mediumexperimental
Key Vault read burst across vaultsCloud-Azureazure/keyvault (correlation)Credential Access / T1555.006Mediumtest
Directory role assigned to a service principal by an appIdentityazure/auditlogsPersistence, Privilege Escalation / T1098.003Hightest
artx/artex command lines or artx5v folderWindowsprocess_creationExecution / T1059Hightest

The rules

Web request with ARTEX default User-Agent or canary placeholder values

Context: ReversingLabs found only three high-specificity User-Agent strings across 184 ARTEX-family binaries, “Mozilla/5.0 (ARTEX)” and two AntiFox “spa-api-recon” variants; most builds send a default Firefox string. Unit 42 lists the placeholder values the agents type into inputs. Both are cheap to check and both can be changed by the operator.

Condition: alert when the User-Agent is exactly “Mozilla/5.0 (ARTEX)” or contains “spa-api-recon”, or the query string contains one of the Unit 42 canary values. ATT&CK: Reconnaissance (TA0043) – T1595.002 Vulnerability Scanning.

title: Web Request With ARTEX Default User-Agent or Agent Canary Placeholder Values
id: 0c218c42-4489-4ca9-be5d-6bfe3e99986f
status: test
description: |
    Detects web requests carrying one of the high-specificity ARTEX-family User-Agent strings reported by
    ReversingLabs, or placeholder values Unit 42 saw ARTEX agents submit while probing forms and APIs
    (evil.com, test@example.com, deadbeefdeadbeefdeadbeef12). Operators can change the User-Agent, so a miss
    proves nothing; a hit is worth a look at everything else that source did.
references:
    - https://unit42.paloaltonetworks.com/artex-and-ai-powered-red-teaming-tools/
    - https://www.reversinglabs.com/blog/threat-researchers-notebook-detection-strategies-for-artex-and-related-forks
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.reconnaissance
    - attack.t1595.002
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_ua_exact:
        cs-user-agent: 'Mozilla/5.0 (ARTEX)'
    selection_ua_antifox:
        cs-user-agent|contains: 'spa-api-recon'
    selection_canary:
        cs-uri-query|contains:
            - 'evil.com'
            - 'test@example.com'
            - 'test%40example.com'
            - 'deadbeefdeadbeefdeadbeef12'
    condition: 1 of selection_*
falsepositives:
    - Your own authorised scanners, bug bounty hunters and QA suites that use evil.com or test@example.com as test values; exclude their source IPs
    - Placeholders sent in POST bodies are invisible in standard access logs; this rule only sees the query string
level: medium

View web_artex_default_strings_in_request.yml on GitHub

False positives and tuning: your own scanners and bug bounty researchers use evil.com and test@example.com too, so exclude their source ranges and route the rest to triage, not paging. Access logs rarely include POST bodies; if your WAF logs request bodies, add a body field with the same values. How to test: on a staging site, send a request with the ARTEX User-Agent and another with ?q=deadbeefdeadbeefdeadbeef12.

API specification fetch followed by a route sweep from the same client

Context: Unit 42 saw routes from downloaded OpenAPI specs and source maps targeted almost immediately.

Condition: alert when a client gets a 200 for an OpenAPI or Swagger file or a .js.map, and within five minutes the same client IP requests ten or more distinct API paths. Three files: a spec-fetch base rule (useful alone as an exposure hunt), an API-request base rule, and the correlation file with a value_count step and a temporal_ordered step. ATT&CK: Reconnaissance (TA0043) – T1594 Search Victim-Owned Websites; Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: OpenAPI Specification or JavaScript Source Map Served to a Client
id: ab58ceb0-72f2-47c9-ac34-690630e0a2d0
name: web_api_spec_fetch
status: experimental
description: |
    Base rule for the spec-driven targeting correlation. Matches a successful download of an OpenAPI or
    Swagger definition or a JavaScript source map. Unit 42 saw ARTEX agents target routes from downloaded
    OpenAPI specs and source maps almost immediately. On its own this is an exposure finding, not an alert.
references:
    - https://unit42.paloaltonetworks.com/artex-and-ai-powered-red-teaming-tools/
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.reconnaissance
    - attack.t1594
    - detection.threat-hunting
logsource:
    category: webserver
detection:
    selection_path:
        - cs-uri-stem|endswith:
              - '/openapi.json'
              - '/openapi.yaml'
              - '/swagger.json'
              - '/swagger.yaml'
              - '/api-docs'
              - '.js.map'
        - cs-uri-stem|contains:
              - '/v2/api-docs'
              - '/v3/api-docs'
    selection_status:
        sc-status: 200
    condition: all of selection_*
falsepositives:
    - Developer portals that publish their spec on purpose; browsers with developer tools open fetch source maps
level: low

View web_api_spec_or_source_map_fetch.yml on GitHub

title: Request to an API Route on a Web Application
id: 85080318-39fb-4d9e-9d90-f03b98cf9256
name: web_api_route_request
status: experimental
description: |
    Base rule for the spec-driven targeting correlation. Matches any request whose path looks like an API
    route. Not meant to alert on its own; adjust the path prefixes to the API layout of your applications.
references:
    - https://unit42.paloaltonetworks.com/artex-and-ai-powered-red-teaming-tools/
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.initial-access
    - attack.t1190
logsource:
    category: webserver
detection:
    selection:
        - cs-uri-stem|startswith:
              - '/api/'
              - '/v1/'
              - '/v2/'
              - '/v3/'
              - '/graphql'
        - cs-uri-stem|contains: '/api/'
    filter_main_docs:
        cs-uri-stem|endswith:
            - '/openapi.json'
            - '/swagger.json'
            - '/api-docs'
    condition: selection and not filter_main_docs
falsepositives:
    - All normal API traffic; this rule only feeds the correlation
level: informational

View web_api_route_request.yml on GitHub

title: Many Distinct API Routes Requested by One Client
id: d73010fb-2c25-4822-aa86-e98c299142d3
name: web_api_route_sweep
status: experimental
description: |
    Correlation step 1 of 2. Counts distinct API paths requested by one client IP in five minutes.
    Feeds the spec-driven targeting sequence below; not meant to alert on its own.
references:
    - https://unit42.paloaltonetworks.com/artex-and-ai-powered-red-teaming-tools/
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.initial-access
    - attack.t1190
correlation:
    type: value_count
    rules:
        - web_api_route_request
    group-by:
        - c-ip
    timespan: 5m
    condition:
        field: cs-uri-stem
        gte: 10
falsepositives:
    - Single-page applications that call many API routes on load; raise the threshold above your busiest real client
level: informational
---
title: API Specification Fetch Followed by a Route Sweep From the Same Client
id: 3ac6dd7a-0751-45db-be40-32bc3a17e16e
status: experimental
description: |
    Detects a client that downloads an OpenAPI specification or source map and then, within five minutes,
    requests at least ten distinct API routes. Unit 42 reports ARTEX agents hitting routes from downloaded
    specs almost immediately. The window and the threshold are inferred, not published values.
references:
    - https://unit42.paloaltonetworks.com/artex-and-ai-powered-red-teaming-tools/
    - https://www.ic3.gov/CSA/2026/261113.pdf
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.initial-access
    - attack.t1190
    - attack.reconnaissance
    - attack.t1594
correlation:
    type: temporal_ordered
    rules:
        - web_api_spec_fetch
        - web_api_route_sweep
    group-by:
        - c-ip
    timespan: 5m
falsepositives:
    - API testing tools (Postman, Insomnia) importing your spec and running a collection; exclude internal and partner integration ranges
    - Your own DAST scanner
level: medium

View web_api_spec_fetch_then_route_sweep_correlation.yml on GitHub

False positives and tuning: Postman or Insomnia importing your spec and running a collection looks identical, as does your DAST scanner. Exclude internal and partner ranges, adjust the path prefixes in the API-request rule to your layout, and raise the threshold above your busiest legitimate single-page app. The five-minute window and the threshold of ten are my choices, not published values. Grouping by client IP fails against residential proxy rotation; if you have a session or device ID, group by that instead. How to test: fetch /swagger.json from a lab host, then request ten distinct /api/ paths within five minutes.

AWS S3 object written and deleted by the same identity within one minute

Context: write-then-delete is the agent checking it can write without leaving a mess. Unit 42 lists it as a hallmark and the FBI describes the same test on Azure blobs. Legitimate workloads rarely delete the exact key they just created.

Condition: alert when the same identity both writes and deletes the same bucket and key within one minute (a value_count of two distinct event names per identity, bucket and key). ATT&CK: Discovery (TA0007) – T1580 Cloud Infrastructure Discovery; Initial Access (TA0001) – T1078.004 Cloud Accounts.

title: AWS S3 Object Written or Deleted
id: 4abbc0bb-082d-42a4-8ff6-6a711f834c77
name: aws_s3_object_put_or_delete
status: experimental
description: |
    Base rule for the S3 write-then-delete probe correlation. Matches successful PutObject and DeleteObject
    data events. Requires CloudTrail S3 data events, which are off by default.
references:
    - https://unit42.paloaltonetworks.com/artex-and-ai-powered-red-teaming-tools/
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.discovery
    - attack.t1580
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventSource: 's3.amazonaws.com'
        eventName:
            - 'PutObject'
            - 'DeleteObject'
    filter_main_failed:
        errorCode|exists: true
    condition: selection and not filter_main_failed
falsepositives:
    - All normal object writes and deletes; this rule only feeds the correlation
level: informational

View aws_cloudtrail_s3_object_put_or_delete.yml on GitHub

title: AWS S3 Object Written and Deleted by the Same Identity Within One Minute
id: 24d3f38e-bfe4-425d-b437-476b196b6cf0
status: experimental
description: |
    Detects one identity writing and deleting the same S3 object key within a minute, the write-then-delete
    storage test Unit 42 lists as an ARTEX hallmark and the FBI describes as test writes and deletes. The
    one-minute window is inferred. Real workloads rarely delete the exact object they just created.
references:
    - https://unit42.paloaltonetworks.com/artex-and-ai-powered-red-teaming-tools/
    - https://www.ic3.gov/CSA/2026/261113.pdf
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.discovery
    - attack.t1580
    - attack.initial-access
    - attack.t1078.004
correlation:
    type: value_count
    rules:
        - aws_s3_object_put_or_delete
    group-by:
        - userIdentity.arn
        - requestParameters.bucketName
        - requestParameters.key
    timespan: 1m
    condition:
        field: eventName
        gte: 2
falsepositives:
    - Temporary-file and lock-file patterns (Terraform state locks, ETL scratch objects); exclude those buckets or key prefixes
    - Health checks that write and delete a canary object; exclude their role ARN
level: medium

View aws_cloudtrail_s3_write_then_delete_probe_correlation.yml on GitHub

False positives and tuning: S3 object-level calls are CloudTrail data events, which are off by default and cost money, so start with buckets that hold sensitive data or face the internet. Terraform state locks, ETL scratch prefixes and health checks that write a canary object will match; exclude them by key prefix or role ARN. How to test: with data events on for a lab bucket, run aws s3 cp on a small file and aws s3 rm on the same key within a minute.

AWS DryRun permission sweep

Context: the FBI lists AWS DryRun permission tests among ARTEX techniques. A dry run tells the caller whether an action would be allowed without performing it, which is exactly what an agent with a fresh key wants. A single dry run is normal; an AWS re:Post thread shows people filtering Client.DryRunOperation out as noise.

Condition: alert when one access key gets Client.DryRunOperation on five or more different API actions within five minutes. The base rule doubles as a low-level hunting rule. ATT&CK: Discovery (TA0007) – T1580 Cloud Infrastructure Discovery; Initial Access (TA0001) – T1078.004 Cloud Accounts.

title: AWS API Call Made With the DryRun Flag
id: d9f4e825-a4ea-4854-a392-7578f70c0e0e
name: aws_dryrun_call
status: experimental
description: |
    Matches CloudTrail events with errorCode Client.DryRunOperation, which AWS records when a call made with
    DryRun would have succeeded. The FBI lists AWS DryRun permission tests among ARTEX techniques. Single
    dry runs are common from normal tooling, so this is a base and hunting rule.
references:
    - https://www.ic3.gov/CSA/2026/261113.pdf
    - https://repost.aws/questions/QUPHL9FYTHSrCE4eaMjJD66Q/cloudtrail-client-dryrunoperation
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.discovery
    - attack.t1580
    - detection.threat-hunting
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        errorCode: 'Client.DryRunOperation'
    condition: selection
falsepositives:
    - Infrastructure-as-code tools, the AWS console and admin scripts that validate permissions before acting
level: low

View aws_cloudtrail_dryrun_call.yml on GitHub

title: AWS DryRun Permission Sweep - Five or More Distinct APIs Tested by One Access Key
id: 41496dc1-ce0a-47f9-9e2d-30323032403b
status: experimental
description: |
    Detects one access key making successful DryRun calls against at least five different API actions within
    five minutes. An agent probing what a stolen key can do tests many actions in quick succession; automation
    usually dry-runs the one action it is about to perform. Threshold and window are inferred.
references:
    - https://www.ic3.gov/CSA/2026/261113.pdf
    - https://unit42.paloaltonetworks.com/artex-and-ai-powered-red-teaming-tools/
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.discovery
    - attack.t1580
    - attack.initial-access
    - attack.t1078.004
correlation:
    type: value_count
    rules:
        - aws_dryrun_call
    group-by:
        - userIdentity.accessKeyId
    timespan: 5m
    condition:
        field: eventName
        gte: 5
falsepositives:
    - Permission audit tools and IaC plan stages that dry-run many actions; exclude their role ARNs or access keys
level: medium

View aws_cloudtrail_dryrun_permission_sweep_correlation.yml on GitHub

False positives and tuning: permission-audit tools and IaC plan stages can dry-run many actions; exclude them by role ARN. Watch denied dry runs too (Client.UnauthorizedOperation) once you know how your tooling logs them. Threshold and window are mine. How to test: from a lab account, run five different EC2 describe or create commands with --dry-run using one key.

Azure Key Vault secret read burst across multiple vaults

Context: Microsoft’s guidance for the Storm-0940 campaign includes a Key Vault hunt: one identity, 20 or more secret reads, three or more vaults, 15 minutes.

Condition: an event_count step (20 or more SecretGet events per caller object ID), a value_count step (three or more distinct vaults per caller) and a temporal step that fires when both happen within the same 15 minutes. ATT&CK: Credential Access (TA0006) – T1555.006 Cloud Secrets Management Stores.

title: Azure Key Vault Secret Read
id: e6881822-164a-4638-8c97-f21050921796
name: azure_keyvault_secret_get
status: test
description: |
    Base rule for the Key Vault read-burst correlation. Matches SecretGet operations in Key Vault resource
    diagnostic logs (category AuditEvent). These are data-plane logs, not Activity log entries, and must be
    enabled per vault through diagnostic settings.
references:
    - https://www.microsoft.com/en-us/security/blog/2026/10/21/storm-0940-uses-artex-agentic-ai-connectwise-supply-chain-compromise/
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.credential-access
    - attack.t1555.006
logsource:
    product: azure
    service: keyvault
detection:
    selection:
        OperationName: 'SecretGet'
    condition: selection
falsepositives:
    - All normal application secret reads; this rule only feeds the correlation
level: informational

View azure_keyvault_secret_get.yml on GitHub

title: Azure Key Vault - Twenty or More Secret Reads by One Identity
id: 595bfe6d-260b-4793-a96d-fbeedb9e78cf
name: azure_kv_secret_read_volume
status: test
description: |
    Correlation step 1 of 3. One identity reads 20 or more Key Vault secrets in 15 minutes.
references:
    - https://www.microsoft.com/en-us/security/blog/2026/10/21/storm-0940-uses-artex-agentic-ai-connectwise-supply-chain-compromise/
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.credential-access
    - attack.t1555.006
correlation:
    type: event_count
    rules:
        - azure_keyvault_secret_get
    group-by:
        - identity_claim_oid_g
    timespan: 15m
    condition:
        gte: 20
falsepositives:
    - Applications that load their whole configuration at start-up
level: informational
---
title: Azure Key Vault - Secrets Read From Three or More Vaults by One Identity
id: e42e16ce-6094-46d0-a78d-5ce7eecb47ff
name: azure_kv_secret_read_spread
status: test
description: |
    Correlation step 2 of 3. One identity reads secrets from at least three distinct vaults in 15 minutes.
references:
    - https://www.microsoft.com/en-us/security/blog/2026/10/21/storm-0940-uses-artex-agentic-ai-connectwise-supply-chain-compromise/
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.credential-access
    - attack.t1555.006
correlation:
    type: value_count
    rules:
        - azure_keyvault_secret_get
    group-by:
        - identity_claim_oid_g
    timespan: 15m
    condition:
        field: Resource
        gte: 3
falsepositives:
    - Backup and secret-rotation services that touch every vault
level: informational
---
title: Azure Key Vault Secret Read Burst Across Multiple Vaults by One Identity
id: b4558cd4-6c25-4d8f-bea6-1a6ea78c461c
status: test
description: |
    Detects one identity reading at least 20 secrets across at least three Key Vaults within 15 minutes, the
    hunting threshold Microsoft Threat Intelligence published for the Storm-0940 ARTEX campaign. An agent with
    a fresh token enumerates every vault it can reach; most applications read a few secrets from one vault.
references:
    - https://www.microsoft.com/en-us/security/blog/2026/10/21/storm-0940-uses-artex-agentic-ai-connectwise-supply-chain-compromise/
    - https://www.ic3.gov/CSA/2026/261113.pdf
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.credential-access
    - attack.t1555.006
correlation:
    type: temporal
    rules:
        - azure_kv_secret_read_volume
        - azure_kv_secret_read_spread
    group-by:
        - identity_claim_oid_g
    timespan: 15m
falsepositives:
    - Secret-rotation, backup and security-posture tools; exclude their object IDs after confirming them
    - Administrators running bulk scripts during a migration
level: medium

View azure_keyvault_secret_reads_across_vaults_correlation.yml on GitHub

False positives and tuning: secret rotation, backup and posture-management tools touch every vault; confirm and exclude their object IDs. Key Vault data-plane reads are not in the Activity log, so you need a diagnostic setting on every vault. I used service: keyvault with AzureDiagnostics field names (OperationName, Resource, identity_claim_oid_g); if you use the AZKVAuditLogs table, map Resource to the vault resource ID and the identity field to the caller object ID. How to test: in a lab subscription, have one identity read seven secrets from each of three vaults.

Entra ID directory role assigned to a service principal by an application

Context: in the ConnectWise case, Huntress saw compromised multi-tenant apps assign themselves directory roles from 01:58 UTC on October 15, 2026. SigmaHQ’s “App Assigned To Azure RBAC/Microsoft Entra Role” (Bercik and Morowczynski) already catches role grants to service principals by anyone. Mine keeps only the grants where the actor is an application.

Condition: alert when a member, eligible member or scoped member is added to a directory role, the target is a service principal, and the initiator is an app rather than a user. ATT&CK: Persistence (TA0003), Privilege Escalation (TA0004) – T1098.003 Additional Cloud Roles.

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

View azure_auditlogs_app_assigned_directory_role_by_app.yml on GitHub

False positives and tuning: identity governance or provisioning apps built to manage roles will match; list them by service principal ID. The properties.message and targetResources.type paths follow SigmaHQ; initiatedBy.app.servicePrincipalId is my mapping of the Entra audit schema, so check it against your pipeline. Run this next to SigmaHQ’s “Added Credentials to Existing Application”, which covers the other identity-plane step in the campaign. How to test: in a lab tenant, give an app the role-management Graph permission and have it add a directory role to a service principal.

Process command line containing ARTEX markers or the artx5v folder

Context: CrowdStrike published host markers from VAPOR PANDA intrusions: “artx” or “artex” inside command lines and a C:\ProgramData\artx5v\ folder. They are operator choices and will change, but cost nothing for a retro-hunt.

Condition: alert on any process whose command line contains “artx” or “artex”, or whose image path is under C:\ProgramData\artx5v\. ATT&CK: Execution (TA0002) – T1059 Command and Scripting Interpreter.

title: Process Command Line Containing ARTEX Markers or the artx5v ProgramData Folder
id: c3f49f35-066f-42d7-b720-bcfd334be157
status: test
description: |
    Detects processes whose command line contains "artx" or "artex", or whose image runs from
    C:\ProgramData\artx5v\, markers CrowdStrike published for VAPOR PANDA intrusions that used ARTEX.
    Operator-chosen strings can change between campaigns; treat this as an emerging-threat rule with a short life.
references:
    - https://www.crowdstrike.com/en-us/blog/vapor-panda-uses-artex-to-scale-global-campaign/
    - https://www.ic3.gov/CSA/2026/261113.pdf
    - https://netsec101.com/2026/11/22/artex-agentic-ai-pentest-framework-sigma-detection-rules/
author: netsec101.com
date: 2026-11-22
tags:
    - attack.execution
    - attack.t1059
    - detection.emerging-threats
logsource:
    product: windows
    category: process_creation
detection:
    selection_cli:
        CommandLine|contains:
            - 'artx'
            - 'artex'
    selection_folder:
        Image|contains: '\ProgramData\artx5v\'
    condition: 1 of selection_*
falsepositives:
    - Unrelated software whose names or paths contain the substring; review the first hits and exclude by Image
level: high

View proc_creation_win_artex_artx_commandline_or_folder.yml on GitHub

False positives and tuning: substrings this short collide with real product and file names, so review the first week of hits and exclude by Image. CrowdStrike’s other markers, cloud role names prefixed “artx” and comments prefixed “art18-“, fit a one-off hunt better than a rule: search role-creation events for names that start with “artx”. How to test: cmd /c echo artx-test on a lab host with Sysmon or 4688 command-line logging.

Coverage and gaps

Step in the caseTacticTechniqueRuleCovered?
Fetch exposed spec or source mapReconnaissanceT1594Spec fetch base ruleYes (hunting)
Hit the routes it revealsInitial AccessT1190Spec fetch, then route sweepYes
Canary inputs, default User-AgentReconnaissanceT1595.002Default strings rulePartly (query string only)
Stolen key probes permissionsDiscovery, Initial AccessT1580, T1078.004S3 write-then-delete, DryRun sweepAWS yes; Azure ARM validate and blob tests no
Apps self-assign directory rolesPersistence, Privilege EscalationT1098.003App-initiated role assignmentYes
Credentials added to OAuth appsPersistenceT1098.001SigmaHQ ruleYes (not mine)
Key Vault enumerationCredential AccessT1555.006Key Vault read burstYes
Commands on Windows hostsExecutionT1059artx/artex markersYes, IOC-based
Think-then-act cadence, polling loops–––No
Read-after-write, 422 self-correctionInitial AccessT1190–No
Credential used within a minute of exposureInitial AccessT1078.004–No

The gaps are mostly about time. Unit 42’s think-then-act cadence (bursts of 1 to 14 requests about a second apart, then 25 to 31 seconds of silence) and the 48-second polling loop need inter-arrival statistics per source, which Sigma can’t express; build them in your SIEM’s own language and treat the cadence as a scoring feature, not an alert. Read-after-write on APIs collides with every POST-redirect-GET form. The HTTP 422 pattern could be a Sigma correlation (several 422s on one path, then a 2xx write on the same path from the same client), but I don’t yet have the log samples to set a threshold, so I left it out. Credential-to-use latency needs a join between your secret-scanning alerts and first use of that key. On Azure, the FBI’s ARM validation dry-runs and blob write and delete tests need Activity log and Storage resource logs; the S3 and DryRun logic ports over once you have those fields.

Deploying the rules

Pull the files from the repo and convert them with sigma-cli. Correlation rules need a backend that supports Sigma correlations, so check your backend’s documentation before trusting its output, and convert each correlation file together with its base rules so the rule names resolve:

sigma convert -t splunk aws_cloudtrail_s3_object_put_or_delete.yml aws_cloudtrail_s3_write_then_delete_probe_correlation.yml
sigma convert -t splunk web_api_spec_or_source_map_fetch.yml web_api_route_request.yml web_api_spec_fetch_then_route_sweep_correlation.yml
sigma convert -t kusto -p microsoft_xdr proc_creation_win_artex_artx_commandline_or_folder.yml

Field names matter more than usual here. Web rules use the W3C names (cs-uri-stem, c-ip), the Key Vault rule uses AzureDiagnostics names, and the Entra rule uses the Event Hub audit schema; you will need a processing pipeline or field mapping for your SIEM. Run everything in alert-only mode for a week, write down what fires and why, and only then route the high-level rules to a human.

My take

ARTEX is more detectable than the coverage suggests, but not where people are looking. IP lists and User-Agents are already stale, and the noise governor exists to beat rate limits. The agent’s real weakness is that it has to verify everything: it writes and deletes to see if it can, dry-runs to see if it may, and reads every vault because it doesn’t know which one matters. Those checks are what these rules catch.

I’d turn on the app-initiated role assignment rule first, because it is quiet and a hit means a compromised app already holds power. Then the Key Vault burst, if you’re willing to enable diagnostics on every vault, which you should do anyway. The S3 rule depends on data events many teams switch off to save money; that is a cost decision worth revisiting for buckets that hold secrets. Cloud providers should ship data-plane logging for secret stores and sensitive buckets on by default: the agent’s most telling habits happen exactly where the default logs are silent.

Sources