Software:VeraCrypt

From HandWiki
Short description: Free and open-source disk encryption utility
VeraCrypt
VeraCrypt Logo.svg
VeraCrypt screenshot.png
VeraCrypt 1.17 on Windows 10
Developer(s)IDRIX (based in Paris, France)[1]
Initial releaseJune 22, 2013; 11 years ago (2013-06-22)
Stable release1.26.7 (October 31, 2023; 8 months ago (2023-10-31)[2]) [±]
Written inC, C++, Assembly
Operating system
PlatformIA-32, x86-64, AArch64 and armhf
Available in40 languages[3]
TypeDisk encryption software
LicenseMulti-licensed as Apache License 2.0 and TrueCrypt License 3.0[4]
Websitewww.veracrypt.fr/en/Home.html

VeraCrypt is a free and open-source utility for on-the-fly encryption (OTFE).[5] The software can create a virtual encrypted disk that works just like a regular disk but within a file. It can also encrypt a partition[6] or (in Windows) the entire storage device with pre-boot authentication.[7]

VeraCrypt is a fork of the discontinued TrueCrypt project.[8] It was initially released on 22 June 2013. Many security improvements have been implemented and concerns within the TrueCrypt code audits have been addressed. VeraCrypt includes optimizations to the original cryptographic hash functions and ciphers, which boost performance on modern CPUs.

Encryption scheme

VeraCrypt employs AES, Serpent, Twofish, Camellia, and Kuznyechik as ciphers. Version 1.19 stopped using the Magma cipher in response to a security audit.[9] For additional security, ten different combinations of cascaded algorithms are available:[10]

  • AES–Twofish
  • AES–Twofish–Serpent
  • Camellia–Kuznyechik
  • Camellia–Serpent
  • Kuznyechik–AES
  • Kuznyechik–Serpent–Camellia
  • Kuznyechik–Twofish
  • Serpent–AES
  • Serpent–Twofish–AES
  • Twofish–Serpent

The cryptographic hash functions available for use in VeraCrypt are BLAKE2s-256, SHA-256, SHA-512, Streebog and Whirlpool.[11] VeraCrypt used to have support for RIPEMD-160 but it has since been removed in version 1.26.[12]

VeraCrypt's block cipher mode of operation is XTS.[13] It generates the header key and the secondary header key (XTS mode) using PBKDF2 with a 512-bit salt. By default they go through 200,000 to 500,000 iterations, depending on the underlying hash function used and whether it is system or non-system encryption.[14] The user can customize it to start as low as 2,048 and 16,000 respectively.[14]

Security improvements

  • The VeraCrypt development team considered the TrueCrypt storage format too vulnerable to a National Security Agency (NSA) attack, so it created a new format incompatible with that of TrueCrypt. VeraCrypt versions prior to 1.26.5 are capable of opening and converting volumes in the TrueCrypt format.[15][16] Since ver. 1.26.5 TrueCrypt compatibility is dropped.[17]
  • An independent security audit of TrueCrypt released 29 September 2015 found TrueCrypt includes two vulnerabilities in the Windows installation driver allowing an attacker arbitrary code execution and privilege escalation via DLL hijacking.[18] This was fixed in VeraCrypt in January 2016.[19]
  • While TrueCrypt uses 1,000 iterations of the PBKDF2-RIPEMD-160 algorithm for system partitions, VeraCrypt uses either 200,000 iterations (SHA-256, BLAKE2s-256, Streebog) or 500,000 iterations (SHA-512, Whirlpool) by default (which is customizable by user to be as low as 2,048 or 16,000 respectively).[14] For standard containers and other partitions, VeraCrypt uses 500,000 iterations by default regardless of the hashing algorithm chosen (which is customizable by user to be as low as 16,000).[14] While these default settings make VeraCrypt slower at opening encrypted partitions, it also makes password-guessing attacks slower.[20]
  • Additionally, since version 1.12, a new feature called "Personal Iterations Multiplier" (PIM) provides a parameter whose value is used to control the number of iterations used by the header key derivation function, thereby making brute-force attacks potentially even more difficult. VeraCrypt out of the box uses a reasonable PIM value to improve security,[21] but users can provide a higher value to enhance security. The primary downside of this feature is that it makes the process of opening encrypted archives even slower.[21][22][23][24]
  • A vulnerability in the bootloader was fixed on Windows and various optimizations were made as well. The developers added support for SHA-256 to the system boot encryption option and also fixed a ShellExecute security issue. Linux and macOS users benefit from support for hard drives with sector sizes larger than 512. Linux also received support for the NTFS formatting of volumes.
  • Unicode passwords are supported on all operating systems since version 1.17 (except for system encryption on Windows).[15]
  • VeraCrypt added the capability to boot system partitions using UEFI in version 1.18a.[15]
  • Option to enable/disable support for the TRIM command for both system and non-system drives was added in version 1.22.[15]
  • Erasing the system encryption keys from RAM during shutdown/reboot helps mitigate some cold boot attacks, added in version 1.24.[15]
  • RAM encryption for keys and passwords on 64-bit systems was added in version 1.24.[15]

