Earlier quoted context omitted.
LD_PRELOAD? ptrace? Updated: Actually, I have no idea. The securelist link says "It uses techniques that don't require root access" but then later says "The module statically links PCAP libraries, and uses this code to get a raw socket". I have no idea how one gets a raw socket without root, but I'm not in the business of creating raw sockets on linux...
Not sure I follow, can a non-root user observe raw packets (like SYN packets and sequence numbers) through these facilities? Edit: well, a statically linked pcap is still just a bunch of user-mode assembly code. I didn't think linux kernel security hinged on keeping libraries secret :P
Powerful, highly stealthy Linux trojan may have infected victims for years
21–30 of 103 posts
Re: Powerful, highly stealthy Linux trojan may have infected victims for years
#22Earlier quoted context omitted.
Not sure I follow, can a non-root user observe raw packets (like SYN packets and sequence numbers) through these facilities? Edit: well, a statically linked pcap is still just a bunch of user-mode assembly code. I didn't think linux kernel security hinged on keeping libraries secret :P
I tried interpreting the ars article (rookie mistake) and assumed it was stealing traffic from other programs running as the same user.
But they were talking about magic syn packets etc (in the securelist post linked from another comment, I got the sources mixed up)
Re: Powerful, highly stealthy Linux trojan may have infected victims for years
#23How can it run packet dumping as a non-root user?
Re: Powerful, highly stealthy Linux trojan may have infected victims for years
#24Is there a quick and dirty script/one liner I can run to check my VPS right now?
This may take a while depending on the amount of data you have and the speed of your disk(s): grep -R -e 'TREX_PID=%u' -e 'Remote VS is empty !' / Alternatively you could create ClamAV signatures based on those strings.
Being able to provide simple easily verified command on a public forum to detect the most stealthy malware is testament to the brilliant design of unix-style systems. If someone offered a Widows utility to do the same thing on a forum, only fools would run it.
Re: Powerful, highly stealthy Linux trojan may have infected victims for years
#25How is this possible? I thought netstat would show any program which is listening for connections on a port, regardless of whether it's actively doing anything.
Re: Powerful, highly stealthy Linux trojan may have infected victims for years
#26Earlier quoted context omitted.
This may take a while depending on the amount of data you have and the speed of your disk(s): grep -R -e 'TREX_PID=%u' -e 'Remote VS is empty !' / Alternatively you could create ClamAV signatures based on those strings.
Thanks. Being able to provide simple easily verified command on a public forum to detect the most stealthy malware is testament to the brilliant design of unix-style systems. If someone offered a Widows utility to do the same thing on a forum, only fools would run it.
Re: Powerful, highly stealthy Linux trojan may have infected victims for years
#27"It can't be detected using the common netstat command." How is this possible? I thought netstat would show any program which is listening for connections on a port, regardless of whether it's actively doing anything.
Re: Powerful, highly stealthy Linux trojan may have infected victims for years
#28"It can't be detected using the common netstat command." How is this possible? I thought netstat would show any program which is listening for connections on a port, regardless of whether it's actively doing anything.
Re: Powerful, highly stealthy Linux trojan may have infected victims for years
#29Earlier quoted context omitted.
One kind of neat thing I do is filter outbound traffic based on the user. If you're using s newish distro like centos7/rhel7 or a newer ubuntu, you can filter packets with ip tables based on the user. I force the apps in various docker containers to run as different users (one per major app or major suite of apps), and use up tables to lock those bits down. My wordpress got owned and there was a little perl script at…
I really like this idea. I'm trying to take it one step further in fact. My filtering is done at the gateway, and I'm hunting for ways of communicating which packets are associated with which users (on Linux and Mac). Probably done by tagging an unused part of the packet with some kind of ID.
Re: Powerful, highly stealthy Linux trojan may have infected victims for years
#30"It can't be detected using the common netstat command." How is this possible? I thought netstat would show any program which is listening for connections on a port, regardless of whether it's actively doing anything.