| ▲ | Understanding the recent DDoS attack against Read the Docs(about.readthedocs.com) |
| 131 points by davidfischer 7 hours ago | 43 comments |
| |
|
| ▲ | Animats 2 hours ago | parent | next [-] |
| I'd like to see more of a legal response. First, find out who's on the other end of a few hundred IP addresses. Start with ones in the US. Sue for damages. Use discovery to find out what's on the other end. Sue the maker of that device. If it turns out to be an appliance or smart TV, it may be possible to consolidate cases into one case against the manufacturer. Criminal negligence, tort interference with contract, harassment, Computer Fraud and Abuse act violation...
Maybe a restraining order prohibiting the sale of "smart TV" known to be able to host attacks. Have imports seized by Customs and Border Protection. That would get a manufacturer's attention. The manufacturer's EULA will not help the manufacturer, because the plaintiff, the party being attacked, is not a party to the EULA at all. |
| |
| ▲ | OptionX an hour ago | parent | next [-] | | I agree they they should, but that would be hard before, now in the IoT-hell where even your lightbulbs and internet-facing and capable of being proxies seems like a herculean effort. Pretty sure I saw an article on HN a few days ago about, in part, how a bunch on seemingly innocuous apps for smart tvs, stuff like screen savers and the like, all ran proxy servers (in the users residential address) under the hood. I think it was in the GamerNexus investigation on the whole LG Tv spying on people IIRC. | | |
| ▲ | pdonis 34 minutes ago | parent [-] | | AFAIK most people's contract with their ISP includes fine print that forbids a lot of the nasty things these IoT and "smart" devices do. |
| |
| ▲ | nubinetwork 2 hours ago | parent | prev [-] | | I'd love to see China and Russia sued for hammering my personal websites for the past 20 years... will it ever happen? Hell no, LOL. |
|
|
| ▲ | fn-mote 4 hours ago | parent | prev | next [-] |
| There’s an assumption that turning on Cloudflare’s “under attack” mode would mitigate the attack. Given how adaptive the rest of the attack was, I would be very curious to find out how it would approach that obstacle. |
| |
| ▲ | davidfischer 4 hours ago | parent | next [-] | | My assumption would be that it would drastically reduce the attack to be borderline irrelevant. I've never turned on Under Attack so somebody else may have more insight and the docs[1] don't describe precisely what happens besides a JS interstitial. I know that JS challenges, both interactive and non-interactive, can be solved by bots. I've seen it. However, I suspect that the challenges just get harder and harder until the attack levels drop. [1] https://developers.cloudflare.com/fundamentals/reference/und... | | |
| ▲ | gruez 2 hours ago | parent [-] | | It changes the economics of the attack because it requires the attacker to do compute before they can make requests. Depending on how good the fingerprinting is, it can also get very expensive (eg. requiring you to run a full browser, rather than merely computing a few sha256 hashes) |
| |
| ▲ | Symbiote 4 hours ago | parent | prev [-] | | That has only partially mitigated much smaller attacks (residential proxy scraping etc) on my employer's site. We're currently on the "Business" plan, but I'm coming to the conclusion that we need to upgrade to the "Enterprise Advantage" plan for the JA3/4 fingerprinting and detection ID features. I get put off by "Contact Sales" pricing. | | |
| ▲ | davidfischer 4 hours ago | parent [-] | | Here's my take: * JA3s are mostly useless. JA4s supersede them entirely. * Using JA4s in rate limits is pretty useful and helps a lot against proxy scraping. It was not very helpful in this attack. * Bot detections are somewhat helpful but they don't solve scrapers/attacks by themselves. They're useful as a 2nd/3rd data point (eg. low bot score + bot detection + something else) | | |
| ▲ | cute_boi 2 hours ago | parent [-] | | isn't JA4 also useless because it is so easy to spoof tls. For eg. cycletls for nodejs etc.. | | |
| ▲ | davidfischer 2 hours ago | parent [-] | | It will probably be useless one day. In practice, it is still useful today though not for this attack. | | |
|
|
|
|
|
| ▲ | Onavo 5 hours ago | parent | prev | next [-] |
| A more interesting question is, what exactly do the attackers gain from hitting read the docs? Most of their docs hosting is static/easily CDN cached. Unlike database bound sites, you would need a lot more traffic to overload pure/mostly static hosting. Maybe it's a malicious AI lab looking to deny their competitors training data? As far as infosec profiling goes, this is probably the oddest case I have heard of. I am thinking it's probably an AI lab that misconfigured their data scraper (made it too agentic) and it ended up looking like a DDoS. The new generation of scrapers are all agentic and self healing. (As an example see YC's https://parse.bot) |
| |
| ▲ | davidfischer 5 hours ago | parent | next [-] | | Author here. This was not a misconfigured data scraper. We see those every week[1]. This attack wasn't scraping useful content. It was almost entirely 404s and 302s and pulled virtually zero real docs. It specifically looked for URLs not served by the CDN and when it found a pattern, did millions of variations of it. Whether built by an AI or not, it was designed to cause outages and financial damage from autoscaling. However, as others have suggested, we may have been a test run for a real target. [1] https://about.readthedocs.com/blog/2024/07/ai-crawlers-abuse... | |
| ▲ | braiamp 5 hours ago | parent | prev [-] | | > Most of their docs hosting is static/easily CDN cached The article says > and it purposefully attacked areas that bypassed caching So that doesn't work. Also, it seems that they were trying to cause financial harm, not to take down the infrastructure but to make it costly for the org itself. That's smart. |
|
|
| ▲ | gopher_space 4 hours ago | parent | prev | next [-] |
| My naive take on a Cloudflare perspective wants to combine "three times is enemy action" with toddler-speed block dropping and manual clearance. What's the money reason this problem isn't handled at the ISP level? |
| |
| ▲ | toast0 3 hours ago | parent | next [-] | | I don't quite understand your post, but is your question why don't the ISPs of the sources of the abusive traffic sort it out? The distributed nature of DDoS means each participating host isn't sending that much traffic, and there are often tens or hundreds of thousands of participating hosts. An ISP should verify claims of abuse before cutting off customers, and since most of the customers are presumably unaware of what their systems are doing, there will be a lot of unhappy customers and then you've got to spend a lot of customer support time on helping them clean up their systems so they can get back online. I spent a fair amount of time sending out abuse reports for phishing / malware senders about a decade ago, and most abuse reporting addresses are a black hole. Even if you do get to someone who will do something about abuse, they won't do it quickly. There's be a few high profile longer term DDoS attacks lately, but when I was running infra that got a lot of stuff, it was mostly people kicking the tires on DDoS as a service offerings and most attacks were 90 seconds long ... there's no way I'm convincing an ISP to drop a pwned customer over that. Starting from there, this DDoS sounds like layer 7 DDoS which is easy to track to the immediate senders, but a ton of DDoS is volumetric stuff, often volumetric reflection attacks where the senders spoof your address. If you're getting that, best you can do is get the reflectors kicked off (or cleaned up) ... tracing back to the sending hosts means getting a reflector (and their ISPs) engaged to do a lot of labor intensive work. All of that investigation stuff takes qualified people lots of time, that's your money reason it doesn't happen. | |
| ▲ | john01dav an hour ago | parent | prev [-] | | https://www.scispace.com/pdf/drawbridge-software-defined-ddo... I saw this quite a few years ago. It is possibly relevant. I don't know what, if anything, came of it since then. |
|
|
| ▲ | bennett_dev 5 hours ago | parent | prev | next [-] |
| Interesting that the Under Attack Mode wasn’t used at all here. I understand not wanting to break APIs but I feel temporarily challenging non-API usage could have at least helped without impacting users too much? |
| |
| ▲ | davidfischer 5 hours ago | parent [-] | | I talked about that directly in the post. We didn't want to just challenge everyone. We use JS challenges but we try to use them sparingly. The rest of the ops team and I were fighting to stay up but it never got so bad that it was a choice between complete outage and using the Under Attack mode. |
|
|
| ▲ | tescreal 6 hours ago | parent | prev | next [-] |
| I'm curious if anybody could speculate who would be attacking a documentation silo, and to what end? |
| |
| ▲ | davidfischer 6 hours ago | parent | next [-] | | I'm the author of the blog. I don't know. Internally, we were half joking that we were going to get ransom notice, but we never did. The only thing that sort of correlates with this attack is that before it started, we began rolling out some slightly more aggressive rate limits one by one. This was mostly because anytime any new "company" thinks they're going to catchup with Claude/OpenAI, they scrape us very aggressively (and they're not respectful about it). My guess is that the attackers behind this attack were already probing us (they were) and they thought the window of opportunity might be closing. | | |
| ▲ | tescreal 5 hours ago | parent | next [-] | | Good to know. I use your site (with a manual transmission user-agent) often, and it's fantastic. Thanks for your work and the writeup! | | |
| ▲ | davidfischer 5 hours ago | parent [-] | | I've never seen the phrase "manual transmission user-agent". Using your own browser yourself is the new stick shift. Love it. | | |
| ▲ | gopher_space 4 hours ago | parent [-] | | It feels like everyone's rebuilding their own desktop experience. Kind of Minecraft with folders and text files. The really interesting part of this is how little people talk about what they're doing, and it doesn't feel secretive in any way. | | |
| ▲ | Cilvic 3 hours ago | parent | next [-] | | I definitely fall into that, on linux it's just a lot of extensions, scripts etc. Thing is, it's also brittle and not really useful for anybody to talk about it? Not sure I get what you mean with the third sentence. | |
| ▲ | tescreal 3 hours ago | parent | prev [-] | | What do you mean exactly? |
|
|
| |
| ▲ | SoftTalker 5 hours ago | parent | prev [-] | | Just curious, if you're tolerant of scraping, do you make an archive of all your content available so that scraping is unnecessary, and if so do the scrapers prefer that? | | |
| ▲ | simonw 3 hours ago | parent | next [-] | | Current evidence is that scrapers mostly aren't nearly considerate or sophisticated enough to take an "archive of all content" option if one exists. See https://people.kernel.org/monsieuricon/creepy-crawlies which describes how the https://git.kernel.org gets hammered by crawlers all the time even though you could run a single `git clone` and get the data that way instead. | | |
| ▲ | kees99 3 hours ago | parent | next [-] | | This is exactly the problem, unfortunately. For somebody who knows a bit how things are set up, or is willing to spend 10 minutes researching, it's a no-brainer that you can just "git clone" entire linux kernel development history, or download entire wikipedia [0]. Alas, large number of scrapers are not willing to spend those 10 minutes, it would appear. So, here we are. [0] https://dumps.wikimedia.org/ | | |
| ▲ | nubinetwork 3 hours ago | parent [-] | | You can tell Claude to clone from github for Linux stuff all you want... it's still going to try web, and fail, before doing what you asked it to do. |
| |
| ▲ | perching_aix 3 hours ago | parent | prev [-] | | Is there a standard for exposing such sitedata dumps? If not, it's not really surprising that they don't. |
| |
| ▲ | davidfischer 5 hours ago | parent | prev [-] | | It's terabytes of content and other than we're the host not really related to each other. However, for most projects, it's possible to download a zip file of all the HTML docs for that project. We have a lower rate limit to pull these, but a scraper can pull thousands of docs at once. We only host a few hundred thousand projects so pulling a zip of the latest docs for all of them could be done in a day or two at a very reasonable rate. It's also possible to request the docs already processed into markdown[1]. Lastly, basically all of the docs come from Git. A smart scraper could just clone a project's repo. [1] https://docs.readthedocs.com/platform/stable/reference/markd... |
|
| |
| ▲ | SoftTalker 6 hours ago | parent | prev | next [-] | | Could be testing in preparation for attacking something more critical? | | | |
| ▲ | gkoberger 4 hours ago | parent | prev | next [-] | | I run a similar service, and we get almost daily attacks like this. Sometimes it's a specific high-profile customer, other times it's broader. I can't speak for RTD, but I think it's less "documentation site" and more just that we sit on the domains of high-profile products and the tools are just looking for any hole they can find? Often it's even the company themselves, for whatever reason (security research, etc). | |
| ▲ | kkapelon 5 hours ago | parent | prev | next [-] | | Either testing for something bigger OR demonstrating their power to a 3rd party with minimal real disruption | |
| ▲ | RobRivera 5 hours ago | parent | prev [-] | | Could have been a live-fire exercise by a nation state. Edit: why the down vote? That is literally in the realm of possibility! |
|
|
| ▲ | ACCount37 3 hours ago | parent | prev | next [-] |
| > One decision we made is to always give real users an escape hatch. Read the Docs very rarely issues outright blocks or bans to specific IPs or user agents. Instead, our "worst" is a JavaScript challenge, and if a user solves a challenge, they are very unlikely to get challenged again for the next day or so. Finally, a competent response that doesn't leave the users hang out to dry. I'm so tired of seeing incompetents with measures like "blackhole 2 continents" deployed even outside active attacks. |
|
| ▲ | LoganDark 3 hours ago | parent | prev | next [-] |
| Yippee, free load test! |
| |
|
| ▲ | Surac 4 hours ago | parent | prev [-] |
| Sure it wasn't a AI crawler? |
| |
| ▲ | simonw 3 hours ago | parent [-] | | Why would an AI crawler do this? > Attackers found and deliberately targeted URLs that resulted in cache misses, such as non-existent pages with unique paths (404s) as well as temporary redirects (302s) |
|