RANSOM_RUBY.A

 Analysis by: John Kevin Sanchez

 ALIASES:

Trojan.Ruby.Filecoder (Ikarus), Ruby.Encoder.1 (DrWeb), Ruby/Filecoder.A (ESET-NOD32)

 PLATFORM:

Linux

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:
 INFORMATION EXPOSURE:

  • Threat Type: Ransomware

  • Destructiveness: No

  • Encrypted: No

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Dropped by other malware

This Ransomware arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

It encrypts files with specific file extensions.

  TECHNICAL DETAILS

File Size:

2,905 bytes

File Type:

Script

Memory Resident:

Yes

Initial Samples Received Date:

24 Jun 2017

Payload:

Drops files, Encrypts files

Arrival Details

This Ransomware arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

Installation

This Ransomware drops the following files:

  • /client_id.txt

Ransomware Routine

This Ransomware encrypts files with the following extensions:

  • db
  • csv
  • sql
  • xml
  • cer
  • cgi
  • htm
  • html
  • xhtml
  • css
  • js
  • php
  • dat
  • log
  • gif
  • jpg
  • jpeg
  • png
  • svg
  • tif
  • tiff
  • raw
  • ps
  • psd
  • pps
  • ppt
  • pptx
  • xlr
  • xls
  • xlsx
  • doc
  • docx
  • pdf
  • rtf
  • txt
  • wks
  • wps
  • py
  • jar
  • c
  • class
  • cpp
  • cs
  • h
  • swift
  • mp3
  • wav
  • avi
  • mp4
  • mkv
  • zip
  • tar.gz
  • tar

It appends the following extension to the file name of the encrypted files:

  • .locked

NOTES:

It should generate randomly generated IP address and send to it the IV and keys but the code is incomplete.

The ransomware would sleep for 24 hours if randomly generated IP address cannot be pinged.

The list of the files to be encrypted is located in /home/dipper/Desktop/text.rtf, but this malware would not write any list of files since the code is incomplete.

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

13.498.08

FIRST VSAPI PATTERN DATE:

24 Jun 2017

VSAPI OPR PATTERN File:

13.499.00

VSAPI OPR PATTERN Date:

25 Jun 2017

Step 1

Scan your computer with your Trend Micro product to delete files detected as RANSOM_RUBY.A. If the detected files have already been cleaned, deleted, or quarantined by your Trend Micro product, no further step is required. You may opt to simply delete the quarantined files. Please check the following Trend Micro Support pages for more information:

Step 2

Restore encrypted files from backup.

NOTES:

Please delete /client_id.txt and /home/dipper/Desktop/text.rtf.


Did this description help? Tell us how we did.