General

  • Target
    random.exe
  • Size 2.8MB
  • Sample250526-spy63azzbz
  • SHA256 d2b2a07f2019fb85e7a09e8b991203dcf148e0632a83a0fa15499f461a48d157
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • amadey

Version
  • 5.34

Botnet
  • 8d33eb

C2
  • http://185.156.72.96

Attributes
  • install_dir

    d610cf342e

  • install_file

    ramez.exe

  • strings_key

    4a2b1d794e79a4532b6e2b679408d2bb

  • url_paths

    /te4h2nus/index.php

rc4.plain

Extracted

Language
  • ps1

Deobfuscated
Source
URLs
  • exe.dropper

    http://185.156.72.2/testmine/random.exe

Targets

    • Target
      random.exe
    • Size 2.8MB
    • SHA256 d2b2a07f2019fb85e7a09e8b991203dcf148e0632a83a0fa15499f461a48d157
    • MD5 SHA1 SHA512 SSDEEP
    • Amadey

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

    • Amadey family

    • Suspicious use of NtCreateUserProcessOtherParentProcess

    • Identifies VirtualBox via ACPI registry values (likely anti-VM)

    • Looks for VirtualBox Guest Additions in registry

    • Blocklisted process makes network request

    • Command and Scripting Interpreter: PowerShell

      Using powershell.exe command.

    • Downloads MZ/PE file

    • Looks for VMWare Tools registry key

    • Modifies Windows Firewall

    • Possible privilege escalation attempt

    • Uses browser remote debugging

      Can be used control the browser and steal sensitive information such as credentials and session cookies.

    • Checks BIOS information in registry

      BIOS information is often read in order to detect sandboxing environments.

    • Checks computer location settings

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

    • Event Triggered Execution: Component Object Model Hijacking

      Adversaries may establish persistence by executing malicious content triggered by hijacked references to Component Object Model (COM) objects.

    • Executes dropped EXE

    • Identifies Wine through registry keys

      Wine is a compatibility layer capable of running Windows applications, which can be used as sandboxing environment.

    • Loads dropped DLL

    • Modifies file permissions

    • Reads user/profile data of web browsers

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

    • Adds Run key to start application

    • File and Directory Permissions Modification: Windows File and Directory Permissions Modification

    • Legitimate hosting services abused for malware hosting/C2

    • Looks up external IP address via web service

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

    • Power Settings

      powercfg controls all configurable power system settings on a Windows system and can be abused to prevent an infected host from locking or shutting down.

    • AutoIT Executable

      AutoIT scripts compiled to PE executables.

    • Drops file in System32 directory

    • Enumerates processes with tasklist

    • Suspicious use of NtSetInformationThreadHideFromDebugger

    • Suspicious use of SetThreadContext

MITRE ATT&CK Enterprise v16

Tasks