Better HN
topnewbestaskshowjobs
Log inSign up

krizhanovsky

179 karma · joined Jan 10, 2014 (12y ago) · 73 submissions

Hi, I'm Alexander, the CEO of Tempesta Technologies and the architect of Tempesta FW, a high performance open source Linux application delivery controller.
Submissions

comment 3mo ago · link · parent

Hi HN,

DDoS attacks are becomeing larger and cheaper to launch, so we work on a scalable open source solution to mitigate them.

Tempesta xFW's core is XDP and TC eBPF programs implementing volumetric DDoS filtering. A user-space daemon handles gRPC requests from CLI tool or WebAPI (via C library).

It supports two packet-path architectures:

* host-based protection, such as CDN edge or on-premises application delivery controller (ADC) cases, where the host is a TCP connection endpoint. This is good for protecting a local web or DNS server.

* router-based protection, such as ISP, hosting, or IaaS provider cases, where the host routes IP packets to protected servers or networks.

Router-based deployment can be always-on/pass-through or on-demand/redirection protection. In the later case, a node may not "see" normal clean traffic and may receive only traffic containing a DDoS attack. Also, the node may receive only client-to-server traffic, as in direct server return (DSR) or some traffic scrubbing scenarios. In this mode a DDoS sensor and mitigation controllers are typically needed.

Traffic performance metrics are exported in Prometheus format.

DDoS incidents are aggregated per source IP and logged to ClickHouse for analysis.

A dry-run (evaluation) - mode allows you to observe all reported incidents and metrics without blocking traffic..

Single Xeon Gold 6348 with ConnectX-6 dual 100Gbps reach 196Mpps and 176Gbps of filtering capacity.

* GitHub repository: https://github.com/tempesta-tech/xFW

* documentation: https://tempesta-tech.com/tempesta-escudo/knowledge-base/XFW...

* performance benchmarks: https://tempesta-tech.com/tempesta-escudo/knowledge-base/Per...

* Netdev 0x1a talk: https://netdevconf.info/0x1A/sessions/talk/tempesta-xfw-open...

2.

Open-source XDP/TC DDoS filtering for 100G+ Linux networks(github.com ↗)

3 points · by krizhanovsky · 3mo ago · 1 comment

comment 3mo ago · link · parent

