Donate Share

Rootkit Hunter

Tracker: Bugs

5 FP: MRK - ID: 2314990
Last Update: Comment added ( jhorne )

Warning: Network TCP port 2128 is being used by /usr/bin/sslio. Possible
rootkit: MRK
Use the 'lsof -i' or 'netstat -an' command to check this.

But the connection is from remote port 2128 to local port 993 (imaps).
See:
[root@server01]# lsof -wnl -i TCP:2128
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sslio 4947 451 0u IPv4 29184581 TCP
85.47.151.242:imaps->192.168.1.4:2128 (ESTABLISHED)
sslio 4947 451 1u IPv4 29184581 TCP
85.47.151.242:imaps->192.168.1.4:2128 (ESTABLISHED)


Filippo Carletti ( filippocarletti ) - 2008-11-19 14:59

5

Closed

Fixed

John Horne

Detection

None

Public


Comments ( 6 )

Date: 2009-06-06 00:20
Sender: jhorneProject Admin

Fixed in CVS.

Not too difficult, but it's not really possible to do it all with one
regex. So, it has been split up into simpler chunks (connection types).
did some simple testing using the backdoorports file and whatever local
processes I had running. Seems to work okay.


Date: 2008-12-12 00:30
Sender: jhorneProject Admin

I suspect you will have to do this in 2 steps (something like looking for
'PROTO.+->.+:PORT' and then 'TCP.+:PORT\s*(' ). However, as far as I
remember that in itself will cause problems with the current code. The
problem is resolvable, but will require a bit of jiggling with the code. At
the moment it uses the lsof output directly into a loop and then checks the
port numbers. The lsof output will need to be expanded (more of it
supplied), and the loop then test for the 2 conditions, and ignore the
rest. Something like that anyway.... :-)


John.


Date: 2008-12-11 22:56
Sender: unspawnProject Admin

Thanks for the "-P". I didn't notice we had that option. Looking for an awk
regex that'll include both *:$PORT and IP:$PORT->IP:PORT but not
IP:PORT:IP:$PORT...


Date: 2008-12-10 10:50
Sender: filippocarletti

For 1), lsof has option -P (This option inhibits the conversion of port
numbers to port names for network files).

Say, using gawk:
lsof -wnlP -i TCP:${PORT} | gawk '/.*'${PORT}'->.*/ { print $2 }'


Date: 2008-12-10 00:21
Sender: unspawnProject Admin

We'll have to mark this as a known false positive in the documentation: 0)
I can't use procotol@hostname:port notation in lsof since that would miss
stuff on "ANY" and 1) lsof resolves port names so there's no way to cut
with say "awk -F'->' '{print $1}'" and work on that.


Date: 2008-11-20 23:19
Sender: unspawnProject Admin

Hello Filippo,

Thanks for your FP comment. You're right LSOF with ${PROTO}:${PORT} is a
too greedy match. We might need something to glue it to the host, like
${PROTO}@${HOSTNAME}:${PORT}, make it return the address port pairs for
checking or crosscheck with netstat.

unSpawn


Attached File

No Files Currently Attached

Changes ( 9 )

Field Old Value Date By
close_date - 2009-06-06 00:20 jhorne
status_id Open 2009-06-06 00:20 jhorne
resolution_id None 2009-06-06 00:20 jhorne
assigned_to nobody 2009-06-06 00:20 jhorne
allow_comments 1 2009-06-06 00:20 jhorne
status_id Closed 2008-12-10 10:50 filippocarletti
close_date 2008-12-10 00:21 2008-12-10 10:50 filippocarletti
close_date - 2008-12-10 00:21 unspawn
status_id Open 2008-12-10 00:21 unspawn