On Premises Security

Whatta TA: TA505 Ramps Up Activity, Delivers New FlawedGrace Variant

Share with your network!

Key Takeaways 

  • The prominent TA505 has returned to distributing large volumes of malicious emails affecting most industries.
  • New tools include a KiXtart Loader, the MirrorBlast loader, an updated FlawedGrace variant, and updated malicious Excel attachments.
  • One of the region-specific campaigns targeted German-speaking countries, notably Germany and Austria.
  • The campaigns share many similarities with TA505 campaigns from 2019 and 2020.

Overview 

Since early September 2021, Proofpoint researchers are tracking renewed malware campaigns by the financially driven TA505. The campaigns, which are distributed across a wide range of industries, started with low volume email waves that ramped up in late September, resulting in tens to hundreds of thousands of emails.

Many of the campaigns, especially the large volume ones, strongly resemble the historic TA505 activity from 2019 and 2020. The commonalities include similar domain naming conventions, email lures, Excel file lures, and the delivery of the FlawedGrace remote access trojan (RAT). The campaigns also contain some noteworthy, new developments, such as retooled intermediate loader stages scripted in Rebol and KiXtart, which are used instead of the previously popular Get2 downloader. The new downloaders perform similar functionality of reconnaissance and pulling in the next stages. Lastly, there is an updated version of FlawedGrace.

Evolving Campaigns

The initial campaigns observed by Proofpoint in September 2021 were comparatively small in volume, several thousand emails per wave, and delivered malicious Excel attachments. In late September and in early October 2021 this changed, and TA505 began sending higher email volumes, tens to hundreds of thousands, to more industries. Additionally, the actor began leveraging both URL and attachment-based email campaigns and diversified from targeting predominantly North America to also targeting German-speaking countries, including Germany and Austria.

September 2021 Campaigns

The early campaigns identified by Proofpoint in September 2021 were low volume compared to typical TA505 activity, with only several thousand messages per wave. TA505 used more specific lures that did not affect as many industries as the more recent October 2021 campaigns. Example lures included legal, media release, situation report, and health claim themes. These early campaigns also largely focused on targets in North America, such as United States and Canada.

The emails contained an Excel attachment that, when opened and macros enabled, would lead to the download and running of an MSI file. The MSI file in turn would execute an embedded Rebol loader, dubbed by Proofpoint as MirrorBlast.

image-20211015150648-1Figure 1. Email purporting to be from an insurance claims analyst, part of the September 28, 2021 campaign.

image-20211015150648-2Figure 2. The insurance claim Excel attachment, part of the September 28, 2021 campaign.

October 2021 Campaigns 

In late September and throughout October 2021, Proofpoint observed a shift to familiar TA505 tactics, techniques, and procedures (TTPs) that are reminiscent of the actor’s 2019 and 2020 campaigns. An additional intermediary loader scripted in KiXtart was introduced, and the attack chain evolved to the following:

  • An email containing one of the below:
    • Excel attachment
    • HTML attachment that links to the download of an Excel file
    • URL linking to a landing page that redirects to the download of an Excel file
    • URL directly linking to an Excel file
  • The Excel file macros download and run an MSI file
  • The MSI file executes an embedded KiXtart loader
  • The KiXtart loader receives a command from the C&C server to download another MSI file that executes MirrorBlast
  • MirrorBlast then downloads additional Rebol script stagers
  • The follow-on Rebol stagers drop ReflectiveGnome
  • ReflectiveGnome in turn downloads more shellcode, that will then drop and detonate FlawedGrace

The email lures moved away from the detailed lures seen initially in this spate of campaigns. They became more generic, with subjects such as “SECUREFILE,” “SECURE DOCUMENT,” and “You’ve been sent a secure message.” Additionally, the themes and abused brands included COVID-19, DocuSign, insurance, invoices, and Microsoft.

image-20211015150648-3

Figure 3. October 13, 2021 German-language email using a OneDrive shared file lure.

image-20211015150648-4

Figure 4. October 13, 2021 landing page abusing Microsoft and OneDrive branding.

image-20211015150648-5

Figure 5. Excel file used in the October 13, 2021 campaign with a simple green lure.

Similarities to Historic TA505 Activity

There is much similarity between the new and historic TA505 campaigns, starting with the emails.

image-20211015150648-6

Figure 6. The OneDrive shared file email lure used in August 21, 2020 (left) strongly resembles a similar email from October 7, 2021 (right). Note the additional use of a COVID-19 theme in the recent campaign.

The landing pages in historic and current TA505 campaigns contain “IP Logger” links that likely enable TA505 to track the IP addresses of the machines downloading the malicious files. Additionally, TA505 is still mimicking file hosting services in the landing pages.

image-20211015150648-7

