Security News

A New Backdoor in Microsoft: Serpent

The Serpent backdoor targets French construction, real estate and government organizations through phishing, Word macros and PowerShell hidden in images.

Brandefense logo Updated 2 Min Read
Microsoft

A new backdoor called Serpent was used in attacks on French construction, real estate and government organizations. The attack starts with a phishing email carrying a Word document with a macro. The macro downloads an image that hides a PowerShell script. The script installs tools and fetches a second image holding the backdoor, which can run commands sent from a C2 server.

A new backdoor has been identified, used by threat actors in attacks targeting French construction, real estate, and government organizations, and distributed through popular Windows package managers.

How does the Serpent backdoor attack work?

The chain of attacks begins with distributing macro-containing Microsoft Word documents that appear to be related to the European Union General Data Protection Regulation (GDPR) to targets via targeted phishing e-mails. When targets activate the macros, a seemingly harmless image file hosted on a remote server is downloaded. However, the image file in question contains a Base64 encoded PowerShell script hidden using steganography. This PowerShell script is responsible for installing Chocolatey, the Python package manager Pip, and the PySocks proxy library on the Windows machine. The same PowerShell script is downloading another image file from the same remote server containing the Serpent backdoor, which comes with the capabilities to execute commands transmitted from the C2 server.

Who is behind it and what should organizations do?

In addition to steganography methods, the distribution of widely used original package managers has also been observed to be an attempt to avoid detection. The campaign has not yet been associated with a known threat actor but is believed to have been carried out by a sophisticated cyber threat group. In this context, it is recommended not to respect spam e-mail attachments and links from unknown sides, raise awareness of institution/organization personnel against possible advanced phishing attacks, and use reliable anti-virus / anti-malware solutions. In addition, it is recommended to prevent the IoC findings related to the campaign from the security solutions used.

Frequently Asked Questions.

What is the Serpent backdoor?

It is a backdoor used in attacks on French construction, real estate and government organizations. It can run commands sent from a C2 server.

How does the Serpent backdoor get onto a computer?

A phishing email carries a Word document with a macro. The macro downloads an image with a hidden PowerShell script, which installs tools and fetches the backdoor from a second image.

Who is behind the Serpent backdoor?

The campaign has not been linked to a known threat actor. It is believed to be the work of a sophisticated group.

How can organizations reduce the risk?

Do not open attachments or links from unknown senders, train staff on advanced phishing, use reliable anti-malware tools and block the campaign's IoCs.

Sources

  1. 1 MITRE ATT&CK T1027.003 Steganography
  2. 2 MITRE ATT&CK T1566.001 Spearphishing Attachment