VeraCrypt audit

QuarksLab conducted an audit of version 1.18 on behalf of the Open Source Technology Improvement Fund (OSTIF), which took 32 man-days. The auditor published the results on 17 October 2016.[15][25][26] On the same day, IDRIX released version 1.19, which resolved major vulnerabilities identified in the audit.[27]

Fraunhofer Institute for Secure Information Technology (SIT) conducted another audit in 2020, following a request by Germany's Federal Office for Information Security (BSI), and published the results in October 2020.[28][29]

Security precautions

There are several kinds of attacks to which all software-based disk encryption is vulnerable. As with TrueCrypt, the VeraCrypt documentation instructs users to follow various security precautions to mitigate these attacks,[30][31] several of which are detailed below.

Encryption keys stored in memory

Main page: Cold boot attack
VeraCrypt Boot Loader

VeraCrypt stores its keys in RAM; on some personal computers DRAM will maintain its contents for several seconds after power is cut (or longer if the temperature is lowered). Even if there is some degradation in the memory contents, various algorithms may be able to recover the keys. This method, known as a cold boot attack (which would apply in particular to a notebook computer obtained while in power-on, suspended, or screen-locked mode), was successfully used to attack a file system protected by TrueCrypt versions 4.3a and 5.0a in 2008.[32] With version 1.24, VeraCrypt added the option of encrypting the in-RAM keys and passwords on x64 editions of Windows, with a CPU overhead of less than 10%, and the option of erasing all encryption keys from memory when a new device is connected.[15]

Tampered hardware

Main page: Evil maid attack

VeraCrypt documentation states that VeraCrypt is unable to secure data on a computer if an attacker physically accessed it and VeraCrypt is then used on the compromised computer by the user again. This does not affect the common case of a stolen, lost, or confiscated computer.[33] The attacker having physical access to a computer can, for example, install a hardware or a software keylogger, a bus-mastering device capturing memory or install any other malicious hardware or software, allowing the attacker to capture unencrypted data (including encryption keys and passwords) or to decrypt encrypted data using captured passwords or encryption keys. Therefore, physical security is a basic premise of a secure system.[34]

Some kinds of malware are designed to log keystrokes, including typed passwords, that may then be sent to the attacker over the Internet or saved to an unencrypted local drive from which the attacker might be able to read it later, when they gain physical access to the computer.[35]

Trusted Platform Module

VeraCrypt does not take advantage of Trusted Platform Module (TPM). VeraCrypt FAQ repeats the negative opinion of the original TrueCrypt developers verbatim.[36] The TrueCrypt developers were of the opinion that the exclusive purpose of the TPM is "to protect against attacks that require the attacker to have administrator privileges, or physical access to the computer". The attacker who has physical or administrative access to a computer can circumvent TPM, e.g., by installing a hardware keystroke logger, by resetting TPM, or by capturing memory contents and retrieving TPM-issued keys. The condemning text goes so far as to claim that TPM is entirely redundant.[37]

It is true that after achieving either unrestricted physical access or administrative privileges, it is only a matter of time before other security measures in place are bypassed.[38][39] However, stopping an attacker in possession of administrative privileges has never been one of the goals of TPM. (See Trusted Platform Module § Uses for details.) TPM might, however, reduce the success rate of the cold boot attack described above.[40][41][42][43][44] TPM is also known to be susceptible to SPI attacks.[45]

