Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


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

Rep: Reputation: Disabled
Showing passwords for failed login attempts


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, 11:35 AM   #2
Senior Member
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,374

Rep: Reputation: 959Reputation: 959Reputation: 959Reputation: 959Reputation: 959Reputation: 959Reputation: 959Reputation: 959
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, 11:54 AM   #3
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, 12:48 PM   #4
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
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, 01:03 PM   #5
LQ Newbie
Registered: Aug 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled

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.



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

All times are GMT -5. The time now is 02:18 PM.

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