Software:KeePass

From HandWiki
Short description: Computer password management utility
KeePass
KeePass Logo (2016).svg
KeePass Main.png
KeePass 2.x Main Window
Developer(s)Dominik Reichl
Initial releaseNovember 16, 2003; 20 years ago (2003-11-16)
Stable release1.41 and 2.55[1] (October 12, 2023; 9 months ago (2023-10-12)) [±]
RepositorySourceforge
Written inC# (2.x version),
C++ (1.x version)
Operating systemWindows, Linux, MacOS, BSD
Platform.NET Framework, Mono
Available inEnglish
TypePassword manager
LicenseGPL-2.0-or-later
Website{{{1}}}

KeePass Password Safe is a free and open-source password manager primarily for Windows. It officially supports macOS and Linux operating systems through the use of Mono.[2] Additionally, there are several unofficial ports for Windows Phone, Android, iOS, and BlackBerry devices, which normally work with the same copied or shared (remote) password database.[3][4][5][6][7] KeePass stores usernames, passwords, and other fields, including free-form notes and file attachments, in an encrypted file. This file can be protected by any combination of a master password, a key file, and the current Windows account details. By default, the KeePass database is stored on a local file system (as opposed to cloud storage).[8]

KeePass comes in two different variants: KeePass 1.x and KeePass 2.x. Although the 1.x variant is the former variant it is supported indefinitely: Dominik Reichl: "2.x isn't the successor of 1.x, and 1.x isn't dead".[9] KeePass 2.x has a different software basis in C# instead of the former C++. Mainly communication features are extended in KeePass 2.x: authentication with the Windows user account, remote and shared database editing as well as many plugins allowing communication and authentication with different web browsers, databases and more.[10][11]

KeePass 1.x and 2.x support a number of plugins, although 2.x allows more plugins.[11] It has a password generator and synchronization function, supports two-factor authentication, and has a Secure Desktop mode. It can use a two-channel auto-type obfuscation feature to offer additional protection against keyloggers.[12] KeePass can import from over 30 other most commonly used password managers.[12]

A 2017 Consumer Reports article described KeePass as one of the four most widely used password managers (alongside 1Password, Dashlane and LastPass), being "popular among tech enthusiasts" and offering the same level of security as non-free competitors.[13]

A 2019 Independent Security Evaluators study described KeePass as well as other widely used password managers as being unable to control Windows 10's tendency to leave passwords in cleartext in RAM after they are displayed using Windows controlled GUI.[14] In addition, several GitHub projects (KeeFarce, KeeThief, Lazanga) specifically attack a running KeePass to steal all data when the host is compromised. KeePass cannot prevent password theft and, as Dominik Reichl, the administrator of KeePass, states, "neither KeePass nor any other password manager can magically run securely in a spyware-infected, insecure environment."[15]

Overview

Import and export

The password list is saved by default as a .kdbx file, but it can be exported to .txt, HTML, XML and CSV.[16] The XML output can be used in other applications and re-imported into KeePass using a plugin. The CSV output is compatible with many other password safes like the commercial closed-source Password Keeper and the closed-source Password Agent. Also, the CSVs can be imported by spreadsheet applications like Microsoft Excel or OpenOffice/LibreOffice Calc.

File format support can be expanded through the use of KeePass plugins.[17]

Multi-user support

KeePass supports simultaneous access and simultaneous changes to a shared password file by multiple computers (often by using a shared network drive), however there is no provisioning of access per-group or per-entry.[18] As of May 2014, there are no plugins available to add provisioned multi-user support, but there exists a proprietary password server (Pleasant Password Server) that is compatible with the KeePass client and includes provisioning.[19]

Auto-type and drag and drop

An example of KeePass's auto-type function, which is triggered by a global hotkey