Plausible deniability

As with its predecessor TrueCrypt, VeraCrypt supports plausible deniability[46] by allowing a single "hidden volume" to be created within another volume.[47] The Windows versions of VeraCrypt can create and run a hidden encrypted operating system whose existence may be denied.[48] The VeraCrypt documentation lists ways in which the hidden volume deniability features may be compromised (e.g., by third-party software which may leak information through temporary files or via thumbnails) and possible ways to avoid this.[30]

Performance

VeraCrypt supports parallelized[49]:63 encryption for multi-core systems. On Microsoft Windows, pipelined read and write operations (a form of asynchronous processing)[49]:63 to reduce the performance hit of encryption and decryption. On processors supporting the AES-NI instruction set, VeraCrypt supports hardware-accelerated AES to further improve performance.[49]:64 On 64-bit CPUs VeraCrypt uses optimized assembly implementation of Twofish, Serpent, and Camellia.[15]

License and source model

VeraCrypt was forked from the since-discontinued TrueCrypt project in 2013.[8] and originally contained mostly TrueCrypt code released under the TrueCrypt License 3.0. In the years since, more and more of VeraCrypt's code has been rewritten and released under the permissive Apache License 2.0.

The TrueCrypt license is generally considered to be source-available but not free and open source. The Apache license is universally considered to be free and open source. The mixed VeraCrypt license is widely but not universally considered to be free and open source.

On 28 May 2014 TrueCrypt ceased development unusual circumstances,[50][51][52] and there exists no way to contact the former developers.

VeraCrypt is considered to be free and open source by:

VeraCrypt is considered to not be free and open source by:

  • Debian[62]
  • Some members of the Open Source Initiative, including the director,[63] expressed concern about an older version of the TrueCrypt license, but the OSI itself has not published a determination regarding either TrueCrypt or VeraCrypt.
  • The Free Software Foundation has determined the TrueCrypt license to be non-free.[64] The FSF has not published a determination regarding the VeraCrypt license.

Most of these are due to Veracrypt and Truecrypt not having supported or endorsed licenses. For example, the FSF considers all licenses not under the GNU license series that interfere with the GNU license to be non-free.[65] Debian considers all software that does not meet the guidelines of its DFSG to be non-free.

Legal cases

In US v. Burns, the defendant had three hard drives, the first being a system partition which was later found to contain caches of deleted child pornography and manuals for how to use VeraCrypt, with the second being encrypted, and the third having miscellaneous music files. Even though the defendant admitted to having child pornography on his second hard drive, he refused to give the password to the authorities. Despite searching for clues of previously used passwords on the first drive, and inquiries to the FBI about any weaknesses to the VeraCrypt software that could be used to access the drive partition, and brute-forcing the partition with the alphanumeric character set as potential passwords, the partition could not be accessed. Due to the defendant confessing to having child pornography on the encrypted drive, the prosecution applied to force the defendant to give away the password under the foregone conclusion doctrine in the All Writs Act.[66]

In a search of a Californian defendant's apartment for accessing child pornography, a VeraCrypt drive that was over 900 Gigabytes was found as an external hard drive. The FBI was called to assist local law enforcement, but the FBI claimed to not have found a weakness in the VeraCrypt software. The FBI also denied having a backdoor within the VeraCrypt software. It was later found that another suspect had educated the defendant into using encryption to hide his photos and videos of child pornography. Because the defendant had admitted to having child pornography on the drive as a backup anyways and chat logs relating to the other suspect educating the defendant on how to use VeraCrypt, the foregone conclusion doctrine was used again.[67]

See also

