General

  • Target
    ksmd
  • Size 40KB
  • Sample260824-pj63yaxeph
  • SHA256 ac06008065da89581759e660e9fc44ad2f04a16165ce92f1c3614c46dfa83f67
  • MD5 SHA1 SHA512 SSDEEP TLSH

Malware Config

Targets

    • Target
      ksmd
    • Size 40KB
    • SHA256 ac06008065da89581759e660e9fc44ad2f04a16165ce92f1c3614c46dfa83f67
    • MD5 SHA1 SHA512 SSDEEP TLSH
    • Family: xmrig

      XMRig is a high performance, open source, cross platform CPU/GPU miner.

    • XMRig Miner payload

    • File and Directory Permissions Modification

      Adversaries may modify file or directory permissions to evade defenses.

    • Cryptocurrency Miner

      Makes network request to known mining pool URL.

    • Deletes system logs

      Deletes log file which contains global system messages. Adversaries may delete system logs to minimize their footprint.

    • Disables AppArmor Mandatory Access Control

      Stops or disables AppArmor via systemctl, removing mandatory access control restrictions on process capabilities and file access.

    • Executes dropped EXE

    • Flushes firewall rules

      Flushes/ disables firewall rules inside the Linux kernel.

    • Loads a kernel module

      Loads a Linux kernel module, potentially to achieve persistence

    • Modifies the /etc/hosts DNS resolution file

      Modifying the /etc/hosts name-resolution file changes IP routing, which can facilitate traffic hijacking or the blocking of (security update) endpoints.

    • Abuse Elevation Control Mechanism: Sudo and Sudo Caching

      Abuse sudo or cached sudo credentials to execute code.

    • Checks hardware identifiers (DMI)

      Checks DMI information which indicate if the system is a virtual machine.

    • Creates/modifies Cron job

      Cron allows running tasks on a schedule, and is commonly used for malware persistence.

    • Deletes log files

      Deletes log files on the system.

    • Disables SELinux

      Disables SELinux security module.

    • Enumerates running processes

      Discovers information about currently running processes on the system

    • Modifies systemd

      Adds/ modifies systemd service files. Likely to achieve persistence.

    • Reads hardware information

      Accesses system info like serial numbers, manufacturer names etc.

    • Removes the immutable protection flag from a file

      Uses chattr to remove the immutable flag from a file, allowing previously write-protected files to be modified or deleted.

    • Write file to user bin folder

    • Writes file to system bin folder

MITRE ATT&CK Enterprise v16

Tasks