Tag: Entra ID

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

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

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

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

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

At a glance

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

What we know

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

The main campaigns, by primary source:

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

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

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

How an ARTEX intrusion unfolds

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

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

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

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

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

The repo that would not stay down

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

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

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

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

Who is affected and how badly

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

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

What to do now

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

Detection and monitoring

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

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

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

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

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

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

My take

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

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

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

Sources