ShadowHS Fileless Malware Targets Linux Systems With Automated Spread

ShadowHS, a sneaky fileless malware hitting Linux systems. This threat uses a hidden loader to run a modified “hackshell” tool entirely in memory, avoiding files on disk.

Tracked as ShadowHS, it focuses on stealth and long-term control rather than quick cash grabs.

While it spreads via automated SSH brute-force attacks, its main goal is safe, interactive access for attackers.

Unlike typical Linux malware that spreads wildly or mines crypto right away, ShadowHS plays it safe.

The loader decrypts its payload with AES-256-CBC encryption using OpenSSL, Perl, and gzip all in memory.

It spoofs process names and checks for tools like openssl before running. No disk writes mean it’s hard for antivirus or forensics to spot.

Key Features and Stealth Tactics

ShadowHS starts with smart checks. It fingerprints security tools like CrowdStrike, Cortex XDR, and Microsoft Defender by scanning files and services.

Entropy Graph of Obfuscated Shell Script (Source: Cyble)

It also hunts rival malware, like Kinsing miners or Ebury backdoors, killing them to stay alone.

Runtime behavior is quiet: it maps the system, users, and defenses first. Attackers decide next steps manually.

Dormant powers include dumping credentials from memory, privilege escalation via downloaded exploits (like Dirty Pipe), and crypto-mining with XMRig or GMiner.

For spread, it automates discovery with RustScan to find SSH ports, then uses “spirit” for brute-force logins on targets. This enables lateral movement without much noise.

Determining Execution Context (Source: Cyble)

Data theft is clever too. It stages files with rsync over GSocket tunnels to 62.171.153[.]47, dodging firewalls. No standard SSH or SCP just user-space tricks via gs-dbus or gs-netcat.

Payload Reconstruction & Fileless Execution (Source: Cyble)

According to Cyble, the chain has two parts: a multi-stage shell loader and the hackshell payload.

  1. Loader: Obfuscated POSIX shell script with high-entropy code. Validates dependencies, decrypts Base64 password (“C-92KemmzRUsREnkdk-SMxUoJy8yHhmItvA”), skips headers, decompresses, and execs via /proc/<pid>/fd/<fd>. Spoofs argv as “python3”.
  2. Payload: Interactive CLI for operators. Checks execution context (Bash/Zsh), disables history, and relocates PATH/TMPDIR. On-demand: SSH scanning, memory dumps, miners with wallets like 88H9UmU6QyYiGeZdR6hXZJXtJF9Z8zLHDQbC1NV1PDdjCynBq3QKzB1fo1NRhgMX4cBx68Rva5msyKW3PGXfPhCA4itHmiv, and exploits from C2.

This setup suits enterprise Linux, not weak server expecting EDR and clouds like AWS.

IOCs and MITRE ATT&CK

Monitor these for quick detection:

Indicator TypeIndicatorDescription
IPv491.92.242[.]200Payload staging server
IPv462.171.153[.]47Exfil relay
SHA-25620c1819c2fb886375d9504b0e7e5debb87ec9d1a53073b1f3f36dd6a6ac3f427Main loader script
SHA-2569f2cfc65b480695aa2fd847db901e6b1135b5ed982d9942c61b629243d6830ddWeaponized hackshell

MITRE mappings:

TacticTechnique IDProcedure
ExecutionT1059.004Unix Shell
ExecutionT1620Reflective Code Loading
Defense EvasionT1036.005Masquerading
DiscoveryT1518.001Security Software Discovery
Credential AccessT1555Credentials from Password Stores
Lateral MovementT1021.004SSH
ExfiltrationT1048.003Alternative Protocol
ImpactT1496Resource Hijacking

Hunt for /proc scanning, Perl one-liners with AES, argv spoofing, or rsync over odd transports. Block IOCs. Use behavioral tools for memory execs and GPU spikes.

Patch kernels, limit SSH, and watch clouds for RustScan/spirit. ShadowHS shows Linux threats evolving to operator tools. Stay vigilant.

Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google

Varshini
Varshini
Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies..

Trending News

Related Stories