Analysis

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

    arch:x64arch:x86image:win10v2004-20230915-enlocale:en-usos:windows10-2004-x64system
  • submitted
    04-10-2023 11:53

General

  • Target

    sample.exe

  • Size

    277KB

  • MD5

    5cc2d9573c5a19241afd9c7ea6342946

  • SHA1

    133e060e0133aaddc269718278d3559b65f0877e

  • SHA256

    182024beffcb7c5fbce36af989bf052dea4ed45fa0cc07156f3e39a24fc5178e

  • SHA512

    3bdeff5bd3d8c12622376a079f9d86f5a22d2facfbe9f4cc599f6e881f777160b0264ede73fa03d9dcfa3df7c0b0ea3a5106f72e68765910126676500ab3f2e2

  • SSDEEP

    6144:KCy+bnr+3p0yN90QEyvs7dzw5ip800PK6XpqaTUgCZVP:aMrXy90osxzzySgTiP

Malware Config

Extracted

Family

amadey

Version

3.87

C2

http://193.233.255.9/nasa/index.php

Attributes
  • install_dir

    ebb444342c

  • install_file

    legosa.exe

  • strings_key

    0b59a358b8646634fe523e0d5fe7fc43

rc4.plain

Signatures

  • Amadey

    Amadey bot is a simple trojan bot primarily used for collecting reconnaissance information.

  • Detects Healer an antivirus disabler dropper 3 IoCs
  • Healer

    Healer an antivirus disabler dropper.

  • Modifies Windows Defender Real-time Protection settings 3 TTPs 6 IoCs
  • Checks computer location settings 2 TTPs 2 IoCs

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

  • Executes dropped EXE 5 IoCs
  • Windows security modification 2 TTPs 1 IoCs
  • Adds Run key to start application 2 TTPs 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 2 IoCs
  • Suspicious use of AdjustPrivilegeToken 1 IoCs
  • Suspicious use of WriteProcessMemory 32 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\sample.exe
    "C:\Users\Admin\AppData\Local\Temp\sample.exe"
    1⤵
    • Adds Run key to start application
    • Suspicious use of WriteProcessMemory
    PID:4348
    • C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\p1488196.exe
      C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\p1488196.exe
      2⤵
      • Modifies Windows Defender Real-time Protection settings
      • Executes dropped EXE
      • Windows security modification
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      PID:2952
    • C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\r8261731.exe
      C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\r8261731.exe
      2⤵
      • Checks computer location settings
      • Executes dropped EXE
      • Suspicious use of WriteProcessMemory
      PID:2896
      • C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe
        "C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe"
        3⤵
        • Checks computer location settings
        • Executes dropped EXE
        • Suspicious use of WriteProcessMemory
        PID:1056
        • C:\Windows\SysWOW64\schtasks.exe
          "C:\Windows\System32\schtasks.exe" /Create /SC MINUTE /MO 1 /TN legosa.exe /TR "C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe" /F
          4⤵
          • Creates scheduled task(s)
          PID:556
        • C:\Windows\SysWOW64\cmd.exe
          "C:\Windows\System32\cmd.exe" /k echo Y|CACLS "legosa.exe" /P "Admin:N"&&CACLS "legosa.exe" /P "Admin:R" /E&&echo Y|CACLS "..\ebb444342c" /P "Admin:N"&&CACLS "..\ebb444342c" /P "Admin:R" /E&&Exit
          4⤵
          • Suspicious use of WriteProcessMemory
          PID:5020
          • C:\Windows\SysWOW64\cmd.exe
            C:\Windows\system32\cmd.exe /S /D /c" echo Y"
            5⤵
              PID:3052
            • C:\Windows\SysWOW64\cacls.exe
              CACLS "legosa.exe" /P "Admin:N"
              5⤵
                PID:3728
              • C:\Windows\SysWOW64\cacls.exe
                CACLS "legosa.exe" /P "Admin:R" /E
                5⤵
                  PID:4264
                • C:\Windows\SysWOW64\cmd.exe
                  C:\Windows\system32\cmd.exe /S /D /c" echo Y"
                  5⤵
                    PID:2720
                  • C:\Windows\SysWOW64\cacls.exe
                    CACLS "..\ebb444342c" /P "Admin:N"
                    5⤵
                      PID:4072
                    • C:\Windows\SysWOW64\cacls.exe
                      CACLS "..\ebb444342c" /P "Admin:R" /E
                      5⤵
                        PID:1728
              • C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe
                C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe
                1⤵
                • Executes dropped EXE
                PID:2796
              • C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe
                C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe
                1⤵
                • Executes dropped EXE
                PID:2640

              Network

              MITRE ATT&CK Enterprise v15

              Replay Monitor

              Loading Replay Monitor...

              Downloads

              • C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\p1488196.exe

                Filesize

                11KB

                MD5

                7e93bacbbc33e6652e147e7fe07572a0

                SHA1

                421a7167da01c8da4dc4d5234ca3dd84e319e762

                SHA256

                850cd190aaeebcf1505674d97f51756f325e650320eaf76785d954223a9bee38

                SHA512

                250169d7b6fcebff400be89edae8340f14130ced70c340ba9da9f225f62b52b35f6645bfb510962efb866f988688cb42392561d3e6b72194bc89d310ea43aa91

              • C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\p1488196.exe

                Filesize

                11KB

                MD5

                7e93bacbbc33e6652e147e7fe07572a0

                SHA1

                421a7167da01c8da4dc4d5234ca3dd84e319e762

                SHA256

                850cd190aaeebcf1505674d97f51756f325e650320eaf76785d954223a9bee38

                SHA512

                250169d7b6fcebff400be89edae8340f14130ced70c340ba9da9f225f62b52b35f6645bfb510962efb866f988688cb42392561d3e6b72194bc89d310ea43aa91

              • C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\r8261731.exe

                Filesize

                313KB

                MD5

                2c1528a6992ce0ac3a41d0da5cf846ba

                SHA1

                c315a74e85861b7abd2b9f213982f536a018a63d

                SHA256

                b269720acebdba99f8294306dfe575089c8e915af45556e49f82a9d7f1460742

                SHA512

                f6675f6260e335f7e8001808070e446cefa84460ef3b9d6dd6b9dbee5db6276af510944823a9de3ea23f9c879340772625b10e0fcfd6b6d9ba1c288dc0fa1341

              • C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\r8261731.exe

                Filesize

                313KB

                MD5

                2c1528a6992ce0ac3a41d0da5cf846ba

                SHA1

                c315a74e85861b7abd2b9f213982f536a018a63d

                SHA256

                b269720acebdba99f8294306dfe575089c8e915af45556e49f82a9d7f1460742

                SHA512

                f6675f6260e335f7e8001808070e446cefa84460ef3b9d6dd6b9dbee5db6276af510944823a9de3ea23f9c879340772625b10e0fcfd6b6d9ba1c288dc0fa1341

              • C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe

                Filesize

                313KB

                MD5

                2c1528a6992ce0ac3a41d0da5cf846ba

                SHA1

                c315a74e85861b7abd2b9f213982f536a018a63d

                SHA256

                b269720acebdba99f8294306dfe575089c8e915af45556e49f82a9d7f1460742

                SHA512

                f6675f6260e335f7e8001808070e446cefa84460ef3b9d6dd6b9dbee5db6276af510944823a9de3ea23f9c879340772625b10e0fcfd6b6d9ba1c288dc0fa1341

              • C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe

                Filesize

                313KB

                MD5

                2c1528a6992ce0ac3a41d0da5cf846ba

                SHA1

                c315a74e85861b7abd2b9f213982f536a018a63d

                SHA256

                b269720acebdba99f8294306dfe575089c8e915af45556e49f82a9d7f1460742

                SHA512

                f6675f6260e335f7e8001808070e446cefa84460ef3b9d6dd6b9dbee5db6276af510944823a9de3ea23f9c879340772625b10e0fcfd6b6d9ba1c288dc0fa1341

              • C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe

                Filesize

                313KB

                MD5

                2c1528a6992ce0ac3a41d0da5cf846ba

                SHA1

                c315a74e85861b7abd2b9f213982f536a018a63d

                SHA256

                b269720acebdba99f8294306dfe575089c8e915af45556e49f82a9d7f1460742

                SHA512

                f6675f6260e335f7e8001808070e446cefa84460ef3b9d6dd6b9dbee5db6276af510944823a9de3ea23f9c879340772625b10e0fcfd6b6d9ba1c288dc0fa1341

              • C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe

                Filesize

                313KB

                MD5

                2c1528a6992ce0ac3a41d0da5cf846ba

                SHA1

                c315a74e85861b7abd2b9f213982f536a018a63d

                SHA256

                b269720acebdba99f8294306dfe575089c8e915af45556e49f82a9d7f1460742

                SHA512

                f6675f6260e335f7e8001808070e446cefa84460ef3b9d6dd6b9dbee5db6276af510944823a9de3ea23f9c879340772625b10e0fcfd6b6d9ba1c288dc0fa1341

              • C:\Users\Admin\AppData\Local\Temp\ebb444342c\legosa.exe

                Filesize

                313KB

                MD5

                2c1528a6992ce0ac3a41d0da5cf846ba

                SHA1

                c315a74e85861b7abd2b9f213982f536a018a63d

                SHA256

                b269720acebdba99f8294306dfe575089c8e915af45556e49f82a9d7f1460742

                SHA512

                f6675f6260e335f7e8001808070e446cefa84460ef3b9d6dd6b9dbee5db6276af510944823a9de3ea23f9c879340772625b10e0fcfd6b6d9ba1c288dc0fa1341

              • memory/2952-11-0x00007FFCE07A0000-0x00007FFCE1261000-memory.dmp

                Filesize

                10.8MB

              • memory/2952-9-0x00007FFCE07A0000-0x00007FFCE1261000-memory.dmp

                Filesize

                10.8MB

              • memory/2952-8-0x00007FFCE07A0000-0x00007FFCE1261000-memory.dmp

                Filesize

                10.8MB

              • memory/2952-7-0x0000000000ED0000-0x0000000000EDA000-memory.dmp

                Filesize

                40KB