Fbot, a botnet based on Mirai, has been very active ever sine we first blogged about it here, we have seen this botnet using multiple 0 days before(some of them we have not disclosed yet) and it has been targeting various IoT devices, now, it is aiming a new category, traffic and transportation smart devices.
On February 20, 2021, the 360Netlab Threat Detection System captured attackers were using a remote command execution vulnerability (CVE-2020-9020) in the Vantage Velocity product from Iteris to spread Fbot botnet samples.
According to Wikipedia, Iteris, Inc. provides intelligent mobile infrastructure management services and produces sensors and other devices that record and predict traffic conditions.
Based on the AIrLink GX450 Mobile Gateway production information found on the affected devices, we speculate that the affected devices are roadside monitoring device.
CVE-2020-9020 Vulnerability Analysis
Through the 360 FirmwareTotal system, we verified and analyzed the CVE-2020-9020 vulnerability, here is the brief.
Vantage Velocity product synchronizes With NTP Server, where user can set the specified ntp server address.
timeconfig.pyscript does not filter the
htmlNtpServervariable after accepting a user Web request, i.e., it is spliced into the shell variable format
"ntpserver=" + form["htmlNtpServer"].value.strip()and written to the
The command execution vulnerability is triggered when the
timeconfig.pyscript calls the shell script
/root/ntpconfig, which reads the
/root/timeparamfile to initialize the variable ntpserver.
Vulnerability impact scope
Fbot is a botnet based on Mirai, with 2 main changes
- Encryption algorithm
- Registration packets, heartbeat packets
The basic information of this sample is shown below:
ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, stripped
It has no added features in itself, the main function is
- DDoS attack
- Telnet scanning
The following section will briefly analyze around the above functions.
First Fbot establishes a connection with the hardcoded C2 (126.96.36.199:5684) via the following code snippet.
The information in the registration packet is used to verify the legal identity of the BOT, and the format of the registration packet is parsed as shown below.
Main field parsing，others can be 0 —————————————————————————————————————————— 02 --->type，register package 00 42 00 33 00 63 01 c8 02 fc 00 49 --->hardcoded，authentication 00 07 --->length of group string 75 6e 6b 6e 6f 77 6e ---->group string，"unknown" ——————————————————————————————————————————
After sending the registration packet the Bot starts to wait for C2 to issue commands, the first byte of the command packet specifies the command type.
0x00， heartbeat command code
The format of the heartbeat packet is parsed as follows
Main field parsing，others can be 0 —————————————————————————————————————————— 00 --->type，heartbeat package 1b 37 03 f3 25 e3 19 40 1e 68 1a d2 --->hardcoded ——————————————————————————————————————————
0x01，DDoS attack command code
The format of the attack packet is parsed as follows
Main field parsing，others can be 0 —————————————————————————————————————————— 01 --->type，attack package 01 --->attack type 00 3c --->time (sec) 01 --->number of target 67 5f dd bc 00 20 --->target/mask,188.8.131.52/32 02 --->number of flag 02 --->flag type, attack package length 00 04 --->flag length 31 34 36 30 --->flag data，1460 01 --->flag type, port 00 02 --->flag length 35 33 --->flag data，53 ——————————————————————————————————————————
Telnet scan & propagation
From the above code snippet, it can be seen that its scanning traffic has 2 characteristics
- The number of scanned 23 ports is about twice as many as 26 ports
- The sequence number in the tcp header is equal to the target address in the ip header
When a port is detected as open, login is attempted using a hard-coded credential list. Once successful, the IP, port, account, password, etc. are sent back to Reporter (184.108.40.206:774) via the following code snippet.
Finally, the Fbot sample is implanted to the device either with network download(see below) or ECHO, and the successful implantation information is sent back to Reporter.
In the above figure, the downloader with file offset 0x1D794 is used as an example.
ELF 32-bit LSB executable, ARM, version 1 (ARM), statically linked, stripped
We recommend Vantage Velocity users to check and update the firmware system in a timely manner.
We recommend that Vantage Velocity users set complex login passwords for management interfaces such as Web and SSH.
We recommend that readers monitor and block relevant IPs and URLs mentioned in this blog.
Readers are always welcomed to reach us on twitter, or email to netlab at 360
220.127.116.11 United States ASN36352 AS-COLOCROSSING