Security

Apple Mail stores parts of encrypted emails in plaintext DB

The Apple Mail app available on macOS stores leaves a portion of users encrypted emails in plaintext in a database called snippets.db.

The Apple expert Bob Gendler discovered that the Apple Mail app available on macOS stores leaves a portion of users encrypted emails in plaintext in a database called snippets.db. The issue affects all macOS versions, including the latest Catalina.

The issue is yet to be fixed and even if Apple plans to address it, the company did not provide a timeline.

“But if you send encrypted emails from Apple Mail, there’s currently a way to read some of the text of those emails as if they were unencrypted — and allegedly, Apple’s known about this vulnerability for months without offering a fix.” reads a post published by The Verge.

“Apple tells The Verge it’s aware of the issue and says it will address it in a future software update. The company also says that only portions of emails are stored. But the fact that Apple is still somehow leaving parts of encrypted emails out in the open, when they’re explicitly supposed to be encrypted, obviously isn’t good.”

The expert discovered the issue while he was investigating how macOS and Siri suggest contacts and information to the user.

“This led me to the process called , run by the system level LaunchAgent apple, and the Suggestions folder in the user-level Library folder, which contains multiple files and some potentially important database files ( files).” reads a post published by Gendler on Medium. “These are databases with information from Apple Mail and other Apple applications that enable and Siri to become better at suggesting information.”

Gendler explained that Siri uses a process named “suggestd” to collect contact information from various apps. Data collected by the process are stored in the snippets.db file.

The expert discovered that if the Apple Mail is used to send and receive encrypted email, Siri would collect a plaintext version of the emails storing them in the database.

“Let me say that again… The snippets.db database is storing encrypted Apple Mail messages…completely, totally, fully — UNENCRYPTED — readable, even with Siri disabled, without requiring the private key. Most would assume that disabling Siri would stop macOS from collecting information on the user.” continues the post.

“This is a big deal. This is a big deal for governments, corporations and regular people who use encrypted email and expect the contents to be protected”

Unfortunately, disabling Siri will not solve the issue because the ‘suggestd‘ process will continue to scrape emails.

The expert proposed the following three ways to disable these processes from scraping messages from Apple Mail:

  • Manually click the settings, go to System Preferences → Siri →Siri Suggestions & Privacy →Uncheck the boxes for Apple Mail.
  • Run the following command in Terminal to turn off Siri from learning from Apple Mail: defaults write com.apple.suggestions SiriCanLearnFromAppBlacklist -array com.apple.mail
  • Deploy a System-Level (for all users) configuration profile to turn off Siri from learning from Apple Mail.

The third solution is permanent, it will disable macOS and Siri from collecting this Mail information for all users. The expert explained that future OS updates will not re-enable Siri scraping Apple Mail.

Gendler also suggests to manually remove the snippets.db file that is located in “/Users/(username)/Library/Suggestions/”.

[adrotate banner=”9″] [adrotate banner=”12″]

Pierluigi Paganini

(SecurityAffairs – encryption, hacking)

[adrotate banner=”5″]

[adrotate banner=”13″]

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

Nation-state actors exploited two zero-days in ASA and FTD firewalls to breach government networks

Nation-state actor UAT4356 has been exploiting two zero-days in ASA and FTD firewalls since November…

7 hours ago

Hackers hijacked the eScan Antivirus update mechanism in malware campaign

A malware campaign has been exploiting the updating mechanism of the eScan antivirus to distribute…

14 hours ago

US offers a $10 million reward for information on four Iranian nationals

The Treasury Department's Office of Foreign Assets Control (OFAC) sanctioned four Iranian nationals for their…

20 hours ago

The street lights in Leicester City cannot be turned off due to a cyber attack

A cyber attack on Leicester City Council resulted in certain street lights remaining illuminated all…

21 hours ago

North Korea-linked APT groups target South Korean defense contractors

The National Police Agency in South Korea warns that North Korea-linked threat actors are targeting…

1 day ago

U.S. Gov imposed Visa restrictions on 13 individuals linked to commercial spyware activity

The U.S. Department of State imposed visa restrictions on 13 individuals allegedly linked to the…

2 days ago

This website uses cookies.