Attack on Exherbo.org machine

Yesterday Exherbo’s Quote database experienced a very primitive attack. The purpose was to turn all the rank values on our quotes into negative numbers.

In this post we are going to analyse the log files from the attack and see “who did this”.

By simply reading the log files I can see that the attack was done via the program called wget which is a fairly shiny little Unix tool for fetching websites and wget is ideal for this kind of attacks.

The first thing we did when Ciaran discovered that all of our quotes had negative values was to fetch our access log file for further analysis.

Anyways, lets get started:

First thing we want to do is to remove all the legal traffic and only get the wget clients. And then, the only really interesting stuff for us is their IP-addresses. We fire off a simple Unix command:

grep -i 'wget' access_log | cut -s -d' ' -f1 > wget_attack

The wget_attack file is available here.

Now we have a file called wget_attack that contains only the IP-address of these requests to our webserver.

I wanted to get an idea about who was behind this attack so it would be fairly nice to do a simple reverse DNS lookup of these IP’s to get an idea about where these attacks were launched from:

for host in $(cat wget_attack | sort -u) ; do
    host_info=$(host "${host}")
    amount=$(grep "${host}" access_log | wc -l)

    echo -e ">>> ${host}:   \t${amount}   \t${host_info} ...";
done

Running this script really gave me a shock:

>>> 140.211.166.168:  18    168.166.211.140.in-addr.arpa domain name pointer osprey.gentoo.osuosl.org. ...
>>> 140.211.166.183:  322   183.166.211.140.in-addr.arpa domain name pointer smtp.gentoo.org. ...
>>> 64.127.104.142:   27    142.104.127.64.in-addr.arpa domain name pointer miranda.amd64.dev.gentoo.org. ...
>>> 86.10.230.114:    554   114.230.10.86.in-addr.arpa domain name pointer cpc3-york1-0-0-cust625.leed.cable.ntl.com. ...
>>> 89.16.163.100:    348   Host 100.163.16.89.in-addr.arpa not found: 3(NXDOMAIN) ...
>>> 89.16.163.108:    345   Host 108.163.16.89.in-addr.arpa not found: 3(NXDOMAIN) ...
>>> 89.16.163.110:    349   Host 110.163.16.89.in-addr.arpa not found: 3(NXDOMAIN) ...
>>> 89.16.176.11:     338   11.176.16.89.in-addr.arpa domain name pointer albatross.gentoo.org. ...

(the integer after the IP-address is the amount of requests in the access_log. The attack started at 18:53:26 UTC and ended at 19:39:46 UTC.)

Yup, that is right. 4 of these machines are Gentoo controlled.

If I recall correctly then smtp.gentoo.org is the main developer machines where Gentoo developers are able to run their IRC clients from, fetch e-mail, etc. so every Gentoo developer has access to this machine. So basically, we now know that a Gentoo developer is behind this.

If we look at Gentoo Infrastructure Server Specifications page, we will see that miranda.amd64.dev.gentoo.org is not listed, but that is probably because it is a machine available to the AMD64 developers in Gentoo (you can see the full list of available developer machines here), but osprey.gentoo.osuosl.org is listed on the infrastructure page about non-developer machines, but albatross.gentoo.org isn't.

The funny thing about the osprey machine is that it is listed as being Gentoo’s master mirror which probably means that not many people have access to this machine.

Doing a quick whois on the IP-addresses reveals that both osprey.gentoo.osuosl.org and smtp.gentoo.org are hosted by OSUOSL which is a very nice company that hosts various hardware for FOSS projects.

Doing a whois on the miranda.amd64.dev.gentoo.org machines shows that it is hosted on Gentoo’s own netrange at a company called Global Netoptex — a company also knowns as GNi which is one of Gentoo’s sponsors and a company that has two Gentoo developers as employees.

The last interesting machine is albatross.gentoo.org one. Doing a whois on that reveals that it is located on the network of the company called Bytemark Computer Consulting Ltd which among other things also hosts one of Freenode’s IRC servers.

