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 (20211008 | Detects win.upatre.)
rule win_upatre_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2021-10-07"
        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 = "20211007"
        malpedia_hash = "e5b790e0f888f252d49063a1251ca60ec2832535"
        malpedia_version = "20211008"
        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 = { 8ac8 ff5508 8bf0 66ad 6685c0 7404 }
            // n = 6, score = 200
            //   8ac8                 | mov                 cl, al
            //   ff5508               | call                dword ptr [ebp + 8]
            //   8bf0                 | mov                 esi, eax
            //   66ad                 | lodsw               ax, word ptr [esi]
            //   6685c0               | test                ax, ax
            //   7404                 | je                  6

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

        $sequence_2 = { 66ab b02f 66ab 8bc1 }
            // n = 4, score = 200
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   b02f                 | mov                 al, 0x2f
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   8bc1                 | mov                 eax, ecx

        $sequence_3 = { 66ad 8945ac 33c0 8bc8 8bd0 893b 83c304 }
            // n = 7, score = 200
            //   66ad                 | lodsw               ax, word ptr [esi]
            //   8945ac               | mov                 dword ptr [ebp - 0x54], eax
            //   33c0                 | xor                 eax, eax
            //   8bc8                 | mov                 ecx, eax
            //   8bd0                 | mov                 edx, eax
            //   893b                 | mov                 dword ptr [ebx], edi
            //   83c304               | add                 ebx, 4

        $sequence_4 = { 50 6880000000 6a02 50 6a02 6800000040 ff75f0 }
            // n = 7, score = 200
            //   50                   | push                eax
            //   6880000000           | push                0x80
            //   6a02                 | push                2
            //   50                   | push                eax
            //   6a02                 | push                2
            //   6800000040           | push                0x40000000
            //   ff75f0               | push                dword ptr [ebp - 0x10]

        $sequence_5 = { 6a00 8d4de0 51 50 57 ff75ec }
            // n = 6, score = 200
            //   6a00                 | push                0
            //   8d4de0               | lea                 ecx, dword ptr [ebp - 0x20]
            //   51                   | push                ecx
            //   50                   | push                eax
            //   57                   | push                edi
            //   ff75ec               | push                dword ptr [ebp - 0x14]

        $sequence_6 = { 897d94 8bdf 03d8 b02f }
            // n = 4, score = 200
            //   897d94               | mov                 dword ptr [ebp - 0x6c], edi
            //   8bdf                 | mov                 ebx, edi
            //   03d8                 | add                 ebx, eax
            //   b02f                 | mov                 al, 0x2f

        $sequence_7 = { 8bec 83c4f0 895df4 53 ff7504 }
            // n = 5, score = 200
            //   8bec                 | mov                 ebp, esp
            //   83c4f0               | add                 esp, -0x10
            //   895df4               | mov                 dword ptr [ebp - 0xc], ebx
            //   53                   | push                ebx
            //   ff7504               | push                dword ptr [ebp + 4]

        $sequence_8 = { 8d440a06 8945d8 8b4dd8 3b4d0c }
            // n = 4, score = 100
            //   8d440a06             | lea                 eax, dword ptr [edx + ecx + 6]
            //   8945d8               | mov                 dword ptr [ebp - 0x28], eax
            //   8b4dd8               | mov                 ecx, dword ptr [ebp - 0x28]
            //   3b4d0c               | cmp                 ecx, dword ptr [ebp + 0xc]

        $sequence_9 = { 7529 8b4df4 8b5110 81c200100000 8955f0 8d45f0 50 }
            // n = 7, score = 100
            //   7529                 | jne                 0x2b
            //   8b4df4               | mov                 ecx, dword ptr [ebp - 0xc]
            //   8b5110               | mov                 edx, dword ptr [ecx + 0x10]
            //   81c200100000         | add                 edx, 0x1000
            //   8955f0               | mov                 dword ptr [ebp - 0x10], edx
            //   8d45f0               | lea                 eax, dword ptr [ebp - 0x10]
            //   50                   | push                eax

        $sequence_10 = { 0fb745f4 83f832 7e0d 0fb745f4 99 2bc2 d1f8 }
            // n = 7, score = 100
            //   0fb745f4             | movzx               eax, word ptr [ebp - 0xc]
            //   83f832               | cmp                 eax, 0x32
            //   7e0d                 | jle                 0xf
            //   0fb745f4             | movzx               eax, word ptr [ebp - 0xc]
            //   99                   | cdq                 
            //   2bc2                 | sub                 eax, edx
            //   d1f8                 | sar                 eax, 1

        $sequence_11 = { 50 e8???????? 8945d4 68d770a437 8b4dd4 51 }
            // n = 6, score = 100
            //   50                   | push                eax
            //   e8????????           |                     
            //   8945d4               | mov                 dword ptr [ebp - 0x2c], eax
            //   68d770a437           | push                0x37a470d7
            //   8b4dd4               | mov                 ecx, dword ptr [ebp - 0x2c]
            //   51                   | push                ecx

        $sequence_12 = { 8b55f4 8b4210 50 e8???????? 83c404 0fb7c8 81c100100000 }
            // n = 7, score = 100
            //   8b55f4               | mov                 edx, dword ptr [ebp - 0xc]
            //   8b4210               | mov                 eax, dword ptr [edx + 0x10]
            //   50                   | push                eax
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   0fb7c8               | movzx               ecx, ax
            //   81c100100000         | add                 ecx, 0x1000

        $sequence_13 = { af 4f ac 8e4edc a0???????? f8 }
            // n = 6, score = 100
            //   af                   | scasd               eax, dword ptr es:[edi]
            //   4f                   | dec                 edi
            //   ac                   | lodsb               al, byte ptr [esi]
            //   8e4edc               | mov                 cs, word ptr [esi - 0x24]
            //   a0????????           |                     
            //   f8                   | clc                 

        $sequence_14 = { eb09 8b4df0 83c101 894df0 8b55f0 3b55f4 7d51 }
            // n = 7, score = 100
            //   eb09                 | jmp                 0xb
            //   8b4df0               | mov                 ecx, dword ptr [ebp - 0x10]
            //   83c101               | add                 ecx, 1
            //   894df0               | mov                 dword ptr [ebp - 0x10], ecx
            //   8b55f0               | mov                 edx, dword ptr [ebp - 0x10]
            //   3b55f4               | cmp                 edx, dword ptr [ebp - 0xc]
            //   7d51                 | jge                 0x53

        $sequence_15 = { 7409 8b4dfc 51 e8???????? 837dd800 7410 6800800000 }
            // n = 7, score = 100
            //   7409                 | je                  0xb
            //   8b4dfc               | mov                 ecx, dword ptr [ebp - 4]
            //   51                   | push                ecx
            //   e8????????           |                     
            //   837dd800             | cmp                 dword ptr [ebp - 0x28], 0
            //   7410                 | je                  0x12
            //   6800800000           | push                0x8000

    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