RotaJakiro
- Type
- Backdoor
- Capabilities
- ExfiltrationPersistencePost exploitationDefense evasionReconnaissance
- Platforms
- Linux
RotaJakiro is a Linux x86-64 backdoor first publicly identified in 2021, with samples observed since at least 2018. It uses a custom encrypted command-and-control protocol over TCP port 443 that does not use TLS, protecting embedded resources and network traffic with AES, XOR, rotate operations, and ZLIB compression. The backdoor collects device and operating-system information, can steal sensitive information, upload collected data to command-and-control infrastructure, receive and manage files or plugins, and execute functionality supplied through dynamically loaded shared libraries. RotaJakiro implements separate root and non-root persistence and process-watchdog mechanisms. Root-level operation uses Linux service-management persistence and automatic service restart, while non-root operation uses user-level autostart and shell-environment persistence together with mutually monitoring processes that exchange process identifiers through shared memory. It also enforces a single-instance lock and masquerades as Linux system components. Code and protocol similarities have led to an assessment that RotaJakiro is highly likely to be a Linux implementation of the OceanLotus backdoor family. Its initial-access vector, targets, and ultimate operational purpose are not publicly established.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Techniques & procedures
32 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
4 techniques
Execution
When executing with non-root permissions, [RotaJakiro](https://attack.mitre.org/software/S1078) uses the the `shmget` API to create shared memory between other known [RotaJakiro](https://attack.mitre.org/software/S1078) processes. [RotaJakiro](https://attack.mitre.org/software/S1078) also uses the `execvp` API to help its dead process "resurrect".(Citation: RotaJakiro 2021 netlab360 analysis)
[RotaJakiro](https://attack.mitre.org/software/S1078) uses dynamically linked shared libraries (`.so` files) to execute additional functionality using `dlopen()` and `dlsym()`.(Citation: RotaJakiro 2021 netlab360 analysis)
When executing with non-root permissions, [RotaJakiro](https://attack.mitre.org/software/S1078) uses the the `shmget API` to create shared memory between other known [RotaJakiro](https://attack.mitre.org/software/S1078) processes. This allows processes to communicate with each other and share their PID.(Citation: RotaJakiro 2021 netlab360 analysis)
...uses the LoadLibraryExW() function to load additional modules... execute additional plugins by loading the respective DLLs... loaded and executed DLLs in memory during runtime... loads a dynamic library (.dylib file) using dlopen() and obtains a function pointer... using dlopen() and dlsym()... calls LoadLibrary then executes exports from a DLL.
Persistence
7 techniques
Persistence
Depending on the Linux distribution and when executing with root permissions, [RotaJakiro](https://attack.mitre.org/software/S1078) may install persistence using a `.conf` file in the `/etc/init/` folder.(Citation: RotaJakiro 2021 netlab360 analysis)
Modify the .bashrc file to create the autostart script for the shell environment.
Depending on the Linux distribution and when executing with root permissions, [RotaJakiro](https://attack.mitre.org/software/S1078) may install persistence using a `.service` file under the `/lib/systemd/system/` folder.(Citation: RotaJakiro 2021 netlab360 analysis)
When executing with non-root level permissions, [RotaJakiro](https://attack.mitre.org/software/S1078) can install persistence by adding a command to the .bashrc file that executes a binary in the `${HOME}/.gvfsd/.profile/` folder.(Citation: RotaJakiro 2021 netlab360 analysis)
RotaJakiro makes a distinction between root/non-root users when implementing persistence features, and different techniques are used for different accounts.
Create autostart script $HOME/.config/au-tostart/gnomehelper.desktop for desktop environment.
When executing with user-level permissions, [RotaJakiro](https://attack.mitre.org/software/S1078) can install persistence using a .desktop file under the `$HOME/.config/autostart/` folder.(Citation: RotaJakiro 2021 netlab360 analysis)
Privilege Escalation
7 techniques
Privilege Escalation
Depending on the Linux distribution and when executing with root permissions, [RotaJakiro](https://attack.mitre.org/software/S1078) may install persistence using a `.conf` file in the `/etc/init/` folder.(Citation: RotaJakiro 2021 netlab360 analysis)
Modify the .bashrc file to create the autostart script for the shell environment.
Depending on the Linux distribution and when executing with root permissions, [RotaJakiro](https://attack.mitre.org/software/S1078) may install persistence using a `.service` file under the `/lib/systemd/system/` folder.(Citation: RotaJakiro 2021 netlab360 analysis)
When executing with non-root level permissions, [RotaJakiro](https://attack.mitre.org/software/S1078) can install persistence by adding a command to the .bashrc file that executes a binary in the `${HOME}/.gvfsd/.profile/` folder.(Citation: RotaJakiro 2021 netlab360 analysis)
RotaJakiro makes a distinction between root/non-root users when implementing persistence features, and different techniques are used for different accounts.
Create autostart script $HOME/.config/au-tostart/gnomehelper.desktop for desktop environment.
When executing with user-level permissions, [RotaJakiro](https://attack.mitre.org/software/S1078) can install persistence using a .desktop file under the `$HOME/.config/autostart/` folder.(Citation: RotaJakiro 2021 netlab360 analysis)
Stealth
7 techniques
Stealth
RotaJakiro uses techniques such as dynamic AES, double-layer encrypted communication protocols to counteract binary and network traffic analysis. All sensitive resources in RotaJakiro are encrypted.
The decryption method dec_proc is called 60 times, which is composed of AES and Rotate. The AES decryption entry is AES-256, CBC mode.
During the 2016 Ukraine Electric Power Attack, DLLs and EXEs with filenames associated with common electric power sector protocols were used to masquerade files.
[RotaJakiro](https://attack.mitre.org/software/S1078) has used the filename `systemd-daemon` in an attempt to appear legitimate.(Citation: netlab360 rotajakiro vs oceanlotus)
RotaJakiro supports... Delete File/Plugin Or Dir.
[RotaJakiro](https://attack.mitre.org/software/S1078) uses the AES algorithm, bit shifts in a function called `rotate`, and an XOR cipher to decrypt resources required for persistence, process guarding, and file locking. It also performs this same function on encrypted stack strings and the `head` and `key` sections in the network packet structure used for C2 communications.(Citation: RotaJakiro 2021 netlab360 analysis)
...uses the LoadLibraryExW() function to load additional modules... execute additional plugins by loading the respective DLLs... loaded and executed DLLs in memory during runtime... loads a dynamic library (.dylib file) using dlopen() and obtains a function pointer... using dlopen() and dlsym()... calls LoadLibrary then executes exports from a DLL.
Discovery
3 techniques
Discovery
[RotaJakiro](https://attack.mitre.org/software/S1078) can monitor the `/proc/[PID]` directory of known [RotaJakiro](https://attack.mitre.org/software/S1078) processes as a part of its persistence when executing with non-root permissions. If the process is found dead, it resurrects the process. [RotaJakiro](https://attack.mitre.org/software/S1078) processes can be matched to an associated Advisory Lock, in the `/proc/locks` folder, to ensure it doesn't spawn more than one process.(Citation: RotaJakiro 2021 netlab360 analysis)
[RotaJakiro](https://attack.mitre.org/software/S1078) executes a set of commands to collect device information, including `uname`. Another example is the `cat /etc/*release | uniq` command used to collect the current OS distribution.(Citation: RotaJakiro 2021 netlab360 analysis)
RotaJakiro supports... Query File/Plugin Status.
Collection
1 technique
Collection
Depending on the Linux distribution, [RotaJakiro](https://attack.mitre.org/software/S1078) executes a set of commands to collect device information and sends the collected information to the C2 server.(Citation: RotaJakiro 2021 netlab360 analysis)
Command and Control
10 techniques
Command and Control
Some Backdoor.Oldrea samples use standard Base64 + bzip2... gh0st RAT has used Zlib to compress C2 communications data before encrypting it... HOPLIGHT has utilized Zlib compression to obfuscate the communications payload.
The sample communicates with 4 domains on TCP 443 (HTTPS), but the traffic is not of TLS/SSL... RotaJakiro establishes communication with C2 and waits for the execution of commands issued by C2.
RotaJakiro and OceanLotus use separate data structures to hold C2 session information... C2 domain name resolution and session establishment are performed in one function.
[RotaJakiro](https://attack.mitre.org/software/S1078) uses a custom binary protocol using a type, length, value format over TCP.(Citation: netlab360 rotajakiro vs oceanlotus)
RotaJakiro supports a total of 12 instructions... Deliver File/Plugin... Run Plugin_0x39C93E... Run Plugin_0x75A7A2... Run Plugin_0x536D01.
C2 traffic from ADVSTORESHELL is encrypted, then encoded with Base64 encoding... APT19 HTTP malware variant used Base64 to encode communications to the C2 server... APT33 has used base64 to encode command and control traffic.
[RotaJakiro](https://attack.mitre.org/software/S1078) uses ZLIB Compression to compresses data sent to the C2 server in the `payload` section network communication packet.(Citation: RotaJakiro 2021 netlab360 analysis)
[RotaJakiro](https://attack.mitre.org/software/S1078) uses a custom binary protocol over TCP port 443.(Citation: netlab360 rotajakiro vs oceanlotus)
C2 communication [uses] a combination of AES, XOR, ROTATE encryption and ZLIB compression. Head & Key are encrypted with XOR & Rotate, and Payload is encrypted with AES.
[RotaJakiro](https://attack.mitre.org/software/S1078) encrypts C2 communication using a combination of AES, XOR, ROTATE encryption, and ZLIB compression.(Citation: RotaJakiro 2021 netlab360 analysis)
Exfiltration
1 technique
Exfiltration
[RotaJakiro](https://attack.mitre.org/software/S1078) sends device and other collected data back to the C2 using the established C2 channels over TCP. (Citation: RotaJakiro 2021 netlab360 analysis)
Observables
9 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.