But, uh, the 3 IP-addresses without a reverse DNS entry seems to appear on the same network as the albatross.gentoo.org machine, which is also in Bytemarks IP-range.

Oh, but the fun doesn’t end here. The last IP which looks like a normal “personal” IP-address has something interesting in it. If we just look at it we will see that: cpc3-york1-0-0-cust625.leed.cable.ntl.com. Apparently this IP looks like coming from the city of York in England (I am not sure about that though — and it is not really important either).

Normally I would just fire up Google now, but I thought that the network service called LinkedIn might be useful for this.

Spending two minutes on the site shows that the only person in my network that works for Bytemark is Alex Howells who lists himself as being System Administrator at Bytemark Hosting and Developer at Gentoo Linux. According to his LinkedIn profile, Alex Howells lives in York, United Kingdom.

This begins to look like it is one person who is behind all of this, but a person in the secret IRC channel on Freenode known as #gentoo-infra posted this after we discovered the attack:

[ ... ]
18:55:51 * astinus has a funny idea
18:56:56 astinus: for i in $(seq 1 25); do   wget -O /dev/null http://quotes.exherbo.org/?ratingminus\&id=$i;   sleep 6; done
18:58:55 astinus: additional brownie points if you use -q with wget and CFengine it for a one-time run on 500+ machines
18:59:13 astinus: "Hey guys! All your quotes suck!"
18:59:21 * astinus sighs
[ ... ]

(Timestamps are in UTC.)

In case you wonder: astinus is Alex Howells’s IRC nickname. Doing a simple /whois on IRC shows that as well:

hostmask : astinus!n=alex@gentoo/developer/astinus
ircname  : Alex Howells <alex.howells@0wn3d.us>
channels : @#gentoo-dev #gentoo-userrel #gentoo-server @#gentoo-ops @#gentoo
info     : is identified to services
info     : is signed on as account astinus
idle     : 0d 1h 13m 22s [signon: Sun Jun  8 23:57:52 2008]

From the integer value after the IP-address in the scripts output, we can see that 1380 requsts came from the network of Bytemark and 1934 requests if what we believe is his home machine is included. The other 367 other requests came from either OSUOSL or GNi.

I must admit I am very disappointed with Gentoo these days and this just tops the list. I used to like working for the Gentoo project, but these days this kind of stuff appears to be accepted which is really silly. Gentoo should rather spend some time kicking people like Alex Howells out.

Conclusion
Gentoo should avoid giving people like Alex Howells access to their infrastructure to avoid these very embarrassing issues.

