Skip to content

A Quick Look at ELF Bifrose (Part 1)

Bifrose or Bifrost is a backdoor initially targeting Windows systems with a long history. First identified in the early 2000’s, it is believed a hacking group (likely BlackTech), purchased the source code or gained access to it around 2010, and enhanced the malware for use in its own campaigns.

BlackTech has long targeted both Windows and Unix-based systems with a variety of malicious software, tailoring different malware to each campaign.

It Started With A Tweet

On 24 November, Twitter user @strinsert1Na tweeted that a recent ELF Bifrose sample had been uploaded to VirusTotal.

Figure 1: Tweet courtesy of @strinsert1Na

While the reuse of command and control (C&C) infrastructure is nothing new for BlackTech, the operators have consistently added new features to the backdoor, while seemingly not changing the targets of their attacks.

“udevd-10.138.61.156”

As of the time of writing, the latest Bifrose sample is detected by about half of the vendors on VirusTotal, scoring a 36 out of 64.

Figure2: VirusTotal Results

Although we have a good idea the file in question is an ELF file, running the file command will provide us with confirmation of the file type as well as if the file has been stripped.

Figure 3: Output of file command

Sure enough, the output identifies the executable has been stripped; in other words, the symbols containing human-readable function names have been removed to slow down analysis.

If you’re still unsure the file is stripped, try running readelf -s filename. In this case, no output confirms the file’s symbols have been tampered with.

Running readelf with the “-p” argument on the .comment section will provide the compiler version and development environment.

Figure 4: Output of readelf -p .comment filename

From the above output, we can infer that this sample is likely targeting Red Hat distributions.

Probably one of the best analysis tools, the strings command can assist in identifying the functionality of the executable, as well as indicators (think Windows APIs for PEs, & syscalls for Unix). The output in Figure 5 provides a small snapshot of running strings.

Figure 5: Output of strings

In addition to the hard-coded IP addresses, standard strings indicating first contact with the C&C server, notably unix|, 5.0.0.0|, and what appear to be C&C commands (recvData and send data), are visible in the output.

Additionally, we can see signs of reconnaissance of the infected system, viewing the version and OS release, as well as the kernel version, and the timezone the target is located in.

Bifrose Capabilities

If you don’t have Sysmon for Linux setup in a VM, or aren’t quite ready to upload the sample to a public sandbox, one great option is to utilize strace to run the sample and redirect the output to a separate file.

strace output will include operations such as any network connections or attempts, system calls, file read and write operations, etc., all information that is extremely valuable to understand the program’s behavior.

The command strace -o strace_results.txt ./elf_file is all you need, along with Wireshark, TCPDump, or any other tool that can capture network traffic. Explaining the syscalls identified in the strace output would be an article or two, and I would like to keep this short. If your interested in strace, see the below links section.

Figure 6 and 7 show snippets of interesting system calls Bifrose makes when run.

Figure 6: strace output (1)
strace output (2)

To keep things simple, we’ll use Mandiant’s CAPA tool to get an idea of what Bifrose is up to.

Figure 8: CAPA output

In the next post, I’ll use Cutter to look at some of the capabilities identified in the above image and see if we can map out the execution of Bifrose, to help defenders get an idea of what indicators will assist in identifying a possible intrusion.

Links

https://man7.org/linux/man-pages/man2/syscalls.2.html

https://www.intezer.com/blog/malware-analysis/elf-malware-analysis-101-part-3-advanced-analysis/

https://www.pentesteracademy.com/video?id=881

43 thoughts on “A Quick Look at ELF Bifrose (Part 1)”

  1. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – The Hacker News – Auto Robot Demo

  2. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – MoRENet CSIRT

  3. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – Solar Kat

  4. Pingback: Neue Variante von BIFROSE Linux-Malware nutzt gefälschte VMware-Domäne zur Umgehung März 2024 - Hackarizona

  5. Pingback: BIFROSE su Linux: il Troiano che Spaventa il Web – REMOTE ITALIA

  6. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - The Network Company | Cyber Security | IT Services | Network Security

  7. Pingback: Una nueva variante del malware BIFROSE para Linux utiliza un dominio VMware falso para evadirse marzo 2024 - Hackarizona

  8. Pingback: New BIFROSE Linux Malware Variant Utilizing Misleading VMware Area for Evasion - Seoblogz

  9. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - Tech News

  10. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - SwapUpdate

  11. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - infoaday

  12. Pingback: Kaçış için Yanıltıcı VMware Alanını Kullanan Yeni BIFROSE Linux Kötü Amaçlı Yazılım Varyantı - Dünyadan Güncel Teknoloji Haberleri | Teknomers

  13. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - Vived Solutions Ltd

  14. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - Shackle Media

  15. Pingback: New BIFROSE Linux malware variant that uses deceptive VMware domain for evasion

  16. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - Cyber Defense Advisors

  17. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – Tech Logix Blogs

  18. Pingback: Nueva variante de malware BIFROSE para Linux que utiliza un dominio engañoso de VMware para la evasión - Teknomers Noticias

  19. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – DataGene

  20. Pingback: Nouvelle variante de logiciel malveillant BIFROSE Linux utilisant un domaine VMware trompeur pour l'évasion - Teknomers Nouvelles

  21. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - Computer Information System

  22. Pingback: Bifrose: varianti di questo malware che girano su Linux | PlayTalk.it

  23. Pingback: Using a false VMware domain to evade a new BIFROSE Linux malware variant

  24. Pingback: Bifrose: varianti di questo malware che girano su Linux

  25. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – INDIA NEWS

  26. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - TechBuzz

  27. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - Source:thehackernews.com - CISO2CISO.COM & CYBER SECURITY GROUP

  28. Pingback: Une nouvelle variante du logiciel malveillant Linux BIFROSE utilise un faux domaine VMware pour échapper à la fraude mars 2024 - Hackarizona

  29. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion | Cybersecurity News

  30. Pingback: Nueva variante de malware BIFROSE para Linux que utiliza un dominio engañoso de VMware para la evasión – Solución Profesional Streaming de Audio & Video

  31. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – InfoSec Today

  32. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – thequintessentialjournal

  33. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – Securitydone

  34. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion

  35. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - F1TYM1

  36. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – Cyber Social Hub

  37. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - Tech Investor News

  38. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – Bizi News

  39. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion - Kartwheel News

  40. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – 443News

  41. Pingback: New BIFROSE Linux Malware Variant Using Deceptive VMware Domain for Evasion – The Secure Family

  42. Pingback: New Variant of BIFROSE Linux Malware Uses Fake VMware Domain for Evasion March 2024 - Hackarizona

  43. Pingback: Week 1 – 2023 – This Week In 4n6

Comments are closed.

Discover more from Cyber and Ramen

Subscribe now to keep reading and get access to the full archive.

Continue reading