Analysis

  • max time kernel
    118s
  • max time network
    118s
  • platform
    windows7_x64
  • resource
    win7-20240419-en
  • resource tags

    arch:x64arch:x86image:win7-20240419-enlocale:en-usos:windows7-x64system
  • submitted
    13-05-2024 08:40

General

  • Target

    3e9c6a8e6988adbb16ef8715c22cdd58_JaffaCakes118.js

  • Size

    20KB

  • MD5

    3e9c6a8e6988adbb16ef8715c22cdd58

  • SHA1

    c959d76d0cbe839ed6325796b1b92e2a62f5e5a2

  • SHA256

    4f84400506a99ee8b0b7d0ea00fd66d5cb575e8bf768fc6bcdbee5592e310fca

  • SHA512

    1a688465a5161ba5e49db747b07ecffd3f6d42abaa4befd3eaa02755e2bf34c90a8dcf0ecb4054a270507706cdd86b17ed6bf1763406434588fab35c11e0aeb7

  • SSDEEP

    384:3wjKMDdC+3HjH1ciPOlHS4mLasODgZjNfqLhIdlWmpzOTkmIhkn73jbIYmYTc:3mKCDVu+msdFDdlfpzUkmRfbIh

Score
10/10

Malware Config

Extracted

Language
ps1
Deobfuscated
URLs
exe.dropper

http://wws.chasingredford.com/

Signatures

  • Drops startup file 1 IoCs
  • Command and Scripting Interpreter: JavaScript 1 TTPs
  • Enumerates physical storage devices 1 TTPs

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

  • Creates scheduled task(s) 1 TTPs 1 IoCs

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

  • Suspicious behavior: EnumeratesProcesses 1 IoCs
  • Suspicious use of AdjustPrivilegeToken 1 IoCs
  • Suspicious use of WriteProcessMemory 12 IoCs
  • Uses Task Scheduler COM API 1 TTPs

    The Task Scheduler COM API can be used to schedule applications to run on boot or at set times.

Processes

  • C:\Windows\system32\wscript.exe
    wscript.exe C:\Users\Admin\AppData\Local\Temp\3e9c6a8e6988adbb16ef8715c22cdd58_JaffaCakes118.js
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1008
    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" $a =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
      • Drops startup file
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:3000
      • C:\Windows\system32\schtasks.exe
        "C:\Windows\system32\schtasks.exe" /delete /TN WindowsIndexingService /f
        3⤵
          PID:2584
        • C:\Windows\system32\schtasks.exe
          "C:\Windows\system32\schtasks.exe" /delete /TN "Windows Indexing Service" /f
          3⤵
            PID:2500
          • C:\Windows\system32\schtasks.exe
            "C:\Windows\system32\schtasks.exe" /create /TN WindowsIndexingService /sc DAILY /st 00:00 /f /RI 10 /du 23:59 /TR "wscript.exe //nologo "C:\Users\Public\Libraries\WindowsIndexingService.js" >NUL 2>&1"
            3⤵
            • Creates scheduled task(s)
            PID:2856

      Network

      MITRE ATT&CK Enterprise v15

      Replay Monitor

      Loading Replay Monitor...

      Downloads

      • memory/3000-4-0x000007FEF58FE000-0x000007FEF58FF000-memory.dmp

        Filesize

        4KB

      • memory/3000-6-0x0000000002A10000-0x0000000002A18000-memory.dmp

        Filesize

        32KB

      • memory/3000-5-0x000000001B480000-0x000000001B762000-memory.dmp

        Filesize

        2.9MB

      • memory/3000-7-0x000007FEF5640000-0x000007FEF5FDD000-memory.dmp

        Filesize

        9.6MB

      • memory/3000-8-0x000007FEF5640000-0x000007FEF5FDD000-memory.dmp

        Filesize

        9.6MB

      • memory/3000-10-0x000007FEF5640000-0x000007FEF5FDD000-memory.dmp

        Filesize

        9.6MB

      • memory/3000-11-0x000007FEF58FE000-0x000007FEF58FF000-memory.dmp

        Filesize

        4KB

      • memory/3000-12-0x000007FEF5640000-0x000007FEF5FDD000-memory.dmp

        Filesize

        9.6MB