Interesting Zombie - Odd....
Discussion
I get about 200-400 separate attempts to brute-force my root password over ssh a day. If you've read my usual rants you'll know that I use Apple Macs, which have a reasonably secure BSD-like unix OS base.
I'm utterly, utterly, insanely, anal about password security and have the sort of memory that can remember stuff like hD934&ksnv94*& so that's what my passwords are like... thus I'm not too worried about script kiddies doing dictionary attacks, nor slightly more advanced script kiddies using John and putting a load of replacement rules in (0 for o, 5 for s, etc. the usual stuff - like windows administrator accounts having 4dm1n15tr4t0r as the password, I'll break it immediately...)
Anyway, I have enough monitors to have a couple of log windows open all the time, just to check for people who actually do know what they're doing, or are becoming a nuisance.
One particular IP today was constantly trying to get in via ssh using, I guess, a dictionary attack - it went on for hours. This is enough for me to try countermeasures, so I fired up Nessus to see if he had any obvious vulnerabilities (usually some poor family machine with a zombie rather than a real cracker).
The thing was running Debian Linux, with a root password of, get this, 'root'.
So I logged in over ssh to the box and had a look around. After failing to add a new superuser it was clearly obvious that I was in a chroot jail. So I wrote the usual C code to recursively back out of the chroot jail (works on most unixes), compiled it (the compiler was still present) and ran it - no luck.
So the sysadmin of that Linux box knew how to set up a proper chroot jail, but is quite prepared to let people log in as 'root' and launch attacks against other peoples machines?
At that point I decided to get out and have a think - not much point drawing attention to myself (logs erased, though if the sysadmin knew enough to make chroot jails work really well then he's probably got a log of everyone going through there). It was also running X and a window manager, and had a user called 'cyborg' which appears to be some cybercafe setup. Most messages were localised in spanish, I think the box is in Argentina.
Anyone seen anything like this before? I guess it could be a hardened, secure distro for cybercafes, but incompetently installed by the sysadmin. It didn't seem like a honeypot of any sort.
Normally I'd firstly check that the machine wasn't some poor family's hacked Windows box (in which case there's no point in me extracting revenge), but most Linux boxes are fair game since wannabe hackers and script kiddies often use them, I'm quite happy screwing their systems up if they want to attempt to break into mine. This one was odd though.

Any *real* Linux hackers seen this before?
I'm utterly, utterly, insanely, anal about password security and have the sort of memory that can remember stuff like hD934&ksnv94*& so that's what my passwords are like... thus I'm not too worried about script kiddies doing dictionary attacks, nor slightly more advanced script kiddies using John and putting a load of replacement rules in (0 for o, 5 for s, etc. the usual stuff - like windows administrator accounts having 4dm1n15tr4t0r as the password, I'll break it immediately...)
Anyway, I have enough monitors to have a couple of log windows open all the time, just to check for people who actually do know what they're doing, or are becoming a nuisance.
One particular IP today was constantly trying to get in via ssh using, I guess, a dictionary attack - it went on for hours. This is enough for me to try countermeasures, so I fired up Nessus to see if he had any obvious vulnerabilities (usually some poor family machine with a zombie rather than a real cracker).
The thing was running Debian Linux, with a root password of, get this, 'root'.
So I logged in over ssh to the box and had a look around. After failing to add a new superuser it was clearly obvious that I was in a chroot jail. So I wrote the usual C code to recursively back out of the chroot jail (works on most unixes), compiled it (the compiler was still present) and ran it - no luck.
So the sysadmin of that Linux box knew how to set up a proper chroot jail, but is quite prepared to let people log in as 'root' and launch attacks against other peoples machines?
At that point I decided to get out and have a think - not much point drawing attention to myself (logs erased, though if the sysadmin knew enough to make chroot jails work really well then he's probably got a log of everyone going through there). It was also running X and a window manager, and had a user called 'cyborg' which appears to be some cybercafe setup. Most messages were localised in spanish, I think the box is in Argentina.
Anyone seen anything like this before? I guess it could be a hardened, secure distro for cybercafes, but incompetently installed by the sysadmin. It didn't seem like a honeypot of any sort.
Normally I'd firstly check that the machine wasn't some poor family's hacked Windows box (in which case there's no point in me extracting revenge), but most Linux boxes are fair game since wannabe hackers and script kiddies often use them, I'm quite happy screwing their systems up if they want to attempt to break into mine. This one was odd though.


