LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-11-2006, 07:33 PM   #1
newio
Member
 
Registered: May 2006
Location: Sydney
Distribution: Slackware 11.0
Posts: 39

Rep: Reputation: 15
msgs in message log


while reviewing my message log, i've come across somebody trying to guess my pwd's. Not a big deal, but there are a lot of lines where this guy was able to leave a msg in my log. Obvisoulsy its his tag.

Does anyone know how this is achieved, or better yet, how is it stopped. He could probably start a pretty nasty DOS on my message log. See below:

Code:
Dec 12 08:21:15 slack sshd[8177]: Failed password for root from 71.56.31.70 port 50741 ssh2
Dec 12 08:21:18 slack sshd[8179]: Failed password for root from 71.56.31.70 port 52699 ssh2
Dec 12 08:21:20 slack sshd[8181]: Failed password for root from 71.56.31.70 port 55174 ssh2
Dec 12 08:21:24 slack sshd[8183]: Failed password for root from 71.56.31.70 port 57112 ssh2
Dec 12 08:21:28 slack sshd[8185]: Invalid user spam from 71.56.31.70
Dec 12 08:21:28 slack sshd[8185]: Failed password for invalid user spam from 71.56.31.70 port 59385 ssh2
Dec 12 08:21:32 slack sshd[8187]: Invalid user ventas from 71.56.31.70
Dec 12 08:21:32 slack sshd[8187]: Failed password for invalid user ventas from 71.56.31.70 port 34000 ssh2
Dec 12 08:21:35 slack sshd[8189]: Invalid user paul from 71.56.31.70
Dec 12 08:21:35 slack sshd[8189]: Failed password for invalid user paul from 71.56.31.70 port 36558 ssh2
Dec 12 08:21:39 slack sshd[8191]: Invalid user andres from 71.56.31.70
Dec 12 08:21:39 slack sshd[8191]: Failed password for invalid user andres from 71.56.31.70 port 38534 ssh2
Dec 12 08:43:59 slack -- MARK --
Dec 12 09:03:59 slack -- MARK --
Dec 12 09:23:59 slack -- MARK --
Dec 12 09:43:59 slack -- MARK --
Dec 12 10:03:59 slack -- MARK --
Dec 12 10:24:00 slack -- MARK --
Dec 12 10:44:00 slack -- MARK --
Dec 12 11:04:00 slack -- MARK --
Dec 12 11:24:00 slack -- MARK --
Dec 12 11:44:00 slack -- MARK --
Dec 12 12:04:00 slack -- MARK --
and yes, i've left his ip address in there, he deserves no privacy
 
Old 12-11-2006, 08:28 PM   #2
sunman
Member
 
Registered: Jun 2005
Distribution: Slackware64 13.0 (multilib)
Posts: 67

Rep: Reputation: 15
I believe it's accomplished via some kind of widely available script(s), hence hearing the name 'script kiddies', where they scan ranges of ips for open ports. But I really don't know how it's done. I had this happen when I setup my first slack system (before I got a NAT router and more than 1 machine setup) and all I did to stop it was to block those ports and stop the services that I didn't need running. If you don't need ssh running you can disable that among others, or set it up to only allow certain hosts to connect, etc. The router, for me, is much simpler than setting up a firewall and I only have to open those ports up that I absolutely must via forwarding.

As far as the ip logged I'm not really certain how reliable that is, as there might be ways to mask their true ip address.

Sorry I'm not more learned on this subject but I believe it's fairly common and some googling might turn up more informative answers.

Regards,
Tim

Last edited by sunman; 12-11-2006 at 08:30 PM.
 
Old 12-11-2006, 11:35 PM   #3
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 465

Rep: Reputation: 53
Quote:
Originally Posted by sunman
As far as the ip logged I'm not really certain how reliable that is, as there might be ways to mask their true ip address.
Maybe he was using a proxy, but usually they use lots.
I checked the ip on http://samspade.org/ whois and seems Country: US OrgName: Comcast, OrgAbuseEmail: abuse@comcast.net but i'm also unfamiliar with this things heh