Hi, thank you! Yes, xFW can be coupled with Tempesta FW (https://github.com/tempesta-tech/tempesta) and WebShield (https://github.com/tempesta-tech/webshield) to provide full L3-L7 DDoS protection and bot management.

comment 3mo ago · link · parent

Hi HN,

DDoS attacks are becomeing larger and cheaper to launch, so we work on a scalable open source solution to mitigate them.

Tempesta xFW's core is XDP and TC eBPF programs implementing volumetric DDoS filtering. A user-space daemon handles gRPC requests from CLI tool or WebAPI (via C library).

It supports two packet-path architectures:

* host-based protection, such as CDN edge or on-premises application delivery controller (ADC) cases, where the host is a TCP connection endpoint. This is good for protecting a local web or DNS server.

* router-based protection, such as ISP, hosting, or IaaS provider cases, where the host routes IP packets to protected servers or networks.

Router-based deployment can be always-on/pass-through or on-demand/redirection protection. In the later case, a node may not "see" normal clean traffic and may receive only traffic containing a DDoS attack. Also, the node may receive only client-to-server traffic, as in direct server return (DSR) or some traffic scrubbing scenarios. In this mode a DDoS sensor and mitigation controllers are typically needed.

Traffic performance metrics are exported in Prometheus format.

DDoS incidents are aggregated per source IP and logged to Clickhouse for analysis.

A dry-run (evaluation) - mode allows you to observe all reported incidents and metrics without blocking traffic..

Single Xeon Gold 6348 with ConnectX-6 dual 100Gbps reach 196Mpps and 176Gbps of filtering capacity.

Documentation: https://tempesta-tech.com/tempesta-escudo/knowledge-base/XFW...

Performance benchmarks: https://tempesta-tech.com/tempesta-escudo/knowledge-base/Per...

Netdev 0x1a talk: https://netdevconf.info/0x1A/sessions/talk/tempesta-xfw-open...

5.

Show HN: Open-Source eBPF Volumetric DDoS Protection(github.com ↗)

3 points · by krizhanovsky · 3mo ago · 3 comments

comment 12mo ago · link · parent

Most open-source L7 DDoS mitigation and bot-protection approaches rely on challenges (e.g., CAPTCHA or JavaScript proof-of-work) or static rules based on the User-Agent, Referer, or client geolocation. These techniques are increasingly ineffective, as they are easily bypassed by modern open-source impersonation libraries and paid cloud proxy networks.

We explore a different approach: classifying HTTP client requests in near real time using ClickHouse as the primary analytics backend.

We collect access logs directly from Tempesta FW (https://github.com/tempesta-tech/tempesta), a high-performance open-source hybrid of an HTTP reverse proxy and a firewall. Tempesta FW implements zero-copy per-CPU log shipping into ClickHouse, so the dataset growth rate is limited only by ClickHouse bulk ingestion performance - which is very high.

WebShield (https://github.com/tempesta-tech/webshield/), a small open-source Python daemon:

* periodically executes analytic queries to detect spikes in traffic (requests or bytes per second), response delays, surges in HTTP error codes, and other anomalies;

* upon detecting a spike, classifies the clients and validates the current model;

* if the model is validated, automatically blocks malicious clients by IP, TLS fingerprints, or HTTP fingerprints.

To simplify and accelerate classification — whether automatic or manual — we introduced a new TLS fingerprinting method.

WebShield is a small and simple daemon, yet it is effective against multi-thousand-IP botnets.

7.

Using ClickHouse for L7 DDoS and Bot Traffic Analytics with Tempesta FW(tempesta-tech.com ↗)

1 points · by krizhanovsky · 12mo ago · 1 comment

comment 1y ago · link · parent

It's useful to store a web server access logs in an analytics database, e.g. to fight against bot attacks. We store structured access logs in Clickhouse, which is already good, but compression and data ordering from the post may improve performance even more - we'll try this.

The thing is that a web server, especially under DDoS, may produce much more records than Clickhouse can ingest. But there is good news: for Nginx, if you build a fast pipeline to feed access logs to Clickhouse, you can increase performance, I'd say up to x2, thanks to faster access logging.

9.

Performance optimizations for storing web server access logs in ClickHouse(clickhouse.com ↗)

2 points · by krizhanovsky · 1y ago · 1 comment

comment 1y ago · link · parent

uRPF prevents IP spoofing used in volumetric DDoS attacks. However, it seems uRPF is vulnerable to route hijacking on its own

11.

Stealth BGP Hijacks with URPF Filtering [pdf](usenix.org ↗)

4 points · by krizhanovsky · 1y ago · 1 comment

comment 1y ago · link · parent

This is quite insightful, thank you.

This particular project, WebShield, is simple and it didn't take too long to develop. Basically, with this project we're trying to figure out what can be built having fingerprints and traffic characteristics in an analytic database. It's seems easy to make PoCs with these features.

For now, if this tool can stop some dummy bots, we'll be happy. We definitely need more development and more sophisticated algorithms to fight against some paid scrapping proxies.

It's more or less simple to classify DDoS bots because they have clear impact - the system performance degrades. For some bots we also can introduce the target, for the bots and the protection system, e.g. the booked slots for a visa appointments. For some scrappers this is harder.

Another opportunity is to dynamically generate classification features and verify resulting models, build web page transition graphs and so on.

This is a good point about possible blocking of ~50% of the Internet. For DDoS we _mitigate_ an attack, not _block_ it, so probably for bots we should do the same - just rate limit them instead of full blocking.

Technically, we can implement verification of client side certificates, but, yes, the main problem of adoption on the client side.

comment 1y ago · link · parent

That's a good advice, thank you.

In our approach we do our best to not to affect user experience. E.g. consider an example of a company website with a blog. The company does it's best to engage more audience to their blog, products whatever. I guess quite a part of the audience will be lost due to requirement of authentication on website, which they see first time.

However, for returning, and especially regular, clients I think that is a really simple and good solution.

comment 1y ago · link · parent

Hi,

thank you for the reply!

You can read about JA5 at https://tempesta-tech.com/knowledge-base/Traffic-Filtering-b... .

But the thing is that the hashes were just inspired by the work of John Althouse and there is no any relation.

Unfortunately, we didn't realize what "JA" stands for at the time we were designing the feature. We will rename it https://github.com/tempesta-tech/tempesta/issues/2533 .

Sorry for the confusion.

15.

Show HN: An open source access logs analytics script to block bot attacks(github.com ↗)

37 points · by krizhanovsky · 1y ago · 7 comments

16.

The new HTTP/2 vulnerability: 'Made You Reset' CVE-2025-8671(tempesta-tech.com ↗)

2 points · by krizhanovsky · 1y ago · discuss

17.

Understanding and Improving Web Security Performance(forbes.com ↗)

1 points · by krizhanovsky · 1y ago · discuss

18.

Building your own WordPress staging with Tempesta FW(tempesta-tech.com ↗)

2 points · by krizhanovsky · 2y ago · discuss

19.

Full browser stack L7 DDoS against Russian resources

4 points · by krizhanovsky · 4y ago · discuss

comment 6y ago · link · parent

The benchmarks https://github.com/ncm/computed-goto/blob/master/benchmarks/... benchmark is not applicable to this discussion because it compares _too_ small state machines. I reference my talk and presentation once more: http://www.tempesta-tech.com/research/http_str.pdf - slide 23 discusses that the goto FSM makes sense for _hundreds_ of states.
123