macOS 'Quick Look' Bug Can Leak Encrypted Data Through Thumbnail Caches - MacRumors
Skip to Content

macOS 'Quick Look' Bug Can Leak Encrypted Data Through Thumbnail Caches

A long-standing bug in macOS's Quick Look feature has the potential to expose sensitive user files like photo thumbnails and the text of documents, even on encrypted drives, according to security researchers.

Details on the Quick Look flaw were shared earlier this month by security researcher Wojciech Regula and over the weekend on security researcher Patrick Wardle's blog (via The Hacker News).

quicklookbug

Image via Wojciech Regula

Quick Look in macOS is a convenient Finder feature that's designed to present a zoomed-in view when you press the space bar on a photo or document that's selected.

To provide this preview functionality, Quick Look creates an unencrypted thumbnail database where thumbnails of files are kept, with the database storing file previews from a Mac's storage and any attached USB drives whenever a folder is opened. These thumbnails, which provide previews of content on an encrypted drive, can be accessed by someone with the technical know how and there's no automatic cache clearing that deletes them. As Regula explains:

It means that all photos that you have previewed using space (or Quicklook cached them independently) are stored in that directory as a miniature and its path. They stay there even if you delete these files or if you have previewed them in encrypted HDD or TrueCrypt/VeraCrypt container.

This is an issue that's existed for at least eight years and concerns have been raised about it in the past, but Apple has made no changes in macOS to address it. "The fact that behavior is still present in the latest version of macOS, and (though potentially having serious privacy implications), is not widely known by Mac users, warrants additional discussion," writes Wardle.

As Wardle points out, this information is valuable in law enforcement investigations, but most users are not going to be happy to learn that their Mac records file paths and thumbnails of documents from every storage device that's been attached to it.

For a forensics investigation or surveillance implant, this information could prove invaluable. Imagine having a historic record of the USB devices, files on the devices, and even thumbnails of the files...all stored persistently in an unencrypted database, long after the USB devices have been removed (and perhaps destroyed). For users, the question is: "Do you really want your Mac recording the file paths and 'previews' thumbnails of the files on any/all USB sticks that you've ever inserted into your Mac?" Me thinks not...

It's worth noting that if the main drive on the Mac is encrypted, the Quick Look cache that's created is too. Wardle says that data "may be safe" on a machine that's powered off, but on a Mac that's running, even if encrypted containers are unmounted, the caching feature can reveal their contents.

"In other words, the increased security encrypted containers were thought to provide, may be completely undermined by QuickLook," writes Wardle.

Wardle recommends that users concerned about unencrypted data storage clear the Quick Look cache manually whenever a container is unmounted, with instructions for this available on Wardle's website. It's also worth checking out Wardle's site for full details on the Quick Look bug.

Popular Stories

Apple TV Sans Remote Feature

New Apple TV 4K Leaked

Friday September 25, 2026 8:16 am PDT by
MacRumors contributor Aaron Perris has uncovered an image file from Apple for an unreleased Apple TV 4K, suggesting that a new model will finally be released soon. The image is specifically for an "Apple TV 4K (4th generation)" model. Apple TV 4K (4th generation) image (on a gradient) The image reveals that the Apple TV will have the same external design as the current model, with all of its...
HomePod minis Apple TV and iPad mini Leak Feature

iPad Mini With A20 Pro, New HomePod Mini Colors, and New Apple TV 4K All Just Leaked

Friday September 25, 2026 8:18 am PDT by
The next iPad mini, HomePod mini, and Apple TV 4K models have all leaked, just a few weeks before the devices are expected to be announced. Specifically, MacRumors contributor Aaron Perris discovered a few of Apple's official images of the devices, confirming their existence and some new features that are planned. The most notable iPad mini details revealed in today's leak include an A20 Pro ...
HomePod minis on gradient feature 1 1

Exclusive: First Look at HomePod Mini 2 in Three New Colors

Friday September 25, 2026 8:17 am PDT by
Apple's new HomePod mini will share the same design as the original model and come in five colors, MacRumors has found. The information originates from Apple's own code (spotted by MacRumors contributor Aaron Perris) and shows clear product images of the new models in all of their colors. The above image contains Apple's own icons, which specifically refer to a "HomePod mini 2." The new...

Top Rated Comments

luvbug Avatar
108 months ago
It's a one line command (in terminal) to clear the cache. You need to be an "admin" user, but you don't need to be root:

qlmanage -r cache

