Linux user-land rootkit
Symbiote Linux Userland Rootkit: Traces and Checks
Symbiote is a preloaded Linux library that hides files, processes and traffic and steals SSH credentials over DNS. Its traces, host checks and recovery.
- Kind
- Linux user-land rootkit · Userland layer
- Platforms
- Linux
- First seen
- 2021-11
- Status
- In the wild
- Checked by
- Linux kernel
Overview
Symbiote is a Linux userland rootkit and credential stealer. Intezer published the analysis in June 2022, as joint research with BlackBerry's threat research team. The earliest sample dates from November 2021.
Symbiote is not a standalone program. It is a shared object loaded into every running process, so it lives inside the programs it hides from. That gives it three roles:
- a rootkit that filters what those programs see;
- a credential stealer inside
sshandscp; - a backdoor through the authentication library.
Intezer judged that it appears written to target the financial sector in Latin America. Its infrastructure used domains imitating Brazilian banks and the Brazilian federal police. Intezer could not tell whether it was used in targeted or broad attacks, and did not attribute it.
The public record is thin. It rests on one joint analysis of samples and infrastructure, with no published incident on a victim network. The BlackBerry blog post that accompanied it no longer resolves at its original address.
How it loads and hides
Loading. Intezer describes Symbiote as loaded into all running processes through LD_PRELOAD and does not name the configuration file. On a Linux host, the way to preload a library into every program is a line in /etc/ld.so.preload. The LD_PRELOAD variable only reaches processes that inherit it. Check both. The dynamic linker loads preloaded objects before the program's own libraries, so Symbiote's functions replace libc's (ld.so(8)).
What it hooks, per Intezer:
| Hooked | Effect |
|---|---|
readdir | Removes files on its encrypted list from directory listings, and its processes from /proc |
fopen, fopen64 | Filters /proc/net/tcp so its connections disappear from netstat-style tools |
execve | When LD_TRACE_LOADED_OBJECTS=1 is set, as ldd does, removes itself from the output |
setsockopt | Injects its own classic BPF code ahead of any filter a capture tool attaches, so its traffic never reaches the capture |
pcap_loop, pcap_stats | Filters packets and counters in libpcap-based tools, including its DNS traffic |
read | Captures credentials typed into ssh and scp |
| PAM functions | Accept a hard-coded password for any account, through any PAM service including SSH |
Captured credentials are encrypted and written to a local file, /usr/include/certbot.h in one version. They leave in hex-encoded DNS A queries under *.x3206.caixa.cx and *.dev21.bancodobrasil.dev. If /etc/resolv.conf names no server, Symbiote uses 8.8.8.8. A DNS TXT lookup can also fetch a signed script to run.
On a running infected host, ls, ps, netstat, ldd, tcpdump and many EDR agents are dynamically linked programs carrying Symbiote. Their output is filtered. Intezer's main advice is to watch network telemetry and to link security tools statically.
Traces on disk
Intezer's hidden-files list is a good map of what to look for once you read the disk from a clean machine. These are names, not paths. They come from the analysed samples, and other builds may change them.
| Item | What | Source |
|---|---|---|
/etc/ld.so.preload naming an unfamiliar library | System-wide preload (see Overview) | Inference from Intezer's description, ld.so(8) |
mt64.so, search.so, liblinux.so; earlier builds kerneldev.so.bkp, mt64_.so | The Symbiote library under various names | Intezer |
certbotx64, certbotx86 | DNS tunnelling tool (dnscat2) | Intezer |
javaserverx64, javaclientex64, javanodex86, javautils, apache2start, apache2stop | Companion programs it hides | Intezer |
profiles.php, 404erro.php, sqlsearch.php, indexq.php | Hidden web files | Intezer |
java.h, open.h, mpt86.h, certbot.h, cert.h | Hidden files; /usr/include/certbot.h held captured credentials | Intezer |
| Ports 45345, 34535, 64543, 24645, 47623, 62537, 43253, 43753, 63424, 26424 | Ports it hides | Intezer |
| DNS logs with long hex labels under the domains above | Credential exfiltration | Intezer |
Intezer lists the sample hashes in its report.
How to check a host
Live. Symbiote only lives in dynamically linked processes. A statically linked toolkit from trusted media, or the kernel's own interfaces read through one, sees past it.
Start a static shell first (/media/ir/busybox sh). Otherwise your usual shell, which carries the library, expands the /proc/[0-9]* globs below through the hooked readdir.
/media/ir/busybox cat /etc/ld.so.preload # static busybox from trusted media
/media/ir/busybox grep -l LD_PRELOAD /proc/[0-9]*/environ
/media/ir/busybox grep -h '\.so' /proc/[0-9]*/maps | /media/ir/busybox sort | /media/ir/busybox uniq -c | /media/ir/busybox sort -rn | /media/ir/busybox head -30
debugfs -R 'cat /etc/ld.so.preload' /dev/sda1 # ext4: read below the libc layer
/media/ir/busybox ls -la /usr/include | /media/ir/busybox grep -E 'certbot|cert\.h|java\.h|open\.h|mpt86'
- A library mapped into nearly every process that is not libc, the dynamic linker or a known agent is the live signature of system-wide preloading.
debugfsis itself dynamically linked. Prefer a static build or read from the image if you can.- Watch the host's traffic from outside: a network tap, a firewall or DNS resolver logs. Local
tcpdumpis filtered by the BPF and libpcap hooks.
Offline.
R=/mnt/evidence
ls -la --time-style=full-iso "$R"/etc/ld.so.preload && cat "$R"/etc/ld.so.preload
readelf --dyn-syms -W /path/to/lib.so | grep -wE 'readdir|fopen|fopen64|execve|read|setsockopt|pcap_loop|pcap_stats|pam_authenticate'
find "$R" -xdev \( -name 'certbotx*' -o -name 'javaserverx64' -o -name 'mt64*.so' -o -name 'liblinux.so' -o -name 'search.so' \) 2>/dev/null
grep -rn 'LD_PRELOAD' "$R"/etc/environment "$R"/etc/profile* "$R"/etc/systemd "$R"/root/.[a-z]* 2>/dev/null
- A library whose dynamic symbol table defines
readdir,fopen,execveand PAM functions is hooking libc. That is a finding in itself. - Check which package owns it (
dpkg -S,rpm -qf). - Never run
lddon a suspect binary: the ldd manual warns it may execute it. Useobjdump -porreadelf -d.
The ld.so.preload and userland rootkits guide covers these checks in depth.
What the checker looks for
The linuxkernel module reads etc/ld.so.preload, the libraries it names and other shared objects in the collection. When Symbiote is preloaded that way, it shows:
- the preload entry, as "Library preloaded into every program", since
/etc/ld.so.preloadexists at all, plus "Preloaded library outside the system library folders" when the library sits outside the packaged library folders; - the library's exports:
readdir,fopenandfopen64raise "Library replaces libc directory and file functions". The detail sheet also lists, without a finding of their own, the other libc names it exports, grouped by what they touch: process (execve), network (setsockopt,pcap_loop,pcap_stats) and authentication (PAM functions).
It does not see:
LD_PRELOADset in environment files or unit files;- the hidden companion programs and the credential file;
- the DNS exfiltration.
If the collection lacks /etc/ld.so.preload, do not conclude the host is clean: check how the library was loaded.
Removal and recovery
- Preserve memory and the disk, or at least the library,
/etc/ld.so.preloadwith its times and the hidden companion files. Collect DNS resolver and firewall logs for the exfiltration domains. - Read the credential file from the image, if present, to learn which accounts were captured. It is encrypted in the samples Intezer analysed. Treat every account that logged in through
ssh,scpor PAM on the host as compromised either way. - Removal. Removing the line from
/etc/ld.so.preloadand deleting the library stops loading into new processes. Processes already running keep it until they restart. Because Symbiote also opened a PAM backdoor and ran companion tools, prefer rebuilding the host to cleaning it in place. - Rotate passwords and SSH keys for every account used on or through the host. Review where those credentials were used since the earliest file time of the library.
- Harden. Alert on any write to
/etc/ld.so.preloadand/etc/ld.so.conf.d/. Keep DNS logs. Run integrity and EDR tools as statically linked binaries where you can.
libprocesshider and Azazel are open-source predecessors of the same technique. PUMAKIT pairs a preload library with a kernel module.
Sources
Primary public reports, newest first.
- 2026-04-02Hooked on Linux: Rootkit Detection EngineeringElastic Security Labs
- 2022-06-09Symbiote Deep-Dive: Analysis of a New, Nearly-Impossible-to-Detect Linux ThreatIntezer (with BlackBerry)
See also
Related families
- libprocesshiderLinux user-land rootkit
- AzazelLinux user-land rootkit
- PUMAKITLinux LKM rootkit