LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 08-09-2011, 09:04 AM   #1
Weinie
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Rep: Reputation: Disabled
Showing passwords for failed login attempts


Hello,

I made my own firewall using Fedora and Shorewall. I use SSH to login and administer the firewall, as needed.

Of course when looking in the /var/log folder, I see numerious attempts to log into root, and other accounts, using what has to be a dictonary of names.

Now here is my question. Not only do I want to see that user names were used to try and login, I would like to see what passwords were used for each attempt. This does not seem to be happening now. Is there a way to have this information logged?
 
Old 08-09-2011, 10:35 AM   #2
wpeckham
Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 758

Rep: Reputation: 171Reputation: 171
Better yet

Instead of trying to capture passwords (which would be difficult with ssh, and set you to fighting with the password security of your own system at best) why not set up to ensure that all attempts will fail from any IP address initiating such activity? (for a 24 hours perhaps, after a certain number of failures)

Thus more secure, and what passwords they try are irrelevant (unless they guess the right one very quickly).

I really like the thought of the bad-guys zombies spinning their wheels for days at a time on a lost cause, which ties them up and gives them less time to attack vulnerable targets.
 
Old 08-09-2011, 10:54 AM   #3
Weinie
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Not my goal :-)

I'm not worried about them getting in, I have root login disabled, and 30+ char complex passwords on all accounts, and my account is the only one able to sudo.

I guess what I am looking to do is use that password data to build my own password list(s), and just plain curiosity :-)

As far as difficult, when the password is passed to the kernal, its already been decrypted by sshd, no?
 
Old 08-09-2011, 11:48 AM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
@Weinie, there are many projects and studies on the 'net that analyze commonly attempted passwords. You might try a few searches and see what you can come up with.

I don't know of a way to make sshd(8) report passwords, even with the highest debug level turned on. And that's a very good thing. There may be honeypot utilities you can install to glean this info on a (phony) system / service.

In any case, I recommend that you do some research on existing data rather than reinventing the wheel.
 
Old 08-09-2011, 12:03 PM   #5
Weinie
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks

OK, thats the answer I'm looking for. Thre is not a way to make sshd record the passwords used in a session logon event. Just wanted to make sure I haden't missed something.

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
failed login attempts smilemukul Linux - Newbie 7 12-16-2010 12:46 PM
SSH Login Attempts - Can passwords be captured? SlowCoder Linux - Server 6 10-07-2007 07:16 PM
Constant failed login attempts... seanferd Linux - Security 8 11-09-2006 08:42 AM
Timeout between failed login attempts wuicci Linux - Security 3 06-01-2006 04:40 AM
Failed SSH login attempts Capt_Caveman Linux - Security 38 01-03-2006 03:22 PM


All times are GMT -5. The time now is 04:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration