10 ms·
New ultra-stealthy Linux backdoor isn’t your everyday malware discovery
- gclawes 4y agoIs the name a Stargate SG-1 reference? I have to know...
- nixcraft 4y agoDirect link to the blog post with all details https://www.intezer.com/blog/research/new-linux-threat-symbiote/ https://www.intezer.com/blog/research/new-linux-threat-symbi...
- b112 4y agoSymbiote Deep-Dive: Analysis of a New, Nearly-Impossible-to-Detect Linux Threat And disclosed in a blog post, with Nearly-Impossible-to-Read text.
- prvit 4y ago>Analysis of a New, Nearly-Impossible-to-Detect Linux Threat Yeah, that's a straight up lie. LD_PRELOAD kits are by definition very easy to detect.
- throw10920 4y ago...unless that LD_PRELOAD rootkit has had a large amount of elbow grease put into patching all of the usual detection methods. Which appears to be the case here.
- prvit 4y agoWhat exactly do you mean? The usual detection methods are essentially unpatchable while using this technique.
- usrn 4y agoThis looks exactly like what one of my friends in college wrote.
- dark-star 4y agoLD_PRELOAD isn't a particularly new attack vector... and it is limited to the permissions of the user it is being run as. So it still needs an unpatched privilege excalation to do any real harm
- ninkendo 4y ago> So it still needs an unpatched privilege excalation to do any real harm https://xkcd.com/1200 https://xkcd.com/1200 All the important stuff you’d need to ruin someone’s life only needs their user account anyway, why is it such a relief if someone doesn’t get root access?
- rascul 4y agoYes, but somehow it affects all processes and installs a rootkit. That's going to need more than an unprivileged user account's access to the system. It's not clear from the article how that access is gained. > Instead of being a standalone executable file that is run to infect a machine, it is a shared object (SO) library that is loaded into all running processes using LD_PRELOAD (T1574.006), and parasitically infects the machine. Once it has infected all the running processes, it provides the threat actor with rootkit functionality, the ability to harvest credentials, and remote access capability.
- _abox 4y agoExcept they can't really do that. The key there is the person's password manager as most of the things mentioned there are online. The user account should just unlock the desktop. My password manager requires my yubikey to be present, it's pincode to be entered and it to be touched for every use (to avoid remote hijacking). And I don't keep important things logged in. But xkcd in this case also forgets that the reason for the admin accounts being separate is that most of the usual activity running in the user context means that malware runs in that context too. So it has a much harder time to obtain true persistence and undetectability like this exploit does.
- lvass 4y ago
- jwrallie 4y agoBut how does it spread?
- Deukhoofd 4y agoThat's my exact question. This requires getting a .so on a device, and setting an environment variable for all users. The malware itself isn't too interesting, however clever they managed to hide it, but how they actually got it on the computers is.
- iso1631 4y agoPresumably an RCE or trojan to infect the first machine, then once you have a foothold on the network and are capturing credentials you can move laterally and spread it using authorised access (perhaps including priv elevation)
- midislack 4y agoThey admitted in the article that it doesn't. It's a "malware sample."
- bregma 4y agoIt's very much a classic "if someone can get root access to your system and is given the ability to install software, they can install this rootkit and do very bad things" type of malware. That part is glossed over completely in the article(s) and the focus is on the "do very bad things" because it sells eyeballs and clicks. After a while, in security, the blog posts, adverts, and scanners are the malware that's taking our time and money.
- janandonly 4y agoVery clever hiding techniques. Makes me wonder which state level actor(s) are behind this one?
- prvit 4y agoThese are not very clever hiding techniques, for the most part these are the most basic techniques known to every 15 year old malware dev reading decades old literature. Ars fell for marketing speech from an AV company that has every reason to hype their discovery.
- trelane 4y agoAny resources (books, articles) you'd recommend for those with a very technical background interested in getting up to speed on the side?
- prvit 4y agoI linked a ton of git repos in another comment here, some of them have very readable code. LD_PRELOAD rootkits are super easy to understand. Phrack has tons of relevant content, Blackhatacademy has some (https://nets.ec/LD_Preload https://nets.ec/LD_Preload) A quick google search also found this simple walkthrough https://fluxius.handgrep.se/2011/10/31/the-magic-of-ld_preload-for-userland-rootkits/ https://fluxius.handgrep.se/2011/10/31/the-magic-of-ld_prelo...
- notakio 4y agoIt certainly feels like a nation state's work, or, at the very least, an "advanced persistent threat" group. The packet capture pre-filter aspect, at very least, is strongly reminiscent of code I've seen from a couple of particular SE Asian APT-designated groups.
- prvit 4y agoWhat reason do you have to believe that besides the targets? Feature-wise this isn't significantly more advanced than public LD_PRELOAD kits like Umbreon, developed by literal children. A basic BPF filter isn't fancy or difficult to implement.
- comboy 4y agoBackdoor in the title suggests to me that it is something in the Linux itself. Also sniffing for suspicious packets on the potentially compromised machine? "Let's see if this robot is telling the truth. Hey robot, are you telling the truth?"
- rnhmjoj 4y agoLD_PRELOAD and hooking the libc syscall wrappers doesn't seem very reliable. It won't work on static binaries, it depends on the user not clearing the environment and there are also many programs that use the syscall directly, bypassing the hooks. From playing with file system hooks I remember programs written in Go and sqlite used to do this.
- willbudd 4y agoOnly a very small percentage of Linux binaries in the wild is fully static though (e.g., those that are compiled with musl). This is "thanks" to Glibc, which makes doing so nigh impossible. I also highly doubt "many" programs make syscalls directly, but I could be wrong. I know I haven't done so since the days I dabbled in assembly, at least.
- chc4 4y agoAnything in Go will.
- prvit 4y agoLD_PRELOAD rootkits are by definition not "ultra-stealthy". Nothing here looks special, there are a plenty of these: https://github.com/chokepoint/Jynx2 https://github.com/chokepoint/Jynx2 https://github.com/chokepoint/jynxkit https://github.com/chokepoint/jynxkit https://github.com/NexusBots/Umbreon-Rootkit https://github.com/NexusBots/Umbreon-Rootkit https://github.com/chokepoint/azazel https://github.com/chokepoint/azazel https://github.com/unix-thrust/beurk https://github.com/unix-thrust/beurk https://github.com/mempodippy/vlany https://github.com/mempodippy/vlany https://github.com/nopn0p/rkorova https://github.com/nopn0p/rkorova And presumably tens more I've forgotten about. Highschoolers write stuff like this.
- mid-kid 4y agoHow do you detect one?
- psacawa 4y agoI don't know what the correct thing to do, but you can easily detect processes that have the LD_PRELOAD environment variable defined. This is a rare enough use case for manual inspection. Something like ``` for f in /proc/*/environ ; do sudo strings $f | >/dev/null grep LD_PRELOAD && echo $f; done ```
- mid-kid 4y agoCan't an LD_PRELOAD virus just hijack fopen/fread/etc to modify the contents of the file if its path matches the pattern you described?
- miohtama 4y agoYes it can. However I would assume the surface to block all diagnostics paths would be quite large and there is always some command/syscall left unblocked to detect any rootkit. Creating 100% stealth malware is possible, but difficult.
- shaded-enmity 4y ago
- rascul 4y agoI'm curious why, if it was first detected in November, it's just now making news over half a year later?
- deleted 4y ago[deleted]
- iso1631 4y ago> IPv4 (TCP or SCTP) and dst port (43253 or 43753 or 63424 or 26424) So this is hiding network traffic from certain ports, which means that it should be easy enough to spot on spanports or netflow data Are there any good tools which detect malware from analysing network traffic, either things like machines doing wide range attempts to connect on 137/139/445, or burte forcing on 22 etc, but also for more advanced searches for traffic like this? I see plenty of companies selling end point protection, but that's not much use with the amount of blackboxes I have on my network.
- survirtual 4y agoI wouldn’t mind having a hardware / software network analyzing combo. Could probably do something as a plugin for OpenWRT — check consistency, packet sizes, ports in use, outbound hosts, etc. Could auto flag suspicious endpoints for further analysis, and if found to be malware for anyone, gets shoved in a db and shared. Malware could always bounce traffic off of a known host but that would move the needle in any case.
- westmeal 4y agoI'd also like to know if there are any applications that can run off of the router. I'm not network savvy but the only thing I've done in the past is capture packets off of the LAN or WAN interfaces and read em later but thats hardly a good way to check your network...
- 0daystock 4y agoI save all SYN packets on my router, it's noisy but a useful audit trail: tcpdump "tcp[13] & 2 != 0" Yes, I'm aware malware could use UDP/ICMP. It could also domain-front on 443 and I'm not under any disillusion this adds meaningful resistance to malicious software; it's just interesting to observe.
- iso1631 4y agoSure, and perhaps handy once you are hit, but how do you check those for any teltale signs of infection before you know what you're specifically looking for
- midislack 4y ago
- ribs 4y agoAn attack that requires access to LD_PRELOAD, and root access to do great damage - this is nothing new.
- jrochkind1 4y agoAt this point I'm going to assume that NSA has ability to access any system undetected. Probably not just NSA, but anyone that can become an NSO Group customer.
- fsflover 4y agoI doubt they can do it with Qubes OS though.
- degu 4y agoA static bin to access procfs informations and all is over... For a stealthy backdoor you should look at this : https://github.com/io-tl/degu-lib https://github.com/io-tl/degu-lib
- LinuxBender 4y agoDoes it run into problems if a system has hidepid set to 2? proc on /proc type proc (rw,nosuid,nodev,noexec,noatime,hidepid=invisible)
- degu 4y agoNo it doesn't, you just need to have sys_ptrace and net_admin capabilities in injected process
- WesolyKubeczek 4y agoSo it works like a “real” virus back from the good old DOS days? Neat. Evil, but neat.
- avereveard 4y ago"It rather involved being on the other side of this airtight hatchway" https://devblogs.microsoft.com/oldnewthing/20060508-22/?p=31283 https://devblogs.microsoft.com/oldnewthing/20060508-22/?p=31...
- prvit 4y agoThis is a downright stupid criticism, malware can be interesting in itself without discussing the delivery mechanisms.
- avereveard 4y agoit isn't. for symbionte to take hold, it has to social engineer it's way into a system, with a person executing it. there's nothing novel nor interesting in capturing a few system call to hide oneself, malware has been doing that since the nineties. unless it can get some privilege it shouldn't, this "malware" is mostly user error.
- prvit 4y agoThis is not being distributed by social engineering. Yes, this particular malware is boring. However, exploits are only tangentially related to malware. Malware by itself can be interesting and worth discussing. > for symbionte to take hold, it has to social engineer it's way into a system, with a person executing it. This is an utterly stupid criticism, as it could be applied to almost all actually novel malware.
- MichaelZuo 4y agoSurprised by the click-baitiness of this title from Ars. Seems like the old Arstechnica is a fading memory.