Password manager
A password manager assists in generating and retrieving complex passwords. The password can be stored in an encrypted database[1] or calculated on demand[2]. Types of password managers include locally-installed software applications, online services that are accessed through website portals, and locally-accessed hardware devices that serve as keys. Depending on the type of password manager being used and the functionality offered by its developers, the encrypted database is either stored locally on the user's device or stored remotely through an online file hosting service. Password managers typically require its user to create and remember one "master" password to unlock and access to any information stored in its database.
Types
Locally-installed software
Password managers commonly reside on the user's personal computer or mobile device, such as smart phones, in the form of a locally-installed software application. These applications can be offline, wherein the password database is stored independently and locally on the same device as the password manager software. Alternatively, password managers may offer or require a cloud-based approach, wherein the password database is dependent on an online file hosting service and stored remotely, but handled by password management software installed on the user's device.
Web-based services
An online password manager is a website that securely stores login details. They are a web-based version of more conventional desktop-based password manager.
The advantages of online password managers over desktop-based versions are portability (they can generally be used on any computer with a web browser and a network connection, without having to install software), and a reduced risk of losing passwords through theft from or damage to a single PC - also the same risk is present for the server that is used to store the users passwords on. In both cases this risk can be prevented by ensuring secure backups are taken.
The major disadvantages of online password managers are the requirements that the user trusts the hosting site and a keylogger is not on the computer they are using. With servers and the cloud being a focus of cyber attacks, how one authenticates into the online service and that the passwords stored there are encrypted with a user defined key are just as important. Again, users tend to circumvent security for convenience. Another important factor is whether one or two way encryption is used.
There are mixed solutions. Some online password management systems distribute their source code. It can be checked and installed separately.
The use of a web-based password manager is an alternative to single sign-on techniques, such as OpenID or Microsoft's Microsoft account (previously Microsoft Wallet, Microsoft Passport, .NET Passport, Microsoft Passport Network, and Windows Live ID) scheme, or may serve as a stop-gap measure pending adoption of a better method.
Token-based hardware devices
Security tokens are a form of token-based password manager, wherein a locally-accessible hardware device, such as smart cards or secure USB flash devices, is used to authenticate a user in lieu of or in addition to a traditional text-based password. The data stored in the token is usually encrypted to prevent probing and unauthorized reading of the data. Some token systems still require software loaded on the PC along with hardware (smart card reader) and drivers to properly read and decode the data.
- Credentials are protected using a security token, thus typically offering multi-factor authentication by combining
- something the user has such as a mobile application[3] that generates rolling a Token similar to virtual smart card, smart card and USB stick,
- something the user knows (PIN or password), and/or
- something the user is like biometrics such as a fingerprint, hand, retina, or face scanner.
Advantages
The advantage of password-based access controls is that they are easily incorporated in most software using APIs available in many software products, they require no extensive computer/server modifications, and that users are already familiar with the use of passwords. While passwords can be fairly secure, the weakness is how users choose and manage them, by using:
- simple passwords – short in length, that use words found in dictionaries, or don't mix in different character types (numbers, punctuation, upper/lower case), or are otherwise easily guessable
- passwords others can find – on sticky notes on monitors, in a notepad by the computer, in a document on the computer, whiteboard reminders, smart device storage in clear text, etc.
- the same password – using the same password for multiple sites, never changing account passwords, etc.
- shared passwords – users telling others passwords, sending unencrypted emails with password information, contractors using same password for all their accounts, etc.
- administrative account logins where limited logins would suffice, or
- administrators who allow users with the same role to use the same password.
It is typical to make at least one of these mistakes. This makes it very easy for hackers, crackers, malware and cyber thieves to break into individual accounts, corporations of all sizes, government agencies, institutions, etc. It is protecting against these vulnerabilities that makes password managers so important.
Password managers can also be used as a defense against phishing and pharming. Unlike human beings, a password manager program can also incorporate an automated login script that first compares the current site's URL to the stored site's URL. If the two don't match then the password manager does not automatically fill in the login fields. This is intended as a safeguard against visual imitations and look-alike websites. With this built-in advantage, the use of a password manager is beneficial even if the user only has a few passwords to remember. While not all password managers can automatically handle the more complex login procedures imposed by many banking websites, many of the newer password managers handle complex passwords, multi-page fill-ins, and multi-factor authentication prior.
Password managers can protect against keyloggers or keystroke logging malware. When using a multi-factor authentication password manager that automatically fills in logon fields, the user does not have to type any user names or passwords for the keylogger to pick up. While a keylogger may pick up the PIN to authenticate into the smart card token, for example, without the smart card itself (something the user has) the PIN does the attacker no good. However, password managers cannot protect against Man-in-the-browser attacks, where malware on the user's device performs operations (e.g. on a banking website) while the user is logged in while hiding the malicious activity from the user.
Issues
Vulnerabilities
If the passwords are stored in an unencrypted fashion, it is still generally possible to obtain the passwords given local access to the machine.
Some password managers use a user-selected master password or passphrase to form the key used to encrypt the protected passwords. The security of this approach depends on the strength of the chosen password (which might be guessed or brute-forced), and also that the passphrase itself is never stored locally where a malicious program or individual could read it. A compromised master password renders all of the protected passwords vulnerable.
As with any system which involves the user entering a password, the master password may also be attacked and discovered using key logging or acoustic cryptanalysis. Some password managers attempt to use virtual keyboards to reduce this risk - though this again is vulnerable to key loggers which take screenshots as data is entered. This risk can be mitigated with the use of a multi-factor verification device.
Some password managers include a password generator. Generated passwords may be guessable if the password manager uses a weak random number generator instead of a cryptographically secure one.
A strong password manager will include a limited number of false authentication entries allowed before the password manager is locked down and requires IT services to re-activate. This is the best way to protect against the brute-force attack.
Password managers that do not prevent swapping their memory to hard drive make it possible to extract unencrypted passwords from the computer’s hard drive. Turning off swap can prevent this risk.
Web-based password managers, which run inside the browser of the user, are particularly fraught with pitfalls. A detailed study using several password managers uncovered the following possible flaws inside web-based password managers:[4]
- Authorization flaws: Another possible problem is mistaking authentication with authorization. The researcher found that several web-based password managers had, at one point in time, such flaws. These issues were in particular present in password managers which allowed users to share credentials with other users.
- Bookmarklet flaws: Web-based password managers commonly rely on Bookmarklets for signing in users. However, if improperly implemented, a malicious website can abuse this to steal a user's password. The main cause of such vulnerabilities is that the JavaScript environment of a malicious website cannot be trusted.[5]
- User Interface flaws: Some password managers will ask the user to log in through an iframe. This is unfortunately insecure. It trains the user to fill in her password while the URL displayed by the browser is not the one of the password manager. A phisher can abuse this by creating a fake iframe and capturing the user's credentials. Instead of using an iframe, a more secure approach is to open a new tab where users can login to the password manager.
- Web flaws: Classic web vulnerabilities can also be present in web-based password managers. In particular, XSS and CSRF vulnerabilities may be exploited by hackers to obtain a user's password.
Furthermore password managers have the disadvantage that any potential hacker or malware just need to know one password to gain access to all of a user's passwords and that such managers have standardized locations and ways of storing passwords which can be exploited by malware.
Blocking of password managers
Various high-profile websites have attempted to block password managers, often backing down when publicly challenged.[6][7][8] Reasons cited have included protecting against automated attacks, protecting against phishing, blocking malware of simply denying compatibility. The Trusteer client security software from IBM features explicit options to block password managers.[9][10]
Such blocking has been criticized by information security professionals as making users less secure and that justifications are bogus.[8][10] The typical blocking implementation involves setting autocomplete='off' on the relevant password web form. Consequently, this option is now ignored from Internet Explorer 11[7] on https sites,[11] Firefox 38,[12] Chrome 34,[13] and in Safari from about 7.0.2.[14]
A 2014 paper from researcher at the Carnegie Mellon University found that whilst browsers refuse to autofill if the protocol on the current login page is different from the protocol at the time the password was saved, some password managers would insecurely fill in passwords for the http version of https-saved passwords. Most managers did not protect against iFrame and redirection based attacks and exposed additional passwords where password synchronization had been used between multiple devices.[11]
See also
- Comparison of password managers
- List of password managers
- Password fatigue
- Password management
- Security token
- Smart card
References
- ↑ Price, Rob (2017-02-22). "Password managers are an essential way to protect yourself from hackers — here's how they work". Business Insider. Archived from the original on 2017-02-27. Retrieved 2017-04-29.
- ↑ LessPass, Stateless Password Manager https://lesspass.com
- ↑ https://www.entrust.com/solutions/mobile/ Entrust IdentityGuard Mobile Smart Credential
- ↑ Li, Zhiwei; He, Warren; akhawe, Devdatta; Song, Dawn. "The Emperor's New Password Manager: Security Analysis ofWeb-based Password Managers" (PDF). 2014. Retrieved 25 December 2014.
- ↑ Adida, Ben; Barth, Adam; Jackson, Collin. "Rootkits for JavaScript Environments Ben" (PDF). 2009. Retrieved 25 December 2014.
- ↑ Mic, Wright (16 July 2015). "British Gas deliberately breaks password managers and security experts are appalled". Retrieved 26 July 2015.
- 1 2 Reeve, Tom (15 July 2015). "British Gas bows to criticism over blocking password managers". Retrieved 26 July 2015.
- 1 2 Cox, Joseph (26 July 2015). "Websites, Please Stop Blocking Password Managers. It’s 2015". Retrieved 26 July 2015.
- ↑ "Password Manager". Retrieved 26 July 2015.
- 1 2 Hunt, Troy (15 May 2014). "The "Cobra Effect" that is disabling paste on password fields". Retrieved 26 July 2015.
- 1 2 "Password Managers: Attacks and Defenses" (PDF). Retrieved 26 July 2015.
- ↑ "Firefox on windows 8.1 is autofilling a password field when autocomplete is off.". Retrieved 26 July 2015.
- ↑ Sharwood, Simon (9 April 2014). "Chrome makes new password grab in version 34". Retrieved 26 July 2015.
- ↑ "Re: 7.0.2: Autocomplete="off" still busted". Retrieved 26 July 2015.