Last edited by MannyNix; 12-11-2006 at 11:38 PM.
 
Old 12-12-2006, 12:21 AM   #4
kremers78
Member
 
Registered: Nov 2006
Distribution: slackware 11.0
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by newio
...but there are a lot of lines where this guy was able to leave a msg in my log. Obvisoulsy its his tag.

Code:
Dec 12 08:43:59 slack -- MARK --

the "-- MARK --" tag is what you are refering to??
If so.. try open that log as root. The "-- MARK --" tags are there for security reasons i think.

In your log i only see someone trying to connect as root to your machine, i'm not seeing that he (or she...) is connected.
 
Old 12-12-2006, 01:28 AM   #5
newio
Member
 
Registered: May 2006
Location: Sydney
Distribution: Slackware 11.0
Posts: 39

Original Poster
Rep: Reputation: 15
ok, im a little more worried now. i've shutdown ssh and the msg's are still appearing. anyone have any idea what generates them?

Code:
Dec 12 16:44:00 slack -- MARK --
Dec 12 16:58:03 slack sshd[2133]: Received signal 15; terminating.
Dec 12 17:24:00 slack -- MARK --
Dec 12 17:44:01 slack -- MARK --
Dec 12 18:04:01 slack -- MARK --
oh, and i have to be root to view the log (and i've never heard of messages being replaced if your not root):
Code:
-rw-r----- 1 root root 116241 2006-12-12 18:24 messages
 
Old 12-12-2006, 01:35 AM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Those MARK are automatically generated by syslogd daemon just to have a timestamp so you can see it's actually logging

If you don't want them, edit /etc/rc.d/rc.syslog and change
Code:
/usr/sbin/syslogd
to
Code:
/usr/sbin/syslogd -m0
If you want more information: man syslogd

Regarding the permission of the log file: It's just a security measure that only the root is able to see it.

Last edited by gbonvehi; 12-12-2006 at 05:14 AM.
 
Old 12-12-2006, 02:25 AM   #7
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
About the login attempts, there's not much you can do about except changing the sshd port.
 
Old 12-12-2006, 03:30 AM   #8
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by pdw_hu
About the login attempts, there's not much you can do about except changing the sshd port.
You may have done this already, but you could also disable root logins via ssh (which I think is generally recommended for this very reason). This may not stop the login attempts and the messages in your logs, but it'll stop them from logging in via ssh even if they do get your password
 
Old 12-12-2006, 07:56 AM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by newio
ok, im a little more worried now. i've shutdown ssh and the msg's are still appearing. anyone have any idea what generates them?

Code:
Dec 12 16:44:00 slack -- MARK --
Dec 12 16:58:03 slack sshd[2133]: Received signal 15; terminating.
Dec 12 17:24:00 slack -- MARK --
Dec 12 17:44:01 slack -- MARK --
Dec 12 18:04:01 slack -- MARK --
oh, and i have to be root to view the log (and i've never heard of messages being replaced if your not root):
Code:
-rw-r----- 1 root root 116241 2006-12-12 18:24 messages
Hi,

If you want to shutdown the service then do so. But, the security of your system is very dependent on the services that you have open to the internet. Your firewall should be setup to accomplish the security.

I would register a complaint with comcast!

'c-71-56-31-70.hsd1.ga.comcast.net' is the person(s) that are trying to get in. You can reverse lookup via this dns site. Then register the complaint abuse@comcast.net.

Yes, this is probably a 'script kiddy'.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Repeating Error message in /var/log/message lucktsm Linux - Security 2 10-27-2006 08:29 AM
Welcome Message after log in pxumsgdxpcvjm SUSE / openSUSE 1 09-20-2006 11:34 AM
message, message.1 in /var/log/ can be deleted for space? phpsharma Linux - Newbie 4 11-17-2004 12:23 PM
usb log msgs dcody Linux - General 0 11-08-2004 06:35 PM
/var/log/kern.log message dimkal Linux - Hardware 1 05-08-2004 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration