SYMBOLCOMMON_NAMEaka. SYNONYMS
win.xtunnel (Back to overview)

XTunnel

aka: Shunnael, X-Tunnel, xaps

Actor(s): Sofacy


X-Tunnel is a network proxy tool that implements a custom network protocol encapsulated in the TLS protocol.

References
2020-07-29Kaspersky LabsGReAT
@online{great:20200729:trends:6810325, author = {GReAT}, title = {{APT trends report Q2 2020}}, date = {2020-07-29}, organization = {Kaspersky Labs}, url = {https://securelist.com/apt-trends-report-q2-2020/97937/}, language = {English}, urldate = {2020-07-30} } APT trends report Q2 2020
PhantomLance Dacls Penquin Turla elf.wellmess AppleJeus Dacls AcidBox Cobalt Strike Dacls EternalPetya Godlike12 Olympic Destroyer PlugX shadowhammer ShadowPad Sinowal VHD Ransomware Volgmer WellMess X-Agent XTunnel
2020-06-09Kaspersky LabsCostin Raiu
@online{raiu:20200609:looking:3038dce, author = {Costin Raiu}, title = {{Looking at Big Threats Using Code Similarity. Part 1}}, date = {2020-06-09}, organization = {Kaspersky Labs}, url = {https://securelist.com/big-threats-using-code-similarity-part-1/97239/}, language = {English}, urldate = {2020-08-18} } Looking at Big Threats Using Code Similarity. Part 1
Penquin Turla CCleaner Backdoor EternalPetya Regin WannaCryptor XTunnel
2020SecureworksSecureWorks
@online{secureworks:2020:iron:48c68a0, author = {SecureWorks}, title = {{IRON TWILIGHT}}, date = {2020}, organization = {Secureworks}, url = {https://www.secureworks.com/research/threat-profiles/iron-twilight}, language = {English}, urldate = {2020-05-23} } IRON TWILIGHT
X-Agent X-Agent X-Agent Computrace HideDRV Sedreco Seduploader X-Agent XTunnel Zebrocy Zebrocy (AutoIT)
2018-10-04SymantecCritical Attack Discovery and Intelligence Team
@online{team:20181004:apt28:97a1356, author = {Critical Attack Discovery and Intelligence Team}, title = {{APT28: New Espionage Operations Target Military and Government Organizations}}, date = {2018-10-04}, organization = {Symantec}, url = {https://symantec-blogs.broadcom.com/blogs/election-security/apt28-espionage-military-government}, language = {English}, urldate = {2020-04-21} } APT28: New Espionage Operations Target Military and Government Organizations
LoJax Seduploader X-Agent XTunnel Zebrocy Sofacy
2018-10-04SymantecSecurity Response Attack Investigation Team
@online{team:20181004:apt28:f5e15cf, author = {Security Response Attack Investigation Team}, title = {{APT28: New Espionage Operations Target Military and Government Organizations}}, date = {2018-10-04}, organization = {Symantec}, url = {https://www.symantec.com/blogs/election-security/apt28-espionage-military-government}, language = {English}, urldate = {2019-11-23} } APT28: New Espionage Operations Target Military and Government Organizations
XTunnel Sofacy
2017-02-20Contagio DumpMila Parkour
@online{parkour:20170220:part:c54b5de, author = {Mila Parkour}, title = {{Part I. Russian APT - APT28 collection of samples including OSX XAgent}}, date = {2017-02-20}, organization = {Contagio Dump}, url = {https://contagiodump.blogspot.de/2017/02/russian-apt-apt28-collection-of-samples.html}, language = {English}, urldate = {2019-11-26} } Part I. Russian APT - APT28 collection of samples including OSX XAgent
X-Agent Komplex Coreshell Downdelph HideDRV SEADADDY Sedreco Seduploader X-Agent XTunnel
2016-10-20ESET ResearchESET Research
@techreport{research:20161020:en:e2e6603, author = {ESET Research}, title = {{En Route with Sednit Part 2: Observing the Comings and Goings}}, date = {2016-10-20}, institution = {ESET Research}, url = {http://www.welivesecurity.com/wp-content/uploads/2016/10/eset-sednit-part-2.pdf}, language = {English}, urldate = {2019-10-25} } En Route with Sednit Part 2: Observing the Comings and Goings
X-Agent Sedreco X-Agent XTunnel
2016-06-15CrowdStrikeDmitri Alperovitch
@online{alperovitch:20160615:bears:604c1d9, author = {Dmitri Alperovitch}, title = {{Bears in the Midst: Intrusion into the Democratic National Committee}}, date = {2016-06-15}, organization = {CrowdStrike}, url = {https://www.crowdstrike.com/blog/bears-midst-intrusion-democratic-national-committee/}, language = {English}, urldate = {2019-12-20} } Bears in the Midst: Intrusion into the Democratic National Committee
X-Agent ATI-Agent Downrage SEADADDY X-Agent XTunnel Sofacy
2015-11-20MicrosoftMicrosoft
@techreport{microsoft:20151120:microsoft:d41c5ad, author = {Microsoft}, title = {{Microsoft Security Intelligence Report Volume 19}}, date = {2015-11-20}, institution = {Microsoft}, url = {http://download.microsoft.com/download/4/4/C/44CDEF0E-7924-4787-A56A-16261691ACE3/Microsoft_Security_Intelligence_Report_Volume_19_English.pdf}, language = {English}, urldate = {2020-01-13} } Microsoft Security Intelligence Report Volume 19
XTunnel
2015-08root9broot9b
@techreport{root9b:201508:technical:fff6a0b, author = {root9b}, title = {{TECHNICAL FOLLOW UP - APT28}}, date = {2015-08}, institution = {root9b}, url = {https://www.root9b.com/sites/default/files/whitepapers/root9b_follow_up_report_apt28.pdf}, language = {English}, urldate = {2020-01-08} } TECHNICAL FOLLOW UP - APT28
XTunnel
2015-06-19Netzpolitik.orgClaudio Guarnieri
@online{guarnieri:20150619:digital:6c1a11b, author = {Claudio Guarnieri}, title = {{Digital Attack on German Parliament: Investigative Report on the Hack of the Left Party Infrastructure in Bundestag}}, date = {2015-06-19}, organization = {Netzpolitik.org}, url = {https://netzpolitik.org/2015/digital-attack-on-german-parliament-investigative-report-on-the-hack-of-the-left-party-infrastructure-in-bundestag/}, language = {English}, urldate = {2020-01-10} } Digital Attack on German Parliament: Investigative Report on the Hack of the Left Party Infrastructure in Bundestag
XTunnel Sofacy
Yara Rules
[TLP:WHITE] win_xtunnel_auto (20201014 | autogenerated rule brought to you by yara-signator)
rule win_xtunnel_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-10-14"
        version = "1"
        description = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.5.0"
        tool_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.xtunnel"
        malpedia_rule_date = "20201014"
        malpedia_hash = "a7e3bd57eaf12bf3ea29a863c041091ba3af9ac9"
        malpedia_version = "20201014"
        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 = { 0fb65001 c1e108 0bca 83f902 7407 68c2010000 }
            // n = 6, score = 1200
            //   0fb65001             | movzx               edx, byte ptr [eax + 1]
            //   c1e108               | shl                 ecx, 8
            //   0bca                 | or                  ecx, edx
            //   83f902               | cmp                 ecx, 2
            //   7407                 | je                  9
            //   68c2010000           | push                0x1c2

        $sequence_1 = { 03df 8d70ff 8da42400000000 8d942480000000 }
            // n = 4, score = 1200
            //   03df                 | add                 ebx, edi
            //   8d70ff               | lea                 esi, [eax - 1]
            //   8da42400000000       | lea                 esp, [esp]
            //   8d942480000000       | lea                 edx, [esp + 0x80]

        $sequence_2 = { 0fb64e01 c1e008 0bc1 8d5802 83c602 89442410 }
            // n = 6, score = 1200
            //   0fb64e01             | movzx               ecx, byte ptr [esi + 1]
            //   c1e008               | shl                 eax, 8
            //   0bc1                 | or                  eax, ecx
            //   8d5802               | lea                 ebx, [eax + 2]
            //   83c602               | add                 esi, 2
            //   89442410             | mov                 dword ptr [esp + 0x10], eax

        $sequence_3 = { e8???????? 99 b960000000 f7f9 }
            // n = 4, score = 1200
            //   e8????????           |                     
            //   99                   | cdq                 
            //   b960000000           | mov                 ecx, 0x60
            //   f7f9                 | idiv                ecx

        $sequence_4 = { 0f8528020000 c7872c01000001000000 e9???????? b874330000 663bd8 0f85c1000000 8b4f58 }
            // n = 7, score = 1200
            //   0f8528020000         | jne                 0x22e
            //   c7872c01000001000000     | mov    dword ptr [edi + 0x12c], 1
            //   e9????????           |                     
            //   b874330000           | mov                 eax, 0x3374
            //   663bd8               | cmp                 bx, ax
            //   0f85c1000000         | jne                 0xc7
            //   8b4f58               | mov                 ecx, dword ptr [edi + 0x58]

        $sequence_5 = { 0fb64e05 c1e308 0bd9 8d5306 }
            // n = 4, score = 1200
            //   0fb64e05             | movzx               ecx, byte ptr [esi + 5]
            //   c1e308               | shl                 ebx, 8
            //   0bd9                 | or                  ebx, ecx
            //   8d5306               | lea                 edx, [ebx + 6]

        $sequence_6 = { 0f8457020000 83ff64 0f8577fcffff 68da040000 68???????? }
            // n = 5, score = 1200
            //   0f8457020000         | je                  0x25d
            //   83ff64               | cmp                 edi, 0x64
            //   0f8577fcffff         | jne                 0xfffffc7d
            //   68da040000           | push                0x4da
            //   68????????           |                     

        $sequence_7 = { 8b11 83c202 52 e8???????? }
            // n = 4, score = 1200
            //   8b11                 | mov                 edx, dword ptr [ecx]
            //   83c202               | add                 edx, 2
            //   52                   | push                edx
            //   e8????????           |                     

        $sequence_8 = { 0f84b1010000 8b7558 6a00 e8???????? 8bd0 c1ea18 }
            // n = 6, score = 1200
            //   0f84b1010000         | je                  0x1b7
            //   8b7558               | mov                 esi, dword ptr [ebp + 0x58]
            //   6a00                 | push                0
            //   e8????????           |                     
            //   8bd0                 | mov                 edx, eax
            //   c1ea18               | shr                 edx, 0x18

        $sequence_9 = { 33db 83c408 817e787f800000 895c2420 895c2410 0f854effffff }
            // n = 6, score = 1200
            //   33db                 | xor                 ebx, ebx
            //   83c408               | add                 esp, 8
            //   817e787f800000       | cmp                 dword ptr [esi + 0x78], 0x807f
            //   895c2420             | mov                 dword ptr [esp + 0x20], ebx
            //   895c2410             | mov                 dword ptr [esp + 0x10], ebx
            //   0f854effffff         | jne                 0xffffff54

        $sequence_10 = { 7406 c7010c000000 5e 5d c3 6a00 }
            // n = 6, score = 1100
            //   7406                 | je                  8
            //   c7010c000000         | mov                 dword ptr [ecx], 0xc
            //   5e                   | pop                 esi
            //   5d                   | pop                 ebp
            //   c3                   | ret                 
            //   6a00                 | push                0

        $sequence_11 = { 89450c 8d45f0 50 6a00 53 68???????? }
            // n = 6, score = 1000
            //   89450c               | mov                 dword ptr [ebp + 0xc], eax
            //   8d45f0               | lea                 eax, [ebp - 0x10]
            //   50                   | push                eax
            //   6a00                 | push                0
            //   53                   | push                ebx
            //   68????????           |                     

        $sequence_12 = { eb02 33ff 897e60 8bc6 8b4df4 64890d00000000 }
            // n = 6, score = 1000
            //   eb02                 | jmp                 4
            //   33ff                 | xor                 edi, edi
            //   897e60               | mov                 dword ptr [esi + 0x60], edi
            //   8bc6                 | mov                 eax, esi
            //   8b4df4               | mov                 ecx, dword ptr [ebp - 0xc]
            //   64890d00000000       | mov                 dword ptr fs:[0], ecx

        $sequence_13 = { 56 e8???????? 8b4310 8b5314 8d0478 8d4802 }
            // n = 6, score = 1000
            //   56                   | push                esi
            //   e8????????           |                     
            //   8b4310               | mov                 eax, dword ptr [ebx + 0x10]
            //   8b5314               | mov                 edx, dword ptr [ebx + 0x14]
            //   8d0478               | lea                 eax, [eax + edi*2]
            //   8d4802               | lea                 ecx, [eax + 2]

        $sequence_14 = { 8b4634 894004 8b4634 894008 8b4e34 c6411401 8b5634 }
            // n = 7, score = 1000
            //   8b4634               | mov                 eax, dword ptr [esi + 0x34]
            //   894004               | mov                 dword ptr [eax + 4], eax
            //   8b4634               | mov                 eax, dword ptr [esi + 0x34]
            //   894008               | mov                 dword ptr [eax + 8], eax
            //   8b4e34               | mov                 ecx, dword ptr [esi + 0x34]
            //   c6411401             | mov                 byte ptr [ecx + 0x14], 1
            //   8b5634               | mov                 edx, dword ptr [esi + 0x34]

        $sequence_15 = { 8900 8b4654 894004 8b4654 894008 }
            // n = 5, score = 1000
            //   8900                 | mov                 dword ptr [eax], eax
            //   8b4654               | mov                 eax, dword ptr [esi + 0x54]
            //   894004               | mov                 dword ptr [eax + 4], eax
            //   8b4654               | mov                 eax, dword ptr [esi + 0x54]
            //   894008               | mov                 dword ptr [eax + 8], eax

        $sequence_16 = { 8b4b14 2bc8 47 d1f9 }
            // n = 4, score = 1000
            //   8b4b14               | mov                 ecx, dword ptr [ebx + 0x14]
            //   2bc8                 | sub                 ecx, eax
            //   47                   | inc                 edi
            //   d1f9                 | sar                 ecx, 1

        $sequence_17 = { e8???????? 8bf8 83c404 897dec 33db }
            // n = 5, score = 1000
            //   e8????????           |                     
            //   8bf8                 | mov                 edi, eax
            //   83c404               | add                 esp, 4
            //   897dec               | mov                 dword ptr [ebp - 0x14], edi
            //   33db                 | xor                 ebx, ebx

        $sequence_18 = { 50 ff15???????? 8b4b10 0fb71479 8b4b04 }
            // n = 5, score = 1000
            //   50                   | push                eax
            //   ff15????????         |                     
            //   8b4b10               | mov                 ecx, dword ptr [ebx + 0x10]
            //   0fb71479             | movzx               edx, word ptr [ecx + edi*2]
            //   8b4b04               | mov                 ecx, dword ptr [ebx + 4]

        $sequence_19 = { e8???????? 83c404 8945b0 8b45b4 50 6a00 }
            // n = 6, score = 500
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   8945b0               | mov                 dword ptr [ebp - 0x50], eax
            //   8b45b4               | mov                 eax, dword ptr [ebp - 0x4c]
            //   50                   | push                eax
            //   6a00                 | push                0

        $sequence_20 = { 8b45f0 3b4510 7f06 837df000 7f40 }
            // n = 5, score = 300
            //   8b45f0               | mov                 eax, dword ptr [ebp - 0x10]
            //   3b4510               | cmp                 eax, dword ptr [ebp + 0x10]
            //   7f06                 | jg                  8
            //   837df000             | cmp                 dword ptr [ebp - 0x10], 0
            //   7f40                 | jg                  0x42

        $sequence_21 = { 8945e4 8b45ec 8b88a8000000 668b9526feffff 66895108 68f4010000 }
            // n = 6, score = 300
            //   8945e4               | mov                 dword ptr [ebp - 0x1c], eax
            //   8b45ec               | mov                 eax, dword ptr [ebp - 0x14]
            //   8b88a8000000         | mov                 ecx, dword ptr [eax + 0xa8]
            //   668b9526feffff       | mov                 dx, word ptr [ebp - 0x1da]
            //   66895108             | mov                 word ptr [ecx + 8], dx
            //   68f4010000           | push                0x1f4

        $sequence_22 = { c68557effffff6 c68558efffff45 c68559efffff9e c6855aefffff48 c6855befffffe9 }
            // n = 5, score = 300
            //   c68557effffff6       | mov                 byte ptr [ebp - 0x10a9], 0xf6
            //   c68558efffff45       | mov                 byte ptr [ebp - 0x10a8], 0x45
            //   c68559efffff9e       | mov                 byte ptr [ebp - 0x10a7], 0x9e
            //   c6855aefffff48       | mov                 byte ptr [ebp - 0x10a6], 0x48
            //   c6855befffffe9       | mov                 byte ptr [ebp - 0x10a5], 0xe9

        $sequence_23 = { c68540e0ffff92 c68541e0ffffa8 c68542e0ffff8e c68543e0ffffda c68544e0fffffb }
            // n = 5, score = 300
            //   c68540e0ffff92       | mov                 byte ptr [ebp - 0x1fc0], 0x92
            //   c68541e0ffffa8       | mov                 byte ptr [ebp - 0x1fbf], 0xa8
            //   c68542e0ffff8e       | mov                 byte ptr [ebp - 0x1fbe], 0x8e
            //   c68543e0ffffda       | mov                 byte ptr [ebp - 0x1fbd], 0xda
            //   c68544e0fffffb       | mov                 byte ptr [ebp - 0x1fbc], 0xfb

    condition:
        7 of them and filesize < 4634440
}
[TLP:WHITE] win_xtunnel_w0   (20170410 | No description)
rule win_xtunnel_w0 {
  meta:
    author = "Claudio Guarnieri"
    source = "https://netzpolitik.org/2015/digital-attack-on-german-parliament-investigative-report-on-the-hack-of-the-left-party-infrastructure-in-bundestag/"
    malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.xtunnel"
        malpedia_version = "20170410"
    malpedia_license = "CC BY-NC-SA 4.0"
    malpedia_sharing = "TLP:WHITE"

  strings:
    $xaps = ":\\PROJECT\\XAPS_"

    $variant11 = "XAPS_OBJECTIVE.dll"
    $variant12 = "start"

    $variant21 = "User-Agent: Mozilla/5.0 (Windows NT 6.3;WOW64; rv:28.0) Gecko/20100101 Firefox/28.0"
    $variant22 = "is you live?"

    $mix1 = "176.31.112.10"
    $mix2 = "error in select, errno %d"
    $mix3 = "no msg"
    $mix4 = "is you live?"
    $mix5 = "127.0.0.1"
    $mix6 = "err %d"
    $mix7 = "i`m wait"
    $mix8 = "hello"
    $mix9 = "OpenSSL 1.0.1e 11 Feb 2013"
    $mix10 = "Xtunnel.exe"

  condition:
    ((uint16(0) == 0x5A4D) or (uint16(0) == 0xCFD0)) and (($xaps) or (all of ($variant1*)) or (all of ($variant2*)) or (6 of ($mix*)))
}
Download all Yara Rules