Syslogk
Techniques & procedures
11 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
2 techniques
Execution
To execute the command that starts the Rekoobe fake service in user mode, the rootkit executes the following command... /bin/sh -c /etc/rc-Zobk0jpi/PgSD93ql
After adding writing permissions to the PTE, the rootkit can hook the functions declared in the hks internal rootkit structure. The mechanism for placing the hooks consists of identifying the hookable kernel symbols via /proc/kallsyms...
Persistence
3 techniques
Persistence
The attacker remotely executes it on demand when a specially crafted TCP packet... is sent to the infected machine... These are known as magic packets because they have a special format and special powers.
First, it checks whether the packet is a TCP packet and, in that case, it also checks the source port, which is expected to be 59318. Rekobee will be executed by the rootkit if the magic packet fits the mentioned criteria.
The attacker remotely executes it on demand when a specially crafted TCP packet... is sent to the infected machine, which inspects the traffic by installing a netfilter hook.
Stealth
8 techniques
Stealth
MITRE ATT&CK catalogs the technique as T1014 under defense evasion.
The attacker remotely executes it on demand when a specially crafted TCP packet... is sent to the infected machine... These are known as magic packets because they have a special format and special powers.
First, it checks whether the packet is a TCP packet and, in that case, it also checks the source port, which is expected to be 59318. Rekobee will be executed by the rootkit if the magic packet fits the mentioned criteria.
The attacker remotely executes it on demand when a specially crafted TCP packet... is sent to the infected machine, which inspects the traffic by installing a netfilter hook.
The proc_root_readdir function is hooked so that processes named “was_sys_relay,” and associated parent/child processes, are not returned when utilities such as ps, top, and pstree enumerate /proc. | Syslogk hooks tcp4_seq_show, which outputs TCP socket information from /proc/net/tcp, and removes output entries containing specific port numbers.
The threat actor performed hooking on the readdir function in the VFS table. If a file or directory name contains the string “was-patch,” the corresponding entry is not returned.
The malicious processes are hidden via hk_getpr – a mix of Adore-Ng functions for hiding processes... the Syslogk rootkit is prepared for hiding a process called PgSD93ql.
After adding writing permissions to the PTE, the rootkit can hook the functions declared in the hks internal rootkit structure. The mechanism for placing the hooks consists of identifying the hookable kernel symbols via /proc/kallsyms...
Discovery
1 technique
Discovery
The mechanism for placing the hooks consists of identifying the hookable kernel symbols via /proc/kallsyms as implemented in the get_symbol_address function of the rootkit.
Command and Control
4 techniques
Command and Control
Port Knocking is a method where the malware opens a specific port on an infected system and goes on standby. When the threat actor sends a Magic Packet to the system, the received packet is used as a basis to establish a connection with the C&C server.
The attacker remotely executes it on demand when a specially crafted TCP packet... is sent to the infected machine... These are known as magic packets because they have a special format and special powers.
First, it checks whether the packet is a TCP packet and, in that case, it also checks the source port, which is expected to be 59318. Rekobee will be executed by the rootkit if the magic packet fits the mentioned criteria.
The attacker remotely executes it on demand when a specially crafted TCP packet... is sent to the infected machine, which inspects the traffic by installing a netfilter hook.
Observables
2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.