Security Art Work

Blog de Seguridad de la Información de S2 Grupo

Un blog de

Analysis of Linux.Helios

14 de November de 2017 Por Joan Soriano

For several weeks we have been detecting a new variant of malware for Linux and IoT architectures from the malware laboratory of S2 Grupo, registered for the first time on the VirusTotal platform on October 18, which we have called Linux.Helios, due to the name of certain functions present in the sample.

We emphasize that the main antivirus signatures do not unanimously classify this sample: they range from ELF.DDoS to Tsunami, through Gafgyt or Mirai.

Infection

As we have detected in our honeypot systems, the system is infected through default credentials in the telnet service by executing the following instruction:

The script written in bash executes a series of commands, very similar to Gafgyt.

Obtaining in that way the sample of Linux.Helios that we will analyze.

Persistence in the system

We found that the persistence is carried out in a very similar way to the malware analyzed previously for Linux architectures, through the writing in the file /etc/rc.d/rc.local (or /etc/rc.conf failing that).

It then obtains the public IP of the network through the getOurIP function and the reading of the /proc/net/route file after a connection to the IP of Google 8.8.8.8. The MAC of the device is also obtained.

Then the connection to the server is carried out through the initConnection function, called HeliosServer (name that we used to name our sample), which has the IP address 66.172.27.232 hard-coded with the port for 666 for the connection and the parameters required for the connection in HeliosCommSock.

From the same main function, the connection against the server is executed, which will register the infected device. The request that it executes against the server includes the public address of the network as well as the architecture of the same. It is striking that, instead of including the name of the architecture, it is modified by an obscene text string.

After that, it will execute processCmd, a function where we can find the management of each of the options available in the malware, according to the information sent by the C2 server at all times.

Dissemination of malware

Within the processCmd function, and if the device is in “spread” mode, the call to the StartTheLelz function is executed, in charge of scanning potential victims and subsequently infecting them through the following default credentials:

In the same way as other IoT malware, it obtains the IP addresses of its victims randomly through the GetRandomPublicIP function. After that, check that the result of the response in the contains_response function, through the contains_success (where the result of the “busybox” string is verified) and contains_fail (where the result of the “invalid” string is verified) functions has been written on the screen in the contains_success function.

In case of finding a vulnerable device, print on the screen the string “Login Found: Attempting To Brute LIKE A GOD IP: User:% s Pass:% s”, in addition to executing the instruction that at first triggered the infection, eliminating in this way the C2 server in the process of infection of the device, present in previous typologies.

Attacks

If the device is in “attack” mode, the denial of service attack is selected among the following:

For HTTP Flood management, one of the 36 hard-coded User-Agents in the sample is selected randomly.

Author behind Helios

As for the authorship of the malware Linux.Helios, according to the slightly elaborated techniques, the numerous obscene references, and the name of the function StartTheLelz (the function dedicated to the scanning and infection of devices), everything seems to point to the youth cybercriminal group LelDoS, dedicated to attacking through denials of service to game platforms. They are especially known for their attacks against servers of the Minecraft online game, where Helios would only be the last variation of the IoT malware, after Bashlite, Gafgyt, Qbot, Remaiten, Torlus and Mirai.

It is striking that, despite the clear relationship with their predecessors, no rule of Yara associated with IoT malware detects the present sample, denoting a clear intention on the part of the group to move away from the media focus that was Mirai, even though they reused code and praxis from other malware.

Hence, we attach the rule for malware identification:

We’ll keep an eye on its evolution.

FacebookX (Twitter)LinkedIn

See also in:

  • Español
  • Español

Pages

  • About
  • Authors
  • Cookies Policy
  • Guest posts
  • Legal Notice
  • Privacy Policy

Search

Authors

  • Antonio Villalón (228)
  • Manuel Benet (226)
  • Antonio Sanz (108)
  • Colaboradores (88)
  • Maite Moreno (73)
  • Roberto Amado (61)
  • José Rosell (59)
  • Joaquín Moreno (54)
  • Josemi Holguín (54)
  • Joan Soriano (52)
  • Jose L. Villalón (50)
  • José Vila (43)
  • Nelo Belda (43)
  • Antonio Huerta (38)
  • Fernando Seco (38)

All authors

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Licencia de uso
Datos editoriales:
Publicación: securityartwork.es
Edita: S2 Grupo Soluciones de Seguridad, S.L.
Lugar de publicación: Valencia, España
ISSN 3101-5913

Return to top of page

Copyright © 2026 · Genesis Framework · WordPress

Utilizamos cookies propias y de terceros para mejorar y analizar el uso que haces de nuestro site. Puedes cambiar la configuración, rechazarlas u obtener más información sobre nuestra política de cookies AQUÍ. Aceptar
Política de cookies

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT