Jan 26

ssh attack from 1.214.194.114

Port 22 on the local network here was forwarded earlier this week and just yesterday the IP was linked to foran.mooo.com via http://freedns.afraid.org/ (which I came to through the dd-wrt ddns dropdown options)

Tonight, a virtual terminal got spammed with some message I wish I'd thought to copy. It involved the words ssh and root. 

I stopped the ssh deamon and killed all sshd process, grepped auth.log for 'Accepted password', and check /root/.bash_history (though any commands would likely have been sent without opening an interactive shell). 

I've been rooted!
The earliest entry was at 8am this morning. The last after 7pm.

grep -i 'accepted password' /var/log/auth.log*| perl -lne 'print "$2\t$1" if  m/for (\w+) from ([0-9\.]+)/'|sort |uniq -c | sort -nr
      2 1.214.194.114   root  *
      1 94.127.67.61    root  *
      1 221.239.81.4    root  +
      1 221.207.229.6   root +
      1 218.240.44.249  root *
      1 217.148.218.74  root +

* have many attempts
+ only one connection, know correct root password

Russia, South Korea, and China represented.

I checked /etc/passwd, /etc/rc.* and ls -tlc {,/usr/}{/bin/,/sbin/}. All seem okay. 
ps axo cmd,users appears normal. ~/.ssh/authorized_keys are all trusted. 
 nmap localhost is as expected. There are no new jobs in crontab.

It looks like the harm is only that a few people know I forgot to change my weak root password when I opened up the box.

I fixed that. 

I disabled root login and only allow access via publickey,

/etc/ssh/sshd_config
PermitRootLogin No
PasswordAuthentication no
ChallengeResponseAuthentication no

In the most recent attack, over 3000 attempts with more than 12 hundred user names were logged. User names were probed at different intensities. After root, test is apparently thought to be a likely account. 

function searchIP() { 
 perl -lne "print \$2 if m/(user|for) (\w+) from $1 /" /var/log/auth.log* 
}

searchIP 1.214.194.114|wc -l
3429

searchIP 1.214.194.114 |sort -u|wc -l
1269

searchIP 1.214.194.114 |sort |uniq -c|sort -nr | tee >(head -n5 1>&2) |tail -n3

     1087 root
     45 test
     28 oracle
     23 tester
     22 info
     22 guest
      1 gaby
      1 gabriell
      1 

Earlier attacks applied less force. But were equally successful. The chines prob appears to be smart enough not to probe an account that doesn't exist multiple times. I imagine it can determine this by the delay before the password prompt is presented.

The Russian probe solved root's password in the first 100 tries, but continued down the dictionary regardless. It also gave more tries to oracle than root.

searchIP 218.240.44.249 |sort |uniq -c|sort -nr 
    316 root
      1 router

searchIP 94.127.67.61 |wc -l
713

searchIP 94.127.67.61 |sort |uniq -c |sort -nr | tee >(head -n5 1>&2) | tail -n3
    394 oracle
    206 root
    140 admin
     56 asterisk
      1 string
      1 ftp
      1 dbus

Picking on 1.214.194.114

