JEShell
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.
This post examines a second-stage tool, JEShell, used during one such intrusion. At a high level, JEShell is functionally similar to the KerrDown malware: both families decode and run layers of shellcode with the intention of downloading or directly installing a Cobalt Strike Beacon implant.
Techniques & procedures
7 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
2 techniques
Execution
Unlike KerrDown (a Windows DLL), JEShell is written in Java.
The first layer dynamically resolves APIs... writing this to a section of virtual memory and executing it with the Kernel32.CreateThread Windows API call... The second layer of shellcode behaves similarly: it decrypts (via CryptDecrypt) a copy of the Cobalt Strike Beacon implant into memory
Privilege Escalation
1 technique
Privilege Escalation
On a 32-bit system, the resource is injected into the memory of the currently running process (Java.exe). On a 64-bit system a process is randomly selected and created from a hardcoded list and the array is injected into that process.
Stealth
4 techniques
Stealth
The first layer dynamically resolves APIs and decodes a second layer
On a 32-bit system, the resource is injected into the memory of the currently running process (Java.exe). On a 64-bit system a process is randomly selected and created from a hardcoded list and the array is injected into that process.
JEShell contains an encrypted resources with a randomized named and an XOR key (different between samples) used to decode it... The resource is decoded into a byte array and loaded into memory...
The resource is decoded into a byte array and loaded into memory... The injected shellcode contains multiple layers... The second layer of shellcode behaves similarly: it decrypts ... a copy of the Cobalt Strike Beacon implant into memory
Command and Control
1 technique
Command and Control
The second layer of shellcode behaves similarly: it decrypts (via CryptDecrypt) a copy of the Cobalt Strike Beacon implant into memory that is configured with a modified version of a malleable C2 profile.
Observables
8 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.