Analysis

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

    arch:x64arch:x86image:win10v2004-20240611-enlocale:en-usos:windows10-2004-x64system
  • submitted
    13/06/2024, 03:00

General

  • Target
    1b029dd52ea5570dcba9c7ddb0f52541e33cfdfba8dca6f99ee2bb5b7ecaab3f.exe
  • Size 764KB
  • Sample240613-dhefrasbqc
  • SHA256 1b029dd52ea5570dcba9c7ddb0f52541e33cfdfba8dca6f99ee2bb5b7ecaab3f
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • agenttesla

C2
  • https://api.telegram.org/bot6992592586:AAF02WS_8aSkEymFSXQS0ATd_mGGFFoTYGM/

Signatures

  • AgentTesla

    Agent Tesla is a remote access tool (RAT) written in visual basic.

  • Command and Scripting Interpreter: PowerShell 1 TTPs 2 IoCs

    Run Powershell to modify Windows Defender settings to add exclusions for file extensions, paths, and processes.

  • Checks computer location settings 2 TTPs 1 IoCs

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

  • Reads WinSCP keys stored on the system 2 TTPs

    Tries to access WinSCP stored sessions.

  • Reads data files stored by FTP clients 2 TTPs

    Tries to access configuration files associated with programs like FileZilla.

  • Reads user/profile data of local email clients 2 TTPs

    Email clients store some user data on disk where infostealers will often target it.

  • Reads user/profile data of web browsers 2 TTPs

    Infostealers often target stored browser data, which can include saved credentials etc.

  • Adds Run key to start application 2 TTPs 1 IoCs
  • Looks up external IP address via web service 2 IoCs

    Uses a legitimate IP lookup service to find the infected system's external IP.

  • Suspicious use of SetThreadContext 1 IoCs
  • 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 6 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 17 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\1b029dd52ea5570dcba9c7ddb0f52541e33cfdfba8dca6f99ee2bb5b7ecaab3f.exe
    "C:\Users\Admin\AppData\Local\Temp\1b029dd52ea5570dcba9c7ddb0f52541e33cfdfba8dca6f99ee2bb5b7ecaab3f.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of SetThreadContext
    • Suspicious use of WriteProcessMemory
    PID:5036
    • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Add-MpPreference -ExclusionPath "C:\Users\Admin\AppData\Local\Temp\1b029dd52ea5570dcba9c7ddb0f52541e33cfdfba8dca6f99ee2bb5b7ecaab3f.exe"
      2⤵
      • Command and Scripting Interpreter: PowerShell
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      PID:2296
    • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Add-MpPreference -ExclusionPath "C:\Users\Admin\AppData\Roaming\BHQBNCfs.exe"
      2⤵
      • Command and Scripting Interpreter: PowerShell
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      PID:1248
    • C:\Windows\SysWOW64\schtasks.exe
      "C:\Windows\System32\schtasks.exe" /Create /TN "Updates\BHQBNCfs" /XML "C:\Users\Admin\AppData\Local\Temp\tmp6A24.tmp"
      2⤵
      • Creates scheduled task(s)
      PID:2256
    • C:\Users\Admin\AppData\Local\Temp\1b029dd52ea5570dcba9c7ddb0f52541e33cfdfba8dca6f99ee2bb5b7ecaab3f.exe
      "C:\Users\Admin\AppData\Local\Temp\1b029dd52ea5570dcba9c7ddb0f52541e33cfdfba8dca6f99ee2bb5b7ecaab3f.exe"
      2⤵
      • Adds Run key to start application
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of SetWindowsHookEx
      PID:1640

