Singularity is a Linux loadable-kernel-module rootkit designed for Linux 6.x kernels, associated with the researcher MatheuZSecurity. It uses ftrace-based kernel hooks to conceal processes, files, network activity, and its own activity from ordinary host inspection. It also intercepts SysRq diagnostic reporting paths to suppress hidden processes from kernel diagnostic output. The rootkit supports persistence through kernel-module boot-load configuration and can be manually loaded as a kernel module. Reported functionality includes root privilege escalation, real-time filtering and clearing of journal and kernel-log evidence, suppression of kernel-taint evidence, and interference with security visibility mechanisms including ftrace controls, eBPF monitoring, io_uring protections, and module loading. Singularity includes an ICMP-triggered reverse shell; processes spawned through this access mechanism can inherit its concealment behavior. It targets x86 Linux environments, including 64-bit and 32-bit architectures.
9 distinct techniques documented for this family, organized by ATT&CK tactic.
Knowing the local IP address allows attackers to perform targeted DNS rebinding attacks without the need to know or guess the victim’s network IP range. Singularity includes IP address and network range detection functionality by abusing WebRTC...
Attackers must explicitly configure the system to reload the malicious module on boot... /etc/modules, modprobe configuration files, and modules-load.d configuration files. | Reptile’s loader directly invokes the init_module syscall with an in-memory decrypted kernel blob... Effective detection should therefore focus on tracing these syscalls directly.
Attackers must explicitly configure the system to reload the malicious module on boot... /etc/modules, modprobe configuration files, and modules-load.d configuration files. | Reptile’s loader directly invokes the init_module syscall with an in-memory decrypted kernel blob... Effective detection should therefore focus on tracing these syscalls directly.
“A rootkit can ask the kernel’s ftrace machinery to do it on its behalf; essentially ‘legitimizing’ the hook.”
Singularity’s loader script [performs] deletion of all files associated to the rootkit... the author chose the use of shred over rm.
"...to hide processes from kernel ring buffer dumps"
Rootkits may delete these log files... Or clear the kernel message buffer through dmesg... Another means of clearing these logs is by using journalctl.
Singularity includes a browser based JavaScript port scanner to discover HTTP services accessible from the victim’s host, including internal networks, and to launch DNS rebinding attacks in an automated manner.
This update documents the state of DNS rebinding for April 2023... While Local Network Access makes it harder, it is still possible to execute DNS rebinding attacks.
The threat actor [uses] scp to download a shared object file into a hidden subdirectory within /tmp... Singularity’s author suggests cloning a GitHub repository into the /dev/shm directory.
4 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.