Curl and Multiple HTTP Client Families from One External IP
Detects one external address using curl plus at least two other HTTP client families in a single minute, with 20 or more requests and at least two distinct event outcomes. The other families are Python, norma (ARTEX web fetch), a browser, and the AWS CLI, AWS SDK, or Boto3. A browser, Python, and the AWS CLI without curl is not a match. The same mix has been reported for agentic offensive frameworks, and it also comes from other automation. The look is limited to data streams that already carry user_agent.original.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2026/11/20"
3integration = [
4 "apache",
5 "apache_tomcat",
6 "anthropic",
7 "aws",
8 "azure",
9 "gcp",
10 "gcp_vertexai",
11 "iis",
12 "kubernetes",
13 "network_traffic",
14 "nginx",
15 "o365",
16 "okta",
17 "openai_chatgpt_enterprise",
18 "traefik",
19 "zeek",
20]
21maturity = "production"
22updated_date = "2026/11/20"
23
24[rule]
25author = ["Elastic"]
26description = """
27Detects one external address using curl plus at least two other HTTP client families in a single minute, with 20 or
28more requests and at least two distinct event outcomes. The other families are Python, norma (ARTEX web fetch), a
29browser, and the AWS CLI, AWS SDK, or Boto3. A browser, Python, and the AWS CLI without curl is not a match. The same
30mix has been reported for agentic offensive frameworks, and it also comes from other automation. The look is limited to
31data streams that already carry user_agent.original.
32"""
33false_positives = [
34 """
35 A shared NAT, proxy, or build system can still mix curl with a browser and Python or the AWS CLI in the same
36 minute. Exclude that address on source.ip. Esql.* fields cannot be used in an exception entry.
37 """,
38]
39from = "now-9m"
40interval = "5m"
41language = "esql"
42license = "Elastic License v2"
43name = "Curl and Multiple HTTP Client Families from One External IP"
44note = """## Triage and analysis
45
46### Investigating Curl and Multiple HTTP Client Families from One External IP
47
48This is the tool-family burst from Elastic Security Labs' write-up on ARTEX, CyberStrikeAI, Cairn, PentAGI, and
49HexStrike. One external address used curl and at least two of Python, norma, a browser, and the
50AWS CLI, AWS SDK, or Boto3, sent at least 20 requests in one minute, and produced at least two distinct
51`event.outcome` values. A browser, Python, and the AWS CLI without
52curl does not match. The loop runs
53on infrastructure the attacker controls, so the signal is in the logs that record its requests.
54
55`norma*` is the ARTEX web-fetch user agent (`norma/0.4`). The other families are ordinary clients. A match is the mix
56and the pace, not a single tool name.
57
58### Possible investigation steps
59
60- Review `Esql.ua_family_values`, `Esql.ua_values`, `Esql.outcome_values`, `Esql.request_count`, and
61 `Esql.event_action_values` for that `source.ip` and `Esql.time_window`. Confirm `Esql.curl_request_count` is greater
62 than zero and `Esql.outcome_distinct_count` is at least two.
63- Search the same address outside this minute for `artex-agent`, `artex-judge`, `artex-enrich`, `CyberStrikeAI`, or
64 `HexStrike` user agents.
65- On CloudTrail, identify the access key or role behind the AWS CLI or Boto3 calls and list the API actions.
66- On web logs, sample the URLs. Scanner paths and a webshell URL are higher priority than static content.
67
68### False positive analysis
69
70- Office egress, CI, and admin workstations can still combine curl with a browser and Python or the AWS CLI. Exclude
71 the address on `source.ip` after confirming the user agents and actions are expected.
72- A proxy that rewrites the client address to itself will collapse many users into one source. Do not alert on that
73 address; use the forwarded client address instead.
74
75### Response and remediation
76
77- If the address is unauthorized, block it and revoke any credentials it used. These frameworks return from a new
78 address after a block.
79- Tune the three-family, two-outcome, and 20-request thresholds against the automation that already behaves this way.
80"""
81references = [
82 "https://www.elastic.co/security-labs/threat-command/agentic-offensive-frameworks-detection-artex",
83]
84risk_score = 47
85rule_id = "a653b17a-acc8-44c8-9830-9ce34a5ab5e0"
86severity = "medium"
87tags = [
88 "Domain: Cloud",
89 "Domain: Identity",
90 "Domain: Network",
91 "Domain: Containers",
92 "Use Case: Threat Detection",
93 "Tactic: Reconnaissance",
94 "Data Source: AWS",
95 "Data Source: Amazon Web Services",
96 "Data Source: AWS CloudTrail",
97 "Data Source: Azure",
98 "Data Source: Microsoft 365",
99 "Data Source: Microsoft Entra ID Sign-In Logs",
100 "Data Source: Microsoft Graph Activity Logs",
101 "Data Source: Google Cloud Platform",
102 "Data Source: GCP",
103 "Data Source: GCP Audit Logs",
104 "Data Source: Kubernetes",
105 "Data Source: Network Packet Capture",
106 "Data Source: Network Traffic",
107 "Data Source: Zeek",
108 "Data Source: Okta",
109 "Data Source: Okta System Logs",
110 "Data Source: Anthropic Audit Logs",
111 "Data Source: OpenAI ChatGPT Enterprise",
112 "Resources: Investigation Guide",
113 "Rule Type: ES|QL",
114 "Threat: Agentic Offensive Frameworks",
115 "Platform: AWS",
116 "Platform: Azure",
117 "Platform: Entra ID",
118 "Platform: GCP",
119 "Platform: Kubernetes",
120 "Platform: Okta",
121 "Platform: Anthropic",
122 "Platform: OpenAI",
123 "Service: AWS EKS",
124 "Service: Nginx",
125 "Service: Apache HTTP Server",
126 "Service: Apache Tomcat",
127 "Service: IIS",
128]
129timestamp_override = "event.ingested"
130type = "esql"
131query = '''
132from
133 logs-aws.cloudtrail-*,
134 logs-aws.eks_audit-*,
135 logs-nginx.access-*,
136 logs-apache.access-*,
137 logs-apache_tomcat.access-*,
138 logs-iis.access-*,
139 logs-traefik.access-*,
140 logs-zeek.http*,
141 logs-network_traffic.http*,
142 logs-azure.signinlogs-*,
143 logs-azure.auditlogs-*,
144 logs-azure.graphactivitylogs-*,
145 logs-azure.aadgraphactivitylogs-*,
146 logs-o365.audit-*,
147 logs-kubernetes.audit_logs-*,
148 logs-gcp.audit-*,
149 logs-gcp_vertexai.auditlogs-*,
150 logs-anthropic.audit-*,
151 logs-openai_chatgpt_enterprise.auth_log-*,
152 logs-okta.system-*
153| where user_agent.original is not null and source.ip is not null
154| eval Esql.ua_lower = to_lower(user_agent.original)
155// curl*, python*/Python*, norma*, Mozilla/5.0*, Boto3*, aws-cli*, aws-sdk*
156| where
157 Esql.ua_lower like "curl*" or
158 Esql.ua_lower like "python*" or
159 Esql.ua_lower like "norma*" or
160 Esql.ua_lower like "mozilla/5.0*" or
161 Esql.ua_lower like "boto3*" or
162 Esql.ua_lower like "aws-cli*" or
163 Esql.ua_lower like "aws-sdk*"
164// TO_IP handles indices where source.ip is mapped as keyword instead of ip
165| eval Esql.source_ip = to_ip(source.ip)
166| where Esql.source_ip is not null and not cidr_match(
167 Esql.source_ip,
168 "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16",
169 "127.0.0.0/8", "169.254.0.0/16", "100.64.0.0/10",
170 "0.0.0.0/8", "224.0.0.0/4", "255.255.255.255/32",
171 "::1/128", "fc00::/7", "fe80::/10", "ff00::/8"
172)
173| eval Esql.ua_family = case(
174 Esql.ua_lower like "boto3*" or Esql.ua_lower like "aws-cli*" or Esql.ua_lower like "aws-sdk*", "aws",
175 Esql.ua_lower like "python*", "python",
176 Esql.ua_lower like "curl*", "curl",
177 Esql.ua_lower like "norma*", "norma",
178 Esql.ua_lower like "mozilla/5.0*", "browser",
179 "other"
180)
181| eval Esql.is_curl = case(Esql.ua_family == "curl", 1, 0)
182| stats
183 Esql.request_count = count(*),
184 Esql.curl_request_count = sum(Esql.is_curl),
185 Esql.ua_family_distinct_count = count_distinct(Esql.ua_family),
186 Esql.ua_family_values = values(Esql.ua_family),
187 Esql.ua_distinct_count = count_distinct(user_agent.original),
188 Esql.ua_values = values(user_agent.original),
189 Esql.event_action_values = values(event.action),
190 Esql.outcome_distinct_count = count_distinct(event.outcome),
191 Esql.outcome_values = values(event.outcome)
192 by source.ip = Esql.source_ip, Esql.time_window = date_trunc(1 minute, @timestamp), data_stream.namespace
193| where
194 Esql.curl_request_count > 0 and
195 Esql.ua_family_distinct_count >= 3 and
196 Esql.request_count >= 20 and
197 Esql.outcome_distinct_count >= 2
198| sort Esql.request_count desc
199| keep source.ip, Esql.*, data_stream.namespace
200'''
201
202[[rule.threat]]
203framework = "MITRE ATT&CK"
204
205[[rule.threat.technique]]
206id = "T1595"
207name = "Active Scanning"
208reference = "https://attack.mitre.org/techniques/T1595/"
209
210[rule.threat.tactic]
211id = "TA0043"
212name = "Reconnaissance"
213reference = "https://attack.mitre.org/tactics/TA0043/"
214
215[rule.investigation_fields]
216field_names = [
217 "source.ip",
218 "Esql.time_window",
219 "Esql.request_count",
220 "Esql.curl_request_count",
221 "Esql.ua_family_distinct_count",
222 "Esql.ua_family_values",
223 "Esql.ua_values",
224 "Esql.event_action_values",
225 "Esql.outcome_distinct_count",
226 "Esql.outcome_values",
227]
228
229[rule.alert_suppression]
230group_by = ["source.ip"]
231missing_fields_strategy = "doNotSuppress"
232
233[rule.alert_suppression.duration]
234unit = "h"
235value = 1
Triage and analysis
Investigating Curl and Multiple HTTP Client Families from One External IP
This is the tool-family burst from Elastic Security Labs' write-up on ARTEX, CyberStrikeAI, Cairn, PentAGI, and
HexStrike. One external address used curl and at least two of Python, norma, a browser, and the
AWS CLI, AWS SDK, or Boto3, sent at least 20 requests in one minute, and produced at least two distinct
event.outcome values. A browser, Python, and the AWS CLI without
curl does not match. The loop runs
on infrastructure the attacker controls, so the signal is in the logs that record its requests.
norma* is the ARTEX web-fetch user agent (norma/0.4). The other families are ordinary clients. A match is the mix
and the pace, not a single tool name.
Possible investigation steps
- Review
Esql.ua_family_values,Esql.ua_values,Esql.outcome_values,Esql.request_count, andEsql.event_action_valuesfor thatsource.ipandEsql.time_window. ConfirmEsql.curl_request_countis greater than zero andEsql.outcome_distinct_countis at least two. - Search the same address outside this minute for
artex-agent,artex-judge,artex-enrich,CyberStrikeAI, orHexStrikeuser agents. - On CloudTrail, identify the access key or role behind the AWS CLI or Boto3 calls and list the API actions.
- On web logs, sample the URLs. Scanner paths and a webshell URL are higher priority than static content.
False positive analysis
- Office egress, CI, and admin workstations can still combine curl with a browser and Python or the AWS CLI. Exclude
the address on
source.ipafter confirming the user agents and actions are expected. - A proxy that rewrites the client address to itself will collapse many users into one source. Do not alert on that address; use the forwarded client address instead.
Response and remediation
- If the address is unauthorized, block it and revoke any credentials it used. These frameworks return from a new address after a block.
- Tune the three-family, two-outcome, and 20-request thresholds against the automation that already behaves this way.
References
Related rules
- Multiple Cloud Secrets Accessed by Source Address
- Splunk Enterprise PostgreSQL Recovery Endpoint Injection Artifacts
- AWS EKS Potential Endpoint Permission Enumeration Attempt by Anonymous User Detected
- AWS EKS RBAC Wildcard Elevation on Existing Role
- AWS EKS Creation or Modification of Sensitive Role