Microsoft 365 anti-phishing feature can be bypassed with CSS

Share:

Researchers have demonstrated a method to bypass an anti-phishing measure in Microsoft 365 (formerly Office 365), elevating the risk of users opening malicious emails.

Specifically, the anti-phishing measure that can be hidden is the ‘First Contact Safety Tip,’ which warns email recipients on Outlook when they receive a message from an unfamiliar address.

Certitude analysts who discovered the flaw reported their findings to Microsoft, but the tech giant decided not to address it at this time.

Hiding the warning

The “First Contact Safety Tip” is a feature designed to alert Outlook users when they receive emails from new contacts. It displays a message that reads: “You don’t often get email from [email protected]. Learn why this is important.”

The key aspect of this mechanism is that the alert is appended to the main body of the HTML email, opening up the potential for manipulation using CSS embedded in an email message.

Certitude discovered that it’s possible to hide this safety message by manipulating the CSS (Cascading Style Sheets) within the HTML of the email, as shown below:

The role of each rule is the following:

  • a { display: none; }: Hides any anchor (<a>) tags to prevent the tip from being displayed when a link is included.
  • td div { color: white; font-size: 0px; }: Targets div elements within table data cells, changing their font color to white and font size to 0, hence making the text invisible.
  • table tbody tr td { background-color: white !important; color: white !important; }: This makes any td element within the tbody of a table to have a white background and white text, effectively making the content blend into the background and thus appear invisible.

When this CSS is used in a phishing email sent from a new contact to a target, no alert shows up to warn the recipient.

Taking the deception one step further, Certitude found that it’s also possible to add more HTML code that spoofs the icons Microsoft Outlook adds to encrypted/signed emails to make them appear even more secure.

Although some formatting limitations don’t allow for a perfect visual result, the trick still creates a convincing false image of security that could easily pass anything less than careful inspections.

The researchers told BleepingComputer that they have not observed any cases of active exploitation of the described method or found ways to manipulate the HTML so that arbitrary text is displayed in the email.

Certitude sent Microsoft a proof of concept for the above techniques and a detailed report via the Microsoft Researcher Portal (MSRC).

However, they received the following response from Microsoft:

“We determined your finding is valid but does not meet our bar for immediate servicing considering this is mainly applicable for phishing attacks. However, we have still marked your finding for future review as an opportunity to improve our products.” – Microsoft

BleepingComputer has contacted Microsoft to learn more about its decision not to address the risk, and a spokesperson sent the following statement:

We’ve reviewed this report and have found that it does not meet the bar for immediate servicing under our severity classification guidelines.
The technique described is not a vulnerability and relies on social engineering to be successful.
We continue to encourage customers to practice good computing habits online including exercising caution when clicking on links to web pages. – a Microsoft spokesperson

Leave a Comment

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

loader-image
London, GB
1:46 pm, Jan 22, 2025
weather icon 4°C
L: 3° | H: 5°
overcast clouds
Humidity: 90 %
Pressure: 1003 mb
Wind: 6 mph NW
Wind Gust: 0 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 100%
Rain Chance: 0%
Visibility: 6 km
Sunrise: 7:52 am
Sunset: 4:31 pm
DailyHourly
Daily ForecastHourly Forecast
Today 9:00 pm
weather icon
3° | 5°°C 0 mm 0% 3 mph 90 % 1003 mb 0 mm/h
Tomorrow 9:00 pm
weather icon
3° | 7°°C 1 mm 100% 16 mph 89 % 1005 mb 0 mm/h
Fri Jan 24 9:00 pm
weather icon
5° | 11°°C 1 mm 100% 24 mph 89 % 1003 mb 0 mm/h
Sat Jan 25 9:00 pm
weather icon
3° | 6°°C 1 mm 100% 7 mph 88 % 1012 mb 0 mm/h
Sun Jan 26 9:00 pm
weather icon
3° | 7°°C 0.2 mm 20% 15 mph 89 % 1011 mb 0 mm/h
Today 3:00 pm
weather icon
4° | 5°°C 0 mm 0% 3 mph 90 % 1003 mb 0 mm/h
Today 6:00 pm
weather icon
3° | 4°°C 0 mm 0% 3 mph 88 % 1003 mb 0 mm/h
Today 9:00 pm
weather icon
4° | 4°°C 0 mm 0% 3 mph 85 % 1003 mb 0 mm/h
Tomorrow 12:00 am
weather icon
4° | 4°°C 0 mm 0% 4 mph 75 % 1003 mb 0 mm/h
Tomorrow 3:00 am
weather icon
3° | 3°°C 0 mm 0% 5 mph 83 % 1005 mb 0 mm/h
Tomorrow 6:00 am
weather icon
3° | 3°°C 0 mm 0% 7 mph 86 % 1004 mb 0 mm/h
Tomorrow 9:00 am
weather icon
5° | 5°°C 0 mm 0% 10 mph 88 % 1003 mb 0 mm/h
Tomorrow 12:00 pm
weather icon
7° | 7°°C 1 mm 100% 15 mph 89 % 999 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€99,884.64
-0.13%
Ethereum(ETH)
€3,146.19
-0.35%
XRP(XRP)
€3.04
1.90%
Tether(USDT)
€0.96
0.08%
Solana(SOL)
€250.18
8.56%
Dogecoin(DOGE)
€0.345978
-2.29%
USDC(USDC)
€0.96
0.00%
Shiba Inu(SHIB)
€0.000019
-0.83%
Pepe(PEPE)
€0.000015
2.02%
Peanut the Squirrel(PNUT)
€0.350706
-0.26%
Scroll to Top