Potential Agentic Offensive Frameworks User Agent

edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Potential Agentic Offensive Frameworks User Agent

edit

Detects 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:

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

edit

Triage 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-agent and artex-judge-*, plus artex-enrich/* and norma/0.4 on web requests. AntiFox still sends norma/0.4.
  • AntiFox — antifox-enrich/1.0, the renamed ARTEX enrichment agent.
  • ScopeWeaver — user agent scopeweaver. ExtraHop also saw artex-enrich/1.0 from this fork, which matches as ARTEX.
  • CyberStrikeAI — CyberStrikeAI-WebShell/1.0 on webshell command and file requests.
  • HexStrike — HexStrike-HTTP-Framework/1.0 and HexStrike-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, and host.name. Open the source event for the principal and the action. Nginx access logs and GCP audit logs do not share user.name, event.action, and event.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

edit
from
    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