References

  1. "Contact Us – IDRIX". https://www.idrix.fr/Root/mos/Contact_Us/Itemid,3/. 
  2. "Release Notes". July 2, 2023. https://www.veracrypt.fr/en/Release%20Notes.html. 
  3. "VeraCrypt - Free Open source disk encryption with strong security for the Paranoid". Veracrypt. https://www.veracrypt.fr/code/VeraCrypt/tree/Translations?h=VeraCrypt_1.25.9. 
  4. "root/License.txt". TrueCrypt Foundation. 17 Oct 2016. https://www.veracrypt.fr/code/VeraCrypt/tree/License.txt. 
  5. "VeraCrypt Official Site"
  6. "VeraCrypt Volume". VeraCrypt Official Website. https://veracrypt.fr/en/VeraCrypt%20Volume.html. 
  7. "Operating Systems Supported for System Encryption". VeraCrypt Official Website. https://veracrypt.fr/en/Supported%20Systems%20for%20System%20Encryption.html. 
  8. 8.0 8.1 Rubens, Paul (October 13, 2014). "VeraCrypt a Worthy TrueCrypt Alternative". eSecurity Planet. Quinstreet Enterprise. https://www.esecurityplanet.com/open-source-security/veracrypt-a-worthy-truecrypt-alternative.html. 
  9. Pauli, Darren (October 18, 2016). "Audit sees VeraCrypt kill critical password recovery, cipher flaws". https://www.theregister.co.uk/2016/10/18/veracrypt_audit/. 
  10. "Encryption Algorithms". VeraCrypt Documentation. IDRIX. https://www.veracrypt.fr/en/Encryption%20Algorithms.html. 
  11. "Hash Algorithms". VeraCrypt Documentation. IDRIX. https://www.veracrypt.fr/en/Hash%20Algorithms.html. 
  12. "Changelog". Changelog. IDRIX. https://web.archive.org/web/20220407224429/https://sourceforge.net/projects/veracrypt/files/VeraCrypt%20Nightly%20Builds/. 
  13. "Modes of Operation". VeraCrypt Documentation. IDRIX. https://www.veracrypt.fr/en/Modes%20of%20Operation.html. 
  14. 14.0 14.1 14.2 14.3 "Header Key Derivation, Salt, and Iteration Count". VeraCrypt Documentation. IDRIX. https://www.veracrypt.fr/en/Header%20Key%20Derivation.html. 
  15. 15.0 15.1 15.2 15.3 15.4 15.5 15.6 15.7 15.8 "VeraCrypt Release Notes"
  16. Castle, Alex (March 2015). "Where Are We At With TrueCrypt?". Maximum PC: 59. 
  17. "VeraCrypt - Free Open source disk encryption with strong security for the Paranoid". https://www.veracrypt.fr/en/Release%20Notes.html. 
  18. Constantin, Lucian (September 29, 2015). "Newly found TrueCrypt flaw allows full system compromise". https://www.pcworld.com/article/2987439/newly-found-truecrypt-flaw-allows-full-system-compromise.html. 
  19. CVE-2016-1281: TrueCrypt and VeraCrypt Windows installers allow arbitrary code execution with elevation of privilege
  20. Rubens, Paul (June 30, 2016). "VeraCrypt a worthy TrueCrypt Alternative". https://www.esecurityplanet.com/open-source-security/veracrypt-a-worthy-truecrypt-alternative.html. 
  21. 21.0 21.1 "PIM". https://www.veracrypt.fr/en/Personal%20Iterations%20Multiplier%20(PIM).html. 
  22. Khandelwal, Swati (11 August 2015). "Encryption Software VeraCrypt 1.12 Adds New PIM Feature To Boost Password Security". https://thehackernews.com/2015/08/veracrypt-encryption-software.html#. 
  23. Brinkmann, Martin (7 August 2015). "TrueCrypt alternative VeraCrypt 1.12 ships with interesting PIM feature". https://www.ghacks.net/2015/08/07/truecrypt-alternative-veracrypt-1-12-ships-with-interesting-pim-feature/. 
  24. "Transcript of Episode #582". https://www.grc.com/sn/sn-582.htm. 
  25. "The VeraCrypt Audit Results". OSTIF. October 17, 2016. https://ostif.org/the-veracrypt-audit-results/. 
  26. QuarksLab (October 17, 2016). VeraCrypt 1.18 Security Assessment (Report). OSTIF. https://blog.quarkslab.com/resources/2016-10-17-audit-veracrypt/16-08-215-REP-VeraCrypt-sec-assessment.pdf. Retrieved October 18, 2016. 
  27. Bédrune, Jean-Baptiste; Videau, Marion (October 17, 2016). "Security Assessment of VeraCrypt: fixes and evolutions from TrueCrypt". QuarksLab. http://blog.quarkslab.com/security-assessment-of-veracrypt-fixes-and-evolutions-from-truecrypt.html. 
  28. "VeraCrypt / Forums / General Discussion: Germany BSI Security Evaluation of VeraCrypt". https://sourceforge.net/p/veracrypt/discussion/general/thread/1a04e8bf82/?limit=25#ed5f. 
  29. "Security Evaluation of VeraCrypt". Federal Office for Information Security (BSI). 2020-11-30. https://www.bsi.bund.de/SharedDocs/Downloads/EN/BSI/Publications/Studies/Veracrypt/Veracrypt.html. Retrieved 2022-07-27. 
  30. 30.0 30.1 "Security Requirements and Precautions Pertaining to Hidden Volumes". VeraCrypt Documentation. IDRIX. https://www.veracrypt.fr/en/Security%20Requirements%20for%20Hidden%20Volumes.html. 
  31. "Security Requirements and Precautions". VeraCrypt Documentation. IDRIX. https://veracrypt.fr/en/Security%20Requirements%20and%20Precautions.html. 
  32. Halderman, J. Alex; Schoen, Seth D.; Heninger, Nadia; Clarkson, William; Paul, William; Calandrino, Joseph A.; Feldman, Ariel J.; Appelbaum, Jacob et al. (July 2008). "Lest We Remember: Cold Boot Attacks on Encryption Keys". 17th USENIX Security Symposium. https://www.usenix.org/legacy/event/sec08/tech/full_papers/halderman/halderman.pdf. 
  33. "Physical Security". VeraCrypt Documentation. IDRIX. 2015-01-04. https://veracrypt.fr/en/Physical%20Security.html. 
  34. Schneier, Bruce (October 23, 2009). ""Evil Maid" Attacks on Encrypted Hard Drives". https://www.schneier.com/blog/archives/2009/10/evil_maid_attac.html. 
  35. "Malware". VeraCrypt Documentation. IDRIX. 2015-01-04. https://veracrypt.fr/en/Malware.html. 
  36. "FAQ". IDRIX. 2 July 2017. https://www.veracrypt.fr/en/FAQ.html. 
  37. "TrueCrypt User Guide". TrueCrypt Foundation. 7 February 2012. p. 129. https://www.grc.com/misc/truecrypt/TrueCrypt%20User%20Guide.pdf. 
  38. Culp, Scott (2000). "Ten Immutable Laws Of Security (Version 2.0)". Microsoft. https://technet.microsoft.com/en-us/library/hh278941.aspx. 
  39. Johansson, Jesper M. (October 2008). "Security Watch Revisiting the 10 Immutable Laws of Security, Part 1". Microsoft. https://technet.microsoft.com/en-us/library/2008.10.securitywatch.aspx. 
  40. "LUKS support for storing keys in TPM NVRAM". 2013. https://github.com/shpedoikal/tpm-luks. 
  41. Greene, James (2012). "Intel Trusted Execution Technology". Intel. http://www.intel.com/content/dam/www/public/us/en/documents/white-papers/trusted-execution-technology-security-paper.pdf. 
  42. (Google Books) Autonomic and Trusted Computing: 4th International Conference. ATC. 2007. ISBN 9783540735465. https://books.google.com/books?id=cUhpq98Zb8AC&pg=PA124. Retrieved May 31, 2014. 
  43. Pearson, Siani; Balacheff, Boris (2002). Trusted computing platforms: TCPA technology in context. Prentice Hall. ISBN 978-0-13-009220-5. https://books.google.com/books?id=EWk2pLY7atgC. Retrieved July 21, 2016. 
  44. "SetPhysicalPresenceRequest Method of the Win32_Tpm Class". Microsoft. http://msdn.microsoft.com/en-us/library/aa376478(VS.85).aspx. 
  45. "TPM Sniffing Attacks Against Non-Bitlocker Targets". 2022. https://www.secura.com/blog/tpm-sniffing-attacks-against-non-bitlocker-targets. 
  46. "Plausible Deniability". VeraCrypt Documentation. IDRIX. https://www.veracrypt.fr/en/Plausible%20Deniability.html. 
  47. "Hidden Volume". VeraCrypt Documentation. IDRIX. https://www.veracrypt.fr/en/Hidden%20Volume.html. 
  48. "Hidden Operating System". VeraCrypt Documentation. IDRIX. https://www.veracrypt.fr/en/VeraCrypt%20Hidden%20Operating%20System.html. 
  49. 49.0 49.1 49.2 "VeraCrypt User Guide". IDRIX. 2015-01-04. https://veracrypt.fr/en/Parallelization.html. 
  50. Buchanan, Bill (May 30, 2014). "Encryption software TrueCrypt closes doors in odd circumstances". https://www.theguardian.com/technology/2014/may/30/encryption-software-truecrypt-closes-doors. 
  51. Ratliff, Evan (March 30, 2016). "The Strange Origins of TrueCrypt, ISIS's Favored Encryption Tool". The New Yorker. https://www.newyorker.com/news/news-desk/the-strange-origins-of-truecrypt-isiss-favored-encryption-tool. Retrieved April 9, 2022. 
  52. Buchanan, Bill (Nov 5, 2018). "The Fall of TrueCrypt and Rise of VeraCrypt". Medium. https://medium.com/asecuritysite-when-bob-met-alice/the-fall-of-truecrypt-and-rise-of-veracrypt-44f910ed5162. 
  53. Constantin, Lucian (October 18, 2016). "Critical flaws found in open-source encryption software VeraCrypt". PC World. https://www.pcworld.com/article/410730/critical-flaws-found-in-open-source-encryption-software-veracrypt.html. 
  54. Long, Heinrich (August 3, 2020). "How to Encrypt Files, Folders and Drives on Windows". Techspot. https://www.techspot.com/guides/2069-how-to-encrypt-windows/. 
  55. Hall, Christine (May 4, 2016). "DuckDuckGo Gives $225,000 to Open Source Projects". FOSS Force. https://fossforce.com/2016/05/duckduckgo-gives-open-source-projects/. 
  56. "A Special Thank You to DuckDuckGo for Supporting OSTIF and VeraCrypt". Open Source Technology Fund. May 3, 2016. https://ostif.org/a-special-thank-you-to-duckduckgo-for-supporting-ostif-and-veracrypt/. 
  57. "Need strong security? VeraCrypt is an open source disk encryption software that gives extra security against brute-force attacks". SourceForge. February 8, 2020. https://sourceforge.net/projects/veracrypt/. 
  58. McDevitt, Dan (July 18, 2018). "Privacy and anonymity-enhancing operating system Tails continued the implementation of open-source disk encryption software VeraCrypt into the GNOME user interface". Open Technology Fund. https://www.opentech.fund/news/june-2018-monthly-report/. 
  59. "VeraCrypt is a free, open source disk encryption program". FOSSHub. Jan 17, 2021. https://www.fosshub.com/VeraCrypt.html. 
  60. Kenlon, Seth (April 12, 2021). "VeraCrypt offers open source file-encryption with cross-platform capabilities". opensource.com. https://opensource.com/article/21/4/open-source-encryption. 
  61. Afolabi, Jesse (March 5, 2021). "Veracrypt – An Open Source Cross-Platform Disk Encryption Tool". FOSSMINT. https://www.fossmint.com/veracrypt-open-source-disk-encryption-software/. 
  62. "Debian Bug report logs - #814352: ITP: veracrypt -- Cross-platform on-the-fly encryption". 10 February 2016. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814352. 
  63. Phipps, Simon (2013-11-15), "TrueCrypt or false? Would-be open source project must clean up its act", InfoWorld, http://www.infoworld.com/d/open-source-software/truecrypt-or-false-would-be-open-source-project-must-clean-its-act-230862, retrieved 2014-05-20 
  64. "Nonfree Software Licenses". Free Software Foundation Licensing and Compliance Lab. January 12, 2022. https://www.gnu.org/licenses/license-list.en.html#Truecrypt-3.0. 
  65. "Various Licenses and Comments about Them". https://www.gnu.org/licenses/license-list.html. 
  66. US v. Burns, May 10, 2019, https://scholar.google.com/scholar_case?case=16135496452212358302&q=veracrypt&hl=en&as_sdt=2006, retrieved 2023-08-22 
  67. In the Matter of the Search of a Residence in Aptos, California 95003, 2018-03-20, https://scholar.google.com/scholar_case?case=10773460282541696547&q=veracrypt&hl=en&as_sdt=2006, retrieved 2023-08-22 

External links