Active since 2016, Trickbot is one of the most prevalent modular banking trojans. The botnet's modules carry out objectives such as credential harvesting, propagating via the network, web injection and others. Being an actively developed botnet, we often come across updated modules and in some cases new tools that are added as part of its arsenal.
The Good There's a tremendous amount of value in Logic Pro X for $199, and the 10.1 update adds more drummers, improves some plug-ins, and tweaks session editing for finer control. It's easy to run. Tilt Turn Windows; Logic Doors. Swing Door; Lift & Slide Door; Resources. Dimensions; Performance; Section Details; Architectural Data. Logic Remote Touch and flow. Logic Remote lets you use your iPhone or iPad to control Logic Pro on your Mac. Use Multi-Touch gestures to play software instruments, mix tracks, and control features like Live Loops and Remix FX from anywhere in the room.
Recently we have discovered a relatively new module that goes by the name masrv
. The module is a network scanner that incorporates the Masscan open-source tool. Additionally, the module contains an unreferenced Anchor C2 communication function and a list of hardcoded IPs which have previously been associated with Anchor and Bazar 12.
We believe this module is used as one of Trickbot's network reconnaissance tools to gather more information about the victim's network.
The module arrives as either a 32-bit or 64-bit DLL, depending on the Windows OS version of the victim machine the bot is running on. Both DLLs we observed are debug builds and log their execution into standard output.
As with other Trickbot modules, the module is executed via its export functions Start
and Control
3.
Commands for the Module's C2
The module makes requests to the C2 to receive information that it requires to pass as parameters to Masscan.
Command | HTTP Method | Description |
---|---|---|
81 | POST | send results |
freq | GET | Get frequency for running Masscan |
domains | GET | Get a List of IP address ranges followed by port range |
over | GET | Signal to the C2 that scan is complete |
rate | GET | Get rate value for transmitting packets |
npcap.exe | GET | Get Nmap's packet sniffing library installer |
The URI construction for the GET requests follows this format:
gtag
- The Campaign ID that is seen in the config4 present in the main bot.botID
- The Bot ID created in the victim machine by the main bot.command_string
- One of the string commands from the above table.
At the time of researching this module, we were unable to pull down the config associated with masrv
. So, in order to observe a dynamic run, we have implemented a mock server on localhost
at port 8080
, to be able to feed responses back to the module. Below is an example of one of the GET request being made for the command freq
.
Information Gathering
At first, the module makes GET requests for information from the commands freq
, domains
and rate
. If successful, the module executes Masscan's main function routine which is compiled within the DLL. Below we can see the execution result of the log from standard output. The date mentioned in the logs is that of when the module was compiled.
The Masscan tool has its own network stack and doesn't rely on that of the OS. In order for it to be able to retrieve the results, Masscan requires a low-level packet filter and on a Windows OS it attempts to load NPcapPacket.dll
. If Packet.dll
doesn't exist, then the module makes a request to download the NPcap
executable from the C2. NPcap
is silently installed on the machine by passing the parameter /S
. It gets executed by invoking CreateProcessA
or ShellExecuteExA
(if the first API is unsuccessful).
The Masscan tool also attempts to initialize the network adapter. If the tool fails to detect any interface, a module-specific function is called that tries to get a MAC address from the ARP table, to pass to Masscan as --router-mac
. For each ARP entry in the MIB_IPNETTABLE
5, the module finds the corresponding index of the IPv4 entry in the MIB_IPADDRTABLE
6. It leverages the APIs GetIpNetTable
and GetIpAddrTable
respectively to retrieve this information. If successful, it gets the dotted-decimal format of the IPv4 address and logs the results of the ping
command that is run on the target 8.8.8.8
from that IPv4 address. If the ping ran successfully, the module gathers the ARP type information and logs the ARP entry of the IPv4 address. Then it queries for the MAC address from the MIB_IPNETROW
entry. Below is an example of the ping
command.
The module sends results from the Masscan run if it has discovered open ports on any of the IP ranges that were provided. Results are aggregated by calling a module-specific function from the Masscan function output_report_status
which adds discovered ports to a global string. These results are posted back (via the 81
message) regularly, with the frequency, in seconds, determined by the freq
value queried at the beginning.
Anchor/Bazar reference
Both the 32-bit and 64-bit DLLs have an unreferenced function that share similarities to Anchor's C2 communication subroutine. It is not uncommon for this actor to be seen sharing code between its toolset. Additionally, this function references a list of hardcoded IPs from the binary which have previously been associated with both Anchor and Bazar.
This new module is an indication of the actor's continued investment in improving their network reconnaissance toolkit, even after recent disruption efforts7. We provide some IOCs and a YARA rule related to this module below.
PDB paths:
Module Name | SHA256 | Description |
---|---|---|
masrvDll32 | 2c29de91a5be3bffafb521e04b88819d23c6f71843c8f2d54516ec2afefd24c6 | 32-bit DLL |
masrvDll64 | e1c5a377450d04372bfe9d943d322fbdd53c274c3772836eb044fd2a4b08a870 | 64-bit DLL |
Recent Posts
- Trickbot masrv Module, 01 Feb, 2021
- Faster Poly1305 key multicollisions, 13 Jan, 2021
- Automated string de-gobfuscation, 02 Dec, 2020
- Another look at two Linux KASLR patches, 24 Mar, 2020
- RDP to RCE: When Fragmentation Goes Wrong, 18 Jan, 2020
Logic Free Download Windows 7
Categories
- malware (11)
- crypto (3)
- linux (1)
- program-analysis (1)
- reverse-engineering (1)
- vulnerability (1)
Tags
Download Logic For Windows 10
- emotet (4)
- wannacry (3)
- exploit (2)
- bluekeep (1)
- coinmining (1)
- cve-2020-0609 (1)
- cve-2020-0610 (1)
- petya (1)
- phishing (1)
- ransomware (1)