Skip to main content

Flowtriq DDoS Detection Agent — real-time L3/L4/L7 traffic monitoring, incident detection, PCAP capture, and auto-mitigation

Project description

Flowtriq

ftagent

Real-time DDoS detection, attack classification, PCAP forensics, and auto-mitigation for Linux servers.
Detects attacks in under 1 second. Classifies 7 families and 16+ subtypes. Mitigates automatically.

PyPI Website Discord Docs


ftagent demo


What it does

ftagent is the on-node agent for Flowtriq, a DDoS detection and mitigation platform built for hosting providers, game server networks, ISPs, and anyone running infrastructure that needs to stay online.

The agent monitors traffic at the packet level, learns your normal traffic patterns, detects attacks the moment they start, classifies them by protocol and vector, captures forensic PCAPs, and triggers automated mitigation through firewall rules, BGP FlowSpec, RTBH, or cloud scrubbing.

In production

  • 159 Gbps multi-vector attack mitigated in 9 seconds for an EU network operator. 40+ customer prefixes on the affected uplink, zero SLA breaches. Detection at 0.7s, FlowSpec active at 9s. (Case study)

  • 48 Gbps NTP amplification + SYN flood during a live 240-person cybersecurity training event. Full mitigation stack active in under 15 seconds. Not one participant noticed. (Case study)

"159 gig hit our transit edge at ten in the morning. Forty-plus customers on that uplink, including a government account with a hard SLA. The whole thing was mitigated before our legacy SNMP monitoring even knew it was happening." -- Head of Network Operations, EU transit operator


Install

pip install ftagent[full]
sudo ftagent --setup
sudo ftagent --install-service
sudo systemctl enable --now ftagent

That's it. Your node appears in the Flowtriq dashboard within 30 seconds. 14-day free trial, no credit card required.

Requirements

  • Linux (Ubuntu 20.04+, Debian 11+, CentOS 8+)
  • Python 3.8+
  • Root / sudo (for raw packet capture)
  • A Flowtriq account

From source

git clone https://github.com/flowtriq/ftagent.git
cd ftagent
pip install -e .[full]

Detection

L3/L4 (packet-level)

The agent samples PPS/BPS every second and maintains adaptive baselines with time-of-day awareness. When traffic exceeds the threshold, an incident is opened, classified, and reported within one second.

Attack families: UDP flood, SYN flood, TCP flood (ACK/RST/FIN/PSH), DNS flood, ICMP flood, protocol flood (GRE/ESP), fragment flood, multi-vector

Attack subtypes: DNS amplification, NTP amplification, SSDP, memcached, CLDAP, CharGEN, SNMP, mDNS, WS-Discovery, SYN-ACK flood, XMAS flood, NULL flood, UDP fragment flood, QUIC flood, and more

Threat intel enrichment: 481,000+ active IOCs from 26 threat feeds. When a known botnet signature (Mirai, Gafgyt, Mozi, XorDDoS, etc.) or DDoS tool (LOIC, MHDDoS, Slowloris) is matched in packet payloads, the incident is labeled with the specific tool name and confidence is boosted.

L7 (application-layer)

Tails your web server access log (nginx, Apache, Caddy, LiteSpeed, HAProxy, Node.js) and detects HTTP floods via request rate spikes, IP concentration, endpoint targeting, error rate anomalies, and bot UA percentage.

L7 subtypes: Volumetric HTTP flood, credential stuffing, API abuse, scraping, slow-rate (R.U.D.Y./Slowloris patterns), single-source abuse, HTTP/2 Rapid Reset (CVE-2023-44487), HTTP/2 SETTINGS flood, HTTP/2 CONTINUATION flood (CVE-2024-27983), QUIC flood

Threat patterns: SQLi, XSS, path traversal, RFI/LFI, WordPress probes, Shellshock, Log4j, scanner probes, CVE exploits

Baselines

Adaptive sliding-window baselines that learn your actual traffic patterns:

  • 300-sample rolling window with p99 percentile calculation
  • Time-of-day awareness with per-hour baselines (24 buckets). Off-peak hours get more sensitive thresholds, peak hours avoid false positives
  • 90-second startup grace period prevents alerts during initial learning
  • 5,000 PPS minimum floor prevents false positives on quiet servers
  • 10-tick hysteresis prevents flapping on resolution
  • IP safelists for known-good traffic sources

Mitigation

When an attack is detected, ftagent can execute mitigation automatically through a 4-tier escalation ladder:

  1. Local firewall - iptables/nftables rate limiting, SYN cookies, conntrack tuning, source blocking (27 action types + 5 kernel-level intents)
  2. BGP FlowSpec - Push flow-specification rules to upstream routers via ExaBGP, GoBGP, BIRD 2, or FRRouting
  3. BGP RTBH - Remote triggered blackhole routing for volumetric attacks
  4. Cloud scrubbing - Auto-divert to Cloudflare Magic Transit, OVH, Hetzner, AWS Shield, DigitalOcean, Vultr, or Linode/Akamai