Figure 7. The landing page used in a November 21, 2019 campaign is shown on the left, while the landing page used in the October 7, 2021 campaign is shown on the right.

While the Excel macros VBA code in the recent TA505 campaigns is different, some of the Excel graphic lures are similar or identical to those previously used by TA505.

image-20211015150648-8

Figure 8. The Excel sheet lure spoofing Microsoft logos remained identical from September 2, 2020 (Left) to October 6, 2021 (Right).

Domain naming conventions: It is also notable that TA505 has historically used domains that mimic various file hosting service providers and structured them in formats with hyphen separated terms. The domains used in late September 2021 and onward follow this structure.

Code reuse: Proofpoint researchers found code reuse in parts of the delivery chain such as in multiple parts of the landing page (see an example mentioned here).

Excel Macros Analysis

For TA505’s 2021 campaigns to be successful, potential victims must enable macros after opening the malicious Excel files. The code responsible for downloading the next stage MSI file was typically lightly obfuscated with filler characters, string reversing or similar simple functions and hidden in the document Comments, Title, in a Cell or other locations.

image-20211015150648-9

Figure 9. Example Excel macros code.

image-20211015150648-10

Figure 10. The parameters Subject and Comments are stored in the workbook properties.

image-20211015150648-11

Figure 11. Deobfuscated downloader JScript. This pulls the next stage—an MSI file.

Intermediate Loaders 

TA505 now uses multiple intermediate loaders before the delivery of the FlawedGrace RAT. The new loader stages are coded in uncommon scripting languages—Rebol and KiXtart. They appear to serve the same purpose as Get2—a downloader that has been in use by TA505 since 2019 to deliver a variety of secondary payloads. The loaders perform minimal reconnaissance of an infected machine, such as collecting user domain and username information, and download further payloads.

downloads

Figure 12. Attack paths ultimately leading to FlawedGrace.

In the attack chain, the Excel macros download the first MSI file, which executes the first loader, encoded in KiXtart scripting language. The KiXtart interpreter then receives a command from the C&C server to download a follow-on MSI package. Of note, KiXtart loader is not always part of the attack chain. The second MSI package contains multiple files that may have different names, for example, AudioDriver.exe (the Rebol interpreter), AudioDriver.exe.lnk (command that informs .ico execution), and image.ico (the Rebol script). This Rebol script is the second new downloader in the chain, that Proofpoint dubbed MirrorBlast.

image-20211015150649-13

Figure 13. Example of MirrorBlast script, it may be slightly different in different campaigns.

MirrorBlast in turn downloads additional Rebol script stagers that execute simple downloaders, dubbed by Proofpoint as ReflectiveGnome. ReflectiveGnome in turn downloads more shellcode, that will then drop and detonate FlawedGrace.

image-20211015150649-14

Figure 14. Rebol script downloaded by MirrorBlast that drops ReflectiveGnome loader (dwm-x64.exe / dwm-x32.exe).

image-20211015150649-15

Figure 15. ReflectiveGnome loader which executes the next stage as a shellcode.

image-20211015150649-16

Figure 16. This shellcode drops and detonates an updated FlawedGrace.

Updated FlawedGrace RAT

Proofpoint researchers first observed FlawedGrace in November 2017. It is a full-featured RAT written in C++ that can receive the following commands from its C&C via a custom binary protocol on TCP port 443:

  • target_remove
  • target_update
  • target_reboot
  • target_module_load
  • target_module_load_external
  • target_module_unload
  • target_download
  • target_upload
  • target_rdp
  • target_passwords
  • target_servers
  • target_script
  • destroy_os
  • desktop_stat

While Proofpoint researchers are still investigating the updates to this version of FlawedGrace, some notable changes include:

  • Encrypted strings
  • Obfuscated API calls
  • Configuration is now stored as an encrypted resource (initial/default config), then it is stored both in a mapped memory region (current configuration instance) and in the registry (persistence)

Attribution

Proofpoint attributes the campaigns discussed in this blog to TA505 with high confidence. Proofpoint's assessment that TA505 is responsible for this renewed activity is based on the aforementioned similarities between historic TA505 campaigns and this new activity, including, but not limited to, code similarities, domain naming patterns and the use of FlawedGrace, which has been almost exclusively linked to TA505 activity.

Outlook

TA505 is an established threat actor that is financially motivated and known for conducting malicious email campaigns on a previously unprecedented scale. The group regularly changes their TTPs and are considered trendsetters in the world of cybercrime. This threat actor does not limit its target set, and is, in fact, an equal opportunist with the geographies and verticals it chooses to attack. This combined with TA505’s ability to be flexible, focusing on what is the most lucrative and shifting its TTPs as necessary, make the actor a continued threat.

