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

One thought on “Detecting ARTEX: 7 Sigma rules for web probes, cloud key tests and identity abuse”

Leave a Reply