Analyzed by Confiant and Malwarebytes, an attempt to infect Macs from January 11 until January 13 was performed by a “malvertizer” dubbed “VeryMal” by the firms. It is believed that the attempted attack ad was viewed on as many as 5 million Macs during the brief period of time it was active.
To those who saw the ad, the attack went down a familiar tactic of displaying notices that the Adobe Flash Player needed to be updated, and urged users to open a file that would attempt to download in their browser, writes Confiant. Those who accepted the download and ran the malware ended up infecting their Mac with the Shlayer trojan.
While many attempts to obscure an attack via advertising fail to dupe the various protection systems in place in advertising networks and on user’s desktops, the attempt is notable for hiding the payload of the attack within the visible advert itself. The graphic file had hidden code, using steganography, that required other non-malicious code to examine the image file for extraneous data, which was then used as a payload.
Specifically, the code would create a Canvas object, grab an image file from a specific URL, and define a function that checks if a specific font family is supported by the browser. If a check for Apple fonts failed, nothing would happen, but on success, the underlying data in the image file would be looped through, with each loop determining a pixel value that became an alphanumeric character. This was turned into a string and executed.
Despite containing the payload, the image itself can be viewed without harm. It is only harmful when the code is run on the file, followed by the browser being redirected to a link included in the payload.
Source
- Original publisher
- appleinsider.com
- Original article
- Mac malware attack found to hide payload in advertising graphics
- Original publication date
- Not recorded in the archive
- Republished on this domain
- 25 January 2019, by the previous operators of anticorruptiondigest.com
- Archived copy
- https://web.archive.org/web/20190806054145/https://anticorruptiondigest.com/2019/01/25/mac-malware-attack-found-to-hide-payload-in-advertising-graphics/ (captured 6 August 2019)
The text above is the work of the original publisher and is reproduced from the archived page. Rights holders can ask for it to be removed: see the archive notice.