KeePass can minimize itself and type the information of the currently selected entry into dialogs, webforms, etc. KeePass has a global auto-type hot key. When KeePass is running in the background (with an unlocked database) and user presses down the hotkey, it looks up the selected (or correct) entry and enters every login and/or password characters sequence.[20] All fields, such as title, username, password, URL, and notes, can be drag and dropped into other windows.[citation needed]

Windows clipboard handling allows double-clicking on any field of the password list to copy its value to the Windows clipboard.

KeePass may be configured to randomize characters' input sequence to make it harder to log keystrokes. The features is called Two-Channel Auto-Type Obfuscation (TCATO).[21]

Clipboard reset

KeePass automatically clears the clipboard some time after the user has copied one of their passwords into it. KeePass features protection against clipboard monitors (other applications will not get notifications that the clipboard content has been changed).[citation needed]

Browser support

The auto-type functionality works with all windows, and consequently with all browsers. The KeeForm extension fills in user details into website form fields automatically. It is available for Mozilla Firefox, Google Chrome, and Microsoft Edge. Internet Explorer also has a browser integration toolbar available.[22]

Built-in password generator

User Interface of the password generator

KeePass features a built-in password generator that generates random passwords. Random seeding can be done through user input (mouse movement and random keyboard input).[20]

Plugins

KeePass has a plugin architecture. There are various plugins available from the KeePass website (such as import/export from/to various other formats, database backup, integration, automation, etc.). Note that plugins may compromise the security of KeePass, because they are written by independent authors and have full access to the KeePass database.[11]

Wrapper

KeePass has an opensource wrapper, QuicKeepass, that allows the use of KeePass more efficiently on Linux.[23]

Cryptography

Runtime security

"Add Entry" dialog in KeePass

According to the utility's author, KeePass was one of the first password management utilities to use security-enhanced password edit controls, in this case one called CSecureEditEx.[24] The author makes several claims regarding the security of the control and its resistance to password revealing utilities; however, the author does not cite or make any references to any third-party testing of the control to corroborate the claims of its security.[25]

Passwords are protected in memory while KeePass is running. On Windows Vista and later versions, passwords are encrypted in process memory using Windows Data Protection API, which allows storing the key for memory protection in a secure, non-swappable memory area. On previous Windows systems, KeePass falls back to using the ARC4 cipher with a temporary, random session key.[26]

Offline security

Access to the database is restricted by a master password or a key file. Both methods may be combined to create a "composite master key". If both methods are used, then both must be present to access the password database. KeePass version 2.x introduces a third option—dependency upon the current Windows user.[27] KeePass encrypts the database with the AES, Twofish or ChaCha20 symmetric cipher, where the first two are used in CBC/PKCS7 mode. AES is the default option in both KeePass editions, Twofish is available in KeePass 1.x, ChaCha20 is available only in KeePass 2.35 and higher.[28] However, a separate plugin provides Twofish as an encryption algorithm in KeePass 2.x. In KeePass 1.x (KDB database format), the integrity of the data is checked using a SHA-256 hash of the plaintext, whereas in KeePass 2.x (KDBX database format), the authenticity of the data is ensured using a HMAC-SHA-256 hash of the ciphertext (Encrypt-then-MAC construction).[29]

Notable KeePass derivatives

  • KeePassX, a multi-platform open source KeePass clone for Linux and macOS, built using the Qt libraries.[30] As of December 2021, KeePassX is no longer actively maintained.[31]
  • KeePassXC (KeePass Cross-Platform Community Edition) is a fork of KeePassX written in C++.[32]
  • KeeWeb, a cross-platform JavaScript web application using the KeePass database format, desktop version built with Electron.

History

KeePass at one time had a paste-once functionality, where after a single paste operation, the clipboard would be cleared automatically, but this was removed in version 2.x due to incompatibility and insufficient effectiveness.[33]

See also