Any *real* Linux hackers seen this before?
Done a bit more digging - the CybOrg software is billing software for the client machines, written in Perl with a PostgreSQL backend DB.
I know a bit about pgsql so logged in again, su'd to postgres and had a look for databases or any other connection data to the main server... nothing... Postgres server not running on the box, perhaps nobody physically was logged into the machine and running the Perl scripts which would have logged into the central DB.
Interestingly enough the sysadmin had removed netstat and ifconfig from the chroot jail
And it's in Venezuela, not Argentina.
I know a bit about pgsql so logged in again, su'd to postgres and had a look for databases or any other connection data to the main server... nothing... Postgres server not running on the box, perhaps nobody physically was logged into the machine and running the Perl scripts which would have logged into the central DB.
Interestingly enough the sysadmin had removed netstat and ifconfig from the chroot jail

And it's in Venezuela, not Argentina.
Yep all my *nix machines see this, from the box in London to the house media server (which is internet facing). Bog standard, primitive SSH attacks from Debian machines in Venuzula. It's been going on for years and nobody has been able to raise anybody who's supposed to be looking after the boxes.
I don't think anybody has been able to track down the Cybercafe or location of these machines either.
I don't think anybody has been able to track down the Cybercafe or location of these machines either.
ThePassenger said:
Yep all my *nix machines see this, from the box in London to the house media server (which is internet facing). Bog standard, primitive SSH attacks from Debian machines in Venuzula. It's been going on for years and nobody has been able to raise anybody who's supposed to be looking after the boxes.
I don't think anybody has been able to track down the Cybercafe or location of these machines either.
But they're fairly sophisticatedly locked down, certainly more so than you'd expect of a Venezuelan cybercafe.I don't think anybody has been able to track down the Cybercafe or location of these machines either.
Obviously giving anyone on the internet ssh access to a root account, even if that 'root' is locked in a chroot jail, allows you to compile code that runs as root (unless there's an even more sophisticated rootkit that mis-reports UIDs and GIDs when I'm asking for them) - allowing anyone to mount attacks.
You'd have thought they'd been all taken up by the organised criminal DDoS gangs by now, but they seem not to be... well this one certainly hasn't many users or much network activity on it...
Interest well and truly piqued. I think I'll try to crack this one.
roadsweeper said:
You obviously know what you're doing so I'm sure you have your reasons for allowing these attacks, but might it not be worth just blocking an IP after X failed attempts? It's a bit blunt I know, but quite effective all the same.
I tail my logs every few days, but they're going after, what seem to be standard rootkit left behinds, it could be a botnet controller hunting... I've not actually seen one go 'root' yet, Oracle, Mysql, John, J0hn, Jaggie and other such things yes.I've toyed with the 'ban after X failed attempts' stuff but erm... yeah... I'm a retard and I'd lock myself out of a remote box

