It was only a matter of time before the rising prominence of Linux attracted the attention of advanced persistent cybercrooks!
Many organizations choose Linux for strategically-important servers and systems, not least because this operating system is thought to be safer and less prone to cyberthreats than the far more popular Windows operating system.
While this is the case for mass malware attacks, the situation is not so clear cut when it comes to advanced persistent threats (APTs). Furthermore, researchers have identified a trend where more and more threat actors are executing targeted attacks against Linux-based devices while developing more Linux-focused tools.
Over the past eight years, over a dozen APT actors have been observed by Kaspersky researchers to use Linux malware or some Linux-based modules. These include such infamous threat groups as Barium, Sofacy, the Lamberts, Equation, as well as more recent campaigns such as, LightSpy by TwoSail Junk and WellMess. Diversification of their arsenal with Linux tools enables threat actors to conduct operations more effectively and with wider reach.
In many countries, the significant trend in big enterprise and governmental entities using Linux as a desktop environment has pushed threat actors to develop malware for this platform. The myth that Linux, being a less popular operating system, is unlikely to be targeted by malware, invites additional cybersecurity risks.
While targeted attacks on Linux-based systems are still uncommon, there is certainly malware designed for them—including webshells, backdoors, rootkits and even custom-made exploits. Moreover, the small number of attacks is misleading because the successful compromise of a server running Linux often leads to significant consequences. These include attackers not only being able to access the infected device, but also endpoints running Windows or macOS, thus providing wider access for attackers, that may go unnoticed.
For instance, Turla, a prolific Russian-speaking group known for its covert exfiltration tactics, has significantly changed its toolset over the years, including the use of Linux backdoors. A new modification of the Penguin_x64 Linux backdoor, reported earlier in 2020, has according to Kaspersky’s telemetry, infected dozens of servers in Europe and the US, as recently as July 2020.
Another example is Lazarus, a Korean-language APT group, which continues to diversify its toolset and develop non-Windows malware. Kaspersky recently reported on the multi-platform framework called MATA and in June 2020, researchers analyzed new samples linked to the Lazarus ‘Operation AppleJeus’ and ‘TangoDaiwbo’ campaigns, used in financial and espionage attacks. The samples studied included Linux malware.
Commented Yury Namestnikov, head of Kaspersky’s Global Research and Analysis Team (GReAT) in Russia: “The trend of enhancing APT toolsets was identified by our experts many times in the past, and Linux-focused tools are no exception. Aiming to secure their systems, IT and security departments are using Linux more often than before. Threat actors are responding to this with the creation of sophisticated tools that can penetrate such systems. We advise cybersecurity experts to take this trend into account and implement additional measures to protect their servers and workstations.”
Here are some safety measures to help enterprise avoid falling victim to a targeted Linux attack:
- Maintain a list of trusted software sources and avoid using unencrypted update channels
- Do not run binaries and scripts from untrusted sources. Widely-advertised ways to install programs with commands like “curl https://install-url | sudo bash” pose a security nightmare
- Make sure your update procedure is effective, and set up automatic security updates
- Spend time to set up your firewall properly: make sure it logs network activity, block all ports you do not use, and minimize your network footprint
- Use key-based SSH authentication and protect keys with passwords
- Use 2FA (two-factor authentication) and store sensitive keys on external token devices
- Use an out-of-band network tap to independently monitor and analyze network communications of your Linux systems
- Maintain system executable file integrity and review configuration file changes regularly
- Be prepared for insider/physical attacks: use full disk encryption, trusted/safe boots and put tamper-evident security tape on your critical hardware
- Audit the system and check logs for indicators of attack
- Run penetration tests on your Linux setup
- Use a dedicated security solution with Linux protection
- Implement solutions for protecting DevOps, enabling integration of security into CI/CD platforms and containers, and the scanning of images against supply-chain attacks