Good day to you!

Khoroshiy den' dlya tebya!

The other day, I got this cryptic email. It read:

From: Wayne Millbrand <waynem@icon.co.za>
Date: 03/27/2017 2:23 PM (GMT-05:00)
To: ***
Subject: ***

Good day to you!

I have a rather delicate issue, which touches directly to you. Don’t be surprised how do I learned about you! The fact is that I have got already a second letter from the person, I do not know which asserts that you are fraud involved. He insists, that you forced him transfer funds on your PayPal account under fictional reason. However,with this information he pointed out your private data up to address:

First Last Name
Street Address
Town
State (with capitalization error)
Zip Code

Now he is collecting information and planing to contact the police. I advise you to view the information that he sent to me. I have attached Fine.doc with a copy of all of his messages.

Document was password-protected – 4299
Please explain to me what’s happening.  I hope that all of this is a silly misunderstanding.

Best regards,

Wayne Millbrand

Based on the fake email address and the tell-tale Anguished English, I concluded that this was just another phish.

I usually delete these emails promptly, but this one had an interesting component to it: it came with a password protected MS Word document. This is somewhat unusual because they typically expect you to just launch the attachment and activate the payload immediately.

So it appears that the attack strategy was to:

  • Send a threatening email
  • Add some publicly available information about the recipient to make it look genuine
  • Encrypt the document in order to hide the payload from an anti-virus scanner
  • Provide the password in the email to allow the user to open and decrypt the file
  • Activate the payload in the MS Word document and infect the user’s machine
  • Inside the encrypted Word document, I found the following API declarations, variable names, and this code:

    Shell32.dll   ShellExecuteA
    Kernel32     GetTempPathA
    Kernel32     GetTempFileNameA
    URLMon”     URLDownloadToFileA

    Dim wyqud As String
    Dim zdwie As Long
    Dim rufhd As Long
    Dim bldos As Integer
    Dim mufid () As Byte
    Dim kmvbf As Long
    Dim dfety As Long
    Dim bvjwi As Long
    Dim wbdys As Long
    Dim dvywi (256) As Byte
    Dim wdals As Long
    Dim dwiqh As Long

    API Declarations and Variables
    Yaacov Apelbaum-Document OpenYaacov Apelbaum-Functions

    This seems to be a variation on an old theme where as soon as the user opens the file, the routine executes a URL file download from one of these two backup sources:

    h t t p://adenzia.ch/_vti_cnf/bug.gif
    h t t p://kingofstreets.de/class/meq.gif

    The macro is quite sophisticated, it can even prompt the user to disable their firewall if the download fails. Both GIFs—despite having an appropriate header block and some image content bytes—actually carry the encoded malware.

    The macro uses a subroutine to extract the executable binary from the downloaded GIF. It stores the binary in a temp file, appends an “exe” extension to it, and then using the Explorer function ShellExecuteA, executes it in order to install additional malware. In this case, it was ransomware that encrypted the Documents folder.

    Yaacov Apelbaum-Ransomware e
    Image 1: The installed ransomware in action

    Interestingly, the first compromised URL used by the malware was website that belongs to Adenzia.ch, a Swiss accounting and corporate services firm that ironically advertises itself as providing “Privacy and secure Data storage” and:

      – Accounting services

      – Secure financial services

      – Data entry from paper to digital

      – Scanning paper data to digital

      – Archiving data anonymously

    Adenzia.ch 2

    Adenzia

    Image 2: The before and after the breach Adenzia.ch websites

     

    Mafia Scripts
    Image 3: The Kingofstreets.de website

    Another noteworthy strategy is that both, the repurposed Swiss Adenzia.ch financial site as well as the second German kingofstreets.de gaming site required a login. This provides an additional layer of security by preventing internet security scanners from tracking down the payload by trying to follow a link to the malware.

    From the variable naming convention and the language of the email itself, it seems that the writer is non native English speaker. The metadata from the Word document further supports this and suggest a strong link to a Russian origin. First, the author’s name was preserved as виньда (Vinda) and the company name came up as: SPecialiST RePack. 

    SPecialiST RePack Metadata

    SPecialiST RePack is a Russian digital publisher that is used for repackaging software.  According to Emsisoft malware database, they are a source of a large number of infected files and products.

    SPecialiST RePack

    SPecialiST RePack infected content
    As far as the unfortunate Adenzia.ch site, it seems that it was breached in the past few months as the Wayback Machine still shows them operational on October 4, 2016.

    I’ve tried to contact Adenzia and give them heads up that they need to have a look at their network. As of this date, I haven’t heard back from them. This could be an indication that either the site was a front for malware distribution from the get go or else it is no longer in business and has been abandoned.  

    © Copyright 2017 Yaacov Apelbaum, All Rights Reserved.

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out /  Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )

    w

    Connecting to %s