All mitigation rules auto-undo when the incident resolves. Full audit trail in the dashboard.


PCAP forensics

Every incident gets a packet capture automatically:

  • 1,000-packet pre-attack ring buffer captures traffic from before the attack started
  • Up to 10,000 packets per incident with configurable limits
  • Auto-upload to the dashboard on incident resolution
  • In-browser PCAP viewer with packet filtering, protocol breakdown, and AI-powered analysis
  • 7-day retention (365-day on enterprise plans)
  • Capture modes: scapy (real-time per-packet) or tcpdump (kernel-speed, recommended for high-traffic nodes)

Alerting

13 notification channels with multi-step escalation policies:

Discord, Slack, PagerDuty, OpsGenie, Microsoft Teams, Telegram, email, SMS, custom webhooks, browser push, Grafana, Datadog, Prometheus

Escalation policies support per-step delays, severity-based routing, maintenance window suppression, and correlated incident deduplication.


Integrations

Category Integrations
Alert channels Discord, Slack, PagerDuty, OpsGenie, Teams, Telegram, Email, SMS, Webhooks, Grafana, Datadog, Prometheus
BGP adapters ExaBGP, GoBGP, BIRD 2, FRRouting, Cloudflare, Radware, F5, Webhook
Cloud scrubbing Cloudflare Magic Transit, OVH, Hetzner, AWS Shield, DigitalOcean, Vultr, Linode/Akamai, Cloudflare WAF
SIEM Splunk HEC, Elasticsearch, Microsoft Sentinel, Syslog CEF, Wazuh, MISP
Observability Grafana, Datadog, Prometheus
Firewall iptables, ipset, nftables, ufw, tc, fail2ban, XDP/eBPF
Flow sources sFlow v5, NetFlow v5/v9, IPFIX
Panels Pterodactyl, WHMCS

Configuration

Config file: /etc/ftagent/config.json

Key Default Description
api_key -- Required. Your Flowtriq node API key
node_uuid -- Required. Node UUID from your dashboard
interface "auto" Network interface to monitor
pcap_enabled true Enable PCAP capture during incidents
pcap_mode "tcpdump" Capture engine: "tcpdump" (recommended) or "scapy"
dynamic_threshold true Adaptive baseline detection
threshold_multiplier 3.0 Alert when PPS exceeds baseline x multiplier
heartbeat_interval 30 Seconds between heartbeats
metrics_interval 10 Seconds between metrics reports
auto_update true Auto-update from PyPI with integrity verification

Full config reference: flowtriq.com/docs


CLI

sudo ftagent [options]

  --setup            Interactive setup wizard
  --install-service  Install systemd service unit
  --config PATH      Config file path (default: /etc/ftagent/config.json)
  --test             Test API connectivity
  --tui              Terminal UI dashboard (requires 'rich')
  --version          Show version
  --update           Check for and install updates

Pricing

$9.99/node/month (or $7.99/month on annual). No activation fees, no bandwidth licensing, no contracts. All features included on every plan. 14-day free trial, no credit card required.

Flow sources from $19/mo. Mirror/SPAN from $49/mo. Full pricing.


Docs

Full documentation: flowtriq.com/docs


Support

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ftagent-1.9.32.tar.gz (130.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ftagent-1.9.32-py3-none-any.whl (100.5 kB view details)

Uploaded Python 3

File details

Details for the file ftagent-1.9.32.tar.gz.

File metadata

  • Download URL: ftagent-1.9.32.tar.gz
  • Upload date:
  • Size: 130.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for ftagent-1.9.32.tar.gz
Algorithm Hash digest
SHA256 831175e4f71e29e2e5a3e1db48d03d927d9b83e194e322e6b2f711bdbca7e730
MD5 daff59763a98153d01d7a15cbb366a9b
BLAKE2b-256 094f45b01974945ef9b649d8dc33deb54d17e4a3b988cdca376d8d9817eaaa1d

See more details on using hashes here.

File details

Details for the file ftagent-1.9.32-py3-none-any.whl.

File metadata

  • Download URL: ftagent-1.9.32-py3-none-any.whl
  • Upload date:
  • Size: 100.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for ftagent-1.9.32-py3-none-any.whl
Algorithm Hash digest
SHA256 c742a78ba535f1dfdf659b84736f402d8d31224c84e70742cfae0ee91cf44983
MD5 a4f8b807923258c0aee46ee6cfb3f980
BLAKE2b-256 34cfcea7dde8b10bf6c5c530ff3cf9a3f760248cc92028d3236a218d9c62757c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page