Network

        MITRE ATT&CK Enterprise v15

        Replay Monitor

        Loading Replay Monitor...

        Downloads

        StartupProfileData-NonInteractive

        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
        • Size 18KB
        • SHA256 c7e1e50fed965644fbd982280ba1b37e5de2bd7012440130f83c9bbaf244b357
        • MD5 SHA1 SHA512 SSDEEP

        __PSScriptPolicyTest_h2l2gzeb.qtd.ps1

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

        tmp6A24.tmp

        • Path C:\Users\Admin\AppData\Local\Temp\tmp6A24.tmp
        • Size 1KB
        • SHA256 d7650f26d859e099a5c5573218fb34a57527583adcd9df9b0db312d24b58e0fa
        • MD5 SHA1 SHA512

        memory/1248-76-0x0000000007850000-0x00000000078E6000-memory.dmp

        memory/1248-50-0x0000000007240000-0x0000000007272000-memory.dmp

        memory/1248-80-0x0000000007910000-0x000000000792A000-memory.dmp

        memory/1248-79-0x0000000007810000-0x0000000007824000-memory.dmp

        memory/1248-78-0x0000000007800000-0x000000000780E000-memory.dmp

        memory/1248-86-0x0000000074690000-0x0000000074E40000-memory.dmp

        memory/1248-75-0x0000000007640000-0x000000000764A000-memory.dmp

        memory/1248-81-0x00000000078F0000-0x00000000078F8000-memory.dmp

        memory/1248-51-0x000000006FBF0000-0x000000006FC3C000-memory.dmp

        memory/1248-19-0x0000000074690000-0x0000000074E40000-memory.dmp

        memory/1248-42-0x0000000074690000-0x0000000074E40000-memory.dmp

        memory/1248-37-0x0000000074690000-0x0000000074E40000-memory.dmp

        memory/1640-34-0x0000000000400000-0x0000000000444000-memory.dmp

        memory/1640-89-0x0000000006F60000-0x0000000006FB0000-memory.dmp

        memory/2296-15-0x0000000074690000-0x0000000074E40000-memory.dmp

        memory/2296-72-0x0000000007750000-0x00000000077F3000-memory.dmp

        memory/2296-33-0x0000000006110000-0x0000000006464000-memory.dmp

        memory/2296-21-0x0000000005710000-0x0000000005776000-memory.dmp

        memory/2296-18-0x0000000074690000-0x0000000074E40000-memory.dmp

        memory/2296-16-0x0000000005820000-0x0000000005E48000-memory.dmp

        memory/2296-20-0x0000000005670000-0x0000000005692000-memory.dmp

        memory/2296-17-0x0000000074690000-0x0000000074E40000-memory.dmp

        memory/2296-47-0x0000000006730000-0x000000000674E000-memory.dmp

        memory/2296-87-0x0000000074690000-0x0000000074E40000-memory.dmp

        memory/2296-49-0x00000000067E0000-0x000000000682C000-memory.dmp

        memory/2296-61-0x000000006FBF0000-0x000000006FC3C000-memory.dmp

        memory/2296-77-0x0000000007C60000-0x0000000007C71000-memory.dmp

        memory/2296-71-0x00000000076C0000-0x00000000076DE000-memory.dmp

        memory/2296-14-0x00000000051B0000-0x00000000051E6000-memory.dmp

        memory/2296-22-0x0000000005780000-0x00000000057E6000-memory.dmp

        memory/2296-73-0x00000000080A0000-0x000000000871A000-memory.dmp

        memory/2296-74-0x0000000007A60000-0x0000000007A7A000-memory.dmp

        memory/5036-9-0x000000000D8B0000-0x000000000D94C000-memory.dmp

        memory/5036-8-0x0000000006E80000-0x0000000006F06000-memory.dmp

        memory/5036-0-0x000000007469E000-0x000000007469F000-memory.dmp

        memory/5036-7-0x0000000004E30000-0x0000000004E40000-memory.dmp

        memory/5036-6-0x0000000006830000-0x0000000006852000-memory.dmp

        memory/5036-5-0x0000000074690000-0x0000000074E40000-memory.dmp

        memory/5036-4-0x0000000005410000-0x000000000541A000-memory.dmp

        memory/5036-3-0x0000000005470000-0x0000000005502000-memory.dmp

        memory/5036-48-0x0000000074690000-0x0000000074E40000-memory.dmp

        memory/5036-2-0x0000000005A20000-0x0000000005FC4000-memory.dmp

        memory/5036-1-0x0000000000950000-0x0000000000A16000-memory.dmp