Best Reviews logo
Best Reviews may receive compensation for its content through paid collaborations. See how we sustain our work & review products.
How to Delete Quick Look Cache to Protect Your Privacy

How to Delete Quick Look Cache to Protect Your Privacy

By István F.István F. Verified by Adam B.Adam B. Last updated: August 7, 2024 (0)

There is a cool feature in macOS that most users love to turn to whenever possible. Introduced with OS X 10.5 Leopard, Quick Look allows users to preview a file without the need to open it in an application. By selecting any given file and then pressing the space bar, users will see a preview of the content. Quick Look can be used to view photos, files, or a folder without having to open them, for items in seen in Finder, or with email and messages. There is a problem, though: each time it is used it leaks sensitive data, even if the content is encrypted, according to security experts.

How Quick Look leaks your data

Every time a user presses the Space bar to preview a file, it caches the content and adds it to a thumbnail database. These miniatures of the original file and their original path are stored in the /var/folders/…/C/com.apple.QuickLook.thumbnailcache/ directory as security experts Wojciech Reguła and Patrick Wardle discovered.

These security experts have tested the security flaw on the latest available version of macOS and demonstrated that it affects both regular and encrypted APFS containers. As it turns out, this Quick Look cache issue was widely known, especially in forensics circles, because it reveals enough data to determine the contents of the previewed documents, especially in the case of images.

Another interesting discovery was that macOS leaks data by caching the content of removable drives, too. In a post on a well-known forum, a user asked whether USB drives left any trace on iMac running macOS Sierra. The answer was surprising: by opening a folder on the external drive, macOS creates thumbnails of its contents “depending on the file type and the installed QuickLook plugins”.

How to address this data leak

You may already know that when it comes to caches we recommend using a Mac optimization app to remove them. However, these apps are helpless when it comes to the Quick Look cache, even for the most powerful ones such as CleanMyMac and OnyX.

This leaves only one option: manually removing this cache and stopping macOS from leaking your data, even if you do think that you have nothing to hide. To fully remove the Quick Look cache, follow the steps below.

How to fully remove the Quick Look cache

1

Open Terminal.

2

Copy and paste the following command: qlmanage -r cache

macOS will remove the Quick Look cache files without the need for a reboot. Now you can use Quick Look as many times as you want and then, at the end of your session, just run the Terminal command and your data will remain protected from prying eyes.


Best mac optimization software of 2024

Editor's choice
CleanMyMac X logo
Editor's rating:
(4.5)
User-friendly dashboard
Effective scanning and cleaning options
Various maintenance tools
Built-in malware remover
All-around protection
MacKeeper logo
Editor's rating:
(4)
Personalized remote assistance
Unique optimization tools
Anti-theft tracking
Built-in antivirus
Beginners
MacBooster logo
Editor's rating:
(3.5)
Fast scanning
User-friendly UI
Virus and malware scan
Great cleaning features
Businesses
CCleaner for Mac logo
Editor's rating:
(4)
Fast scans and cleaning
Full customization
Extensive free version
Affordable
User Feedback

 Leave a reply

Your email address will not be published. Required fields are marked *


Best Reviews

Best Reviews may receive compensation for its content through paid collaborations and/or affiliate links. Learn more about how we sustain our work and review products.

©2012-2024 Best Reviews, a clovio brand – All rights reserved
Privacy policy · Cookie policy · Terms of use · Partnerships · Contact us