heroui logo

LLM-Driven Penetration Testing Framework User Agent

Elastic Detection Rules

View Source
Summary
This ES|QL rule detects HTTP User-Agent strings that identify LLM-driven offensive frameworks used for automated penetration testing. It covers ARTEX and its forks (AntiFox, norma/0.4 variants), ScopeWeaver, CyberStrikeAI, and HexStrike, which embed distinctive user_agent.original identifiers in requests. The rule scans a broad set of data sources including cloud and identity logs (AWS CloudTrail, Kubernetes audit logs, Azure/Azure AD, O365/Microsoft Graph logs, Google Cloud audit logs, Anthropic/OpenAI audit logs, Okta), as well as web server access logs (Nginx, Apache, Apache Tomcat, IIS, Traefik) and network telemetry (Zeek, network traffic captures). It normalizes the user agent to lowercase and maps matches to a defined framework, extracting the framework name (ARTEX, AntiFox, ScopeWeaver, CyberStrikeAI, HexStrike) and the lowercased UA string for correlation. The rule links detections to MITRE ATT&CK techniques: T1078.004 Cloud Accounts (initial access via compromised cloud identities), T1595.002 Active Scanning (vulnerability scanning in reconnaissance), and T1505.003 Web Shell (persistence via web shells). The rule requires a non-empty UA when evaluating, and it emits fields such as @timestamp, Esql.framework, Esql.ua_lower, user_agent.original, source.ip, data_stream.dataset, data_stream.namespace, and host.name for incident context. An alert suppression strategy groups by source IP, original user agent, and dataset to avoid duplicates within a 1-hour window, while not suppressing alerts if required fields are missing. The documentation includes practical triage guidance (checking source principal, engagement scope, CloudTrail/Kubernetes activity, and related API calls), false positive considerations (sanctioned testing windows), and recommended remediation steps (revoke compromised credentials, isolate webshell hosts, rotate secrets). The rule carries a high severity and risk score (73) to reflect its potential for initial access, reconnaissance, or persistence via credentialed or uncredentialed activity across cloud, identity, and network layers. References to related threat research and vendor advisories support the fingerprinting logic and help responders contextualize the signals across multi-cloud and multi-tenant environments.
Categories
  • Cloud
  • Identity Management
  • Network
  • Web
  • Kubernetes
  • Containers
  • Application
Data Sources
  • Application Log
  • Network Traffic
  • Cloud Service
  • Container
ATT&CK Techniques
  • T1078
  • T1078.004
  • T1595
  • T1595.002
  • T1505
  • T1505.003
Created: 2026-11-20