Skip to content

[New] Curl and Multiple HTTP Client Families from One External IP - #7213

Merged
Samirbous merged 11 commits into
mainfrom
ua_switch
Nov 23, 2026
Merged

Samirbous merged 11 commits into
mainfrom
ua_switch

Conversation

@Samirbous

Copy link
Copy Markdown
Contributor

Detects one external address using curl plus at least two other HTTP client families in a single minute, with 20 or more requests. The other families are Python, norma (ARTEX web fetch), a browser, and the AWS CLI 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.

Detects one external address using curl plus at least two other HTTP client families in a single minute, with 20 or more requests. The other families are Python, norma (ARTEX web fetch), a browser, and the AWS CLI 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.
@Samirbous Samirbous self-assigned this Nov 20, 2026
Copilot AI balanced review requested due to automatic review settings November 20, 2026 17:04
@botelastic botelastic Bot added python Internal python for the repository schema labels Nov 20, 2026
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change lacks the package version bump required by CI, retains a mixed-type source.ip aggregation conflict, and can overcount requests from duplicate audit stages.

3 open issues
What changed in this PR

Adds an ES|QL detection rule for an external IP using curl plus at least two other HTTP client families within one minute, with a threshold of 20 requests.

Changes:

  • Correlates user-agent families across selected web, cloud, identity, and Kubernetes logs.
  • Adds investigation guidance, private-address exclusions, and one-hour alert suppression by source IP.
  • Registers the Threat: Agentic Offensive Frameworks tag.
File Description
rules/​cross-platform/​reconnaissance_curl_multiple_http_client_families.toml Adds the detection query, metadata, triage guidance, and suppression settings.
detection_rules/​schemas/​definitions.py Adds the new threat tag to the accepted tag vocabulary.

Review effort: Balanced

Comment thread detection_rules/schemas/definitions.py Resolved
Samirbous and others added 2 commits November 23, 2026 09:04
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Mika Ayenson, PhD <Mikaayenson@users.noreply.github.com>
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

Samirbous and others added 3 commits November 23, 2026 09:40
…families.toml

Co-authored-by: Bryan Porras <bryan.porras@elastic.co>
…families.toml

Co-authored-by: Bryan Porras <bryan.porras@elastic.co>
Co-authored-by: Bryan Porras <bryan.porras@elastic.co>
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

@eric-forte-elastic eric-forte-elastic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May want to aggregate by something like data_stream.namespace in addition to source.ip otherwise you might have alerts coming from multiple different environments contributing to the total, but otherwise looks good to me 👍

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

@Samirbous
Samirbous enabled auto-merge November 23, 2026 16:54
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

@Samirbous
Samirbous added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 66d9f22 Nov 23, 2026
13 checks passed
@Samirbous
Samirbous deleted the ua_switch branch November 23, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants