Denis
- Type
- Backdoor
- Capabilities
- ReconnaissancePost exploitationDefense evasionProcess injectionDLL sideloadingPersistence
- Delivery
- Lure
- Platforms
- Windows
Denis is a Windows backdoor associated with APT32, also known as OceanLotus. It enables remote control of compromised computers and has variants implemented in PowerShell and deployed as memory-resident shellcode. Its discovery functions collect the victim's username and local IP address and query Windows Registry keys and values. It also supports commands to delete files. Denis Base64-encodes data sent to its command-and-control server and decrypts strings used for command-and-control communication during execution.
Denis uses process hollowing, dynamic Windows API resolution, and anti-debugging checks to hinder analysis and conceal execution. It has been loaded through DLL side-loading involving legitimate applications, including WPS word-processing software and Adobe 3D Utility. An observed OceanLotus deployment used a Vietnamese-language environmental-themed archive containing images and a malicious HTA script. The script decrypted an embedded loader and executed shellcode in memory, leading to a staged installation that launched Denis through side-loaded DLLs. This deployment established persistence through a Registry autorun entry and used host-derived installation names, execution-flow obfuscation, and inflated files to impede detection and analysis.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The loaded shellcode is a variant of the Denis family used by OceanLotus.
Techniques & procedures
29 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Social engineering impersonation of security professionals from Chinese FinTech companies.
Execution
6 techniques
Execution
Key TTPs: DLL hollowing overwriting memory within legitimate xpsservices.dll system library for silent payload execution under trusted process name, Notion cloud platform as C2 channel embedding instructions within Notion pages, registry persistence and scheduled task creation
[Denis](https://attack.mitre.org/software/S0354) has a version written in PowerShell.(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) can launch a remote shell to execute arbitrary commands on the victim’s machine.(Citation: Cybereason Oceanlotus May 2017)(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) used the <code>IsDebuggerPresent</code>, <code>OutputDebugString</code>, and <code>SetLastError</code> APIs to avoid debugging. [Denis](https://attack.mitre.org/software/S0354) used <code>GetProcAddress</code> and <code>LoadLibrary</code> to dynamically resolve APIs. [Denis](https://attack.mitre.org/software/S0354) also used the <code>Wow64SetThreadContext</code> API as part of a process hollowing process.(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) replaces the nonexistent Windows DLL "msfte.dll" with its own malicious version, which is loaded by the SearchIndexer.exe and SearchProtocolHost.exe.(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) exploits a security vulnerability to load a fake DLL and execute its code.(Citation: Cybereason Oceanlotus May 2017)
Persistence
2 techniques
Persistence
Key TTPs: DLL hollowing overwriting memory within legitimate xpsservices.dll system library for silent payload execution under trusted process name, Notion cloud platform as C2 channel embedding instructions within Notion pages, registry persistence and scheduled task creation
Key TTPs: ... registry persistence and scheduled task creation
Privilege Escalation
4 techniques
Privilege Escalation
Key TTPs: DLL hollowing overwriting memory within legitimate xpsservices.dll system library for silent payload execution under trusted process name, Notion cloud platform as C2 channel embedding instructions within Notion pages, registry persistence and scheduled task creation
APT37 leverages the Windows API calls: VirtualAlloc(), WriteProcessMemory(), and CreateRemoteThread() for process injection.
[Denis](https://attack.mitre.org/software/S0354) performed process hollowing through the API calls CreateRemoteThread, ResumeThread, and Wow64SetThreadContext.(Citation: Cybereason Cobalt Kitty 2017)
Key TTPs: ... registry persistence and scheduled task creation
Stealth
11 techniques
Stealth
[Denis](https://attack.mitre.org/software/S0354) obfuscates its code and encrypts the API names.(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) has encoded its PowerShell commands in Base64.(Citation: Cybereason Cobalt Kitty 2017)
APT37 leverages the Windows API calls: VirtualAlloc(), WriteProcessMemory(), and CreateRemoteThread() for process injection.
[Denis](https://attack.mitre.org/software/S0354) performed process hollowing through the API calls CreateRemoteThread, ResumeThread, and Wow64SetThreadContext.(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) has a command to delete files from the victim’s machine.(Citation: Cybereason Oceanlotus May 2017)(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) will decrypt important strings used for C&C communication.(Citation: Cybereason Cobalt Kitty 2017)
DLL hollowing overwriting memory within legitimate xpsservices.dll system library for silent payload execution under trusted process name
[Denis](https://attack.mitre.org/software/S0354) ran multiple system checks, looking for processor and register characteristics, to evade emulation and analysis.(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) replaces the nonexistent Windows DLL "msfte.dll" with its own malicious version, which is loaded by the SearchIndexer.exe and SearchProtocolHost.exe.(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) exploits a security vulnerability to load a fake DLL and execute its code.(Citation: Cybereason Oceanlotus May 2017)
Denis used the IsDebuggerPresent, OutputDebugString, and SetLastError APIs to avoid debugging. Dridex has used the OutputDebugStringW function to avoid malware analysis as part of its anti-debugging technique.
Discovery
7 techniques
Discovery
[Denis](https://attack.mitre.org/software/S0354) queries the Registry for keys and values.(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) uses <code>ipconfig</code> to gather the IP address from the system.(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) enumerates and collects the username from the victim’s machine.(Citation: Securelist Denis April 2017)(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) collects OS information and the computer name from the victim’s machine.(Citation: Securelist Denis April 2017)(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) has several commands to search directories for files.(Citation: Cybereason Oceanlotus May 2017)(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) ran multiple system checks, looking for processor and register characteristics, to evade emulation and analysis.(Citation: Cybereason Cobalt Kitty 2017)
Denis used the IsDebuggerPresent, OutputDebugString, and SetLastError APIs to avoid debugging. Dridex has used the OutputDebugStringW function to avoid malware analysis as part of its anti-debugging technique.
Collection
1 technique
Collection
[Denis](https://attack.mitre.org/software/S0354) compressed collected data using zlib.(Citation: Securelist Denis April 2017)
Command and Control
6 techniques
Command and Control
Notion cloud platform as C2 channel embedding instructions within Notion pages
[Denis](https://attack.mitre.org/software/S0354) has used DNS tunneling for C2 communications.(Citation: Cybereason Oceanlotus May 2017)(Citation: Securelist Denis April 2017)(Citation: Cybereason Cobalt Kitty 2017)
[Denis](https://attack.mitre.org/software/S0354) deploys additional backdoors and hacking tools to the system.(Citation: Cybereason Cobalt Kitty 2017)
ADVSTORESHELL C2 traffic 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.
[Denis](https://attack.mitre.org/software/S0354) encodes the data sent to the server in Base64.(Citation: Cybereason Cobalt Kitty 2017)
4H RAT has the capability to create a remote shell. AuditCred can open a reverse shell on the system to execute commands. PlugX allows actors to spawn a reverse shell on a victim. QuasarRAT can launch a remote shell to execute commands on the victim’s machine.
Observables
3 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
44 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.