What now?
I have filed a bug to Gentoo’s Bugzilla about this (bug #229895) plus I am going to write an e-mail to the abuse contacts from the various networks where these machines are located.

I will keep this post updated with information when I get it and maybe even write a follow up post.

20 Comments »

  1. [...] Attack on Exherbo.org Machine [...]

  2. Alex Howells said

    Shock, horror, someone actually visited your website ;) Who on earth could care about Exherbo, after all, it’s a backwater distribution run by asshats, isn’t it? :P

    Anyway. To summarize, valid parts of your web application were used, no 0-day hack was employed and you saw maybe 1500 web requests in total? Sounds like you should spend less time blogging, and more time fixing the services you deploy.

    Rather like the person who complained because his mail server received a message?

  3. Alexander Færøy said

    Why don’t you just admit what you did? :)

    I see fairly clear evidence in my own blagpost.

  4. dleverton said

    > it’s a backwater distribution run by asshats, isn’t it?

    You’ve shown your rabid, frothing hatred of Exherbo and Exherbo developers ever since it was announced (and the developers for even longer, even though you didn’t know that they were). I suppose it was only a matter of time before you moved beyond words.

  5. Alex Howells said

    Evidence that a web application was used legitimately? Wow, we have the same conclusion then! Aren’t we smart? :P

  6. Alexander Færøy said

    By your own logic it is not okay for a person who runs an e-mail server to complain if he received 1500 e-mails with no real content from the same person?

  7. ant said

    Holy jesus.

    I had no idea the distro I’m using was run by such a bunch of childish arseholes. Let me out of here!

  8. Oz said

    This is really a shame. If it is really true, what you’re saying it makes me happy I don’t use gentoo. It shows how stupid people can get when the infrastructure of the distro is malfunctioning – and by that I mean ‘look at all the negative stories running around gentoo lately’. That’s one more to add.
    I am currently considering FreeBSD, or DracoLinux, but I will keep away from gentoo.

  9. Jonas Laursen said

    Alex Howells, this has nothing to do with RQMS, it has something to do with you abusing your access to Gentoo’s developer machine. Gog dammit open your fucking eyes.

  10. You’ll probably find
    that it suits your book
    to be a bit cleverer
    than you look.
    Observe that the easiest
    method by far
    is to look a bit stupider
    than you are.

    – Piet Hein

  11. Robert Kosten said

    Please, stay professional, people. It’s one of the first things any HOWTO on hacking makes clear: You hack an easy machine and then launch your attacks from there. Until the logs of those machines have been scrutinized it is too early to jump to conclusions. If I wanted to discredit a Gentoo dev, this is exactly what I’d try, make it look like a primitive attack from the midst of their own network. In dubio pro reo, or, if you prefer that, shut up until you can be reasonably sure no ones trying to trick you into a premature reaction.

    Stories of valiant Knights aren’t exactly professional behavior, either, I might add…

  12. Robin H. Johnson (robbat2) said

    For anybody else commenting here, before opening your mouth to insert your foot, read both the the bug that Alexander filed: https://bugs.gentoo.org/229895
    Esp see kingtaco’s comment on it.

    Alexander is out with a girl at the moment I think, but he has a significant follow-up post to make afterwards.

  13. We were entirely sure about our findings – this attack happened from the machines the blog mentions and Gentoo infra was contacted (by filing a bug with info pertinent to them) about it. Gentoos infrastructure team have gone over their logs and confirmed Alexanders findings.

    I believe it’s professional to contact affected parties so they can do their due dilligence and make sure there machines aren’t used this way again which is exactly what has happened.

    I’d also like to note that quite a few Gentoo developers have expressed that this attack was childish or similar and that it’s below the standards reasonable expected from Gentoo developers.

    Finally, I’d like to thank the Gentoo infrastructure team for dealing with this situation promptly and professionally. I’m happy to see Exherbo and Gentoo working together to solve problems even though I wish it could be a happier occasion.

  14. Jørgen Ramskov said

    Looks like Alex Howell have been kicked out of Gentoo (if I read the bug report correctly: https://bugs.gentoo.org/show_bug.cgi?id=82711). Looks like the Gentoo team did the right thing.

    Well done Alex Howell – you’ve just made it more difficult for yourself to get a job since a google search for you might well show this and anyone thinking about employing you will probably think twice after reading this.

  15. Alexander Færøy said

    Alex has indeed been kicked out of Gentoo.

    I would like to point out that I am soon going to post a follow up post about the incident so please stand by and don’t comment unless you actually have some interesting to say.

  16. Alex Howells said

    “kicked out” and “retired” would be two different things, and my resignation letter which went to gentoo-core explained a lot more things. Then again, you’re not privy to those mails any more since you were removed from the project forcibly.

    Onwards and upwards I guess. I wish everyone in both Gentoo and Exherbo the best of luck with their respective distributions, I’m off to focus less on IRC and more on life.

  17. Alexander Færøy said

    Just for the record. I left Gentoo on my own: http://article.gmane.org/gmane.linux.gentoo.devel/49283

  18. Alex Howells said

    Fair comment. I’m confusing you with Philantrop, spb and rbrown.

  19. [...] Filed under English, Exherbo, Failure, Gentoo, Open Source, Security Some of you might have read my previous blog post about the attack on Exherbo’s quote database that I wrote about yesterday. As promised I am [...]

  20. GrimRC said

    ZOMG somebody get Alex Howells and Hans Reiser computers so they can carry on the good work!

RSS feed for comments on this post · TrackBack URI

Leave a Comment