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 2026 Black Friday Event Hero

Apple Announces 2026 Black Friday Event, Here's What You Can Get

Thursday November 19, 2026 9:11 am PST by
Apple's annual four-day Black Friday through Cyber Monday shopping event is returning on Friday, November 27 through Monday, November 30 in many countries, including the United States, Canada, Australia, New Zealand, France, Germany, Italy, Spain, the United Kingdom, Belgium, the Netherlands, Sweden, Thailand, and others. In the U.S., Apple's terms and conditions say the promotion begins on...
apple design award 2025

Apple Announces 2025 Design Award Winners Ahead of WWDC 2025

Tuesday June 3, 2025 10:14 am PDT by
As we wait for WWDC to kick off next Monday, Apple today announced the winners of its annual Apple Design Awards, recognizing apps and games for their innovation, ingenuity, and technical achievement. The 2025 Apple Design Award winners are listed below, with one app and one game selected per category: Delight and Fun - CapWords (App) and Balatro (Game) Innovation - Play (App) and PBJ -...
Apple Support Community

Tomorrow Marks the End of a 28-Year Era at Apple

Thursday November 19, 2026 7:08 am PST by
Apple previously announced that the Apple Support Community discussion forums for user-to-user tech support will be permanently closing this Friday, November 20. The forums have existed in some form for 28 years. It is the end of an era. It is our understanding that the forums will eventually be removed entirely, meaning that existing posts will no longer be visible. However, it is not clear ...

Top Rated Comments

luvbug Avatar
110 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
110 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
110 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)
110 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)
110 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
110 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
Apple Black Friday Deals Available Now: AirPods, Apple Watches, MacBooks, and More
Apple Black Friday Deals Available Now: AirPods, Apple Watches, MacBooks, and More
7 hours ago
Apple Store in UK Permanently Closing Today
Apple Store in UK Permanently Closing Today
7 hours ago
Siri AI Settlement: Here's How Much Apple Will Pay You
Siri AI Settlement: Here's How Much Apple Will Pay You
7 hours ago
RIP, Apple Support Community
RIP, Apple Support Community
8 hours ago
Top Stories: iPhone Duo Face Unlock, HomeView Tidbits, and More
Top Stories: iPhone Duo Face Unlock, HomeView Tidbits, and More
10 hours ago
Amazon Takes $120 Off 46mm GPS Apple Watch Series 12 With New Record Low Price [Update: Gone]
Amazon Takes $120 Off 46mm GPS Apple Watch Series 12 With New Record Low Price [Update: Gone]
10 hours ago
Siri Recap Hands-On: Private, But Not Very Useful
Siri Recap Hands-On: Private, But Not Very Useful
1 day ago
Save on Headphones This Black Friday With Major Deals on Beats, Sony, Soundcore, and More
Save on Headphones This Black Friday With Major Deals on Beats, Sony, Soundcore, and More
1 day ago
MacRumors Giveaway: Win a 512GB OLED iPad Mini and a Year of Astropad Workbench
MacRumors Giveaway: Win a 512GB OLED iPad Mini and a Year of Astropad Workbench
1 day ago
The MacRumors Show: What's Next for iPhone Duo?
The MacRumors Show: What's Next for iPhone Duo?
1 day ago
Anker's Black Friday Steals: The Lowest Prices Yet on MagSafe Favorites
Anker's Black Friday Steals: The Lowest Prices Yet on MagSafe Favorites
1 day ago
Microsoft to Retire 'To Do' Apps Next Year
Microsoft to Retire 'To Do' Apps Next Year
1 day ago
First Look at iPhone Air 2 and iPhone 18 Revealed By Dummy Models
First Look at iPhone Air 2 and iPhone 18 Revealed By Dummy Models
1 day ago
WhatsApp Raises Group Chat Limit to 1,500 Members
WhatsApp Raises Group Chat Limit to 1,500 Members
2 days ago
MacBook Pro Black Friday Deals Are Here: Get Up to $250 Off M6 and PROLED XDR
MacBook Pro Black Friday Deals Are Here: Get Up to $250 Off M6 and PROLED XDR
2 days ago
Apple is Building an AI Agent That Can Use Apps and Code
Apple is Building an AI Agent That Can Use Apps and Code
2 days ago
Black Friday Deal: Apple TV Streaming Service for $6.99/Month
Black Friday Deal: Apple TV Streaming Service for $6.99/Month
2 days ago
AirPods Black Friday Deals Hit Pro 3 at $179 and Max 2 at $429
AirPods Black Friday Deals Hit Pro 3 at $179 and Max 2 at $429
2 days ago
Second iOS 27.3 and macOS Golden Gate 27.3 Public Betas Now Available
Second iOS 27.3 and macOS Golden Gate 27.3 Public Betas Now Available
2 days ago
Google's Gemini Can Now Control Apps on Your Mac
Google's Gemini Can Now Control Apps on Your Mac
2 days ago
iPhone Duo vs. Samsung Galaxy Z Fold8: Which is Better?
iPhone Duo vs. Samsung Galaxy Z Fold8: Which is Better?
2 days ago
Apple Executive in Charge of iPhone's Camera App Reportedly Retires
Apple Executive in Charge of iPhone's Camera App Reportedly Retires
2 days ago
Apple Announces 2026 Black Friday Event, Here's What You Can Get
Apple Announces 2026 Black Friday Event, Here's What You Can Get
2 days ago
Sonos Black Friday Sale Takes Up to 25% Off Speakers, Soundbars, and More
Sonos Black Friday Sale Takes Up to 25% Off Speakers, Soundbars, and More
2 days ago
Apple TV to Stream Female 'F1 Academy' Races in U.S. Starting in 2027
Apple TV to Stream Female 'F1 Academy' Races in U.S. Starting in 2027
2 days ago
Tomorrow Marks the End of a 28-Year Era at Apple
Tomorrow Marks the End of a 28-Year Era at Apple
2 days ago
Amazon Takes $200 Off Every Apple Studio Display for Black Friday
Amazon Takes $200 Off Every Apple Studio Display for Black Friday
2 days ago
UK Loses Secrecy Fight Over Apple 'Backdoor' Order
UK Loses Secrecy Fight Over Apple 'Backdoor' Order
2 days ago
Beats 360 Black Friday Deal Arrives With Massive $100 Discount on Amazon
Beats 360 Black Friday Deal Arrives With Massive $100 Discount on Amazon
2 days ago
Apple Music Radio Now Reaches Over 50 Million Monthly Listeners
Apple Music Radio Now Reaches Over 50 Million Monthly Listeners
2 days ago