Here are the results of my analysis of TrickBot Banking Trojan mcconfs shared up to the end of the week commencing 13th August 2018. This analysis covers 2,576 unique C2 IP addresses used in 542 mcconfs across 299 versions, with highest versions of A-1000247, B-1000068, and C-1000198.
Since its first use from approximately 19th October 2016, TrickBot has frequently issued new versions of its XML configuration file, mcconf. Originally there was a single chain of config versions which started at 1000002. (There may have been a 1000001 but it is not been shared publicly.) I refer to this original sequence as iteration A. On 16th November 2017 TrickBot mcconfs were issued for older version numbers than the current iteration A configs, but with different command and control (C2) servers to those in that version’s iteration A config. This indicated the start of iteration B, a new sequence of configs believed to be for a second botnet. While there is a small amount of overlap of the C2 servers between iteration A and iteration B, the majority of C2 servers are specific to an iteration (hence botnet). The iteration B botnet stopped receiving new configs on 28th February 2018. As of 28th March 2018 another iteration, iteration C, was started, once again repeating previously used version numbers but with different C2 server lists. Victim hosts in that third botnet were merged into the iteration A botnet as of 23rd May 2018.
This week’s analysis:
Figure 1 shows the rate of discovery of TrickBot versions in the wild, based on shared mcconfs. The flatter the line, the more frequently versions are discovered. Ignore the two long, almost vertical lines which coincide with the switch from one iteration to the next. These vertical lines are purely an artefact of graphing the data in a single series. (Note: Full size versions of all the graphs and tables are available via the link at the end of this post.)
There were two new config versions discovered in the week commencing 6th August 2018, (A-1000246 and A-1000247), three the week before, and four the week before that. All new config versions extend the iteration A botnet, taking this to 1000247. The secondary, iteration B, botnet was not extended in the discovered versions and remains unchanged since 1000068 of 28th February 2018. The tertiary, iteration C, botnet was merged into the iteration A botnet on 23rd May 2018.
|Figure 1 - TrickBot Version Discovery Dates|
The following graphs (Figures 2 and 3) show the number of server entries using ports:
- 443 (HTTPS);
- 444 (Simple Network Paging Protocol) – INACTIVE;
- 445 (IBM AS Server Mapper) – INACTIVE;
- 449 (Cray Network Semaphore Server); and
- 451 (SMB) – INACTIVE.
Figure 2 is for iteration A configs, Figure 3 is for previous iteration B and C configs. Since mid April 2018, the length of the C2 server lists has stabilised significantly in iteration A configs, with between 25 and 33 server entries. Between April 2018 and late June 2018, the percentage of :443 (HTTPS) servers in those lists increased (albeit with intermittent, temporary drops), from 1/3rd to almost all of the list. During June and July 2018, the number of server entries and the proportion of :443 (HTTPS) servers saw little fluctuation. As of August 2018, the proportion of :443 (HTTPS) servers has fallen somewhat.
|Figure 2 - TrickBot SRV Port Usage (Iteration A)|
|Figure 3 - TrickBot SRV Port Usage (Iterations B and C)|
Figure 4 shows the top 25 servers (of 2,597 unique) used within the 299 versions. Server 158[.]58[.]131[.]54[:]443 moved into first place and 182[.]253[.]210[.]130[:]449, currently in fourth place, also continued to be used. 70[.]79[.]178[.]120[:]449, which entered the top 25 last week, moved up slightly and another new server 118[.]200[.]151[.]113[:]443 entered the list.
|Figure 4 - TrickBot Top 25 SRV|
Figure 5 shows the number of mcconfs per campaign identifier for identifiers seen more than once.
|Figure 5 - TrickBot Campaign mcconf Counts (where seen more than once)|
42 unique C2 servers were used in the mcconfs from this week, of which 22 (52%) were new. Figure 6 shows the proportional server count of mcconfs shared each week (when compared to the greatest count in a week), along with the percentage churn of the servers. The linear churn trend line (dotted) highlights that the churn percentage has been reducing since December 2017, with an increasing number of servers being re-used from one week to the next. However, the 8 week rolling average (dashed) shows that this long-term trend recently levelled off.
The reduced churn percentage, regular number of unique C2 servers used per week, stabilised length of mcconf server list, and stable percentage of :443 servers through the last few months all demonstrate the increased maturity and stability of TrickBot infrastructure management.
|Figure 6 - TrickBot Weekly Advertised SRV Count and Churn|
The BGP prefix registrations for the C2 server IP addresses continue to be heavily biased to ASN routed through RU (and so Figure 7’s Y-axis is cut short to allow clearer viewing of other country counts). The new servers’ IP addresses are associated with ASN routed to: 6xRU, 3xUS, 2xIN, 1xAU, 1xBR, 1xBW, 1xCA, 1xFR, 1xGB, 1xHU, 1xLU, 1xNL, 1xUA, and 1xZA.
|Figure 7 - TrickBot SRV IP Address BGP Prefix Country Codes|
Figure 8 shows the geographical location of 39 (those with location data) of 39 (scanned by Shodan) of the 42 C2 server IP addresses used in the analysed configs.
According to Shodan’s most recent data:
- 10 are Ubiquiti devices and eight are MikroTik devices.
- 15 are running OpenSSH, 11 are running nginx, 8 are running Dropbear SSH, three are running Squid HTTP proxy, two are running uc-httpd, one is running IIS, one is running Minecraft, and one is running VNC.
|Figure 8 - TrickBot C2 Server IP Locations For New Configs|
Figure 9 shows the top 25 BGP prefixes used by TrickBot for C2 servers.
|Figure 9 - TrickBot Top 25 BGP Prefixes|
Full size versions of the figures included in this post are available here
. I also have a page
documenting the various discrepancies identified in TrickBot’s mcconf files.
In the past I have produced full breakdowns of shared TrickBot campaign ‘gtag’ (group tags) values and BGP allocations of C2 servers’ IP addresses by TrickBot version. I have stopped producing these as I’m unsure they offer considerable benefit. However, if you found these particularly useful please contact me to let me know.
Thanks to hasherezade
, and mesa_matt
This post was made by @EscInSecurity
and first appeared on https://escinsecurity.blogspot.com/
Article Link: https://escinsecurity.blogspot.com/2018/09/weekly-trickbot-analysis-end-of-wc-13.html