Of course, someone here will figure out a reason to whine about having to do this.
Score: 20 Votes (Like | Disagree)
InuNacho Avatar
108 months ago
I’ve known about this for years. I accidently locked a word file and was able to “rescue” it by hitting the space bar.
Great security.
Score: 18 Votes (Like | Disagree)
magicschoolbus Avatar
108 months ago
This is an issue that's existed for at least eight years and concerns have been raised about it ('http://osxdaily.com/2010/07/25/filevault-and-quicklook-leak-some-information-from-encrypted-volumes/') in the past, but Apple has made no changes in macOS to address it. "The fact that behavior is still present in the latest version of macOS, and (though potentially having serious privacy implications), is not widely known by Mac users, warrants additional discussion," writes Wardle.
Apple does not care about the Mac. The hardware and this proves it. You guys should seriously consider naming this site iosrumors.com (that's not a shot at you either.. Apple is all about iOS)
Score: 17 Votes (Like | Disagree)
108 months ago
So, you get the prize for first whiner! I guess assigning blame is more important to you than addressing the problem in the first person using readily available information.
Ordinary people wouldn’t know to input a terminal command, or even know that Quick Look is leaking their data.

The bug lies with Apple’s code. How is this the fault of the consumer? The consumer is certainly not the party to blame in this situation.
Score: 12 Votes (Like | Disagree)
108 months ago
It's a one line command (in terminal) to clear the cache. You need to be an "admin" user, but you don't need to be root:

qlmanage -r cache

Of course, someone here will figure out a reason to whine about having to do this.
You shouldn't have to do this because of a bug in the software left in from literally years ago.
Score: 11 Votes (Like | Disagree)
iapplelove Avatar
108 months ago
Apple does not care about the Mac. The hardware and this proves it. You guys should seriously consider naming this site iosrumors.com (that's not a shot at you either.. Apple is all about iOS)
Apple is all about where the revenue comes from. You would too. We all would.

iPhone is their main source of revenue.

Still though it’s a damn shame they can’t at least keep a healthy Mac lineup going.
Score: 8 Votes (Like | Disagree)
Latest Stories
watchOS 27: 12 New Things To Check Out on Your Apple Watch
watchOS 27: 12 New Things To Check Out on Your Apple Watch
4 hours ago
Banks and Credit Unions to Team Up Against Apple Pay Fees
Banks and Credit Unions to Team Up Against Apple Pay Fees
16 hours ago
Apple Finally Shares tvOS 27 Release Notes With List of New Features
Apple Finally Shares tvOS 27 Release Notes With List of New Features
16 hours ago
Amazon's $199 Discount on Apple Watch Ultra 3 Returns to Help Clear Stock
Amazon's $199 Discount on Apple Watch Ultra 3 Returns to Help Clear Stock
17 hours ago
MacRumors Giveaway: Win an Apple Watch Ultra 4 From Lululook
MacRumors Giveaway: Win an Apple Watch Ultra 4 From Lululook
17 hours ago
Apple Code Confirms iPad 12 Specs: A19, 8GB RAM, N1, C1X Modem
Apple Code Confirms iPad 12 Specs: A19, 8GB RAM, N1, C1X Modem
18 hours ago
Some iPhone 18 Pro Max Users Experiencing AT&T Cellular Issues
Some iPhone 18 Pro Max Users Experiencing AT&T Cellular Issues
18 hours ago
Launch Week Deals Hit Latest Macs, Apple Watch Ultra 4, and Apple Accessories
Launch Week Deals Hit Latest Macs, Apple Watch Ultra 4, and Apple Accessories
18 hours ago
The MacRumors Show: Tyler Stalman Talks iPhone 18 Pro's Camera
The MacRumors Show: Tyler Stalman Talks iPhone 18 Pro's Camera
19 hours ago
iPad Mini With A20 Pro, New HomePod Mini Colors, and New Apple TV 4K All Just Leaked
iPad Mini With A20 Pro, New HomePod Mini Colors, and New Apple TV 4K All Just Leaked
20 hours ago
iPad Mini 8 Leaked: A20 Pro Chip, Landscape Camera, and More
iPad Mini 8 Leaked: A20 Pro Chip, Landscape Camera, and More
20 hours ago
Exclusive: First Look at HomePod Mini 2 in Three New Colors
Exclusive: First Look at HomePod Mini 2 in Three New Colors
20 hours ago
New Apple TV 4K Leaked
New Apple TV 4K Leaked
20 hours ago
Create a Custom Pass in the Wallet App on iPhone
Create a Custom Pass in the Wallet App on iPhone
1 day ago
How to Check Your Mac's Manufacture Date in macOS 27
How to Check Your Mac's Manufacture Date in macOS 27
1 day ago
What's Gone in macOS Golden Gate and What's Next in macOS 28
What's Gone in macOS Golden Gate and What's Next in macOS 28
2 days ago
TestFlight App Gets New iOS 27 Features
TestFlight App Gets New iOS 27 Features
2 days ago
Google Photos Wardrobe Feature Comes to iOS
Google Photos Wardrobe Feature Comes to iOS
2 days ago
Apple Music to Host Free Head Trip Festival Livestream
Apple Music to Host Free Head Trip Festival Livestream
2 days ago
watchOS 27.2 Code Hints at iPhone-Style Screenshot Previews
watchOS 27.2 Code Hints at iPhone-Style Screenshot Previews
2 days ago
Beats 360 Headphones Now Available in Apple Stores
Beats 360 Headphones Now Available in Apple Stores
2 days ago
Apple Shares New Video Promoting iOS 27 Parental Controls
Apple Shares New Video Promoting iOS 27 Parental Controls
2 days ago
Apple Has Announced 12 New Products in the Past Month
Apple Has Announced 12 New Products in the Past Month
2 days ago
Apple Watch Ultra 2 vs. Ultra 4 Buyer's Guide: Should You Upgrade?
Apple Watch Ultra 2 vs. Ultra 4 Buyer's Guide: Should You Upgrade?
2 days ago
Here's When Apple TV is Airing Free 'Peanuts' Holiday Specials This Year
Here's When Apple TV is Airing Free 'Peanuts' Holiday Specials This Year
2 days ago
Square Announces Apple Business Integration
Square Announces Apple Business Integration
2 days ago
AirPods Pro 3 on Sale for $199 This Week on Amazon
AirPods Pro 3 on Sale for $199 This Week on Amazon
2 days ago
Qualcomm Announces Renewed Agreement With Apple
Qualcomm Announces Renewed Agreement With Apple
2 days ago
Apple Confirms iPhone 18 Pro Bug Fix Update is Coming Next Week
Apple Confirms iPhone 18 Pro Bug Fix Update is Coming Next Week
2 days ago
Full iPhone 4 'Antennagate' Q&A Video Surfaces After 16 Years
Full iPhone 4 'Antennagate' Q&A Video Surfaces After 16 Years
2 days ago