Proofpoint researchers expect TA505 to continue to adjust its operations and methods always with an eye to financial gain. Using intermediate loaders in its attack chain is also likely to become a longer-term technique employed by the threat actor.

 

EmergingThreats Detection Rules

2034012 - ET TROJAN MirrorBlast Checkin (trojan.rules)

2034022 - ET TROJAN MirrorBlast CnC Activity M2 (trojan.rules)

2034023 - ET TROJAN MirrorBlast CnC Activity M3 (trojan.rules)

2034091 - ET TROJAN MirrorBlast KiXtart Downloader Client Request (trojan.rules)

2034110 - ET TROJAN MirrorBlast KiXtart Downloader Server Response (trojan.rules)

2034136 - ET TROJAN MirrorBlast KiXtart Downloader Client Request M2 (trojan.rules)

2034042 - ET TROJAN ReflectiveGnome Download Activity (trojan.rules)

EmergingThreats PRO Detection Rules

2850099 - ETPRO TROJAN FlawedGrace CnC Activity M2 (trojan.rules)

2850098 - ETPRO TROJAN FlawedGrace CnC Activity M1 (trojan.rules)

Indicators of Compromise

IOC

IOC Type

Description

hxxp://139.59.93.223/c[.]php

URL

MirrorBlast C&C

hxxp://menorukis[.]su

URL

MirrorBlast C&C

hxxp://fidufagios[.]com/

URL

MirrorBlast C&C

hxxp://feristoaul[.]com/

URL

MirrorBlast C&C

hxxp://172.105.178.119/install[.]msi

URL

MSI Download

hxxp://207.246.101.153/chrome[.]msi

URL

MSI Download

hxxp://207.246.101.153/setup[.]msi

URL

MSI Download

cdn-wfs-nspod[.]com

Domain

FlawedGrace C&C

hxxps://cdn03664-dl-fileshare[.]com/files/xls/Employee%20Update%20-%20Covid[.]xls

URL

Initial Download

hxxps://cdn-8846-sharepoint-office[.]com/CL09302021_00137[.]xls

URL

Initial Download

hxxps://cdn-8846-sharepoint-office[.]com/COVID19_list[.]xls

URL

Initial Download

hxxps://cdn-8846-sharepoint-office[.]com/FP01102021_001[.]xls

URL

Initial Download

hxxps://dzikic-my-sharepoint[.]com/file/Manulife_policy[.]xls

URL

Initial Download

hxxps://dzikics-my-sharepoint[.]com/file/Employee_Authorization_Form[.]xls

URL

Initial Download

hxxp://141.164.41[.]231/host64_sh[.]bin

URL

MirrorBlast Payload (FlawedGrace)

hxxp://141.164.41[.]231/host32_pic[.]bin

URL

MirrorBlast Payload (FlawedGrace)

hxxp://89.44.197[.]46/host64_sh[.]bin

URL

MirrorBlast Payload (FlawedGrace)

hxxp://89.44.197[.]46/host32_pic[.]bin

URL

MirrorBlast Payload (FlawedGrace)

hxxp://193.42.36[.]110/host64_sh[.]bin

URL

MirrorBlast Payload (FlawedGrace)

hxxp://193.42.36[.]110/host32_pic[.]bin

URL

MirrorBlast Payload (FlawedGrace)

hxxp://5.149.255[.]14/host64_sh[.]bin

URL

MirrorBlast Payload (FlawedGrace)

hxxp://5.149.255[.]14/host32_pic[.]bin

URL

MirrorBlast Payload (FlawedGrace)

hxxp://155.138.205[.]35/?pool

URL

First Stage Kixtart Script Payload

hxxp://45.79.239[.]23/version.php?data=

URL

First Stage Kixtart Script C&C

hxxp://185.202.93[.]201:80/mlp[.]php

URL

First Stage Kixtart Script C&C

hxxp://185.183.96[.]147/?data=

URL

First Stage Kixtart Script C&C

hxxp://185.176.220[.]198/?data=

URL

First Stage Kixtart Script C&C

hxxp://155.138.205[.]35/

URL

Excel MSI Payload

hxxp://95.216.138[.]82/

URL

Excel MSI Payload

hxxp://194.180.174[.]6/

URL

Excel MSI Payload

hxxp://185.10.68[.]235/

URL

Excel MSI Payload

hxxp://185.225.19[.]246/

URL

Excel MSI Payload

hxxp://185.225.19[.]156/

URL

Kixtart Payload (MirrorBlast)

hxxp://192.36.27[.]92/10opd3r_load[.]msi

URL

Kixtart Payload (MirrorBlast)

hxxp://5.188.108[.]40/trehjugdr4et6u[.]msi

URL

Kixtart Payload (MirrorBlast)

Subscribe to the Proofpoint Blog