On March 24 the odix team found a new malware which possess a unique threat to end users. The malware, which was discovered and sanitized by FileWall, hacks into the user’s Microsoft 365 credentials and then post the compromised data to an RSS feed. To add insult to injury, the RSS feed platform also appears to be the work of malicious actors.
The page loader looks identical to the loading page for outlook:
The document also contains an audio element:
After the page is loaded the source of the audio component is set to:
For better or worse (depending on your musical preferences) the song is not played (If you want to listen to the original song, you can hear it here) The attacker uses the onplay event that is triggered when the audio element is played to trigger the decoding of the actual phishing page.
Why use the onplay event? To avoid detection!
If the code is running in an offline environment, which are common in dynamic analysis the event won’t be triggered and the malicious code will remain dormant.
The attacker uses the decoder to decode the contents of the nextHmtl parameter and creates a URL for it using the URL.createObjectURL function. The user is forwarded to the generated page with their email address as a parameter.
Attacker loads multiple images directly from Microsoft, some sample URLs:
The attackers use a decoy URL in the form.
While the form action is set to “https://getcontact[.]com/php” the actual submit event is overridden, and data is not sent to it.
Where is the data sent to?
The HTML form that the user fills data in seems to send the data to https://getcontact[.]com/php:
But further analysis showed that the form isn’t submitted. A different function is executed when the victim clicks the submit button.
The user credentials are sent to an RSS creation API at https://rss[.]app
Rss.app is a website that allows to create custom RSS feeds from websites. The RSS feed created by the attacker, assuming the victim email is: “email@example.com” and password is: “1234”, is generated from the URL:
When checking the rss.app website, it seems a bit odd…
There was no company info except for a contact email “firstname.lastname@example.org”. Website whois information is hidden, not uncommon but you wouldn’t expect a web company to not provide any information.
During our investigation we encountered some code at pastebin which contains similar code to the code in the sample. Data was pasted In July 2019:
This new malware was blocked by FileWall
FileWall™ by odix offers an effective plugin based on its patented algorithm for eliminating malware hidden in files. Instead of trying to detect a known malware and block the file for the user, the FileWall™ service disarms malware and provides a sanitized file for safe usage. FileWall™ provides an effective malware prevention solution against both known and unknown malware attacks and handles all incoming email traffic including internal emails.
The FileWall™ advanced attachment security add-on for Microsoft 365 mail includes:
- Seamless deployment- one-click service activation
- Advanced email attachments handling for both internal and external senders.
- FileWall™ doesn’t harm/change any of Microsoft sender related security capabilities
- Deep file analysis capabilities (archive, password-protected, etc).
To read more Malware finds from the odix team visit https://www.odi-x.com/news/