Add Flowtriq DDoS detection parser and scenarios - #1836
Open
jacob-masse wants to merge 4 commits into
Open
Conversation
Adds CEF log parser, DDoS attack trigger scenario, and repeated attacker leaky bucket scenario for Flowtriq DDoS detection platform.
- Remove source_ip (src), protocol (proto), source_port (spt), destination_port (dpt) fields that don't exist in Flowtriq CEF output - Map cs2 to severity instead of confidence - Add source_count (cnt) and incident_id (cs3) fields - Change scenario groupby/filter from source_ip to destination_ip since Flowtriq CEF reports the target node, not individual attackers - Filter on severity instead of confidence in scenario triggers - Update documentation to reflect actual extracted metadata
Member
|
Hello, Thanks for the PR. You are currently missing automated tests for your parser and scenario. |
Parser test covers CEF log parsing for DDoS Attack Detected, DDoS Attack Detected (critical), and DDoS Attack Resolved events. Scenario test validates the trigger-based ban fires for high/critical severity attacks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds parser and scenarios for Flowtriq DDoS detection alerts. When Flowtriq detects an attack, CrowdSec can parse the alert logs and create ban decisions against attacker source IPs, propagating protection across all connected bouncers.
What's included
Parser (
jacob-masse/flowtriq-logs): Parses Flowtriq CEF syslog alerts, extracting source IP, destination IP, attack type, severity, pps, bps, and confidence level. Builds on the existingcrowdsecurity/cef-logsraw parser.Scenarios:
jacob-masse/flowtriq-ddos-attack: Trigger-based ban when Flowtriq reports an attack with high or critical confidencejacob-masse/flowtriq-repeated-attacker: Leaky bucket (capacity 2, leak 30m) to catch repeated attackers across multiple incidentsCollection (
jacob-masse/flowtriq): Bundles the parser and both scenariosAbout Flowtriq
Flowtriq is a DDoS detection platform that analyzes network traffic via sFlow/NetFlow/IPFIX and detects volumetric attacks. The FTAgent can output structured alerts in Syslog CEF format for SIEM integration.
Acquisition example