Tartarus has multiple phases. Among those we know about it does a traditional proof of work where it forces the attacker to use a bunch of CPU. And a proof of transfer where it forces the attacker to transfer a lot of data. Many of the attackers are using residental VPNs where they may pay a significant amount for data transfer compared to the site where it's "free". The SHA256 sum is just to verify the data was transferred.
To expand on this for folks who are curious, and whose confidently wrong AI slopcannon may be spitting out
exceptional shit like "16 byte challenge size":
Traditional DoS attacks work because it takes more effort to generate a web page than to consume it, especially if the consumer is a bot that's just throwing away the response from the server without actually rendering it on a screen. If you think about what goes into rendering a forum page, you realize it has to pull posts from a database, filter out ignored users, render the HTML according to what style you selected, etc. etc. Even with server-side caching, that's a lot more work than just making an HTTP request.
There are two known solutions to this, which are typically used on tandem: a) try to identify and discard the bot traffic before the server has to do any work, and b) increase the work everyone (including bots) has to do, to try to make the bot attack economically infeasible.
The Google-style "click on the motorcycles in this picture" CAPTCHA falls into the first category. This is a task that used to be hard for bots (but isn't any more), but they can also use tricks like watching your mouse movements between clicks to see if you "move like a robot." They're also looking up the reputation of your IP address and other signals, which can take some time to compute—the CAPTCHA "toll gate" is in some ways a stalling mechanism while they come up with a verdict. The result of this verdict is stored in a cookie sent with every subsequent request, so they only have to decide once if you're a bot or not.
But the big problem with trying to detect bots is that eventually, a clever bot author can make their bot traffic basically byte-for-byte identical with real traffic, and they can use malware or other techniques to send it from the same sorts of ISPs that legitimate users use. The techniques that can be used to identify what software you're using (bot or real browser) can also be used to track you between websites, so browser makers go to great lengths to make the real requests look as generic as possible.
Thus we're left with the second category, "proof of work" solutions. These include Bitcoin-style cryptographic ones (which actually
predate Bitcoin by about a decade, and were originally proposed as a mechanism for fighting email spam). These can be designed to take more CPU cycles for the consumer to come up with a solution to a math problem than the server needs to verify the solution is correct. These can also be things like bandwidth challenges (the one we're discussing), which are designed to increase the costs of a specific category of bot traffic, hopefully at minimal cost to real users or to the server. These don't necessarily have to be asymmetric in effort, so long as they make it too expensive for the attacker to continue.
The downside of proof of work is that you have to accommodate people's shitty old computers and mobile phones, which
can't do a lot of work, because they have slow CPUs and slow internet connections. A fast computer in a datacenter has the computing power and bandwidth of tens or hundreds of low-end mobile phones.
There isn't a single, easy solution here, so Null has to balance mutually exclusive factors. I've built systems like this before, and I think he's doing an admirable job of it.