Unpacking the Use of Steganography in Recent Malware Attacks – ANY.RUN’s Cybersecurity Blog

The article examines how steganography is being revived in recent malware campaigns to hide payloads inside benign files like images, and demonstrates a hands-on analysis using ANY.RUN and CyberChef to extract and inspect hidden code. It covers phishing-based delivery, multi-stage payloads, and persistence techniques that bypass common defenses. Hashtags: #steganography #ANYRUN #CyberChef #AgentTesla #AsyncRAT #NjRAT #Dtloader #Remcos

Keypoints

  • Steganography is resurging as a malware delivery method, with hidden code embedded in images and other files to evade defenses.
  • Attackers use varied phishing approaches (attachments or links) to establish initial access, sometimes posing as legitimate organizations.
  • Payload delivery can exploit CVE-2017-11882 or rely on downloaded archives leading to execution via Office or script-based loaders.
  • VBS scripts downloaded by PowerShell are heavily obfuscated and executed via wscript, enabling stealthy progression.
  • Persistence is achieved through startup mechanisms (Igfx.lnk) and scheduled or reboot-based execution (Igfx.vbs).
  • Malicious obfuscation and base64 embedding within an image illustrate Obfuscated Files or Information: Command and Steganography techniques.
  • Final payloads seen include AgentTesla, AsyncRAT, NjRAT, Dtloader, and Remcos, delivered via a Regasm-based proxy execution chain.

MITRE Techniques

  • [T1566.001] Spearphishing Attachment – “phishing emails that either has an attachment containing a malicious document or a link to download a payload.”
  • [T1566.002] Spearphishing Link – “phishing email poses as a Colombian government organization” and “redirects to ydray[.]com, where an archive is downloaded.”
  • [T1203] Exploitation for Client Execution – “The exploit CVE-2017-11882 is leveraged to download the payload.”
  • [T1059.005] Command and Scripting Interpreter: Visual Basic – “The VBS script is responsible for fetching the next stage of the attack. It is executed using wscript, aligning with the MITRE ATT&CK technique Command and Scripting Interpreter: Visual Basic (T1059.005).”
  • [T1027.010] Obfuscated Files or Information: Command – “The PowerShell command includes obfuscation and flags for stealthy execution, indicating malicious intent.”
  • [T1027.003] Obfuscated Files or Information: Steganography – “Right after this flag, we see the text “TVq,” which is the base64 encoded MZ signature for executable files. This confirms the use of steganography.”
  • [T1218.009] System Binary Proxy Execution: Regasm – “the final stage, the malicious code is executed via proxy through Regasm.”
  • [T1547.001] Boot or Logon Autostart Execution: Startup Folder – “Igfx.lnk file is created and placed in the startup directory. … OS reboot, a PowerShell process will execute the Igfx.vbs file from the Temp directory.”

Indicators of Compromise

  • [Domain] ydray[.]com – phishing link leading to an archive download during initial access
  • [Domain] uploaddeimagens.com.br – host for image-containing payload delivery
  • [IP] 112.213.101.146:7700 – network address referenced in the campaign
  • [File] 9deec296-da80-4742-b491-0cce95066735 – analyzed file name
  • [MD5] 90F7A60FF7DBEE279B77F1CD12852AB5
  • [SHA1] E410EAD2770CE196EDF9386995CA3B65BA2601BA
  • [SHA256] 82BA07E40FF6DDAC997318C88FC04F0940B4FDD16979FE7F2F37C2CF80800F0C
  • [SSDEEP] 768:uO91WZoMDrFPKcdgeX52VRkWsKCWsKKWsKSWsKFcgtRbyNDNwWsKuWsKumRtCAdE:uO7WZdpEgWqWSWaWDWGWmDA1Xu1
  • [File] Igfx.lnk – created and placed in the startup directory for persistence
  • [File] Igfx.vbs – executed on reboot from Temp directory

Read more: https://any.run/cybersecurity-blog/steganography-in-malware-attacks/