Odd, very odd. I'm an OS X guy so not proper Linux hacker, but if it's a chroot jail, it's an odd one that gives me quite a lot of freedom.
I can bring up and down network interfaces, etc. - just not add users.
Appears to be running SELinux which should, if configured correctly, be damn difficult to break (given it was developed by the NSA).
I've got a list of all the devices, mounts, etc. It has two mountpoints both with /dev/root2 in their pathnames so I guess it's a chroot jail being used as a VM.
The logged in user is called 'usuario' which is spanish for 'user' and is running X, presumably the desktop that's used by the customers of the cybercafe.
I can access the dmesg log but all other logs in /var/log are empty - suggesting my clumsy attempts at cracking are being logged elsewhere
though there's nothing in syslog.conf to suggest this. I've obviously got rid of .bash_history 
Still researching... got limited time to piss about with some poor machine (well it's actually a modern dual-core machine, not some ancient POS you normally get in cheap cybercafes) that's had some script kiddie log in and try to crack MY machines. But principles are principles - bang hard enough on my doors and I'll want to know who's doing the banging
I can bring up and down network interfaces, etc. - just not add users.
Appears to be running SELinux which should, if configured correctly, be damn difficult to break (given it was developed by the NSA).
I've got a list of all the devices, mounts, etc. It has two mountpoints both with /dev/root2 in their pathnames so I guess it's a chroot jail being used as a VM.
The logged in user is called 'usuario' which is spanish for 'user' and is running X, presumably the desktop that's used by the customers of the cybercafe.
I can access the dmesg log but all other logs in /var/log are empty - suggesting my clumsy attempts at cracking are being logged elsewhere
though there's nothing in syslog.conf to suggest this. I've obviously got rid of .bash_history 
Still researching... got limited time to piss about with some poor machine (well it's actually a modern dual-core machine, not some ancient POS you normally get in cheap cybercafes) that's had some script kiddie log in and try to crack MY machines. But principles are principles - bang hard enough on my doors and I'll want to know who's doing the banging

ThePassenger said:
I don't think anybody has been able to track down the Cybercafe or location of these machines either.
Name of the box is 'Biruaca' which is a city in Venezuela on the Apure River 400 km south of Caracas. Obviously all the boxen could be named after different cities... given I've got net interface access onto their internal network as well, perhaps I'll see if I can ssh into their other machines and see what they're called... back in a bit......box reports as 192.168.1.1 - 192.168.1.2 doesn't respond to anything. The arp table lists 95 as a host, tried sshing into that, root password on that is NOT root... perhaps the cybercafe admin box... best cover my tracks

Edited by cyberface on Thursday 5th July 21:39
_dobbo_ said:
Out of interest, why do you need to allow SSH access to your system(s) via the internet anyway? Mac users aren't famed for their need to use a shell of any sort!
Ever heard of FUSE? I can mount one of my filesystems remotely and securely via sshfs. Besides, it appears you don't know what I do, how long I've been doing it, etc. Some of it is purely for fun, I'll grant you, but the rest isn't.As to the 'Mac user' snipe, have a big
from me. OS X is the most usable unix system around, it caters for both the clueless and the full-on hacker.cyberface said:
_dobbo_ said:
Out of interest, why do you need to allow SSH access to your system(s) via the internet anyway? Mac users aren't famed for their need to use a shell of any sort!
Ever heard of FUSE? I can mount one of my filesystems remotely and securely via sshfs. Besides, it appears you don't know what I do, how long I've been doing it, etc. Some of it is purely for fun, I'll grant you, but the rest isn't.As to the 'Mac user' snipe, have a big
from me. OS X is the most usable unix system around, it caters for both the clueless and the full-on hacker.
yourself.No, I haven't heard of FUSE - hence me asking why you would have SSH open. Obviously I don't know what you do or for how long as I don't know you from Adam.
It was a genuine question that I wanted to know the answer to and there was no sarcasm or "snipe" intended. Apologies for any offense caused, perhaps sir is feeling a little touchy today?
cyberface said:
_dobbo_ said:
Out of interest, why do you need to allow SSH access to your system(s) via the internet anyway? Mac users aren't famed for their need to use a shell of any sort!
Ever heard of FUSE? 
Filesystem in User Space Environment if I remember. And yes, I use sshfs & FISH as well, bloody useful stuff too.
_dobbo_ said:
Have a big
yourself.
No, I haven't heard of FUSE - hence me asking why you would have SSH open. Obviously I don't know what you do or for how long as I don't know you from Adam.
It was a genuine question that I wanted to know the answer to and there was no sarcasm or "snipe" intended. Apologies for any offense caused, perhaps sir is feeling a little touchy today?
Bloody hell dobbo old chap, that wasn't *that* harsh a reply!!!
yourself.No, I haven't heard of FUSE - hence me asking why you would have SSH open. Obviously I don't know what you do or for how long as I don't know you from Adam.
It was a genuine question that I wanted to know the answer to and there was no sarcasm or "snipe" intended. Apologies for any offense caused, perhaps sir is feeling a little touchy today?
We obviously post on different forums, we've both been here for more than 5 years so I'm surprised you haven't read my bo
ocks before...Just a simple 'oh no not another go at Mac users being simple' - I do technical architecture for investment banks, and get a load of snide bullshit from some techies when I turn up with my Macbook. The fact that I can out-program most of them in their beloved unix shell scripts / perl / Ruby (which rocks) is lost on them, they see a Mac and instantly think 'newbie'.
I have a lot more than SSH running behind my firewall, I run my own DNS, mail, web, ssh - into a network of 8 Macintoshes. I've also got VPN working (finally) so I can connect in from client sites. My business runs off the network described above.
So apologies if my response seemed harsh, but if I was really pissed off I'd have been rude, which I wasn't, really
Anyway it's Friday, have a beer. 
ThePassenger said:
cyberface said:
_dobbo_ said:
Out of interest, why do you need to allow SSH access to your system(s) via the internet anyway? Mac users aren't famed for their need to use a shell of any sort!
Ever heard of FUSE? 
Filesystem in User Space Environment if I remember. And yes, I use sshfs & FISH as well, bloody useful stuff too.
I bought my first Mac (the Cube, long live the Cube) with the intention of running Linux on it, since the Mac OS of the time (9.1) was utter rubbish (on a par with Windows 95 re: stability). Obviously Linux at the time on PowerPC G4 processors was rather raw, was a bear to get running. Luckily Apple brought OS X 10.0 soon after, and I switched immediately.
Unfortunately 10.0 was not production-ready (in fact OS X wasn't really ready for production until 10.2 IMO) so I maintained a dual-Celeron (remember that hack?) box running Linux as the mail server until I could move everything onto OS X. First as a patch and recompile of qmail on 10.2, now using the 'proper' Mac OS X Server product which is easier to admin.
Dealing with Linux on the desktop has always wound me up, so I'm not a great fan - though it looks like it's much better now than when I used it. I bought one of those Dialogue Flybook thingies (tiny laptops, brilliant piece of kit) and tried to put Linux on that... wrote the website describing the install - eventually got it working... rambling again...
cyberface said:
FISH is a KDE thing is it not? I use Camino (a Gecko-based browser derivative that looks and behaves like a proper Mac app), but Apple's own Safari is based on Konqueror IIRC, wonder if the fish:// protocol was carried over in the source?
I think it started as a KDE kioslave yes, but it's ended up pretty much all over the shop, usually bolted in to the AutoFS subsystem; hell even midnight commander will FISH. I think these days FISH can be seen as just a nice frontend to sftp/scp. Where as FUSE can do a lot more (ntfs-3g, sshfs, userspace samba mounting, gmailfs, etc.)Dunno if Safari will have brought it over, but as you say, be a giggle to try it

cyberface said:
Dealing with Linux on the desktop has always wound me up, so I'm not a great fan - though it looks like it's much better now than when I used it. I bought one of those Dialogue Flybook thingies (tiny laptops, brilliant piece of kit) and tried to put Linux on that... wrote the website describing the install - eventually got it working... rambling again...
I first tried a Linux only system back in the days of RedHat 5, quickly gave up with the 2.2 kernels as being pointless (plug n' play? Whas at...) tried again with SuSE 8 and 9, but again, gave up as hardware that was... pretty standard, just didn't work (2.4.17 kernel for those that care). I'm back on a Linux only Dell XPS laptop now with Ubuntu 7.04 x86_64 (2.6.20 kernel) and blimey! Install is much easier, lots of auto configure helpers, ACPI works as does the CPU throttling (she says as the fan kicks in to high gear
). There are still some odd bod hardware issues, but these tend to be with old and weird things (an old Artec scanner doesn't work for example).
Edited by ThePassenger on Friday 6th July 16:24
ThePassenger said:
I first tried a Linux only system back in the days of RedHat 5, quickly gave up with the 2.2 kernels as being pointless (plug n' play? Whas at...) tried again with SuSE 8 and 9, but again, gave up as hardware that was... pretty standard, just didn't work (2.4.17 kernel for those that care). I'm back on a Linux only Dell XPS laptop now with Ubuntu 7.04 x86_64 (2.6.20 kernel) and blimey! Install is much easier, lots of auto configure helpers, ACPI works as does the CPU throttling (she says as the fan kicks in to high gear
).
There are still some odd bod hardware issues, but these tend to be with old and weird things (an old Artec scanner doesn't work for example).
Sounds like we're around the same age then (just checked your profile, 11 years in IT, check). First started messing with Linux with SuSE 7 which installed a 2.2 kernel by default and 2.4 in 'experimental'... learnt a bit about kernel config and rolling your own by that point - not helped by the fact that I was trying to install on a Sony laptop, the worst of all worst hardware I've ever used ever (proprietary devices *everywhere* - Linux didn't stand a chance). Spent weeks messing about with kernel configs and source patches trying to get anything more than a text-only system up and running. Got the SuSE 7 distro with a 2.4 kernel working properly on the dual Celeron for mail though, that had uptimes in the hundreds of days until I moved everything onto OS X.
). There are still some odd bod hardware issues, but these tend to be with old and weird things (an old Artec scanner doesn't work for example).
Used Gentoo for the Flybook install, that involved a lot of hackery but worked well (including wifi, GPRS modem, transmeta cpu throttling, everything). 2.6.9-gentoo-r9 kernel, loads of config changes. I documented it all on the internet, seems mainly Scandinavians have Flybooks trying to run Linux because I got a load of emails from Finland etc. shortly after putting the site up

Wouldn't go back now, but just for fun I tried installing that old SuSE 7 distro in a VM within Parallels (like VMware) on my MacBook... installed perfectly and X and KDE worked, hilarious, like stepping back in time

Need to keep my hand in though as more and more big firms are choosing Linux on their servers, Oracle are pushing it hard and even though I'm never going to be sysadmin I need to keep abreast of its limitations and strengths.
cyberface said:
Need to keep my hand in though as more and more big firms are choosing Linux on their servers, Oracle are pushing it hard and even though I'm never going to be sysadmin I need to keep abreast of its limitations and strengths.
I'm not sure, in a puka Enterprise level deployment you'd need to roll your own kernel to be honest. I'd have a support contract with say RedHat and leave it to them to do stuff like that for the most part, lest I fall out of the terms n' conditions. But yeah, keeping an eye on the how of Linux is always a good move, there are already a few early adopters out in the field (Frankfurt local government being one) that are watched for facts/figures and issues, IBM are quite vocal about their Linux testing & compliance teams as well as "Notes on Linux" support.
Personally I don't think supporting a modern Linux OS in the wild would be any more different or difficult than Windows (or OS X), 1st link fanny with apps and basic settings, 2nd line fanny with the desktop itself and more apps, 3rd line beat servers back in to shape and do the big voodoo stuff. I can't see Windows going anywhere, but I've never seen the reason why say a secretary needs, in effect, several hundreds of pounds of software to just type a letter and fiddle with a calender, same with most other basic spuds in a large company.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


