Malware of the Day – Backoff
What is Malware of the Day?
Malware of the Day: BACKOFF
AKA: Backoff POS Malware
Traffic Type: Crimeware
Connection Type: Reverse HTTP
C2 Platform: Cobalt Strike
Host Payload Delivery Method: Powershell one-liner
Target Host/Victim: 192.168.99.55 – Windows 10 x64
C2 Server: 184.108.40.206
Beacon Timing: 30s
Our focus is on identifying and detecting network beaconing behavior. We are using AI-Hunter/RITA as our network threat and C2/beacon detection platform to visualize the network traffic generated from running the Backoff malware replication. We encourage you to download and use the PCAP files included in the next section to analyze them independently using your preferred threat hunt platform to test your detection capabilities.
This week we are looking at Backoff, a malware that emerged in 2013 with a primary mission target of point of sale (POS) systems. The methods and communication forms used by the Backoff malware continue to be common methods observed in many strains and adaptations of malware today.
The above screenshot is taken of the AI-Hunter Beacons module from a 24-hour traffic capture. The Backoff traffic has been detected as a very strong beacon signal of 95.10%.
In the green highlighted box is the beacon timing showing the number of connections of each interval of time in seconds. Here we can see the majority of the connection timing distributions are between 27 and 30 second intervals. We have multiple strong signals that spread out across this range.
Viewing the connections timing in a graph like this we can observe the jitter that has been introduced into the timing of a deviation of 10% from 30 seconds. This amount of jitter may spoof most beacon detection tools that are looking for very rigid timing patterns. Note we have some outliers at 9-10 seconds, however, the consistent clusters of connection timings between 27 and 30 seconds are evidence of programmed machine communications and our threat hunt platform has picked this up.
In the red highlighted box above are the number of connections per hour (each blue block is a one-hour time frame). The consistency of the number of connections per hour is a tell-tale indicator of non-human behavior. Notice the relative flatness and uniformity of the hourly histogram. Normal users’ traffic will be much more random in nature and would display greater peaks and valleys in the graph over time.
Switching to the connections data size view (shown in the green highlighted box above), we can immediately see the majority of communications are the same data size. For this sample, we have a total of 9993 connections, 8412 of them with 669 byte payloads. This is obviously uniform and structured communications of a similar character length or transfer size and is a solid representation of a potential C2 channel “heartbeat” of checking in for marching orders or to maintain persistence.
Normal users’ network communications will vary greatly in data size. The data size analysis is confirming these are programmed communications to be investigated.
A similar beacon analysis can be performed using our open-source framework for network traffic analysis, RITA (Real Intelligence Threat Analytics). RITA detected the Backoff sample traffic as a very strong threat, giving it a score of 0.951 (95.1% beacon/threat score). The network RITA is analyzing here is a malware lab and the Backoff sample is currently the #1 threat. Definitely a threat to be investigated.
Because… PCAPs, or it didn’t happen. 😊
The AI-Hunter and RITA results above are a 24-hour observation and analysis from Zeek logs running in a lab 24/7. The following PCAP files are packet captures taken from the same lab environment over a one-hour time frame and a 24-hour time frame. The files were generated using Wireshark from the target host and include normal Windows OS traffic and normal network broadcast traffic. They have not been edited. The PCAPs are safe, standard PCAP files and do not include any actual malware.
Backoff 1 Hour Capture
backoff_1hr.pcap (served by Dropbox)
Size: 1.38 MB
MD5 Checksum: 360fdd42ad66ef5b02168235befe89de
Backoff 24 Hour Capture
backoff_24hr.pcap (served by Dropbox)
Size: 43.98 MB
MD5 Checksum: 164c9cd540d7f09a7ce0492c2d1fa7c8
Want to talk about this or anything else concerning threat hunting? Want to share how good (or not so good) other detection tools were able to detect this Backoff sample?
You are welcome to join our Discord server titled “Threat Hunter Community” to discuss topics surrounding threat hunting. We invite you to join our server here.
Until the next!
Interested in threat hunting tools? Check out AI-Hunter
Active Countermeasures is passionate about providing quality, educational content for the Infosec and Threat Hunting community. We appreciate your feedback so we can keep providing the type of content the community wants to see. Please feel free to Email Us with your ideas!