Serpent is a Python-based Windows backdoor used in targeted phishing attacks against French government, construction, and real estate organizations. It provides remote command execution, supports reverse shells and additional payload delivery, and exfiltrates command output. The activity has not been attributed to a known threat actor.
Its infection chain begins with French-language phishing emails carrying macro-enabled Microsoft Word attachments and using recruitment or GDPR-themed lures. Enabling macros initiates a multistage chain that extracts PowerShell code hidden in images through steganography. The code installs the legitimate Chocolatey package manager, then uses it to install Python, pip, and required dependencies before retrieving the backdoor from another steganographic image. This abuse of legitimate software and concealed payloads helps evade detection.
Serpent repeatedly polls attacker-controlled command infrastructure through a Tor proxy and executes commands addressed to the infected computer's hostname. It uploads command output to the Termbin text-sharing service and returns the resulting reference and hostname to a separate response endpoint. Associated campaign payloads have also used temporary, event-triggered Windows scheduled tasks for signed binary proxy execution, launching malicious code beneath a legitimate Windows task-host process and deleting the task afterward.
14 distinct techniques documented for this family, organized by ATT&CK tactic.
MITRE ATT&CK TIDs ... T1133 Persistence External Remote Services
The multi-step attack starts with a phishing email impersonating the European Union's General Data Protection Regulations agency (GDPR). This email includes a Word document attachment document containing malicious macro code.
This email includes a Word document attachment document containing malicious macro code.
TeslaCrypt 4.1b ... used WMIC to delete Shadow Volume Copies from an infected PC... One of [WannaCry's] commands invoked WMIC to delete shadow copies.
Proofpoint says that the backdoor can execute any command sent by the attacks, allowing the threat actors to download further malware, open reverse shells, and gain complete access to the device. | Once loaded, the Serpent backdoor malware will communicate with the attacker's command and control server to receive commands to execute on the infected device.
The PowerShell script will first download and install the Chocolatey Windows package manager, which is then used to install the Python programming language and the PIP package installer
If opened and content is enabled, the malicious macro fetches an image of Swiper the Fox from the cartoon series Dora the Explorer.
The Python script (the Serpent backdoor) is as follows...
MITRE ATT&CK TIDs ... T1133 Persistence External Remote Services
However, this image is not entirely harmless, as it uses Steganography to hide a PowerShell script that the macros will execute.
Proofpoint also noticed a novel application of signed binary proxy execution using schtrasks.exe, essentially a new detection bypass technique.
hostname = socket.gethostname() ... If <hostname> matches the hostname of the infected computer, the infected host runs the command provided by the order server.
The threat actor uses a Tor proxy for command and control (C2) infrastructure.
Proofpoint says that the backdoor can execute any command sent by the attacks, allowing the threat actors to download further malware
The malware then uses PySocks to connect to the command line pastebin tool Termbin... Finally, the malware sends a request to the “answer” server, including the hostname and bin URL in the header.
63 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.