Tarrask is a Windows persistence and defense-evasion malware/tool publicly named by Microsoft Threat Intelligence Center (MSTIC). It is associated with the China-linked HAFNIUM threat actor. MSTIC reported HAFNIUM activity using Tarrask against organizations including telecommunications, internet service provider, and data services entities, and also described HAFNIUM as targeting U.S. organizations across sectors such as infectious disease research, law firms, higher education, defense contractors, think tanks, and NGOs. In reported intrusions, HAFNIUM commonly gained access by exploiting vulnerabilities in internet-facing servers, including Exchange Server zero-days, and then deployed web shells and other malware.
Tarrask maintains persistence on compromised Windows systems by creating scheduled tasks and then hiding them. It creates task-related registry entries under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree<TASK_NAME> and HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks{GUID}. It then deletes the Security Descriptor (SD) value/subkey from the TaskCache\Tree path, causing the scheduled task to disappear from Windows Task Scheduler and from the schtasks command-line utility while remaining present in the registry. The hidden task can still be identified through manual registry inspection. Microsoft reported an observed task named "WinUpdate" that was used to re-establish dropped command-and-control connections.
The content also states that deleting the SD value normally returns Access Denied unless performed in the SYSTEM context, and that Tarrask leverages token theft to obtain lsass.exe security permissions in order to carry out this action. Tarrask has masqueraded as executable names including winupdate.exe, date.exe, and win.exe. High-confidence detection opportunities mentioned in the content include monitoring for deletion of SD values under the Schedule\TaskCache\Tree registry path, especially by the SYSTEM user, and hunting for hidden scheduled tasks missing SD values.
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.
Microsoft Threat Intelligence Center (MSTIC) highlighted the simplicity of the technique employed by the Tarrask malware that creates “hidden” scheduled tasks on the system to maintain persistence.
13 distinct techniques documented for this family, organized by ATT&CK tactic.
Hafnium, while most notable for Exchange Server attacks, has since leveraged unpatched zero-day vulnerabilities as initial vectors to drop web shells and other malware
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Tarrask](https://attack.mitre.org/software/S1011) is able to create “hidden” scheduled tasks for persistence.(Citation: Tarrask scheduled task)
[Tarrask](https://attack.mitre.org/software/S1011) may abuse the Windows schtasks command-line tool to create "hidden" scheduled tasks.(Citation: Tarrask scheduled task)
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Tarrask](https://attack.mitre.org/software/S1011) is able to create “hidden” scheduled tasks for persistence.(Citation: Tarrask scheduled task)
[Tarrask](https://attack.mitre.org/software/S1011) is able to delete the Security Descriptor (`SD`) registry subkey in order to “hide” scheduled tasks.(Citation: Tarrask scheduled task)
leveraged unpatched zero-day vulnerabilities as initial vectors to drop web shells and other malware, including Tarrask
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Tarrask](https://attack.mitre.org/software/S1011) is able to create “hidden” scheduled tasks for persistence.(Citation: Tarrask scheduled task)
The only way to delete the SD value is to execute the command within the context of the SYSTEM user. For this reason, the Tarrask malware utilized token theft to obtain the security permissions associated with the lsass.exe process.
[Tarrask](https://attack.mitre.org/software/S1011) leverages token theft to obtain `lsass.exe` security permissions.(Citation: Tarrask scheduled task)
During the 2016 Ukraine Electric Power Attack, DLLs and EXEs with filenames associated with common electric power sector protocols were used to masquerade files.
[Tarrask](https://attack.mitre.org/software/S1011) creates a scheduled task called “WinUpdate” to re-establish any dropped C2 connections.(Citation: Tarrask scheduled task)
[Tarrask](https://attack.mitre.org/software/S1011) has masqueraded as executable files such as `winupdate.exe`, `date.exe`, or `win.exe`.(Citation: Tarrask scheduled task)
Bisonal has deleted Registry keys to clean up its prior activity ... FIN8 has deleted Registry keys during post compromise cleanup activities ... SUNBURST ... deleted previously-created Image File Execution Options (IFEO) Debugger registry values and registry keys related to HTTP proxy to clean up traces of its activity.
The only way to delete the SD value is to execute the command within the context of the SYSTEM user. For this reason, the Tarrask malware utilized token theft to obtain the security permissions associated with the lsass.exe process.
[Tarrask](https://attack.mitre.org/software/S1011) leverages token theft to obtain `lsass.exe` security permissions.(Citation: Tarrask scheduled task)
[Tarrask](https://attack.mitre.org/software/S1011) is able to create “hidden” scheduled tasks by deleting the Security Descriptor (`SD`) registry value.(Citation: Tarrask scheduled task)
[Tarrask](https://attack.mitre.org/software/S1011) is able to delete the Security Descriptor (`SD`) registry subkey in order to “hide” scheduled tasks.(Citation: Tarrask scheduled task)
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.