SYMBOLCOMMON_NAMEaka. SYNONYMS
osx.xagent (Back to overview)

X-Agent

Actor(s): Sofacy


There is no description at this point.

References
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)
2017-03-23Twitter (PhysicalDrive0)PhysicalDrive0
@online{physicaldrive0:20170323:xagent:74f4c95, author = {PhysicalDrive0}, title = {{Tweet on XAgent for macOS}}, date = {2017-03-23}, organization = {Twitter (PhysicalDrive0)}, url = {https://twitter.com/PhysicalDrive0/status/845009226388918273}, language = {English}, urldate = {2019-12-17} } Tweet on XAgent for macOS
X-Agent
2017-02-21BitdefenderBitdefender
@techreport{bitdefender:20170221:dissecting:eec4e1f, author = {Bitdefender}, title = {{Dissecting the APT28 Mac OS X Payload}}, date = {2017-02-21}, institution = {Bitdefender}, url = {https://download.bitdefender.com/resources/files/News/CaseStudies/study/143/Bitdefender-Whitepaper-APT-Mac-A4-en-EN-web.pdf}, language = {English}, urldate = {2020-01-10} } Dissecting the APT28 Mac OS X Payload
X-Agent
2017-02-14Palo Alto Networks Unit 42Robert Falcone
@online{falcone:20170214:xagentosx:33ef060, author = {Robert Falcone}, title = {{XAgentOSX: Sofacy’s XAgent macOS Tool}}, date = {2017-02-14}, organization = {Palo Alto Networks Unit 42}, url = {http://researchcenter.paloaltonetworks.com/2017/02/unit42-xagentosx-sofacys-xagent-macos-tool/}, language = {English}, urldate = {2019-12-20} } XAgentOSX: Sofacy’s XAgent macOS Tool
X-Agent
Yara Rules
[TLP:WHITE] osx_xagent_auto (20201014 | autogenerated rule brought to you by yara-signator)
rule osx_xagent_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/osx.xagent"
        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 = { 668b4b30 66894830 48 8b4b28 48 894828 48 }
            // n = 7, score = 300
            //   668b4b30             | mov                 cx, word ptr [ebx + 0x30]
            //   66894830             | mov                 word ptr [eax + 0x30], cx
            //   48                   | dec                 eax
            //   8b4b28               | mov                 ecx, dword ptr [ebx + 0x28]
            //   48                   | dec                 eax
            //   894828               | mov                 dword ptr [eax + 0x28], ecx
            //   48                   | dec                 eax

        $sequence_1 = { 89c3 48 8b45c8 8b00 8903 44 897304 }
            // n = 7, score = 300
            //   89c3                 | mov                 ebx, eax
            //   48                   | dec                 eax
            //   8b45c8               | mov                 eax, dword ptr [ebp - 0x38]
            //   8b00                 | mov                 eax, dword ptr [eax]
            //   8903                 | mov                 dword ptr [ebx], eax
            //   44                   | inc                 esp
            //   897304               | mov                 dword ptr [ebx + 4], esi

        $sequence_2 = { 48 39c2 0f8445010000 48 29d0 48 }
            // n = 6, score = 300
            //   48                   | dec                 eax
            //   39c2                 | cmp                 edx, eax
            //   0f8445010000         | je                  0x14b
            //   48                   | dec                 eax
            //   29d0                 | sub                 eax, edx
            //   48                   | dec                 eax

        $sequence_3 = { ff15???????? 88c3 e9???????? 48 8b15???????? 48 }
            // n = 6, score = 300
            //   ff15????????         |                     
            //   88c3                 | mov                 bl, al
            //   e9????????           |                     
            //   48                   | dec                 eax
            //   8b15????????         |                     
            //   48                   | dec                 eax

        $sequence_4 = { 4d 85e4 741d 49 83c703 4c 89e7 }
            // n = 7, score = 300
            //   4d                   | dec                 ebp
            //   85e4                 | test                esp, esp
            //   741d                 | je                  0x1f
            //   49                   | dec                 ecx
            //   83c703               | add                 edi, 3
            //   4c                   | dec                 esp
            //   89e7                 | mov                 edi, esp

        $sequence_5 = { 49 0fbe1c37 8d79ff 48 83fb3d 7409 41 }
            // n = 7, score = 300
            //   49                   | dec                 ecx
            //   0fbe1c37             | movsx               ebx, byte ptr [edi + esi]
            //   8d79ff               | lea                 edi, [ecx - 1]
            //   48                   | dec                 eax
            //   83fb3d               | cmp                 ebx, 0x3d
            //   7409                 | je                  0xb
            //   41                   | inc                 ecx

        $sequence_6 = { 8b740108 48 8b540110 48 8dbd58ffffff e8???????? }
            // n = 6, score = 300
            //   8b740108             | mov                 esi, dword ptr [ecx + eax + 8]
            //   48                   | dec                 eax
            //   8b540110             | mov                 edx, dword ptr [ecx + eax + 0x10]
            //   48                   | dec                 eax
            //   8dbd58ffffff         | lea                 edi, [ebp - 0xa8]
            //   e8????????           |                     

        $sequence_7 = { e8???????? 48 8b35???????? 0fb7d3 4c }
            // n = 5, score = 300
            //   e8????????           |                     
            //   48                   | dec                 eax
            //   8b35????????         |                     
            //   0fb7d3               | movzx               edx, bx
            //   4c                   | dec                 esp

        $sequence_8 = { ffd7 48 8bbd28fdffff 41 ffd7 4c 89e7 }
            // n = 7, score = 300
            //   ffd7                 | call                edi
            //   48                   | dec                 eax
            //   8bbd28fdffff         | mov                 edi, dword ptr [ebp - 0x2d8]
            //   41                   | inc                 ecx
            //   ffd7                 | call                edi
            //   4c                   | dec                 esp
            //   89e7                 | mov                 edi, esp

        $sequence_9 = { eb43 45 31f6 4c 8b2d???????? eb37 }
            // n = 6, score = 300
            //   eb43                 | jmp                 0x45
            //   45                   | inc                 ebp
            //   31f6                 | xor                 esi, esi
            //   4c                   | dec                 esp
            //   8b2d????????         |                     
            //   eb37                 | jmp                 0x39

    condition:
        7 of them and filesize < 770156
}
Download all Yara Rules