{
	"id": "2214a990-bcde-42bb-b061-fc53f0caf7f1",
	"created_at": "2023-01-12T15:01:11.591491Z",
	"updated_at": "2026-11-16T08:53:33.606414Z",
	"deleted_at": null,
	"sha1_hash": "091c22d0e786eed690f24069e0a67400c843a3cc",
	"title": "2019-04-05 - Ursnif- The Latest Evolution of the Most Popular Banking Malware",
	"llm_title": "2019-04-05 - Ursnif: The Latest Evolution of the Most Popular Banking Malware",
	"authors": "",
	"file_creation_date": "2022-05-28T23:35:00Z",
	"file_modification_date": "2022-05-28T23:35:00Z",
	"file_size": 149234,
	"plain_text": "1/4\r\nApril 5, 2019\r\nUrsnif: The Latest Evolution of the Most Popular Banking Malware\r\nblog.yoroi.company/research/ursnif-the-latest-evolution-of-the-most-popular-banking-malware/\r\n04/05/2019\r\nIntroduction\r\nFew days ago, the researchers of ZLab Yoroi-Cybaze dissected another attack wave of the infamous Ursnif malware,\r\nalso known as Gozi ISFB, an offspring of the original Gozi which source code was leaked in 2014. Ursnif/Gozi is\r\nactive from over a decade and was one of the most active malwares listed in 2017 and 2018. Today it constantly\r\nreaches several organization across Italy presenting itself in several ways, for instance as a malicious document\r\ndelivered through email.\r\n \r\nThe malware has evolved over time and has added functionality, in fact, apart from collecting banking credentials it is\r\nalso able to collect keystrokes, cryptocurrencies, screenshots, webmail, integrating spyware features together with\r\nbanking Trojans features.\r\n \r\nDuring their investigations, researchers of ZLab Yoroi-Cybaze intercept a new variant of this malware delivered\r\nthrough malspam campaign towards Italian companies. This latest Ursnif variant shows the same modus operandi: a\r\nmalicious document in which is embedded an highly obfuscated VBA macro that acts as a first stage dropper.\r\n \r\nThe Ursnif Threat Evolution\r\nAccording to Microsoft since its appearance in 2009, Ursnif has shown incredible capabilities to steal users’\r\ncredentials, credentials for local webmail, cloud storage, cryptocurrency exchange platforms and e-commerce sites\r\nwhile remaining more stealthiness as possible. It uses many advanced trick to evade several sandboxes environment\r\nand today is the most popular malware spreading in the wild. ZLab researchers have studied many samples in the\r\npast to profile the techniques used by the malware, to track its evolution and sophistication over time.\r\n \r\nTable 1: Ursnif techniques evolution\r\nFirst analyzed sample backs to January 2018. That Ursnif variant has delivered through a macro document and\r\nconsist of a few obfuscated stage and a process hollowing injection technique to execute its payload. After few\r\nmonths, in June 2018, we find evidence that Ursnif was delivered through Necurs Botnet. The latter is one of the\r\nmost famous botnets known nowadays and it has been used to deliver this Ursnif variant. The hidden link among\r\nnecurs and ursnif has been discovered by ZLab researchers as explained in this link. In December 2018, a first shift is\r\nabout the implementation of many dropper stages, in order to hide the final payload; moreover, in order to execute its\r\npayload, the malware does not perform a classical process injection as in the previous samples but an APC injection,\r\nnot yet seen as payload injection trick used by Ursnif.\r\n \n\n2/4\r\nThe sample spread in February 2019 use two new features: the first one is a several obfuscated powershell stages in\r\norder to evade AVs and reduce its detection, the second one is the use of steganography technique. The latter permit\r\nto hide code into a legit image manipulating specific bits. Next, another code perform a decryption and execution of\r\nmalicious code into the victim machine.\r\nIn March 2019 another weaponized variant of Ursnif has been detected: in this case, to spread the malicious software,\r\na google drive document combined with an obfuscated VBA Script is used over steganography. The last sample\r\nshown in previous table is similar to February’s sample but include another interesting feature: in this case a first VBS\r\nstage is encrypted using the Vigenere cipher; this allow to hide its malicious code and evade many sandboxes\r\nenvironment. We are observing a continuous evolution due to several features added in few months, this is an\r\nindicator that this malware is still in development and, observing also features fragmentation among variants lets us\r\nthink, with high confidence, that there are various fork of the same codebase spreading in the wild.\r\nTechnical Analysis\r\nSha 256 34669dde1e33ec96147540433f60e90056d38df1e3bb952fdc600e979d74f690\r\nThreat Ursnif dropper\r\nDescrizione\r\nBreve\r\nExcel with macro\r\nssdeep 1536:hn1DN3aMePUKccCEW8yjJTdrBX/3t4k3hOdsylKlgryzc4bNhZFGzE+cL4LgldAK:hn1DN3aM+UKc\r\nTable 2: information about Ursnif dropper\r\n \r\nThe most widespread infection vector observed were the macro enabled office documents, and this variant uses the\r\nsame technique too. The malicious document looks like an invoice that requires enabling macros in order to proper\r\nview its contents.\r\n \r\nFigure 1: excel document requiring macro enabling\r\nThe whole infection chain begins when the macro is enabled. This Ursnif variant presents a macro protection\r\ntechnique technique that it’s not present in previous variants, in order to make the analysis hard avoiding manipulation\r\nand extraction. After extraction of OLE object inside the document we are able to see the content of macros and their\r\nassociated name, as shown in the following figure:\r\nFigure 2: macros isolation\r\nNow it is possible to isolate an interesting macro in order to further analyze it in detail. It contains a piece of VBA that\r\nwas extracted.\r\n \r\nFigure 3: VB macro source code\r\nIn a different way than the past waves, the malware author added a “VigenereDo” function to decrypt and reconstruct\r\nthe initial infection step, using an algorithm based on the Vigenère cipher, a classical polyalphabetic cipher.\r\n \r\nThe resulting command text is obtained combining the obfuscated strings defined in “jeneric” function with other\r\nstrings (not visible in figure) and after further some manipulations is possible to spot the whole script will be executed.\r\nWhen user enable macros, the “wmic.exe” process run the following code through the “wmic 'PRocesS' \"Call\"\r\n'CREATe'” command.\r\n \r\nFigure 4: the powershell script (crypted)\r\nSo, at this point, several powershell deobfuscation steps occurs. First of all, every value (“${1F}”) defined in the ps\r\nstring is replaced with content stored into “$1F” variable corresponding to “,” (comma) character. After having replaced\r\nthese values, the script is run through “iex” primitive invoked by “.($psHomE[4]+$pshOMe[34]+'X')” and next through “(\r\n\". ( `$ShELLid[1]+`$shelLID[13]+'X')”. The complete deobfuscated script is the following.\r\n \r\nFigure 5: the first powershell script (decrypted)\n\n3/4\r\n Figure 6: image with malicious embedded powershell script\r\nFirst of all the malware checks the current TimeZone in order to verify if it is set on +01:00. If true, it download the\r\nnext stage from “hxxps://i[.]imgur[.]com/TVkWKQa[.]png”. As well as in other recent attacks, the downloaded image\r\nhides another powershell stage leveraging steganography techniques.\r\nThe malware code iterates over each pixel of the image and through several mathematical binary operation converts\r\ngrabs the two Least Significant Bits of every byte of the picture, concatenating them with other LSBs to produce a\r\ncomplete Powershell code.\r\nFigure 7: second powershell script extracted from the steganographic image\r\nEt voilà, another URL is found but, before download the next stage from it, the malware perform a further checking in\r\norder to evaluate the value returned by “CurrentCulture”.\r\nFigure 8: CurrentCulter verification in powershell\r\nIf check is verified, once again through the “IEX” primitive it try to download other components named\r\n“ose000000.exe” from “hxxps://nuovalo[.]site/RGI82B3.-tmp-tmp”, saving it into “%TEMP%” folder. In the following\r\ntable are shown the information about sample.\r\nSha 256 0f2245eec921949d9a1d8e13cab747a7fbb137aaee3b9ddacee0681c8b2e4fa8\r\nThreat Ursnif\r\nDescrizione Breve Final payload of Ursnif banking malware\r\nssdeep 6144:LCLAh6EzJYJtmavTXyulcNcyuo8PGJMewXo79y:L54EzetmCb3cNc3o0PR4\r\nTable 3: information about Ursnif final payload\r\nConclusion\r\nThis latest Ursnif wave keeps showing a complex infection process. The starting point of the entire chain was the\r\nusual Visual Basic macro, this time protecting its code with a Vigenère cipher, responsible of the decryption of the\r\nadditional Powershell stage launched abusing the Windows Management Infrastructure (WMI) functionalities,\r\ndecoupling it to the original infection tree and then completing the infection chain exploiting steganography techniques\r\nto bypass network detection and several environmental check, to ensure the malware is running into expected\r\nmachines confirming the highly evasive trend of this aggressive malware threat.\r\n \r\nIndicator of Compromise\r\nHashes:\r\n34669dde1e33ec96147540433f60e90056d38df1e3bb952fdc600e979d74f690\r\n0f2245eec921949d9a1d8e13cab747a7fbb137aaee3b9ddacee0681c8b2e4fa8\r\nDropurl:\r\nhxxps://i[.]imgur[.]com/TVkWKQa[.]png\r\nhxxps://nuovalo[.]site/RGI82B3.-tmp-tmp\r\nC2:\n\n4/4\r\nhxxp://nuovalo[.]icu/images/VYs5UVqTBYpg/\r\nNLIzhwT9sEr/k5V7J2HpECsh9Q/PEQNY9sYYk6JJwA_2F2Bo/pJhVLIob8XfZrIAv/Z4Kfzn93mPtOoBm/\r\nXSvYLd89VPxLpVwdy4/wEwkKFt2N/HAOr6bgXfRaPw2gN3hlS/qqBsTeYAfyj/qODGq[.]avi\r\nYara Rules\r\nimport \"pe\"\r\nrule Ursnif_documentDropper_201904 {\r\nmeta:\r\ndescription = \"Yara rule for Ursnif loader - April 2019 version\"\r\nauthor = \"Yoroi - ZLab\"\r\nlast_updated = \"2019-04-02\"\r\ntlp = \"white\"\r\ncategory = \"informational\"\r\nstrings:\r\n$a1 = { 43 6F 77 61 6E 64 43 6F 77 }\r\n$a2 = { 56 69 67 65 6E 65 72 65 44 6F }\r\n$b1 = \"xlTickLabelPositionNextToAxis\" ascii wide\r\ncondition:\r\nall of them\r\n}\r\nrule Ursnif_201904 {\r\nmeta:\r\ndescription = \"Yara rule for Ursnif - April 2019 version\"\r\nauthor = \"Yoroi - ZLab\"\r\nlast_updated = \"2019-04-02\"\r\ntlp = \"white\"\r\ncategory = \"informational\"\r\nstrings:\r\n$a1 = \"PECompact2\" ascii wide\r\n \r\ncondition:\r\nall of them and pe.imphash()==\"09d0478591d4f788cb3e5ea416c25237\"\r\n}\r\nThis blog post was authored by Davide Testa and Antonio Pirozzi of Cybaze-Yoroi Z-LAB",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"VXUG"
	],
	"origins": [
		"pdf"
	],
	"references": [
		"https://papers.vx-underground.org/papers/Malware Defense/Malware Analysis 2019/2019-04-05 - Ursnif- The Latest Evolution of the Most Popular Banking Malware.pdf"
	],
	"report_names": [
		"2019-04-05 - Ursnif- The Latest Evolution of the Most Popular Banking Malware.pdf"
	],
	"threat_actors": [],
	"ts_created_at": 1673535671,
	"ts_updated_at": 1794819213,
	"ts_creation_date": 1653780900,
	"ts_modification_date": 1653780900,
	"files": {
		"pdf": "https://archive.orkl.eu/091c22d0e786eed690f24069e0a67400c843a3cc.pdf",
		"text": "https://archive.orkl.eu/091c22d0e786eed690f24069e0a67400c843a3cc.txt",
		"img": "https://archive.orkl.eu/091c22d0e786eed690f24069e0a67400c843a3cc.jpg"
	}
}