Curl and Multiple HTTP Client Families from One External IP

Last updated 4 days ago on 2026-11-20
Created 4 days ago on 2026-11-20

About

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.
Tags
Domain: CloudDomain: IdentityDomain: NetworkDomain: ContainersUse Case: Threat DetectionTactic: ReconnaissanceData Source: AWSData Source: Amazon Web ServicesData Source: AWS CloudTrailData Source: AzureData Source: Microsoft 365Data Source: Microsoft Entra ID Sign-In LogsData Source: Microsoft Graph Activity LogsData Source: Google Cloud PlatformData Source: GCPData Source: GCP Audit LogsData Source: KubernetesData Source: Network Packet CaptureData Source: Network TrafficData Source: ZeekData Source: OktaData Source: Okta System LogsData Source: Anthropic Audit LogsData Source: OpenAI ChatGPT EnterpriseRule Type: ES|QLThreat: Agentic Offensive FrameworksPlatform: AWSPlatform: AzurePlatform: Entra IDPlatform: GCPPlatform: KubernetesPlatform: OktaPlatform: AnthropicPlatform: OpenAIService: AWS EKSService: NginxService: Apache HTTP ServerService: Apache TomcatService: IISLanguage: esql
Severity
medium
Risk Score
47
MITRE ATT&CK™

Reconnaissance (TA0043)(external, opens in a new tab or window)

False Positive Examples
A shared NAT, proxy, or build system can still mix curl with a browser and Python or the AWS CLI in the same minute. Exclude that address on source.ip. Esql.* fields cannot be used in an exception entry.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Integration Pack
Prebuilt Security Detection Rules
Related Integrations

apache(external, opens in a new tab or window)

apache_tomcat(external, opens in a new tab or window)

anthropic(external, opens in a new tab or window)

aws(external, opens in a new tab or window)

azure(external, opens in a new tab or window)

gcp(external, opens in a new tab or window)

gcp_vertexai(external, opens in a new tab or window)

iis(external, opens in a new tab or window)

kubernetes(external, opens in a new tab or window)

network_traffic(external, opens in a new tab or window)

nginx(external, opens in a new tab or window)

o365(external, opens in a new tab or window)

okta(external, opens in a new tab or window)

openai_chatgpt_enterprise(external, opens in a new tab or window)

traefik(external, opens in a new tab or window)

zeek(external, opens in a new tab or window)

Query
text code block:
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.auditlogs-*, 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-* | where user_agent.original is not null and source.ip is not null | eval Esql.ua_lower = to_lower(user_agent.original) // curl*, python*/Python*, norma*, Mozilla/5.0*, Boto3*, aws-cli*, aws-sdk* | where Esql.ua_lower like "curl*" or Esql.ua_lower like "python*" or Esql.ua_lower like "norma*" or Esql.ua_lower like "mozilla/5.0*" or Esql.ua_lower like "boto3*" or Esql.ua_lower like "aws-cli*" or Esql.ua_lower like "aws-sdk*" // TO_IP handles indices where source.ip is mapped as keyword instead of ip | eval Esql.source_ip = to_ip(source.ip) | where Esql.source_ip is not null and not cidr_match( Esql.source_ip, "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "127.0.0.0/8", "169.254.0.0/16", "100.64.0.0/10", "0.0.0.0/8", "224.0.0.0/4", "255.255.255.255/32", "::1/128", "fc00::/7", "fe80::/10", "ff00::/8" ) | eval Esql.ua_family = case( Esql.ua_lower like "boto3*" or Esql.ua_lower like "aws-cli*" or Esql.ua_lower like "aws-sdk*", "aws", Esql.ua_lower like "python*", "python", Esql.ua_lower like "curl*", "curl", Esql.ua_lower like "norma*", "norma", Esql.ua_lower like "mozilla/5.0*", "browser", "other" ) | eval Esql.is_curl = case(Esql.ua_family == "curl", 1, 0) | stats Esql.request_count = count(*), Esql.curl_request_count = sum(Esql.is_curl), Esql.ua_family_distinct_count = count_distinct(Esql.ua_family), Esql.ua_family_values = values(Esql.ua_family), Esql.ua_distinct_count = count_distinct(user_agent.original), Esql.ua_values = values(user_agent.original), Esql.event_action_values = values(event.action), Esql.outcome_distinct_count = count_distinct(event.outcome), Esql.outcome_values = values(event.outcome) by source.ip = Esql.source_ip, Esql.time_window = date_trunc(1 minute, @timestamp), data_stream.namespace | where Esql.curl_request_count > 0 and Esql.ua_family_distinct_count >= 3 and Esql.request_count >= 20 and Esql.outcome_distinct_count >= 2 | sort Esql.request_count desc | keep source.ip, Esql.*, data_stream.namespace

Install detection rules in Elastic Security

Detect Curl and Multiple HTTP Client Families from One External IP in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).