nmap -A -T4 1.214.194.114
PORT     STATE    SERVICE      VERSION
21/tcp   open     ftp          vsftpd 2.0.5
22/tcp   open     ssh          OpenSSH 4.3 (protocol 2.0)
| ssh-hostkey: 1024 5f:03:2f:d1:a0:74:be:e9:94:9a:fc:f1:88:66:a9:7a (DSA)
|_2048 22:75:08:79:7b:e2:4f:19:15:0a:39:12:7c:78:af:b4 (RSA)
80/tcp   open     http         Apache httpd 2.2.3 ((CentOS))
|_http-title: UBI\xEB\x84\xA4\xED\x8A\xB8\xEC\x9B\x8C\xED\x81\xAC
|_http-methods: No Allow or Public header in OPTIONS response (status code 200)
|_http-favicon: 
111/tcp  open     rpcbind      2 (rpc #100000)
135/tcp  filtered msrpc
139/tcp  filtered netbios-ssn
445/tcp  filtered microsoft-ds
1700/tcp filtered mps-raft
1720/tcp filtered H.323/Q.931
Service Info: OS: Unix

The host http is in Korean.
Clicking around http://1.214.194.114 eventually directs to www.ubipc.co.kr

I thought the IP host would be a clone of ubipc for phishing. But

ping www.ubipc.co.kr
PING www.ubipc.co.kr (1.214.194.114) 56(84) bytes of data.

It appears the attach came from the registered domain's ip.

Domain Name : ubipc.co.kr
Registrant : UBInetwork
Administrative Contact(AC) : UBInetwork
AC E-Mail : kaf551@naver.com
Registered Date : 2011. 12. 27.
Last updated Date : 2011. 12. 27.
Expiration Date : 2013. 12. 27.
Publishes : N
Authorized Agency : Whois Corp.(http://whois.co.kr)

I sent an email to the AC.  
Nov 20

Signals Midwest - I was Lost

(download)

 Signals Midwest - I was Lost (Latitudes and Longitudes)
Thoughts become words become actions become habits become cycles you get stuck in. So let's leave. We can eat when we're hungry. We can sleep when we're tired. We can live the way we want to. Let's get lost. And we? We were kids. We were strangers. We were pilgrims. We were traveling for the sake of seeing something that we hadn't. And I admit: I was shaken by the words of a stranger. I asked him, “What do you do in a town like this?” He said, “Everybody's working just to get out of here.” But is here any better than there? Or is it all just gas stations, truck stops and commercial developments? And is home any place that you feel you belong? I don't care just what state we're in. Keep the odometer spinning. Let me make it back there because I know just how naïve I was.
Jan 23

Music on Console (MOC) and last.fm

The MOC website list contributions (http://moc.daper.net/contrib), one of which is a monitor for submitting to last.fm. It's in python2 and wasn't working as I expected.

I spent way too much time writing these few lines. It works for the most part. A Mumford & Sons song failed to get scrobbled. The ampersand probably had something to do with it. 
lastfmsubmitd is also in phython2 and does not like quotes around fields (e.g. --artist "Mumford & Sons" ) from inside the script (bash/zsh). It took them fine from the CLI (zsh) though. 

git://gist.github.com/792718.git

Dec 23

Paul Baribeau - Christmas Lights

(download)

fresh snow on the suburbs 
staying at my parents
it hasn't been a good year
but things are all right here

sleeping in the spare room
that used to be my bedroom
even though I'm home now
I feel completely homeless

I'm looking at the moon
shining on the snow
and everything was blue
except the Christmas lights

walking round the basement
where my band used to practice
sometimes I don't want to make new friends
sometimes I just miss my old friends

but I'm seeing someone new now
she calms my heart down
but I'm too scared to tell her
how crazy I can get sometimes

I'm looking at the moon
shining on the snow
and everything was blue
except the Christmas lights

I never feel better after I cry
I spent 6 months of my life just wanting to die
I'm learning how to be alone without be lonely
learning how to be lonely without losing my mind
I'm looking at the moon
shining on the snow
and everything was blue
except the Christmas lights 
Dec 3

contrast

Dec 3

The amazing hereditary inheritance

My uncle(s) are awesome!

 

(download)
Pc030059
On the refrigerator white board:

To whom it may concern, I would like to know why there s a decomposed rodent on top of the pourch.

Love, Addison

 

The management of this house is under no obligation to explain it's actions to it's tenants.

Sincerely,The Management

Nov 13

Mumford & Sons - The Cave

(download)

It's empty in the valley of your heart
The sun, it rises slowly as you walk
Away from all the fears
And all the faults you've left behind

The harvest left no food for you to eat
You cannibal, you meat-eater, you see
But I have seen the same
I know the shame in your defeat

But I will hold on hope
And I won't let you choke
On the noose around your neck

And I'll find strength in pain
And I will change my ways
I'll know my name as it's called again

Cause I have other things to fill my time
You take what is yours and I'll take mine
Now let me at the truth
Which will refresh my broken mind

So tie me to a post and block my ears
I can see widows and orphans through my tears
I know my call despite my faults
And despite my growing fears

But I will hold on hope
And I won't let you choke
On the noose around your neck

And I'll find strength in pain
And I will change my ways
I'll know my name as it's called again

So come out of your cave walking on your hands
And see the world hanging upside down
You can understand dependence
When you know the maker's hand

So make your siren's call
And sing all you want
I will not hear what you have to say

Cause I need freedom now
And I need to know how
To live my life as it's meant to be

And I will hold on hope
And I won't let you choke
On the noose around your neck

And I'll find strength in pain
And I will change my ways
I'll know my name as it's called again

Nov 1

BBC News - Alcohol 'more harmful than heroin' says Prof David Nutt



via bbc.co.uk

Nov 1

BBC News - Sleep loss 'worse for extroverts'

suggesting it is "social stimulation" that tires out the parts of the extroverts' brains linked to alertness.

Oct 7

Subjectivity

The inarticulate attribute of experiential phenomenon is often expressed as an inability to communicate what color you really see (experience) to others. "Your red and my red don't have to be the same thing." 
That one can understand the experience internally is understood. But, the inability to communicate experience is true of past and present selves too. I think.
If my experience of red, of what it is for me to see red, changes over time, how would I know?

About Will

... is, frankly, a bum. Not the romantic removed or righteous unjobing kind either. Here, there is just straight up privileged listlessness and the existential anxiety it affords. This mixes to volatile with concerns of social capital and prestige. Don't get too depressed though, it's all muddled with piles of trivial meanderings in superficially stimulating and totally distracting software jargon.
TwitterFacebookFlickrDeliciousTumblr

Search Blog

Get Updates

Tags