SYMBOLCOMMON_NAMEaka. SYNONYMS
win.upatre (Back to overview)

Upatre

URLhaus    

Upatre is primarly a downloader. It has been discovered in 2013 and since that time it has been widely updated. Upatre is responsible for delivering further malware to the victims, in specific upatre was a prolific delivery mechanism for Gameover P2P in 2013-2014 and then for Dyre in 2015.

References
2020-06-24Marco Ramilli's BlogMarco Ramilli
@online{ramilli:20200624:is:3ee7fad, author = {Marco Ramilli}, title = {{Is upatre downloader coming back ?}}, date = {2020-06-24}, organization = {Marco Ramilli's Blog}, url = {https://marcoramilli.com/2020/06/24/is-upatre-downloader-coming-back/}, language = {English}, urldate = {2020-06-24} } Is upatre downloader coming back ?
Upatre
2018-07-13Palo Alto Networks Unit 42Mike Harbison, Brittany Ash
@online{harbison:20180713:upatre:8d5e804, author = {Mike Harbison and Brittany Ash}, title = {{Upatre Continued to Evolve with new Anti-Analysis Techniques}}, date = {2018-07-13}, organization = {Palo Alto Networks Unit 42}, url = {https://researchcenter.paloaltonetworks.com/2018/07/unit42-upatre-continues-evolve-new-anti-analysis-techniques/}, language = {English}, urldate = {2019-12-20} } Upatre Continued to Evolve with new Anti-Analysis Techniques
Upatre
2017-07-10Secrary BlogSecrary
@online{secrary:20170710:upatre:06db6f5, author = {Secrary}, title = {{Upatre - Trojan Downloader}}, date = {2017-07-10}, organization = {Secrary Blog}, url = {https://secrary.com/ReversingMalware/Upatre/}, language = {English}, urldate = {2019-11-29} } Upatre - Trojan Downloader
Upatre
2015-06-10Johannes Bader
@online{bader:20150610:win32upatrebi:36ea1eb, author = {Johannes Bader}, title = {{Win32/Upatre.BI - Part One}}, date = {2015-06-10}, url = {https://johannesbader.ch/2015/06/Win32-Upatre-BI-Part-1-Unpacking/}, language = {English}, urldate = {2019-12-02} } Win32/Upatre.BI - Part One
Upatre
Yara Rules
[TLP:WHITE] win_upatre_auto (20230125 | Detects win.upatre.)
rule win_upatre_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-01-25"
        version = "1"
        description = "Detects win.upatre."
        info = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.6.0"
        signator_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.upatre"
        malpedia_rule_date = "20230124"
        malpedia_hash = "2ee0eebba83dce3d019a90519f2f972c0fcf9686"
        malpedia_version = "20230125"
        malpedia_license = "CC BY-SA 4.0"
        malpedia_sharing = "TLP:WHITE"

    /* DISCLAIMER
     * The strings used in this rule have been automatically selected from the
     * disassembly of memory dumps and unpacked files, using YARA-Signator.
     * The code and documentation is published here:
     * https://github.com/fxb-cocacoding/yara-signator
     * As Malpedia is used as data source, please note that for a given
     * number of families, only single samples are documented.
     * This likely impacts the degree of generalization these rules will offer.
     * Take the described generation method also into consideration when you
     * apply the rules in your use cases and assign them confidence levels.
     */


    strings:
        $sequence_0 = { 7414 4e 56 ff75f0 ff55f8 }
            // n = 5, score = 200
            //   7414                 | je                  0x16
            //   4e                   | dec                 esi
            //   56                   | push                esi
            //   ff75f0               | push                dword ptr [ebp - 0x10]
            //   ff55f8               | call                dword ptr [ebp - 8]

        $sequence_1 = { ff5500 8945f8 50 8bf3 }
            // n = 4, score = 200
            //   ff5500               | call                dword ptr [ebp]
            //   8945f8               | mov                 dword ptr [ebp - 8], eax
            //   50                   | push                eax
            //   8bf3                 | mov                 esi, ebx

        $sequence_2 = { 8bf8 57 6880000000 6a02 57 6a02 6800000040 }
            // n = 7, score = 200
            //   8bf8                 | mov                 edi, eax
            //   57                   | push                edi
            //   6880000000           | push                0x80
            //   6a02                 | push                2
            //   57                   | push                edi
            //   6a02                 | push                2
            //   6800000040           | push                0x40000000

        $sequence_3 = { b02f aa 33c0 aa b8c8000000 8d7598 8906 }
            // n = 7, score = 200
            //   b02f                 | mov                 al, 0x2f
            //   aa                   | stosb               byte ptr es:[edi], al
            //   33c0                 | xor                 eax, eax
            //   aa                   | stosb               byte ptr es:[edi], al
            //   b8c8000000           | mov                 eax, 0xc8
            //   8d7598               | lea                 esi, [ebp - 0x68]
            //   8906                 | mov                 dword ptr [esi], eax

        $sequence_4 = { 0430 b400 66ab b02f 66ab ff7590 33c0 }
            // n = 7, score = 200
            //   0430                 | add                 al, 0x30
            //   b400                 | mov                 ah, 0
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   b02f                 | mov                 al, 0x2f
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   ff7590               | push                dword ptr [ebp - 0x70]
            //   33c0                 | xor                 eax, eax

        $sequence_5 = { b052 66ab 83ee07 66ad }
            // n = 4, score = 200
            //   b052                 | mov                 al, 0x52
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   83ee07               | sub                 esi, 7
            //   66ad                 | lodsw               ax, word ptr [esi]

        $sequence_6 = { b075 66ab b000 66ab 8bc6 5e 50 }
            // n = 7, score = 200
            //   b075                 | mov                 al, 0x75
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   b000                 | mov                 al, 0
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   8bc6                 | mov                 eax, esi
            //   5e                   | pop                 esi
            //   50                   | push                eax

        $sequence_7 = { 33c0 66ab bbff0f0000 8b75f0 }
            // n = 4, score = 200
            //   33c0                 | xor                 eax, eax
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   bbff0f0000           | mov                 ebx, 0xfff
            //   8b75f0               | mov                 esi, dword ptr [ebp - 0x10]

        $sequence_8 = { 7e15 0fb74df0 81f95c120000 7d09 }
            // n = 4, score = 100
            //   7e15                 | jle                 0x17
            //   0fb74df0             | movzx               ecx, word ptr [ebp - 0x10]
            //   81f95c120000         | cmp                 ecx, 0x125c
            //   7d09                 | jge                 0xb

        $sequence_9 = { 55 8bec 83ec4c c745ec00000000 c645dc6e c645dd74 }
            // n = 6, score = 100
            //   55                   | push                ebp
            //   8bec                 | mov                 ebp, esp
            //   83ec4c               | sub                 esp, 0x4c
            //   c745ec00000000       | mov                 dword ptr [ebp - 0x14], 0
            //   c645dc6e             | mov                 byte ptr [ebp - 0x24], 0x6e
            //   c645dd74             | mov                 byte ptr [ebp - 0x23], 0x74

        $sequence_10 = { c745fc00000000 8b4508 8945f8 c745f400000000 eb09 8b4df4 83c101 }
            // n = 7, score = 100
            //   c745fc00000000       | mov                 dword ptr [ebp - 4], 0
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   8945f8               | mov                 dword ptr [ebp - 8], eax
            //   c745f400000000       | mov                 dword ptr [ebp - 0xc], 0
            //   eb09                 | jmp                 0xb
            //   8b4df4               | mov                 ecx, dword ptr [ebp - 0xc]
            //   83c101               | add                 ecx, 1

        $sequence_11 = { 55 8bec 83ec18 668b4508 668945ec 0fb74dec }
            // n = 6, score = 100
            //   55                   | push                ebp
            //   8bec                 | mov                 ebp, esp
            //   83ec18               | sub                 esp, 0x18
            //   668b4508             | mov                 ax, word ptr [ebp + 8]
            //   668945ec             | mov                 word ptr [ebp - 0x14], ax
            //   0fb74dec             | movzx               ecx, word ptr [ebp - 0x14]

        $sequence_12 = { 52 e8???????? 83c404 0fb7c0 83f804 }
            // n = 5, score = 100
            //   52                   | push                edx
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   0fb7c0               | movzx               eax, ax
            //   83f804               | cmp                 eax, 4

        $sequence_13 = { 81f9007d0000 7e0e 0fb755ec 81ea007d0000 668955ec 668b450a }
            // n = 6, score = 100
            //   81f9007d0000         | cmp                 ecx, 0x7d00
            //   7e0e                 | jle                 0x10
            //   0fb755ec             | movzx               edx, word ptr [ebp - 0x14]
            //   81ea007d0000         | sub                 edx, 0x7d00
            //   668955ec             | mov                 word ptr [ebp - 0x14], dx
            //   668b450a             | mov                 ax, word ptr [ebp + 0xa]

        $sequence_14 = { e8???????? 8b55d0 52 8b45e0 50 e8???????? }
            // n = 6, score = 100
            //   e8????????           |                     
            //   8b55d0               | mov                 edx, dword ptr [ebp - 0x30]
            //   52                   | push                edx
            //   8b45e0               | mov                 eax, dword ptr [ebp - 0x20]
            //   50                   | push                eax
            //   e8????????           |                     

        $sequence_15 = { f780a920c52fa7565e74 db3a 2b16 d100 4d 002d???????? }
            // n = 6, score = 100
            //   f780a920c52fa7565e74     | test    dword ptr [eax + 0x2fc520a9], 0x745e56a7
            //   db3a                 | fstp                xword ptr [edx]
            //   2b16                 | sub                 edx, dword ptr [esi]
            //   d100                 | rol                 dword ptr [eax], 1
            //   4d                   | dec                 ebp
            //   002d????????         |                     

    condition:
        7 of them and filesize < 294912
}
[TLP:WHITE] win_upatre_w0   (20170517 | Detects Upatre malware - file hazgurut.exe)
rule win_upatre_w0 {
	meta:
		author = "Florian Roth"
		description = "Detects Upatre malware - file hazgurut.exe"
		reference = "https://weankor.vxstream-sandbox.com/sample/6b857ef314938d37997c178ea50687a281d8ff9925f0c4e70940754643e2c0e3?environmentId=7"
		date = "2015-10-13"
		score = 70
		hash = "7ee0d20b15e24b7fe72154d9521e1959752b4e9c20d2992500df9ac096450a50"
		hash = "79ffc620ddb143525fa32bc6a83c636168501a4a589a38cdb0a74afac1ee8b92"
		hash = "62d8a6880c594fe9529158b94a9336179fa7a3d3bf1aa9d0baaf07d03b281bd3"
		hash = "c64282aca980d558821bec8b3dfeae562d9620139dc43d02ee4d1745cd989f2a"
		hash = "a35f9870f9d4b993eb094460b05ee1f657199412807abe6264121dd7cc12aa70"
		hash = "f8cb2730ebc8fac1c58da1346ad1208585fe730c4f03d976eb1e13a1f5d81ef9"
		hash = "b65ad7e2d299d6955d95b7ae9b62233c34bc5f6aa9f87dc482914f8ad2cba5d2"
		hash = "6b857ef314938d37997c178ea50687a281d8ff9925f0c4e70940754643e2c0e3"
		hash = "33a288cef0ae7192b34bd2ef3f523dfb7c6cbc2735ba07edf988400df1713041"
		hash = "2a8e50afbc376cb2a9700d2d83c1be0c21ef942309676ecac897ba4646aba273"
		hash = "3d0f2c7e07b7d64b1bad049b804ff1aae8c1fc945a42ad555eca3e1698c7f7d3"
		hash = "951360b32a78173a1f81da0ded8b4400e230125d05970d41621830efc5337274"
		hash = "bd90faebfd7663ef89b120fe69809532cada3eb94bb94094e8bc615f70670295"
		hash = "8c5823f67f9625e4be39a67958f0f614ece49c18596eacc5620524bc9b6bad3d"
		source = "https://github.com/mattulm/sfiles_yara/blob/master/malware/upatre_oct15.yar"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.upatre"
        malpedia_version = "20170517"
        malpedia_license = "CC BY-NC-SA 4.0"
        malpedia_sharing = "TLP:WHITE"
	strings:
		$a1 = "barcod" fullword ascii

		$s0 = "msports.dll" fullword ascii
		$s1 = "nddeapi.dll" fullword ascii
		$s2 = "glmf32.dll" fullword ascii
		$s3 = "<requestedExecutionLevel level=\"requireAdministrator\" uiAccess=\"false\">" fullword ascii
		$s4 = "cmutil.dll" fullword ascii
		$s5 = "mprapi.dll" fullword ascii
		$s6 = "glmf32.dll" fullword ascii
	condition:
		$a1 in (0..4000) and all of ($s*)
}
Download all Yara Rules