Dacls
- Type
- RAT
- Capabilities
- ExfiltrationPersistencePost exploitationDefense evasionReconnaissanceScanning
- Delivery
- Lure
- Platforms
- WindowsLinuxmacOS
Dacls, also tracked as MATA, is a modular, cross-platform remote access trojan associated with the North Korean Lazarus Group. It targets Windows, Linux, and macOS, with artifacts observed as early as April 2018. Its capabilities include remote command execution, file management and downloading, process enumeration and termination, host-information collection, network connectivity testing, network scanning, and proxying command-and-control traffic.
Windows and Linux variants share a command-and-control protocol that layers RC4-encrypted tasking over TLS. Dacls stores configuration data using AES encryption and supports configuration updates from its operators. The Linux variant runs as a background daemon with statically compiled modules, while the Windows variant can retrieve plugin modules remotely. Its process-management functionality reports process and parent-process identifiers. A log-sending module can scan public IP addresses for exposed services and exfiltrate command output and scan results through HTTP POST requests. Reverse-proxy functionality relays traffic between command-and-control infrastructure and designated hosts.
The macOS variant has been distributed through a trojanized TinkaOTP two-factor authentication application. It supports persistence through LaunchAgents or, when running with root privileges, LaunchDaemons. Evasion techniques include dot-prefixed payload names that hide files from Finder, disguising Mach-O executables as interface-resource files, and basic string obfuscation. Its modular architecture closely resembles the Linux and Windows variants.
Associated vulnerabilities
1 CVE 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
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.
(Citation: SentinelOne Lazarus macOS July 2020)(Citation: TrendMicro macOS Dacls May 2020)
Techniques & procedures
23 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
2 techniques
Execution
Bash插件是编号为0的插件,主要支持两个功能:接收C2服务器的下发的系统命令并执行;C2通过指令下发临时C2,Bot然后连接到临时C2并执行临时C2下发的系统命令。
我们在疑似被感染的下载服务器... 找到了一系列样本,其中包括Win32.Dacls和Linux.Dacls,开源程序Socat,以及Confluence CVE-2019-3396 Payload。所以,我们推测Lazarus Group曾经利用CVE-2019-3396 N-day漏洞传播Dacls Bot程序。
Persistence
2 techniques
Persistence
[Dacls](https://attack.mitre.org/software/S0497) can establish persistence via a LaunchAgent.(Citation: SentinelOne Lazarus macOS July 2020)(Citation: TrendMicro macOS Dacls May 2020)
[Dacls](https://attack.mitre.org/software/S0497) can establish persistence via a Launch Daemon.(Citation: SentinelOne Lazarus macOS July 2020)(Citation: TrendMicro macOS Dacls May 2020)
Privilege Escalation
2 techniques
Privilege Escalation
[Dacls](https://attack.mitre.org/software/S0497) can establish persistence via a LaunchAgent.(Citation: SentinelOne Lazarus macOS July 2020)(Citation: TrendMicro macOS Dacls May 2020)
[Dacls](https://attack.mitre.org/software/S0497) can establish persistence via a Launch Daemon.(Citation: SentinelOne Lazarus macOS July 2020)(Citation: TrendMicro macOS Dacls May 2020)
Stealth
5 techniques
Stealth
The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.
[Dacls](https://attack.mitre.org/software/S0497) can encrypt its configuration file with AES CBC.(Citation: TrendMicro macOS Dacls May 2020)
The [Dacls](https://attack.mitre.org/software/S0497) Mach-O binary has been disguised as a .nib file.(Citation: SentinelOne Lazarus macOS July 2020)
File插件主要功能是文件管理,除了支持对文件的读,写,删除,查找操作...
[Dacls](https://attack.mitre.org/software/S0497) has had its payload named with a dot prefix to make it hidden from view in the Finder application.(Citation: SentinelOne Lazarus macOS July 2020)(Citation: TrendMicro macOS Dacls May 2020)
Discovery
5 techniques
Discovery
如果Linux进程中的PID对应的 /proc/<pid>/task 目录存在,Bot样本会收集如下进程信息... Uid //用户ID Gid //用户组ID
当Bot收到该指令后会按照3种规则随机生成公网IP地址并尝试连接8291端口,如果连接成功就向log server回传扫描结果。
[Dacls](https://attack.mitre.org/software/S0497) can collect data on running and parent processes.(Citation: TrendMicro macOS Dacls May 2020)
C2收到加密Key,向Bot发送密文,解密后为0x00000700指令,之后Bot就会上传主机名相关信息给C2。
[Dacls](https://attack.mitre.org/software/S0497) can scan directories on a compromised host.(Citation: TrendMicro macOS Dacls May 2020)
Lateral Movement
1 technique
Lateral Movement
The Reverse P2P plug-in is actually a C2 Connection Proxy, it directs network traffic between bots and C2 to avoid direct connections to their infrastructure.
Collection
1 technique
Collection
When all the work is done, it executes the system tar command to compress the log file tar -cvzf /tmp/hdv.rm /tmp/hdv.log and upload it to the specified log collecting interface.
Command and Control
6 techniques
Command and Control
The C2 protocol utilizes TLS and RC4 double-layer encryption. After establishing a TLS connection, Dacls beacons to the C2 server and then exchanges a key for the RC4 encryption.
[Dacls](https://attack.mitre.org/software/S0497) can use HTTPS in C2 communications.(Citation: SentinelOne Lazarus macOS July 2020)(Citation: TrendMicro macOS Dacls May 2020)
The Reverse P2P plug-in is actually a C2 Connection Proxy, it directs network traffic between bots and C2 to avoid direct connections to their infrastructure. This is a common used technique by the Lazarus Group.
Reverse P2P插件实际上是一种C2连接代理(Connection Proxy),它通过下发控制命令可以将指定的C2数据完整的转发到指定IP端口。
[Dacls](https://attack.mitre.org/software/S0497) can download its payload from a C2 server.(Citation: SentinelOne Lazarus macOS July 2020)(Citation: TrendMicro macOS Dacls May 2020)
Dacls是一款新型的远程控制软件... C2协议使用TLS和RC4双层加密,配置文件使用AES加密... Linux.Dacls Bot和C2通信主要分为3个阶段,并采用了TLS和RC4双层加密算法
Exfiltration
1 technique
Exfiltration
When all the work is done, it executes the system tar command to compress the log file tar -cvzf /tmp/hdv.rm /tmp/hdv.log and upload it to the specified log collecting interface.
Observables
32 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
13 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.