The sub-techniques beta is now live! Read the release blog post for more info.


NanHaiShu is a remote access tool and JScript backdoor used by Leviathan. NanHaiShu has been used to target government and private-sector organizations that have relations to the South China Sea dispute. [1] [2]

ID: S0228
Platforms: Windows
Version: 1.0
Created: 18 April 2018
Last Modified: 17 October 2018

Techniques Used

Domain ID Name Use
Enterprise T1089 Disabling Security Tools

NanHaiShu can change Internet Explorer settings to reduce warnings about malware activity.[1]

Enterprise T1107 File Deletion

NanHaiShu launches a script to delete their original decoy file to cover tracks.[2]

Enterprise T1170 Mshta

NanHaiShu uses mshta.exe to load its program and files.[2]

Enterprise T1027 Obfuscated Files or Information

NanHaiShu encodes files in Base64.[2]

Enterprise T1060 Registry Run Keys / Startup Folder

NanHaiShu modifies the %regrun% Registry to point itself to an autostart mechanism.[2]

Enterprise T1105 Remote File Copy

NanHaiShu can download additional files from URLs.[1]

Enterprise T1064 Scripting

NanHaiShu executes additional Jscript and VBScript code on the victim's machine.[2]

Enterprise T1071 Standard Application Layer Protocol

NanHaiShu uses DNS for the C2 communications.[2]

Enterprise T1082 System Information Discovery

NanHaiShu can gather the victim computer name and serial number.[1]

Enterprise T1016 System Network Configuration Discovery

NanHaiShu can gather information about the victim proxy server.[1]

Enterprise T1033 System Owner/User Discovery

NanHaiShu collects the username from the victim.[2]

Groups That Use This Software

ID Name References
G0065 Leviathan [1]