NukeSped
- Type
- RAT
- Capabilities
- KeyloggingExfiltrationPersistencePost exploitationDefense evasionReconnaissanceProcess injection
- Delivery
- PhishingSpearphishingWatering holeLureClickfixFake update
- Platforms
- WindowsmacOSAndroid
NukeSped is a remote access trojan and backdoor family associated with North Korea’s Lazarus Group and used by Andariel. The name also serves as a broad vendor detection label for Lazarus tooling, so samples classified as NukeSped do not necessarily represent one uniform codebase. Windows and macOS samples are documented, and vendor detection nomenclature also covers Android malware. Observed targets include South Korean public institutions, universities, and logistics, IT, and manufacturing companies.
Depending on the variant, NukeSped supports remote command execution, payload downloading, file management, process termination, system reconnaissance, keylogging, screen capture, and exfiltration. Some variants provide SOCKS tunneling and port forwarding. Command-and-control implementations include custom raw TCP protocols and HTTP communications that encode tasking in request or response headers. Variants use encrypted strings, dynamically resolved APIs, encrypted communications, custom packing, anti-debugging and anti-sandbox checks, in-memory payload execution, process injection, and self-deletion. Some Windows deployment chains install service-based payloads.
Documented infection vectors include spearphishing attachments with malicious Microsoft Word macros and watering-hole attacks exploiting vulnerable software. Multistage document chains abuse Windows management and scripting utilities and reconstruct executable payloads from embedded image content. NukeSped has also been deployed through Log4Shell exploitation of unpatched VMware Horizon servers. Windows campaigns have used fake meeting and troubleshooting lures to induce victims to run commands that launch a NukeSped VBScript implant.
NukeSped overlaps with several Lazarus malware naming schemes, but Manuscrypt, COPPERHEDGE, FALLCHILL, and other associated tools should not be treated as universally interchangeable aliases.
Associated vulnerabilities
2 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
5 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
On Windows a PowerShell loader adds a Defender exclusion and runs a NukeSped VBScript implant;
Historical HivePro indicators included files classified as “MacOS.Trojan.NukeSped, MacOS.Backdoor.NukeSped, MacOS.Trojan.NukSpedEnc.”
Although there were no direct logs showing that NukeSped was installed through exploitation of the CVE-2023-46604 vulnerability, there is a possibility that the Andariel group exploited CVE-2023-46604 vulnerability for the attack.
Although there were no direct logs showing that NukeSped was installed through exploitation of the CVE-2023-46604 vulnerability, there is a possibility that the Andariel group exploited CVE-2023-46604 vulnerability for the attack.
Over the last 15 years, the group has developed RATs, including the following... ▪ NukeSped
Techniques & procedures
64 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
3 techniques
Resource Development
"The Lazarus attackers... deliver Lazarus malware from a legitimate but compromised website."
"The Lazarus group developed custom malware and malware components."
"The attackers used illegally obtained code-signing certificates in order to sign the malware samples."
Initial Access
7 techniques
Initial Access
무차별 대입 공격이나 사전 공격에 취약한 자격 증명 정보를 갖는 MS-SQL 서버를 대상으로 하는 공격
KISA 보고서 '타겟형 워터링홀 공격전략 분석'에 따르면 공격자는 타겟형 워터링홀 공격을 이용하였으며, 대상 기관이 사용 중인 소프트웨어의 취약점을 이용해 다운로더 악성코드를 설치하였다고 한다.
최근에는 Log4Shell 및 Innorix Agent 등 여러 프로그램에 대한 취약점들을 이용하여 국내 다양한 기업군에 공격을 해오고 있다.
Andariel 그룹은 최초 침투 과정에서 주로 스피어 피싱 공격이나 워터링 홀 공격 그리고 공급망 공격을 이용하며, 이외에도 악성코드 설치 과정에서 중앙 관리 솔루션을 악용하는 사례도 존재한다.
The npm account belonging to the library's primary maintainer, jasonsaayman, was compromised and used to push two malicious versions... published malicious axios@1.14.1 and axios@0.30.4.
“NukeSped” Malware is distributed through phishing or spear phishing emails having malicious attachments.
현재까지 확인된 초기 침투 방식은 크게 2가지이다. 하나는 문서 파일 포맷의 악성코드를 첨부하는 형태의 타겟형 악성 메일을 이용한 방식이며... 2021년 4월 다수의 워드 문서 파일 악성코드들이 수집되었다.
Execution
11 techniques
Execution
NukeSped에서는 지속성 유지를 위한 기능이 존재하지 않기 때문에 직접 커맨드 라인 명령을 이용해 작업 스케줄러에 등록시키는 명령들도 확인된다.
This executable must be run with argument 15975345682 to execute
The threat actor runs a power-shell script to exploit the Log4j vulnerability and installs the NukeSped on the victim machine.
The macOS delivery uses AppleScript as an intermediate execution layer... launches it silently with nohup osascript.
The first payload is used to run the command prompt to execute file “edg89C0.bat” and finally drop and execute the 2nd stage payload.
wscript runs a VBScript dropped in Temp
The “imageoo3.zip” ... file contains embedded javascript code ... drops “AlgStore.exe” ... and later executes it by calling “Wscript.shell” object.
"The Lazarus payload is executed using native API calls."
대상 기관이 사용 중인 소프트웨어의 취약점을 이용해 다운로더 악성코드를 설치하였다고 한다.
공격자는 실행 유도를 통해 node.js 를 설치 및 main.js 를 실행하여 ... 사용자가 run.vbs , mac_camera.driver 를 실행하면
Upon opening the document, it displays the message in the Korean language to enable the macro to view the contents of the document.
Persistence
7 techniques
Persistence
NukeSped에서는 지속성 유지를 위한 기능이 존재하지 않기 때문에 직접 커맨드 라인 명령을 이용해 작업 스케줄러에 등록시키는 명령들도 확인된다.
무차별 대입 공격이나 사전 공격에 취약한 자격 증명 정보를 갖는 MS-SQL 서버를 대상으로 하는 공격
"...NukeSped lineage malware with registry-based configuration storage."
E5D1C42E5CA7A0AC3A3B31BD0F290E84 drops 535C879CA109DBECD336E1DE0ECCB696 that runs as a service.
지속성 유지: HKCU\Software\Microsoft\Windows\CurrentVersion\Run 레지스트리 등록 → GoogleDriveUpdaterNew
"The file name of the Loader is stored in the following Windows registry value: HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Security Packages"
샘플에 따라서는 시작 프로그램 폴더에 바로가기를 생성하는 경우도 존재한다.
Privilege Escalation
8 techniques
Privilege Escalation
NukeSped에서는 지속성 유지를 위한 기능이 존재하지 않기 때문에 직접 커맨드 라인 명령을 이용해 작업 스케줄러에 등록시키는 명령들도 확인된다.
"injects the Downloader into the matched service using reflective DLL injection" and "download, decrypt and execute other payloads in memory"
공격 과정에서는 일반적인 MS-SQL 서버 대상 공격 사례와 유사하게 권한 상승을 목적으로 PrintSpoofer 악성코드가 함께 사용되었다.
무차별 대입 공격이나 사전 공격에 취약한 자격 증명 정보를 갖는 MS-SQL 서버를 대상으로 하는 공격
E5D1C42E5CA7A0AC3A3B31BD0F290E84 drops 535C879CA109DBECD336E1DE0ECCB696 that runs as a service.
지속성 유지: HKCU\Software\Microsoft\Windows\CurrentVersion\Run 레지스트리 등록 → GoogleDriveUpdaterNew
"The file name of the Loader is stored in the following Windows registry value: HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Security Packages"
샘플에 따라서는 시작 프로그램 폴더에 바로가기를 생성하는 경우도 존재한다.
Stealth
12 techniques
Stealth
The strings and important API calls are encoded with base64 and RC4 encrypted.
악성코드 제작자는 파일 진단을 우회하기 위한 목적으로 각각의 파일들을 패킹하여 유포하고 있다.
Dynamic resolution of Windows APIs ... The technique is very typical and has already been described [2, p.59].
This is achieved by sending the bot’s client-server traffic as a part of a fake TLS packet that mimics the TLS protocol and seemingly initiates a legitimate connection.
Security tools and EDR products that monitor for powershell.exe execution won't flag a process called wt.exe... value name "MicrosoftUpdate"... /Library/Caches/com.apple.act.mond.
"injects the Downloader into the matched service using reflective DLL injection" and "download, decrypt and execute other payloads in memory"
It then deletes itself subsequently.
파일의 MAC Time을 수정해주는 악성코드를 사용해 NukeSped 백도어의 MAC Time을 변경한다.
무차별 대입 공격이나 사전 공격에 취약한 자격 증명 정보를 갖는 MS-SQL 서버를 대상으로 하는 공격
파이썬 스크립트는 암호화 되어있으며, 자체적 복호화 루틴 후 실행됩니다. 문자열 역순 → Base64 디코딩 → zlib 압축 해제를 포함하는 반복적 복호화 루틴
현재 자신의 프로세스에 로드된 모듈 중 sbiedll.dll, api_log.dll, dir_watch.dll 라는 이름의 DLL 모듈이 존재하는지 확인하고 만일 존재할 경우 ... 즉시 종료된다.
The dropper checks the victim's OS and pulls down a platform-specific RAT.
Defense Impairment
4 techniques
Defense Impairment
"...NukeSped lineage malware with registry-based configuration storage."
Gatekeeper Bypass: Removes macOS quarantine attributes using xattr -rc, allowing execution of untrusted files. Code Signing Evasion: Applies ad-hoc signatures to downloaded binaries using codesign to facilitate execution.
The key line is the codesign call: codesign --force --deep --sign - applies an ad-hoc code signature to the dropped binary... bypasses macOS Gatekeeper.
PowerShell loader adds a Defender exclusion and restarts Defender
Credential Access
3 techniques
Credential Access
The malware is used for data exfiltration, keyboard and screen capturing.
Remcos RAT, Mallox 랜섬웨어 등의 악성코드들은 주로 무차별 대입 공격이나 사전 공격에 취약한 자격 증명 정보를 갖는 MS-SQL 서버를 대상으로 하는 공격을 통해 설치되는데
웹 브라우저들과 아웃룩 클라이언트에 저장되어 있는 사용자의 계정 정보를 탈취하는 악성코드를 사용했다.
Discovery
9 techniques
Discovery
cmd.exe /c "ipconfig /all" ... cmd.exe /c "netstat -naop tcp"
감염된 시스템의 사용자 이름, 컴퓨터 이름, MAC 및 IP 정보 등 기본적인 정보를 Base64 인코딩하여 ... C&C 서버에 전송한다.
4444 특정 포트 스캔 ... 기본적인 커맨드 라인 포트 스캐닝 툴이다.
Discovery (TA0007) ... T1057 Process Discovery.
Ability to Gather System Information.
Ability to enumerate drives; Ability to enumerate paths, files, and folders.
cmd.exe /c "net user" ... cmd.exe /c "net user user"
현재 자신의 프로세스에 로드된 모듈 중 sbiedll.dll, api_log.dll, dir_watch.dll 라는 이름의 DLL 모듈이 존재하는지 확인하고 만일 존재할 경우 ... 즉시 종료된다.
The dropper checks the victim's OS and pulls down a platform-specific RAT.
Collection
5 techniques
Collection
Collection (TA0009) T1005 Data from Local System.
The malware is used for data exfiltration, keyboard and screen capturing.
The malware ... [is] capturing keyboard and screenshots.
다음으로 확인되는 악성코드는 사용자의 클립보드 및 현재 사용 중인 윈도우의 텍스트를 수집하여 특정 경로에 저장해 주는 기능을 수행한다.
위의 로그 파일들이 일정 사이즈 이상일 경우에는 ZIP 압축하여 저장하며 비밀번호 "ZIPPROTECT"이다.
Command and Control
8 techniques
Command and Control
ProtocolTcpPure 클래스를 보면 알 수 있듯이 Raw TCP 프로토콜을 이용해 C&C 서버와 통신한다.
NukeSped는 HTTP 통신을 위장하였다. 즉 아래와 같은 POST 요청을 전송한 후 정확히 매칭되는 HTTP 응답이 올 때에만 C&C 서버와 통신을 진행한다.
ModuleSocksTunnel 클래스에서는 이름과 같이 터널링 기능을 제공할 것으로 추정된다... C&C 서버와 해당 주소 간의 프록시로서 동작한다.
ModulePortForwarder 클래스에서는 이름과 같이 포트 포워딩 기능을 지원한다... 외부에 존재하는 공격자는 포트 포워딩 기능을 지원하는 NukeSped를 통해 감염 시스템 내부 즉 사설 네트워크에 존재하는 공격 대상과 통신했을 것으로 추정된다.
ProtocolTcpPure 클래스를 보면 알 수 있듯이 Raw TCP 프로토콜을 이용해 C&C 서버와 통신한다.
해당 악성코드는 외부에서 추가 악성코드를 다운로드 받고 실행하는 기능을 하는 다운로더이다... 해당 악성코드가 NukeSped 악성코드를 직접 다운로드하여 실행한 로그를 확인할 수 있다.
C2 명령 처리 ... 원격 명령을 수행합니다 ... 원격 쉘 기능: C2서버 에서 받은 문자열 명령을 cmd.exe /c 로 실행
"decrypts the server’s answer using the RC4 algorithm" and "uses the RC4 algorithm to encrypt its C&C communications"
Exfiltration
1 technique
Exfiltration
Exfiltration (TA0010) T1041 Exfiltration over C2 Channel.
Observables
752 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
53 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.