Set Thread Local Storage Value

October 2, 2024 ยท View on GitHub

ID C0041
Objective(s) Process
Related ATT&CK Techniques None
Version 2.1
Created 4 December 2020
Last Modified 30 April 2024

Set Thread Local Storage Value

Malware allocates thread local storage.

Use in Malware

NameDateMethodDescription
Dark Comet2008--Dark Comet sets thread local storage values. [1]
Gamut2014--Gamut sets thread local storage values. [1]
Hupigon2013--Hupigon sets thread local storage values. [1]
Kovter2016--Kovter sets thread local storage values. [1]
Redhip2011--Redhip sets thread local storage values. [1]
Rombertik2015--Rombertik sets thread local storage values. [1]

Detection

Tool: capaMappingAPIs
set thread local storage valueSet Thread Local Storage Value (C0041)kernel32.TlsSetValue

C0041 Snippet

Process::Set Thread Local Storage Value SHA256: 3ac8c22eb7c59d35fe49c20f2a0eca06765543dfb15f455a5557af4428066641 Location: 0x180005B08
mov     param_2, rbx    ; Value to be stored in TLS index
mov     param_1, edi    ; TLS index
call    qword ptr [->KERNEL32.DLL::TlsSetValue] ; Call Windows API function to store value in thread's thread local storage (TLS) at the specified index

References

[1] capa v4.0, analyzed at MITRE on 10/12/2022