Executive Summary
Intezer recently reported on Lightning Framework, a Linux malware with modular plugins and the ability to install rootkits.
Key Takeaways
Linux.Plugin.Lightning.SsHijacker
Linux.Plugin.Lightning.SsHijacker, named soss on disk, is referenced but not found.
Linux.Plugin.Lightning.Sshd
Linux.Plugin.Lightning.Sshd, named sshod on disk, is OpenSSH with hardcoded private and host keys.
Linux.Pugin.Lightning.Nethogs
Linux.Pugin.Lightning.Nethogs, named nethoogs on disk, is referenced but not found. According to Intezer, it is presumably Nethogs.
Linux.Plugin.Lightning.iftop
Linux.Plugin.Lightning.iftop, named iftoop on disk, is referenced but not found. According to Intezer, it is presumably iftop.
Linux.Plugin.Lightning.iptraf
Linux.Plugin.Lightning.iptraf, named iptraof on disk, is referenced but not found. According to Intezer, it is presumably IPTraf.
Linux.Plugin.RootkieHide
Linux.Plugin.RootkieHide, named libsystemd.so.2 on disk, is referenced but not found. Intezer notes it refers to LD_PRELOAD Rootkit.
Linux.Plugin.Kernel
Linux.Plugin.Kernel, named elasticsearch.ko on disk, is referenced but not found. Intezer notes it refers to LKM Rootkit.
Lightning Framework C2 Communication
The Core and Downloader modules communicate with the C2 over TCP sockets, with the data structured in JSON. C2 information is stored in a polymorphic encoded configuration file that is unique each time it is created. This makes the configuration file difficult to detect, as hashes cannot be used for detection. The threat actor can also choose to use passive communication by executing the RunShellPure command. This uses the Linux.Plugin.Lightning.Sshd to start an SSH service on the victim machine. The OpenSSH daemon has hardcoded private and host keys, allowing the threat actor to SSH into the machine with their own SSH key, creating a secondary backdoor.
Intezer stated they had not yet observed Lightning Framework being used for attacks in the wild.
IOCs
PolySwarm has multiple samples associated with Lightning Framework.
48f9471c20316b295704e6f8feb2196dd619799edec5835734fc24051f45c5b7
ad16989a3ebf0b416681f8db31af098e02eabd25452f8d781383547ead395237
fd285c2fb4d42dde23590118dba016bf5b846625da3abdbe48773530a07bcd1e
You can use the following CLI command to search for all LightningFramework samples in our portal:
$ polyswarm link list -f LightningFramework
Don’t have a PolySwarm account? Go here to sign up for a free Community plan or to subscribe.
Contact us at hivemind@polyswarm.io | Check out our blog | Subscribe to our reports