ROKRAT
- Type
- RAT
- Capabilities
- Credential theftKeyloggingExfiltrationPost exploitationDefense evasionReconnaissanceProcess injection
- Delivery
- SpearphishingLureMalvertisingDrive by
- Platforms
- Windows
ROKRAT is a Windows remote-access trojan used for cyberespionage by the North Korea-linked APT37 threat group, also known as ScarCruft and Group123. Its documented targets include South Korean organizations and individuals involved in North Korean affairs, including human-rights organizations, defectors, journalists, academics, and policy specialists.
ROKRAT supports remote command execution, retrieval and execution of additional payloads, file collection, process enumeration, and host reconnaissance. Its surveillance capabilities include keylogging, screenshots, audio recording, and clipboard collection. It can steal credentials from web browsers and Windows Vault, collect documents and recordings, and encrypt stolen information before exfiltration. It abuses legitimate cloud and web services, including pCloud, Yandex, Dropbox, and historically Twitter and MediaFire, for command-and-control communications and data transfer over HTTP or HTTPS.
Delivery commonly involves spearphishing with malicious Hangul Office or Microsoft Word documents, or archives containing Windows shortcuts disguised as documents. Shortcut-based infection chains use staged PowerShell execution, encrypted embedded payloads, and decoy documents to execute ROKRAT in memory. Trojanized software installers have also delivered the malware. APT37 deployed ROKRAT through malicious advertisements exploiting CVE-2024-38178 in the legacy Internet Explorer scripting engine, allowing infection when vulnerable applications rendered the advertisements without further user interaction.
ROKRAT uses process injection and memory-resident execution to conceal its payload. Documented anti-analysis measures include debugger detection, checks for sandbox components and virtualization artifacts, execution-timing checks, and hostname-dependent string decryption. Some variants remove malicious scripts or other files to reduce forensic traces.
Associated vulnerabilities
3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
8 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Rokrat malware is a sophisticated backdoor trojan associated with APT37 (ScarCruft), a hacking group linked to North Korea.
(Citation: Talos Group123)(Citation: Securelist ScarCruft May 2019)
The purpose of the malicious documents was to install and to execute ROKRAT, a remote administration tool (RAT).
AhnLab and NCSC Release Joint Report on Microsoft Zero-Day Browser Vulnerability (CVE-2024-38178) ... LNK File Disguised as Certificate Distributing RokRAT Malware ... Reverse Engineering RokRAT: A Closer Look at APT37’s Onedrive-Based Attack Vector ... Introducing ROKRAT
AhnLab and NCSC Release Joint Report on Microsoft Zero-Day Browser Vulnerability (CVE-2024-38178) ... LNK File Disguised as Certificate Distributing RokRAT Malware ... Reverse Engineering RokRAT: A Closer Look at APT37’s Onedrive-Based Attack Vector ... Introducing ROKRAT
AhnLab and NCSC Release Joint Report on Microsoft Zero-Day Browser Vulnerability (CVE-2024-38178) ... LNK File Disguised as Certificate Distributing RokRAT Malware ... Reverse Engineering RokRAT: A Closer Look at APT37’s Onedrive-Based Attack Vector ... Introducing ROKRAT
+2 more in the app. View in Mallory
Techniques & procedures
91 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
2 techniques
Reconnaissance
"페이스북 정찰"
"Analysis of Facebook Reconnaissance and Software Tampering Attacks"
Resource Development
4 techniques
Resource Development
After the initial environment configuration is completed, the malware initializes cloud objects that support pCloud, Dropbox, and Yandex Cloud services to prepare for C2 communication.
ScarCruft compromised South Korean websites to host payloads and configurations. ScarCruft compromised the sqgame website to perform a supply-chain attack.
"Analysis of Facebook Reconnaissance and Software Tampering Attacks"
ScarCruft uploaded trojanized games to the compromised sqgame website.
Initial Access
8 techniques
Initial Access
RokRAT logs into a legitimate Dropbox account using an embedded access token (a hardcoded, pre-saved password string).
Temp.Hermit a compromis des serveurs d’authentification coréens via watering hole. [...] APT37 a exploité des zero-days IE via des pop-up ads pour installer RokRAT.
ScarCruft Indicators of Compromise A rigged game: ScarCruft compromises gaming platform in a supply-chain attack
Trojanized game with Android BirdCall version 2.0.
Attackers begin by crafting highly tailored phishing emails, leveraging legitimate content from official websites to impersonate credible sources. These emails contain ZIP attachments housing malicious LNK files disguised as documents related to North Korean affairs, diplomatic policies, or trade agreements.
[ROKRAT](https://attack.mitre.org/software/S0240) has been delivered via spearphishing emails that contain a malicious Hangul Office or Microsoft Word document.(Citation: Malwarebytes RokRAT VBA January 2021)
In March 2025, the APT37 threat actor launched a spear phishing campaign targeting several activists focused on North Korea. The email contained a Dropbox link leading to a compressed archive that included a malicious shortcut (LNK) file.
A similar case was identified in which the attacker impersonated a writer for a major Korean broadcasting program and requested an interview related to the North Korean regime and human rights. After conducting multiple trust-building conversations, the attacker ultimately delivered a malicious HWP document.
Execution
14 techniques
Execution
$ay4=Get-WmiObject Win32_Process -filter "Name like 'Hwp%'";
The malicious behaviors that can be executed according to the threat actor’s command include: Execution of cmd commands
Once the user clicks on the OLE object, the BAT script executes which in turn creates a PowerShell-based reflective DLL injection attack on the victim’s machine.
The HWP document attached contains an OLE object (batch file) which runs.
[ROKRAT](https://attack.mitre.org/software/S0240) has used Visual Basic for execution.(Citation: Malwarebytes RokRAT VBA January 2021)
[ROKRAT](https://attack.mitre.org/software/S0240) can use a variety of API calls to execute shellcode.(Citation: Malwarebytes RokRAT VBA January 2021)
When Add-Type cmdlet is executed, CSC.exe (Visual C# Command-Line compiler) is invoked on the host by PowerShell, this is a notable TTP to observe on victims (Powershell.exe → CSC.exe → cvtres.exe).
These malicious documents exploited an Internet Explorer 0-day vulnerability in the JScript engine, CVE-2022-41128.
APT37's ROKRAT HWP Object Linking and Embedding
These malware attacks, typically contain documents which have object linking or embedding (OLE). Malicious HWP (Hangul Word Processor) Object Linking and Embedding (OLE) documents refer to a type of cyber threat where attackers embed harmful content or code within HWP files using OLE technology.
[ROKRAT](https://attack.mitre.org/software/S0240) has relied upon users clicking on a malicious attachment delivered through spearphishing.(Citation: Malwarebytes RokRAT VBA January 2021)
Subsequently, the payload was executed by calling a malicious DLL within the execution context of the legitimate process.
On Windows systems, the infection chain begins with the installation of a trojanized DLL (mono.dll) that downloads and executes RokRAT, which then deploys the Windows version of BirdCall.
위협 행위자는 변조된 설치 프로그램의 메인 함수는 그대로 유지한 채, Entry Point만을 임의로 조작하는 방식을 사용하였습니다.
Persistence
5 techniques
Persistence
RokRAT logs into a legitimate Dropbox account using an embedded access token (a hardcoded, pre-saved password string).
[ROKRAT](https://attack.mitre.org/software/S0240) can modify the `HKEY_CURRENT_USER\Software\Microsoft\Office\` registry key so it can bypass the VB object model (VBOM) on a compromised host.(Citation: Malwarebytes RokRAT VBA January 2021)
The second VBA script runs notepad.exe and injects shellcode into it.
이후 BAT 파일이 지속적으로 실행될 수 있도록 아래 레지스트리에 등록한다. 레지스트리 경로 : HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
The code embedded within the .lnk file executes commands that invoke PowerShell.
Privilege Escalation
9 techniques
Privilege Escalation
[ROKRAT](https://attack.mitre.org/software/S0240) can use `VirtualAlloc`, `WriteProcessMemory`, and then `CreateRemoteThread` to execute shellcode within the address space of `Notepad.exe`.(Citation: Malwarebytes RokRAT VBA January 2021)
Stage 7 0x01E1-0x0224 CreateRemoteThread dism.exe 프로세스 내 원격 스레드 생성, 삽입된 악성 코드 실행 개시
ROKRAT can use VirtualAlloc, WriteProcessMemory, and then CreateRemoteThread to execute shellcode within the address space of Notepad.exe. Ryuk has injected itself into remote processes to encrypt files using a combination of VirtualAlloc, WriteProcessMemory, and CreateRemoteThread. Woody RAT can inject code into a targeted process by writing to the remote memory of an infected system and then create a remote thread.
Retrohunting APT37: North Korean APT used VBA self decode technique to inject RokRat
RokRAT logs into a legitimate Dropbox account using an embedded access token (a hardcoded, pre-saved password string).
생성 옵션에 CREATE_SUSPENDED(0x4)를 지정하여 CreateProcessA를 호출합니다. 이를 통해 Windows의 정상 시스템 도구인 dism.exe가 일시 중단(suspended) 상태로 생성됩니다.
The second VBA script runs notepad.exe and injects shellcode into it.
이후 BAT 파일이 지속적으로 실행될 수 있도록 아래 레지스트리에 등록한다. 레지스트리 경로 : HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
The code embedded within the .lnk file executes commands that invoke PowerShell.
Stealth
30 techniques
Stealth
[ROKRAT](https://attack.mitre.org/software/S0240) can encrypt data prior to exfiltration by using an RSA public key.(Citation: Volexity InkySquid RokRAT August 2021)(Citation: Malwarebytes RokRAT VBA January 2021)
The delivered threat leveraged a combination of techniques, including steganography and DLL side loading, to conceal its execution flow.
the malware is embedded as an OLE object within an HWP document and executed via DLL side-loading.
LoadLibraryW()와 GetProcAddress()를 통해 ntdll.dll의 RtlCreateUserThread() 주소를 동적으로 획득
A notable fact about this type is that it includes legitimate document files, script code, and malicious PE data inside the LNK files.
“search.dat” reads the “viewer.dat” file and executes it in a fileless manner.
PhantomCaptcha (UAC-0244) ... distribue le spyware Android PrincessSpy via de faux sites imitant ab3.army
PDF 문서로 위장한 실행파일 ... 실제 확장자는 PIF(Program Information File) ... Windows 환경에서 기본적으로 파일 확장자가 표시되지 않는 점을 악용
[ROKRAT](https://attack.mitre.org/software/S0240) can use `VirtualAlloc`, `WriteProcessMemory`, and then `CreateRemoteThread` to execute shellcode within the address space of `Notepad.exe`.(Citation: Malwarebytes RokRAT VBA January 2021)
Stage 7 0x01E1-0x0224 CreateRemoteThread dism.exe 프로세스 내 원격 스레드 생성, 삽입된 악성 코드 실행 개시
ROKRAT can use VirtualAlloc, WriteProcessMemory, and then CreateRemoteThread to execute shellcode within the address space of Notepad.exe. Ryuk has injected itself into remote processes to encrypt files using a combination of VirtualAlloc, WriteProcessMemory, and CreateRemoteThread. Woody RAT can inject code into a targeted process by writing to the remote memory of an infected system and then create a remote thread.
Retrohunting APT37: North Korean APT used VBA self decode technique to inject RokRat
Enhanced Anti-Forensics : Post-execution cleanup scripts now delete startup entries, batch files, and registry keys more comprehensively than prior versions.
[ROKRAT](https://attack.mitre.org/software/S0240) can request to delete files.(Citation: NCCGroup RokRat Nov 2018)
RokRAT logs into a legitimate Dropbox account using an embedded access token (a hardcoded, pre-saved password string).
생성 옵션에 CREATE_SUSPENDED(0x4)를 지정하여 CreateProcessA를 호출합니다. 이를 통해 Windows의 정상 시스템 도구인 dism.exe가 일시 중단(suspended) 상태로 생성됩니다.
[ROKRAT](https://attack.mitre.org/software/S0240) can decrypt strings using the victim's hostname as the key.(Citation: Volexity InkySquid RokRAT August 2021)(Citation: Malwarebytes RokRAT VBA January 2021)
it dynamically assembles the path "%windir%\System32\dism.exe"... As a result, "dism.exe," a legitimate Windows system utility, is created in a suspended state.
해당 악성코드는 mshta 프로세스를 통해 특정 url 에 존재하는 추가 스크립트를 실행하여 공격자 서버로부터 명령어를 수신받아 추가 악성 행위를 수행한다.
[ROKRAT](https://attack.mitre.org/software/S0240) relies on a specific victim hostname to execute and decrypt important strings.(Citation: Volexity InkySquid RokRAT August 2021)
This ROKRAT variant contain anti-sandbox tricks. This is performed by checking if the following libraries are loaded: SbieDll.dll ... Api_log.dll ... Dir_watch.dll
[ROKRAT](https://attack.mitre.org/software/S0240) can check for VMware-related files and DLLs related to sandboxes.(Citation: Talos Group123)(Citation: NCCGroup RokRat Nov 2018)(Citation: Malwarebytes RokRAT VBA January 2021)
$mmy4::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle, 0);
This batch script launches PowerShell in a minimized, hidden window.
Subsequently, the payload was executed by calling a malicious DLL within the execution context of the legitimate process.
On Windows systems, the infection chain begins with the installation of a trojanized DLL (mono.dll) that downloads and executes RokRAT, which then deploys the Windows version of BirdCall.
위협 행위자는 변조된 설치 프로그램의 메인 함수는 그대로 유지한 채, Entry Point만을 임의로 조작하는 방식을 사용하였습니다.
Once the user clicks on the OLE object, the BAT script executes which in turn creates a PowerShell-based reflective DLL injection attack on the victim’s machine.
[ROKRAT](https://attack.mitre.org/software/S0240) can check for debugging tools.(Citation: Talos Group123)(Citation: NCCGroup RokRat Nov 2018)(Citation: Malwarebytes RokRAT VBA January 2021)
페이스북 메신저나 텔레그램 등으로 암호화된 PDF 형식의 군사 무기 기술 문서를 제공하는 것처럼 위장하여, 이를 열람하기 위한 전용 PDF Viewer 프로그램의 설치를 유도하는 프리텍스팅(Pretexting) 전술이 사용된 것으로 확인되었습니다.
Defense Impairment
2 techniques
Defense Impairment
[ROKRAT](https://attack.mitre.org/software/S0240) can modify the `HKEY_CURRENT_USER\Software\Microsoft\Office\` registry key so it can bypass the VB object model (VBOM) on a compromised host.(Citation: Malwarebytes RokRAT VBA January 2021)
Ember Bear has used an open source batch script to modify Windows Defender registry keys ... TA505 has used malware to disable Windows Defender through modification of the Registry ... Zeus Panda modifies several Registry keys ... to disable phishing filters.
Credential Access
5 techniques
Credential Access
[ROKRAT](https://attack.mitre.org/software/S0240) can use `SetWindowsHookEx` and `GetKeyNameText` to capture keystrokes.(Citation: Talos ROKRAT)(Citation: Volexity InkySquid RokRAT August 2021)
5) 브라우저 정보 탈취 : 저장된 비밀번호, 쿠키정보
Agent Tesla can gather credentials from a number of browsers... APT33 has used a variety of publicly available tools like LaZagne to gather credentials... TrickBot can obtain passwords stored in files from web browsers such as Chrome, Firefox, Internet Explorer, and Microsoft Edge... SELECT action_url, username_value, password_value FROM logins; CryptUnprotectData
[ROKRAT](https://attack.mitre.org/software/S0240) can steal credentials stored in Web browsers by querying the sqlite database.(Citation: Talos Group123)
[ROKRAT](https://attack.mitre.org/software/S0240) can steal credentials by leveraging the Windows Vault mechanism.(Citation: Talos Group123)
Discovery
13 techniques
Discovery
svc 서비스 정보 수집
[ROKRAT](https://attack.mitre.org/software/S0240) can use the `GetForegroundWindow` and `GetWindowText` APIs to discover where the user is typing.(Citation: Talos ROKRAT)
[ROKRAT](https://attack.mitre.org/software/S0240) can access the <code>HKLM\System\CurrentControlSet\Services\mssmbios\Data\SMBiosData</code> Registry key to obtain the System manufacturer value to identify the machine type.(Citation: Talos Group123)
7) WiFi 관련 정보
[ROKRAT](https://attack.mitre.org/software/S0240) can collect the username from a compromised host.(Citation: Malwarebytes RokRAT VBA January 2021)
[ROKRAT](https://attack.mitre.org/software/S0240) can list the current running processes on the system.(Citation: Talos ROKRAT)(Citation: NCCGroup RokRat Nov 2018)
[ROKRAT](https://attack.mitre.org/software/S0240) can gather the hostname and the OS version to ensure it doesn’t run on a Windows XP or Windows Server 2003 systems.(Citation: Talos ROKRAT)(Citation: Talos ROKRAT 2)(Citation: Securelist ScarCruft May 2019)(Citation: NCCGroup RokRat Nov 2018)(Citation: Volexity InkySquid RokRAT August 2021)(Citation: Malwarebytes RokRAT VBA January 2021)
[ROKRAT](https://attack.mitre.org/software/S0240) has the ability to gather a list of files and directories on the infected system.(Citation: Securelist ScarCruft May 2019)(Citation: NCCGroup RokRat Nov 2018)(Citation: Volexity InkySquid RokRAT August 2021)
4) USB 사용 정보
This ROKRAT variant contain anti-sandbox tricks. This is performed by checking if the following libraries are loaded: SbieDll.dll ... Api_log.dll ... Dir_watch.dll
[ROKRAT](https://attack.mitre.org/software/S0240) can check for VMware-related files and DLLs related to sandboxes.(Citation: Talos Group123)(Citation: NCCGroup RokRat Nov 2018)(Citation: Malwarebytes RokRAT VBA January 2021)
8) 파일 전송 클라이언트 정보 : WinSCP, FileZilla 9) 설치 프로그램 목록 : L“Software\Classes\Installer\Products”
[ROKRAT](https://attack.mitre.org/software/S0240) can check for debugging tools.(Citation: Talos Group123)(Citation: NCCGroup RokRat Nov 2018)(Citation: Malwarebytes RokRAT VBA January 2021)
Collection
8 techniques
Collection
[ROKRAT](https://attack.mitre.org/software/S0240) can collect host data and specific file types.(Citation: NCCGroup RokRat Nov 2018)(Citation: Volexity InkySquid RokRAT August 2021)(Citation: Malwarebytes RokRAT VBA January 2021)
[ROKRAT](https://attack.mitre.org/software/S0240) can use `SetWindowsHookEx` and `GetKeyNameText` to capture keystrokes.(Citation: Talos ROKRAT)(Citation: Volexity InkySquid RokRAT August 2021)
[ROKRAT](https://attack.mitre.org/software/S0240) can capture screenshots of the infected system using the `gdi32` library.(Citation: Talos ROKRAT)(Citation: Talos ROKRAT 2)(Citation: Securelist ScarCruft May 2019)(Citation: NCCGroup RokRat Nov 2018)(Citation: Malwarebytes RokRAT VBA January 2021)
6) 메일 클라이언트 정보 탈취 : MS 아웃룩, Thunderbird
[ROKRAT](https://attack.mitre.org/software/S0240) can extract clipboard data from a compromised host.(Citation: Volexity InkySquid RokRAT August 2021)
Looks for files specified by arguments and uploads them to the C&C server.
[ROKRAT](https://attack.mitre.org/software/S0240) has an audio capture and eavesdropping module.(Citation: Securelist ScarCruft May 2019)
This PowerShell also extracts a ZIP archive from the LNK, which contains a DLL.
Command and Control
5 techniques
Command and Control
This RAT has the added complexity that the command and control servers are legitimate websites. The malware uses Twitter and two cloud platforms, Yandex and Mediafire, apparently for both C2 communications and exfiltration platforms. | these 3 platforms all make use of HTTPS connectivity, making it much more difficult to identify specific patterns
[ROKRAT](https://attack.mitre.org/software/S0240) can use HTTP and HTTPS for command and control communication.(Citation: Talos ROKRAT)(Citation: NCCGroup RokRat Nov 2018)(Citation: Malwarebytes RokRAT VBA January 2021)
Reverse Engineering RokRAT: A Closer Look at APT37’s Onedrive-Based Attack Vector
[ROKRAT](https://attack.mitre.org/software/S0240) has used legitimate social networking sites and cloud platforms (including but not limited to Twitter, Yandex, Dropbox, and Mediafire) for C2 communications.(Citation: Talos ROKRAT)(Citation: Securelist ScarCruft May 2019)(Citation: Volexity InkySquid RokRAT August 2021)
[ROKRAT](https://attack.mitre.org/software/S0240) can retrieve additional malicious payloads from its C2 server.(Citation: Talos ROKRAT)(Citation: NCCGroup RokRat Nov 2018)(Citation: Volexity InkySquid RokRAT August 2021)(Citation: Malwarebytes RokRAT VBA January 2021)
Exfiltration
3 techniques
Exfiltration
[ROKRAT](https://attack.mitre.org/software/S0240) can send collected files back over same C2 channel.(Citation: Talos ROKRAT)
ROKRAT primarily focuses on running additional payloads and extensive data exfiltration. It relies on cloud infrastructure for C&C functions, including DropBox, pCloud, Yandex Cloud, and OneDrive.
[ROKRAT](https://attack.mitre.org/software/S0240) can send collected data to cloud storage services such as PCloud.(Citation: Malwarebytes RokRAT VBA January 2021)(Citation: Volexity InkySquid RokRAT August 2021)
Impact
2 techniques
Impact
[4BYTE HEX]15 : 암호화 된 파일 (주요 복호화 알고리즘으로 복호화 가능)
if($by4){$dy4="/c taskkill /f /im "+$by4;
Observables
322 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
185 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.