Free Privileged Account Discovery Tool: Identify & secure credentials to stop lateral movement. Download Free

BeyondTrust
  • Products
    Privileged Password Management
    Discover, manage, audit, and monitor privileged accounts
    Password Safe DevOps Secrets Safe
    Endpoint Privilege Management
    Manage privileges on Windows, Mac, Linux, and Unix endpoints
    Windows and Mac Unix and Linux Active Directory Bridge
    Secure Remote Access
    Centrally manage and secure remote access for service desks and vendors
    Remote Support Privileged Remote Access
    BeyondInsight Analytics
    See All Solutions
  • Resources

    Universal Privilege Management

    Our innovative Universal Privilege Management approach secures every user, asset, and session across your entire enterprise.

    Watch Video

    Learn

    Case Studies
    Competitor Comparisons
    Datasheets
    Glossary
    Product Demos
    Whitepapers

    Attend

    Events
    Go Beyond
    Training
    Webinars

    Support

    Changelog
    Professional Services
    Technical Documentation
  • Blog
  • Partners
  • Contact
  • Support
  • Services
  • Training
  • Events
  • Company

Protecting Passwords with Least Privilege Security

October 20, 2017

  • Blog
  • Archive

Least privilege security and application allow listing are all about protecting systems from unwanted change, but are also critical when it comes to protecting users’ credentials and domain admin passwords. While preventing key logging software from getting onto your systems is the most evident way these defenses might stop account credentials from being compromised, there are some less obvious advantages too.

Passwords are not stored in clear text but as encrypted strings, otherwise known as hashes. When a user enters their password for authentication, it’s used to generate a hash and compared with the password hash stored for the user in the service or application’s security database. If the two hashes match then the user is successfully authenticated to the system. While the password isn’t revealed during this exchange, if a hacker obtains the hash, they can use it to log on as the user.

NT Lan Manager (NTLM) is a legacy authentication protocol developed by Microsoft and is still widely used, with the hash being exposed every time a user needs to authenticate to a service or resource. Kerberos authentication takes a more secure approach by only exposing the user’s password hash once every 8 hours to request a Ticket Granting Ticket (TGT) from the Authentication Service (AS). Thereafter, when the user needs to authenticate to a particular resource, a service ticket is generated by the Ticket Granting Service (TGS) using the TGT, and passed between the two systems instead of exposing password hashes. Kerberos is used for domain authentication duties in Windows 2000 and later, but despite being more secure than NTLMv2, it isn’t immune to password hash attacks.

Despite the less than ideal way Windows uses password hashes, an attacker would need administrative privileges to access hashes stored in memory or the local Security Accounts Manager (SAM) database, so standard user accounts give a greater level of assurance for secondary logons.

To help protect domain admin credentials from being compromised use them only when necessary and against a domain controller. You can designate specially secured PCs, which have no Internet connection and are not used for any other purpose, for managing domain controllers. To further protect credentials, reboot management PCs after each use to clear password hashes from memory; or if using a VM, reset it to a known base configuration.

NTLM can be disabled in Windows 7 and Windows Server 2008 R2 (and later) via Group Policy, but is usually impractical because there are so many legacy applications that still rely on it. However, there are Group Policy settings that allow you to enable NTLM auditing so you can understand how the protocol is being used on your network.

In addition to least privilege security, application allow listing and endpoint protection software you should:

  • Use passphrases instead of passwords (15 characters or longer) to ensure insecure LM hashes are not cached in memory.
  • Avoid interactive logons, i.e. the desktop or runas command, when managing sensitive systems. Remote management tools, such as the Computer Management MMC, use network logons that don’t cache NT hashes in memory.

Russell Smith

IT Consultant & Security MVP

Russell Smith specializes in the management and security of Microsoft-based IT systems. In addition to blogging about Windows and Active Directory for the Petri IT Knowledgebase, Russell is a Contributing Editor at CDW’s Biztech Magazine.

Russell has more than 15 years of experience in IT, has written a book on Windows security, co-authored one for Microsoft’s Official Academic Course (MOAC) series and has delivered several courses for Pluralsight.

Stay Up To Date

Get the latest news, ideas, and tactics from BeyondTrust. You may unsubscribe at any time.

I agree to receive product related communications from BeyondTrust as detailed in the Privacy Policy, and I may manage my preferences or withdraw my consent at any time.

You May Also Be Interested In:

Webcasts | February 09, 2021

Customer Webinar: Remote Support 21.1 Released!

Webcasts | February 24, 2021

Your PAM 2021 Blueprint: Securing Privileged Accounts for On-Premises and Cloud Assets

Whitepapers

Evolving Privileged Identity Management (PIM) In The 'Next Normal'

BeyondTrust Logo
  • Facebook
  • Twitter
  • LinkedIn

Keep up with BeyondTrust

I agree to receive product related communications from BeyondTrust as detailed in the Privacy Policy, and I may manage my preferences or withdraw my consent at any time.

Customer Support
Contact Sales

Products

  • Endpoint Privilege Management
  • Password Management
  • Privileged Remote Access
  • DevOps Secrets Safe
  • Remote Support

Resources

  • Blog
  • Case Studies
  • Competitor Comparisons
  • Datasheets
  • Glossary
  • Videos
  • Webcasts
  • Whitepapers

About

  • Company
  • Careers
  • Contact
  • Events
  • Leadership Team
  • Partner Program
  • Press

Languages

  • English
  • German
  • French
  • Spanish
  • Korean
  • Portuguese
  • Japanese
  • Privacy
  • Security
  • Manage Cookies
  • WEEE Compliance

Copyright © 1999 — 2020 BeyondTrust Corporation. All rights reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust Corporation is not a chartered bank or trust company, or depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.