Finding password weaknesses in your Linux systems

Finding password weaknesses in your Linux systems

We've all experienced the real-world equivalent of the phrase, "It's the little things that'll get you." Whether it's fixing our automobiles, debugging software or locking down our networks, it always seems to be those small oversights that either provide the solution or end up getting us into a world of hurt. Linux security is no different. Arguably the biggest (and littlest) problem when it comes to keeping Linux systems under wraps is weak passwords.

Dozens of the security breaches listed on the Privacy Rights Clearinghouse Chronology of Data Breaches were the result of compromised passwords. It seems the more we preach and rant about using strong passwords, the greater the problem becomes. In the world of Linux, we often only have ourselves to blame, as the majority of Linux-based systems are used and maintained by those of us working in IT. Whether or not you believe passwords are a problem in your Linux environment, you won't know until you check.

    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Margie Semilof, Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

More on Linux passwords:
Recovering a lost administration password on Ubuntu Server

Passphrases instead of passwords on Red Hat, part 1

Passphrases instead of passwords on Red Hat, part 2

Generally speaking, ferreting out password vulnerabilities in Linux is tougher than it is in Windows. This is especially true from the perspective of a malicious insider who often has unfettered physical and logical access to Linux systems. By default, the passwd/shadow/salt combination helps eliminate most operating system (OS)-related password vulnerabilities.

That said, if a malicious insider or other attacker -- such as someone who's stolen a Linux-based laptop -- gains physical access to the system and thus the /etc/passwd and /etc/shadow files, all bets are off. John the Ripper hashes once thought to be secure are now in the hands of someone with ill-intent. John is especially powerful when run in incremental mode, which tries all character combinations, or when used with a good dictionary such as the BlackKnightList.

Some of the biggest Linux password weakness are Web-related. I've seen numerous situations where poorly-written Web applications, namely Common Gateway Interface (CGI), and misconfigured Apache instances have enabled public access of systems and their passwd file. I haven't been able to access a shadow file in this way, but given all the user accounts on a system, you can imagine the possibilities. At the very least, it gives the bad guys a leg up.

I've also seen situations where administrators configured anonymous File Transfer Protocol (FTP) sharing of entire server drives and forgot about it. No passwords at all is good for the bad guys and not at all good for business.

Ferreting out password vulnerabilities in Linux is tougher than it is in Windows.
,
Another area affected by Linux-related password issues is weak file and share permissions. Using the find command, a simple text search of local systems, NFS, and Samba shares, can reveal passwords in word processing files, configuration files, system files and so on. This is especially true if weak file and share permissions have been granted, which is very often the case.

We're not just talking about "live" systems either. Unauthorized access to tape and disk image backups -- especially old or static backups you've may have put away "just in case" -- opens up an entirely new frontier to root out passwords.

Your best defense is prevention. You must have -- and enforce – a reasonable password policy that not only addresses password complexity but intruder lockout as well, regardless of the purpose or importance of the system. Furthermore, look beyond the OS to find areas with weak points. All it takes is one password weakness in an odd application on a seemingly unimportant system for someone to have a stepping stone into your environment.

Trust but verify. It's a tried and true principle of security and serves as a great eliminator of Linux password weaknesses we might otherwise overlook.

ABOUT THE AUTHOR: Kevin Beaver is an information security consultant, keynote speaker, and expert witness with Atlanta-based Principle Logic, LLC. Kevin specializes in performing independent security assessments. Kevin has authored/co-authored seven books on information security including Hacking For Dummies and Hacking Wireless Networks For Dummies (Wiley). He is also the creator of the Security On Wheels information security audio books and blog providing security learning for IT professionals on the go. Kevin can be reached at kbeaver@principlelogic.com.

This was first published in December 2009

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.