Potential Agentic Offensive Frameworks User Agent
editPotential Agentic Offensive Frameworks User Agent
editDetects a user agent that identifies an LLM-driven penetration testing framework. ARTEX, its AntiFox and ScopeWeaver forks, CyberStrikeAI, and HexStrike embed these strings in web requests.
Rule type: esql
Rule indices: None
Severity: high
Risk score: 73
Runs every: 5m
Searches indices from: now-9m (Date Math format, see also Additional look-back time)
Maximum alerts per execution: 100
References:
- https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens
- https://www.elastic.co/security-labs/threat-command/agentic-offensive-frameworks-detection-artex
- https://www.microsoft.com/en-us/security/blog/2026/10/21/storm-0940-uses-artex-agentic-ai-connectwise-supply-chain-compromise/
- https://github.com/BaaRai/ARTEX
- https://github.com/AIPentest/CyberStrikeAI
- https://github.com/0x4m4/hexstrike-ai
- https://pentestit.com/ai-pentesting-frameworks-abuse-lineage-fingerprints/
- https://labs.cloudsecurityalliance.org/research/csa-research-note-artex-agentic-pentest-frameworks-in-the-wi/
Tags:
- Domain: Cloud
- Domain: Identity
- Domain: Network
- Domain: Containers
- Use Case: Threat Detection
- Tactic: Initial Access
- Tactic: Reconnaissance
- Tactic: Persistence
- Data Source: AWS
- Data Source: Amazon Web Services
- Data Source: AWS CloudTrail
- Data Source: Azure
- Data Source: Microsoft 365
- Data Source: Microsoft Entra ID Sign-In Logs
- Data Source: Microsoft Graph Activity Logs
- Data Source: Google Cloud Platform
- Data Source: GCP
- Data Source: GCP Audit Logs
- Data Source: Kubernetes
- Data Source: Network Packet Capture
- Data Source: Network Traffic
- Data Source: Zeek
- Data Source: Okta
- Data Source: Okta System Logs
- Data Source: Anthropic Audit Logs
- Data Source: OpenAI ChatGPT Enterprise
- Data Source: Nginx
- Data Source: Apache
- Data Source: Apache Tomcat
- Data Source: IIS
- Data Source: Traefik
- Resources: Investigation Guide
- Rule Type: ES|QL
- Threat: Web Application Attack
- Threat: Agentic Offensive Frameworks
- Threat: Web Shell
- Platform: AWS
- Platform: Azure
- Platform: Entra ID
- Platform: GCP
- Platform: Kubernetes
- Platform: Okta
- Platform: Anthropic
- Platform: OpenAI
- Service: AWS EKS
- Service: Nginx
- Service: Apache HTTP Server
- Service: Apache Tomcat
- Service: IIS
Version: 1
Rule authors:
- Elastic
Rule license: Elastic License v2
Investigation guide
editTriage and analysis
Investigating Potential Agentic Offensive Frameworks User Agent
This rule matches user agents that name an LLM-driven offensive framework. The strings are the defaults those tools send, not generic HTTP libraries.
-
ARTEX —
artex-agentandartex-judge-*, plusartex-enrich/*andnorma/0.4on web requests. AntiFox still sendsnorma/0.4. -
AntiFox —
antifox-enrich/1.0, the renamed ARTEX enrichment agent. -
ScopeWeaver — user agent
scopeweaver. ExtraHop also sawartex-enrich/1.0from this fork, which matches as ARTEX. -
CyberStrikeAI —
CyberStrikeAI-WebShell/1.0on webshell command and file requests. -
HexStrike —
HexStrike-HTTP-Framework/1.0andHexStrike-BrowserAgent/1.0.
Esql.framework names which family matched. These agents self-identify on only a fraction of their traffic, so a hit
is a lead to the rest of the activity from the same principal or address, which will use ordinary clients.
Possible investigation steps
-
Read
user_agent.original,Esql.framework,source.ip,data_stream.dataset, andhost.name. Open the source event for the principal and the action. Nginx access logs and GCP audit logs do not shareuser.name,event.action, andevent.outcome, so those fields are not on the alert. - On CloudTrail, identify the access key or role and list the other API calls from that principal in the same hour. Key-liveness calls are often followed by S3, Secrets Manager, Parameter Store, Bedrock, and IAM changes.
- On a web server, review the URL and method. A CyberStrikeAI webshell user agent on one path is command traffic, not a scan.
- Search the same source address for curl, python-requests, Boto3, and Kali user agents that this rule does not alert on.
False positive analysis
- Sanctioned use of these frameworks during a test window. Exclude the engagement source or principal, not the user agent.
Response and remediation
- If the activity is unauthorized, revoke the access key or session and confirm the next request fails. These frameworks return from a new address after a block, so an address block alone does not remove their access.
- On a webshell user agent, isolate the host and remove the shell.
- Rotate any secret the principal could already read.
Rule query
editfrom
logs-aws.cloudtrail-*,
logs-aws.eks_audit-*,
logs-nginx.access-*,
logs-apache.access-*,
logs-apache_tomcat.access-*,
logs-iis.access-*,
logs-traefik.access-*,
logs-zeek.http*,
logs-network_traffic.http*,
logs-azure.signinlogs-*,
logs-azure.graphactivitylogs-*,
logs-azure.aadgraphactivitylogs-*,
logs-o365.audit-*,
logs-kubernetes.audit_logs-*,
logs-gcp.audit-*,
logs-gcp_vertexai.auditlogs-*,
logs-anthropic.audit-*,
logs-openai_chatgpt_enterprise.auth_log-*,
logs-okta.system-*
metadata _id, _version, _index
| where user_agent.original is not null
| eval Esql.ua_lower = to_lower(user_agent.original)
| eval Esql.framework = case(
Esql.ua_lower like "artex-*" or Esql.ua_lower like "* artex-*" or Esql.ua_lower == "norma/0.4", "ARTEX",
Esql.ua_lower like "*antifox*", "AntiFox",
Esql.ua_lower like "*scopeweaver*", "ScopeWeaver",
Esql.ua_lower like "*cyberstrikeai*", "CyberStrikeAI",
Esql.ua_lower like "*hexstrike-*", "HexStrike",
"other"
)
| where Esql.framework != "other"
| keep
_id,
_version,
_index,
@timestamp,
Esql.framework,
Esql.ua_lower,
user_agent.original,
source.ip,
data_stream.dataset,
data_stream.namespace,
host.name
Framework: MITRE ATT&CKTM
-
Tactic:
- Name: Initial Access
- ID: TA0001
- Reference URL: https://attack.mitre.org/tactics/TA0001/
-
Technique:
- Name: Valid Accounts
- ID: T1078
- Reference URL: https://attack.mitre.org/techniques/T1078/
-
Sub-technique:
- Name: Cloud Accounts
- ID: T1078.004
- Reference URL: https://attack.mitre.org/techniques/T1078/004/
-
Tactic:
- Name: Reconnaissance
- ID: TA0043
- Reference URL: https://attack.mitre.org/tactics/TA0043/
-
Technique:
- Name: Active Scanning
- ID: T1595
- Reference URL: https://attack.mitre.org/techniques/T1595/
-
Sub-technique:
- Name: Vulnerability Scanning
- ID: T1595.002
- Reference URL: https://attack.mitre.org/techniques/T1595/002/
-
Tactic:
- Name: Persistence
- ID: TA0003
- Reference URL: https://attack.mitre.org/tactics/TA0003/
-
Technique:
- Name: Server Software Component
- ID: T1505
- Reference URL: https://attack.mitre.org/techniques/T1505/
-
Sub-technique:
- Name: Web Shell
- ID: T1505.003
- Reference URL: https://attack.mitre.org/techniques/T1505/003/