References

  1. KeePass 2.55 released on KeePass website
  2. "Setup". http://keepass.info/help/v2/setup.html#mono. 
  3. "Download". http://keepass.info/download.html. 
  4. "7Pass". https://7pass.wordpress.com/. 
  5. "KeePassDroid". https://www.keepassdroid.com/. 
  6. "BlackBerry World – KeePass for BlackBerry". Blackberry. http://appworld.blackberry.com/webstore/content/27406106/. 
  7. "iOS application". Apple. https://itunes.apple.com/us/app/minikeepass-secure-password/id451661808. 
  8. Zukerman, Erez. "Tools for the Paranoid: 5 Free Security Tools to Protect Your Data". PC World. http://www.pcworld.com/article/2026561/tools-for-the-paranoid-5-free-security-tools-to-protect-your-data.html. Retrieved 2013-07-14. 
  9. Reichl, Dominik, "Development Status FAQ", KeePass, https://keepass.info/devstatus.html .
  10. Reichl, Dominik, "Edition Comparison", KeePass, https://keepass.info/compare.html .
  11. 11.0 11.1 11.2 Reichl, Dominik. "Plugins". https://keepass.info/plugins.html. 
  12. 12.0 12.1 Rubenking, Neil. "KeePass Review & Ratings". PC Magazine. https://www.pcmag.com/article2/0,2817,2408063,00.asp. Retrieved 2014-06-11. 
  13. Chaikivsky, Andrew (2017-02-17). "Everything You Need to Know About Password Managers". Consumer Reports. https://www.consumerreports.org/digital-security/everything-you-need-to-know-about-password-managers/. 
  14. Bednarek, Adrian. "Password Managers: Under the Hood of Secrets Management". Security evaluators. https://www.securityevaluators.com/casestudies/password-manager-hacking/. 
  15. Reichl, Dominik. "Security Issues". https://keepass.info/help/kb/sec_issues.html#keefarce. 
  16. Reichl, Dominik (2019). "Features". https://keepass.info/features.html. 
  17. "2.x Plugins". https://keepass.info/help/v2/plugins.html. 
  18. Reichl, Dominik. "KeePass Help Center". http://keepass.info/help/base/multiuser.html. 
  19. "Pleasant Password Server". http://pleasantsolutions.com/PasswordServer/Features.aspx. 
  20. 20.0 20.1 Markton, Ben. "KeePass Password Safe Professional". http://download.cnet.com/KeePass-Password-Safe-Professional/3000-2092_4-10916116.html. 
  21. Reichl, Dominik. "Two-Channel Auto-Type Obfuscation". https://keepass.info/help/v2/autotype_obfuscation.html. 
  22. KeeForm, http://www.keeform.org/, retrieved 2014-06-24 .
  23. "QuicKeepass". September 28, 2021. https://github.com/nongiach/QuicKeepass. 
  24. Reichl, Dominik. "Secure Edit Controls". KeePass. http://www.keepass.info/help/base/secedits.html. 
  25. Reichl, Dominik (2005-04-17). "CSecureEditEx – A More Secure Edit Control". The Code Project. http://www.codeproject.com/editctrl/SecEditEx.asp. 
  26. Reichl, Dominik. "Security". KeePass. http://keepass.info/help/base/security.html. 
  27. Reichl, Dominik. "Composite Master Key". KeePass. http://keepass.info/help/base/keys.html. 
  28. Reichl, Dominik. "News: KeePass 2.35 available!". Keepass. https://keepass.info/news/n170109_2.35.html. 
  29. Reichl, Dominik. "Security". KeePass. https://keepass.info/help/base/security.html#secencrypt. 
  30. Geyer, Felix. "KeePassX 2.0 has arrived". Kee pass X. https://www.keepassx.org/news/2015/12/533. 
  31. "Development stopped". 9 December 2021. https://www.keepassx.org/index.html%3Fp=636.html. 
  32. "KeePassXC Password Manager". KeepassXC. https://keepassxc.org/. 
  33. Reichl, Dominik. "What happened to the paste-once functionality in 2.x?". KeePass Forums. http://sourceforge.net/projects/keepass/forums/forum/329220/topic/4925103. 

External links