Formbook is currently one of the most prevalent malware. It has been active for more than 5 years already. Check Point reported in December 2020 that Formbook affected 4% of organizations worldwide and made it to the top 3 list of the most prevalent malware.
According to AnyRun Malware Trends Tracker, Formbook occupies the 4th place in a list of the most prevalent malware families in 2020.
Figure 1 – Formbook is in 4th place among the most prevalent malware families of the past 12 months (June 2020 – June 2021) – AnyRun.
Formbook is an Info Stealer that harvests credentials from various web browsers, collects screenshots, monitors and logs keystrokes, and can download and execute files according to the orders received from Command-and-Control (C&C) servers. The code is written in C with assembly inserts and contains a number of tricks to make it harder for researchers to analyze it.
As stated by its author, Formbook was intended to be “a simple keylogger.” However, customers immediately saw its potential as a universal tool for use in broad spam campaigns that target organizations all over the world. As this potential became a reality, the author stopped sales of the product without giving detailed explanations about the motives behind this decision.
A short time later, Formbook was reborn as XLoader, and the malware is now available for sale in the underground forum by a different avatar. XLoader opened up several new opportunities, with the ability to operate in the macOS being one of the most exciting. XLoader’s story is on-going, and judging by the popularity of the malware, shows no signs of ending any time soon.
Let’s take a look at how it all began.
A post offering the earliest version of Formbook (what we could call a beta-version) for sale appeared on the underground forum on February 13, 2016.
Figure 2 – ng-Coder offering Formbook malware for sale.
Although the first sales thread appeared on February 13, 2016, Formbook samples were seen earlier as evidenced by AnyRun:
Figure 3 – First Formbook sample was seen on January 1, 2016, according to AnyRun.
The Formbook’s seller was hidden under “ng-Coder” avatar.
Note: we assume ng-Coder is a male, though we have no direct evidence, and will refer to the avatar as “he” throughout this article.
Profile
e-mail: [email protected] Skype: Ng.Coder skills: * strong c\c++ knowledge * strong assembly x86\x64 knowledge
ng-Coder joined the underground hack forum on October 27, 2015. According to his own statement on the forum, he was selling exploits at that time. We cannot point to ng-Coder’s exact country of origin, but judging by his phrasing, English is likely not his native language.
A day before creating the sales thread we saw above, ng-Coder requested a review of his product from an experienced member of the community.
Figure 4 – Formbook review requested by ng-Coder.
On May 9, 2016, three months later after publishing the first sales thread, Formbook v.0.3 was offered for sale.
Figure 5 – Formbook v.0.3 icon.
Formbook was advertised as a product supporting multiple features:
Figure 6 – Formbook v.0.3 features.
What attracted our attention here is a strange description including the phrase “Balloon Executable” and the acronyms MPIE and MEE. These terms, which do not exist in the cyber community, were used by ng-Coder to describe how Formbook operates, i.e., uses position-independent code (shellcode) to inject the malware into a legitimate system process and initiate the shellcode execution.
Other features listed include network traffic sniffing, keylogging, clipboard monitoring, and password extraction for almost one hundred applications including browsers, messengers, FTP and email clients.
The sales pitch was a combined model, in which a customer could choose where to host the panel: on the host provided by the seller (thus using a “Malware-as-a-Service” scheme) or the customer’s own machine (direct acquiring). If the latter was selected, the author also provided the panel source code along with a pre-built binary.
Different types of Formbook subscriptions had different prices:
Figure 7 – The Formbook pricing as offered by ng-Coder.
ng-Coder offered a number different source code protectors to support Formbook. For example, Net-Protector is a cross-platform crypting service with the price of $100 for a Windows executable and $200 for a macOS one:
Figure 8 – Net-Protector logo.
ng-Coder was so confident in his creation that he offered to re-crypt an executable for free if it was detected by any AV in the first 30 days after the encryption:
If the crypted PE file gets flagged by AV in less than 30 days after the first crypt, we will recrypt the same crypted SHA1 for free.
Other examples of protectors included shared source codes of crypting solutions on .NET and Delphi.
On October 6, 2017, Formbook sales abruptly stopped. The reason given was its use in spam campaigns:
Figure 9 – ng-Coder indicates that Formbook sales have ceased.
As we stated at the beginning of this article, the Formbook author didn’t want his creation to be used in email campaigns and banned all customers who did so.
On May 27, 2018, ng-Coder made his last public post on the forum where he provided a technical answer to one of the questions not related to Formbook. No further activity from him has been observed since.
As we will see, although Formbook sales were stopped, its activity was continuing. Not only could users who bought the malware to be hosted on their own servers continue to use it, but ng-Coder could make use of Formbook as well.
We found evidence that ng-Coder might have his own plans for his creation. We analyzed the domains linked to the ng-Coder email address “ng2coder@gmail[.com” and discovered that these were used in Formbook configurations for particular campaigns labeled “private”, “list” and “zog”. We found 16 unique C&C URLs inside the Formbook malware that pointed to 13 different sub-campaigns.
http[://www.unlimitedgiveaways.net/zog/hx/ http[://www.unlimitedgiveaways.net/zog/hx69/ http[://www.unlimitedgiveaways.net/zog/ab/ http[://www.socialbumps.net/zog/ct2/ http[://www.alienzouks.com/private/ http[://www.adomax1.com/private/ http[://www.ryandeby.com/private/ http[://www.gfather.net/private/ http[://www.surfpay.website/list/ch/ http[://www.bingo-clicker.site/list/jo/ http[://www.click-bingo.site/list/le/ http[://www.click-bingo.site/list/kv/ http[://www.click-bingo.site/list/mo/ http[://www.jesse-list.info/list/kw/ http[://www.wowtracking.info/list/hx47/ http[://www.wowtracking.info/list/oz/
All the listed domains share common features. They all were registered by the GoDaddy registrar:
Figure 10 – GoDaddy registrar appears in domains’ details.
And they all shared the same details about the person who registered them:
Figure 11 – Details for registering domains as provided by ng-Coder.
According to the LocateFamily site, “Amanda George” was living at the address provided at the time of registering the domains. However, we cannot link this person with ng-Coder avatar.
The Formbook activity didn’t just stop there. For example, in May 2020 we discovered a Formbook sample dropped by GuLoader. It was submitted to VirusTotal in June 2020:
Figure 12 – A Formbook sample dropped in May 2020 by GuLoader.
The campaign name in this sample was “private” and the main domain was registered by ng-Coder (ryandeby[.com).
On February 6, 2020 a new era began: the era of the Formbook successor called XLoader. On this day, XLoader was advertised for sale in one of the underground groups.
Figure 13 – XLoader as advertised in the underground group.
Formbook and XLoader share the same code base, and there are other connections between them as well, as we will see later.
Figure 14 – The seller confirms that Formbook’s code has contributed a lot to the development of XLoader.
On October 20, 2020, XLoader was offered for sale on the same forum which was used for selling Formbook.
Figure 15 – XLoader as advertised on the forum.
Note: XLoader malware for PC and Mac should not be confused with XLoader malware for Android, first discovered in 2019.
One of the most exciting things about the new malware was its ability to operate in the macOS. With approximately 200 million users operating macOS in 2018 (as reported by Apple), this is definitely a promising new market for the malware to enter.
Figure 16 – Mac sales by year, taken from https://www.businessofapps.com/data/apple-statistics/
Note: Apple stopped reporting Mac sales in Q4 2018. All subsequent values are estimates.
The malware now features a more lucrative economic model for the authors as compared to Formbook. Customers may only buy the malware for a limited time and are only able to use a server provided by the seller; no panel sources codes are sold anymore. Thus, a “Malware-as-a-Service” scheme is used. Centralized C&C infrastructure allows the authors to control how the malware is used by the customers.
Figure 17 – xloader announces the decision to stop selling panels and underlines the importance of controlling the customers’ actions.
The pricing for different options is listed in the table below:
Package | Price |
Windows, executable, 1 month | $59 |
Windows, executable, 3 months | $129 |
macOS, Mach-O, 1 month | $49 |
macOS, Mach-O, 3 months | $99 |
XLoader’s seller also released a free Java binder which is intended to create a standalone JAR file uniting Mach-O and exe binaries:
Figure 18 – Interface of the XBinder tool.
Did the new seller also take on duties as the developer and maintainer of this version of the original Formbook malware? We believe this is not the case. A new seller is just a seller, not a developer. There must be someone else behind the curtain to handle the technical part.
Figure 19 – XLoader’s seller states that he is an official seller, not a developer of the malware.
We already saw that ng-Coder wasn’t completely out of the picture, even though he no longer operated publicly. Could he be the one continuing to develop the new malware? Apart from technical similarities, we found evidence of a connection between XLoader’s seller and ng-Coder, namely a message from xloader to ng-Coder saying, “Thank you for the help”:
Figure 20 – xloader saying “thank you” to ng-Coder.
We cannot say for sure if the thanks were for a one-time helping hand or if it was for continuous support.
Another piece of evidence that points at ng-Coder’s continued participation is the statement by XLoader’s seller (posted on December 14, 2020) where he shared his hope that ng-Coder could create a newer cross-platform crypting service:
Figure 21 – xloader sharing the hope about a new crypting service from ng-Coder.
We recap the malware activity timeline and its milestones in the diagram below.
Figure 22 – The activity timeline of both malware versions.
During the lifecycle of Formbook/XLoader malware, a number of impersonators and re-sellers claimed they were the official contacts.
It began 5 years ago when ng-Coder raised a warning not to send a payment to him or anyone impersonating him for the exploit, as he stopped selling exploits in 2016. Note that there were impersonators even before Formbook was first available for sale.
In 2021, the situation hasn’t changed much. For example, there is a site freely accessible from the Internet which offers XLoader for sale, but for a higher price than the malware is sold for in the Darknet:
Figure 23 – A site in the Internet offering XLoader for sale.
The biggest difference is in the 3 months package for macOS, which is $40 higher than the Darknet price.
Another site offers XLoader for $120:
Figure 24 – Another Internet site offering XLoader for sale.
During the 6 months between December 1, 2020 and June 1, 2021, we saw Formbook/XLoader requests from as many as 69 countries, which is more than a third of the total 195 countries recognized in the world today.
The breakdown of victims by country is presented in the diagram below:
Figure 25 – Formbook requests by countries between December 1, 2020 and June 1, 2021.
Victims from the United States constitute more than the half of the victims worldwide.
As we stated previously, according to AnyRun, Formbook is in 4th place among the most prevalent malware families of the last year and in 6th place for all time. This fact implies that there should be quite a lot of Formbook\XLoader campaigns in-the-wild. Indeed, we observed more than 1400 different campaigns of the malware during several years of monitoring its activity.
In the upcoming articles we share the technical details of the malware’s macOS version which reveal how XLoader operates under the hood and help us to understand how the Formbook\XLoader family secured its place in malware top prevalence lists.
We also describe a distinctive feature of the XLoader malware which helps it to fool sandboxes and researchers and keep its real C&C servers hidden. Out of almost 90,000 domains used in network communication by the malware, only 1,300 are the real C&C servers – which constitutes just 1.5% of the total. The other 88,000 domains belong to legitimate sites; however, the malware sends malicious traffic to them as well. This presents security vendors with the dilemma of how to determine which are the real C&C servers and not false-positively identify legitimate sites as malicious.
We also share our methods to correctly analyze the XLoader’s communication with the servers and to identify the real C&C – only one out of all the 64 domains present in any chosen sample.
Stay tuned!
Check Point Provides Zero-Day Protection Across Its Network, Cloud, Users and Access Security Solutions, SandBlast provides the best zero-day protection while reducing security overhead
SandBlast Network Protections:
Trojan.WIN32.Formbook.A Trojan.WIN32.Formbook.B Trojan.WIN32.Formbook.C Trojan.WIN32.Formbook.D Trojan.WIN32.Formbook.E Trojan.WIN32.Formbook.F Trojan.WIN32.Formbook.G Trojan.WIN32.Formbook.H Trojan.WIN32.Formbook.I Trojan.WIN32.Formbook.J Trojan.WIN32.Formbook.K Trojan.WIN32.Formbook.L Trojan.WIN32.Formbook.M Trojan.WIN32.Formbook.N Trojan.WIN32.Formbook.O Trojan.WIN32.Formbook.P Trojan.WIN32.Formbook.Q Trojan.WIN32.Formbook.R
Threat Emulation protections:
Infostealer.Win32.Formbook.C Infostealer.Win32.Formbook.D Infostealer.Win32.Formbook.E Infostealer.Win32.Formbook.gl.F Infostealer.Win32.Formbook.TC Formbook.TC Infostealer.Win32.XLoader.TC XLoader.TC Trojan.Mac.XLoader.B