The Register® — Biting the hand that feeds IT

Feeds

Server-based botnet floods net with brutish SSH attacks

PHP patch laggards to blame

Regcast training : Hyper-V 3.0, VM high availability and disaster recovery

Updated A server-based botnet that preys on insecure websites is flooding the net with attacks that attempt to guess the login credentials for secure shells protecting Linux boxes, routers, and other network devices.

According to multiple security blogs, the bot compromises websites running outdated versions of phpMyAdmin. By exploiting a vulnerability patched in April, the bot installs a file called dd_ssh, which trawls the net for devices protected by the SSH protocol.

“This bot then conducts brute force SSH attacks on random IP addresses specified by the bot herder,” a user blogged here. Indeed, DShield, an exploit-monitoring service maintained by the SANS Institute, shows a six-fold increase in the number of sources participating in SSH scanning from July 24 to August 10, and close to a three-fold jump in the number of targets.

For reasons that remain unclear, the number of sources over the past two days has plummeted, even as the number of targets has dropped only moderately.

Using a distributed network of compromised web servers to perform the brute-force attacks makes a lot of sense from the hacker's point of view. Not only does it save bandwidth and computing costs, but it also allows the attack to remain concealed from potential victims, since each bot makes only a few login attempts before moving on to the next SSH device. The attacks attempt to guess the passwords used to administer websites by trying huge numbers of possible combinations.

In addition to posing a threat to unpatched websites and SSH-protected devices, the attacks are also creating headaches for large numbers of non-vulnerable sites. As Reg readers have pointed out in comments to this article, the flood of requests for admin.php, setup.php and other PHP-related files can have the effect of a denial-of-service attack. The queries often hit sites running Microsoft's IIS and other platforms that have nothing to do with PHP.

One person commenting on this SANS Diary post reports having success in warding off the attacks with DenyHosts, an open source script that pools IP blacklists from more than 70,000 users. A better countermeasure still is to configure SSH devices to use a cryptographic key, something that is orders of magnitude harder to brute-force than a simple password.

It's tempting to say that it's a given, as well, that admins should update phpMyAdmin and other webserver software to the latest secure versions, but the success that miscreants are showing in installing dd_ssh suggests otherwise. The aforementioned links to Malwarecity.com and SANS provide other useful suggestions for detecting and repelling these attacks. ®

This article was updated to add details about the effect on non-vulnerable sites.

Agentless Backup is Not a Myth

Silly H4x0rz

Oops, now I feel bad about attacking one of the servers that was trying to ssh into one of my servers. At least whoever owns the server isn't using a default password on their admin console anymore :) but unfortunately for them they just don't know what I changed it to! bwhahahah

7
4

It's not just China

I see attacks from all over the world, China, Mexico, Amsterdam, France etc etc. Perhaps we should just ban bloody foreigners

2
0

SSH AllowedAuthentications

"The problem with ssh is that you can't require a key and password."

uhhhh, really? From "man sshd2_config"

AllowedAuthentications

This keyword specifies the authentication methods that are allowed. Known authentication methods are: keyboard-interactive, password, publickey, pam-1@ssh.com, kerberos-ssh.com, kerberos-tgt-2@ssh.com, and securid-1@ssh.com. The default is "publickey,password".

(snip)

With RequiredAuthentications, the system administrator can force the users to complete several authentications before they are considered authenticated. See RequiredAuthentications.

(one, two, skip a few...)

RequiredAuthentications

Analogon to AllowedAuthentications, with one dif-ferenece: the authentication methods listed here must all succeed before a user is considered authenticated. Leaving this list empty is equivalent to not using the option at all. If this option is set, AllowedAuthentications is ignored.

Paris, man woman. No manual entry for woman.

2
0

More from The Register

 breaking news
Number of cops abusing Police National Computer access on the rise
Only a telegram from the Queen can get you off it
 breaking news
NSA PRISM snoop-gate: Won't someone think of the children, wails Apple
10,000 things probed, mostly about missing kids, Alzheimer patients, we're told
Flash flaw potentially makes every webcam or laptop a PEEPHOLE
But it's a Google problem - Chrome only, insists Adobe
 breaking news
NSA PRISM-gate: Relax, GCHQ spooks 'keep us safe', says Cameron
Whatever they are up to, it's all above board, we're told
PRISM snitch claims NSA hacked Chinese targets since 2009
Snowden suddenly looks safer in Hong Kong after revelations
 breaking news
US chief spook: Look, we only want to spy on 6.66 BEELLLION of you
Americans assured they are not in the NSA's sights
Speech-to-text drives motorists to distraction
Will talking to you mean I crash into that car up ahead, Siri?
 breaking news
Yahoo! joins! rivals! in! PRISM! data! request! admission!
Keep calm and carry on using American tech firms, folks
DHS warns of vulns in hospital medical equipment
Has your doctor's anasthesia machine been hacked?
 breaking news
'BadNews is malware' says outfit that found it
Google says code harmless but Lookout says code base is evolving