Skip to content

add wip scenarios for challenge mode#1815

Open
blotus wants to merge 4 commits into
masterfrom
waf-challenge-mode-scenarios
Open

add wip scenarios for challenge mode#1815
blotus wants to merge 4 commits into
masterfrom
waf-challenge-mode-scenarios

Conversation

@blotus

@blotus blotus commented Jun 1, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 1, 2026 15:34
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

Hello @blotus,

Scenarios/AppSec Rule are compliant with the taxonomy, thank you for your contribution!

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.

Pull request overview

Adds three work-in-progress AppSec scenarios that detect abnormal interaction patterns with the AppSec challenge page (excessive requests, excessive submissions, and requests without subsequent submissions).

Changes:

  • New leaky scenario crowdsecurity/appsec-challenge-too-many-submissions (5 submits / 60s, blackhole 1m).
  • New leaky scenario crowdsecurity/appsec-challenge-too-many-requests (5 requests / 60s, blackhole 1m).
  • New counter scenario crowdsecurity/appsec-challenge-request-with-no-submission using cancel_on to discard buckets where a submission follows the request.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
scenarios/crowdsecurity/challenge-too-many-submit.yaml Leaky bucket on submitted challenge events grouped by source IP.
scenarios/crowdsecurity/challenge-too-many-request.yaml Leaky bucket on requested challenge events grouped by source IP.
scenarios/crowdsecurity/challenge-request-with-no-submission.yaml Counter scenario that fires when a challenge is requested but not submitted within 60s.

type: leaky
format: 3.0
#debug: true
name: crowdsecurity/appsec-challenge-too-many-submissions
Comment on lines +4 to +5
name: crowdsecurity/appsec-challenge-too-many-requests
description: "Client made too many request to challenge page"
Comment on lines +4 to +5
name: crowdsecurity/appsec-challenge-request-with-no-submission
description: "Client made too many request to challenge page"
Comment on lines +15 to +16
classification:
- attack.T1110
Comment on lines +13 to +20
labels:
service: http
confidence: 0
spoofable: 0
classification:
- attack.T1110
label: "Blocked by CrowdSec AppSec"
behavior: "http:exploit"
Comment on lines +1 to +19
type: leaky
format: 3.0
#debug: true
name: crowdsecurity/appsec-challenge-too-many-submissions
description: "Client made too many submissions for challenge"
filter: "evt.Meta.log_type == 'appsec-challenge' && evt.Meta.challenge_event == 'submitted'"
leakspeed: "60s"
capacity: 5
groupby: evt.Meta.source_ip
blackhole: 1m
labels:
service: http
confidence: 0
spoofable: 0
classification:
- attack.T1110
label: "Blocked by CrowdSec AppSec"
behavior: "http:exploit"
remediation: true
expression: Sprintf("%+v", evt.Appsec.GetRuleIDs())
- meta: remediation_cmpt_ip
expression: "evt.Parsed.remediation_cmpt_ip"
- meta: challenge_event

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.

add to parsed:

  • positive bot detection flags
  • platform/os
  • Browser family

@buixor

buixor commented Jun 1, 2026

Copy link
Copy Markdown
Contributor
  • add the failed submission trigger scenario
  • add alert-context file (FSID, platform, browser family)

@github-actions

Copy link
Copy Markdown

Hello @buixor,

Scenarios/AppSec Rule are compliant with the taxonomy, thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants