Skip to content

DDoS Attack Detection

Treblle’s DDoS Attack Detection feature helps you identify potential Distributed Denial of Service (DDoS) attacks by monitoring traffic patterns and flagging unusual request spikes that could indicate malicious activity.

Treblle continuously monitors your API traffic and compares current request volumes to historical patterns to identify potential DDoS attacks.

The system tracks request spikes by:

  • Monitoring 15-minute intervals: Analyzing traffic in 15-minute windows
  • Comparing to daily averages: Using historical data to establish baseline traffic patterns
  • Calculating percentage increases: Determining how much current traffic exceeds normal levels
  • Flagging potential threats: Automatically categorizing threat levels based on traffic increases

DDoS threats are categorized into three levels based on traffic increase percentages:

  • Range: 80-150% above daily average
  • Indication: Moderate traffic spike that could be legitimate increased usage or a small-scale attack
  • Response: Monitor closely and investigate if sustained
  • Range: 150-350% above daily average
  • Indication: Significant traffic spike likely indicating coordinated activity
  • Response: Implement rate limiting and investigate source IPs
  • Range: 350% or more above daily average
  • Indication: Severe traffic spike strongly suggesting a DDoS attack
  • Response: Immediate action required - activate DDoS mitigation measures
  1. Navigate to API Dashboard

    Go to your individual API dashboard for the API you want to monitor.

  2. Open Customize Dashboard

    Click the Customize Dashboard button (four squares icon) on the right side of the dashboard.

    In the customize menu, find and enable the “Denial of Service” widget.

  3. Save Changes

    Click Save Changes to add the DDoS monitoring widget to your dashboard.

The Denial of Service widget displays:

  • Current threat level: Visual indicator of the current DDoS threat status
  • Traffic comparison: Real-time comparison of current vs. average traffic
  • Percentage increase: Exact percentage of traffic increase
  • Time-based graph: Historical view of traffic patterns and spikes

To protect against DDoS attacks:

  1. Configure Rate Limiting

    • Set appropriate request limits per IP
    • Implement progressive delays for repeated requests
  2. Use CDN Services

    • Leverage Content Delivery Networks for traffic distribution
    • Enable DDoS protection features offered by CDN providers
  3. Monitor IP Reputation

    • Use Treblle’s Risky IPs feature
    • Implement automatic blocking of known malicious IPs
  4. Set Up Custom Alerts

    • Create Custom Alerts for traffic spikes
    • Configure notifications for immediate threat response

DDoS detection works alongside other Treblle security features:

By leveraging Treblle’s DDoS detection capabilities, you can quickly identify and respond to potential attacks, maintaining the availability and performance of your APIs even under malicious traffic conditions.