Malware

Experts spotted a new undetectable PowerShell Backdoor posing as a Windows update

Cybersecurity researchers warn of a new PowerShell backdoor that disguises itself as part of the Windows update process to avoid detection.

Cybersecurity researchers from SafeBreach a warning of a new PowerShell backdoor masqueraded as a Windows update process to avoid detection.

The backdoor spreads via weaponized Word documents (“Apply Form.docm.”) posing as a LinkedIn-based job application. The malicious document was uploaded from Jordan on August 25, 2022. 

PowerShell BackdoorPowerShell Backdoor

The experts believe the backdoor is distributed as a part of a spear phishing campaign conducted by a sophisticated threat actor.

Upon opening the document and enabling the embedded macro, a PowerShell script is dropped on the victim’s machine. It also achieves persistence by creating a scheduled task posing as part of the Windows update process and executing the script that is located in a fake update folder (“%appdata%\local\Microsoft\Windows“).

Once executed the script, it will launch a second PowerShell script and before executing the scheduled task, two other scripts (Script.ps1 and Temp.ps1) are dropped on the system.

“Before executing the scheduled task, it will create two PowerShell scripts, named Script.ps1 and Temp.ps1. The content of the PowerShell scripts is stored in text boxes inside the Word document and will be saved to the same fake update directory of %AppData%\Local\Microsoft\Windows\Update.” reads the analysis published by SafeBreach.

Both scripts are obfuscated and FUD with a zero detection rate in VirusTotal.

Script.ps1 connects to the C2 servers and sends a victim ID to the operators, then awaits a command. The command is encrypted using AES-256 CBC.

The analysis of the ID count revealed that the attackers C2 have compromised a total of 70 computers.

The Temp.ps1 script decodes the command in the response, executes it, and then uploads the result in encrypted form via a POST request to the C2.

SafeBreach researchers were able to create a script to decrypt the commands sent to each of them.

The experts found the following percentage of each command type waiting for the victims:

  • 66%: Exfiltrate process list command
  • 23%: Empty command – Idle (the command starts with “:”)
  • 7%: Local users enumerations – whoami and whoami /all + process list
  • 2%: Remove files from public folder + net accounts + computer name, IP configurations …
  • 1%: List files in special folders – program files, downloads, desktop, documents, appdata
  • 1%: Entire script for A.D users enumerations and RDP clients enumerations (see Appendix B)

SafeBreach published indicators of compromise (IoCs) for the PowerShell backdoor.

Follow me on Twitter: @securityaffairs and Facebook

[adrotate banner=”9″][adrotate banner=”12″]

Pierluigi Paganini

(SecurityAffairs – hacking, PowerShell Backdoor)

[adrotate banner=”5″]

[adrotate banner=”13″]

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

Google fixed a Chrome vulnerability that could lead to full account takeover

Google released emergency security updates to fix a Chrome vulnerability that could lead to full…

17 minutes ago

Nova Scotia Power discloses data breach after March security incident

Nova Scotia Power confirmed a data breach involving the theft of sensitive customer data after…

11 hours ago

Coinbase disclosed a data breach after an extortion attempt

Coinbase confirmed rogue contractors stole customer data and demanded a $20M ransom in a breach…

13 hours ago

U.S. CISA adds a Fortinet flaw to its Known Exploited Vulnerabilities catalog

U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds a Fortinet vulnerability to its Known Exploited Vulnerabilities…

23 hours ago

Kosovo authorities extradited admin of the cybercrime marketplace BlackDB.cc

Kosovar citizen extradited to the US for running the cybercrime marketplace BlackDB.cc appeared in federal…

1 day ago

U.S. CISA adds Microsoft Windows flaws to its Known Exploited Vulnerabilities catalog

U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds Microsoft Windows flaws to its Known Exploited…

1 day ago