Threat actors compromised the Bangladesh embassy in Cairo website and taking control to drops the weaponized word documents that contains privilege escalation flaw exploit (CVE-2017-7255).
Attackers are usually distributing various malware via malspam and phishing emails which includes some of the convince action take place in order to infect the victims.
But this is totally strange that the Government website is completely abused to drop the weaponized documents from each and every page the website.
Further research revealed that the website which is already in attackers control drops Microsoft Word document with an embedded malicious EPS script.
Whenever users accessing any page of the Bangladesh embassy in Cairo website, it suddenly drops the request to save a file, with only a few pieces of content.
Since the website control already taken by the intruders, they have an control to upload their own data and change the web server configuration.
According to Trustware researchers, “This office document contains an EPS file and exploits a use-after-free vulnerability, CVE-2017-0261. It seems that the EPS file was modified at the end of October 2018, which coincides with the timeline of the first infection dates we noticed.”
Once the EPS file will be executed then the exploit CVE-2017-7255 will be extracted that provides privilege escalation for the execution of the main payload.
In the final step of the infection process, a Godzilla loader is dropped to gather the victim’s system information and internet connectivity to communicate with the C2 server.
At the end, after it made the successful communication with its C2 server then it drops the additional downloader that finally launches the crypto miners.
“It is possible that the intruders who injected the web miner into the site decided to make a shift from web mining to machine infection in order to install a more persistent cryptominer on victim machines.” Researchers said.