LLM-Driven Penetration Testing Framework User Agent
Description
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.
Query · esql
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 "mozilla/* artex*" or Esql.ua_lower like "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-http-framework*" or Esql.ua_lower like "*hexstrike-browseragent*", "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
Investigation fields
Pivot points the source recommends for triage.
@timestampEsql.frameworkuser_agent.originalsource.ipdata_stream.datasethost.name
Known false positives
- An authorized penetration test or red-team exercise that runs ARTEX, AntiFox, ScopeWeaver, CyberStrikeAI, or HexStrike will match. Confirm the engagement window, the principal, and the source address before closing the alert.
Analyst notes
Investigating LLM-Driven Penetration Testing Framework 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-*(Dragos sawartex-judge-r121in CloudTrail while stolen AWS keys were checked for liveness), 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.