Researchers in Europe discovered a way to read the contents of encrypted emails sent with iOS and macOS devices. The EFAIL exploit is significant enough that the Electronic Frontier Foundation calls it an “immediate risk.”
Apple is certainly working on a patches for all its devices, but there are ways to protect your laptop, phone, and tablet now.
EFAIL technical details
The EFAIL attack requires deliberately mis-written HTML tags, according to the researchers who discovered it. An email starts with a image tag whose source attribute isn’t closed. Within the attribute is the attacker’s web domain.
Next, the attacker’s email contains the encrypted text of the email. The attacker then ends the email by closing the image tag that was previously opened.
When the victim’s email client opens this email, it will decrypt the text, but also treat everything between the opened and closed image attribute tags as the source of the image. That includes the decrypted contents of the email.
The mail client will request the image from the attacker’s web domain. This will send the decrypted text of the email to their server, where it can be read out of their server logs.
How to protect your iPhone from EFAIL
Protecting the contents of your emails from this attack is easy but inconvenient. It requires turning off “Load Remote Images”. This is because, as described above, the exploit uses the email client’s attempt to load a remote image to grab the encrypted text of the mail.
Making this change requires simply going to Settings > Mail and then unchecking “Load Remote Images.”
How to protect your Mac from EFAIL
The process on a Mac is more complicated, but not beyond the abilities of the average user.
First off, make sure the macOS Mail app is closed by going to the Mail drop-down box and selecting Quit Mail. Next, open the Finder by clicking its icon in the Dock. Then open the Go drop-down box by tapping on Go at the top of the page, and select “Go to Folder…”
In the resulting text box, enter “/Library/Mail/Bundles” without quotes. This will open a folder containing GPGMail.mailbundle. Delete this file. This will stop the Mail app from decrypting emails.
Anyne needing more help should read the in-depth guide provided by the Electronic Frontier Foundation.
Both of these work-arounds involve some inconvenience. Still, the European researchers who discovered EFAIL recommend them for “people in hostile environments,” which includes journalists, political activists, whistleblowers, etc.
Hopefully, Apple will quickly release iOS and macOS updates to fix the security holes that EFAIL exploits.