Skip to main content
Mallory
Malware3 associated actors1 associated CVE

TSCookie

Tracked since Nov 25, 2025 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns1Associated
Actors3Associated
ATT&CK32Techniques
IOCs74Tracked
Type
Backdoor
Capabilities
Credential theftProcess injectionReconnaissanceDefense evasionExfiltrationPost exploitation
Delivery
Spearphishing
Platforms
WindowsLinux

TSCookie is a malware family used by the BlackTech threat group, also known as HUAPI, with variants targeting Windows and Linux. It combines payload-loading functionality with credential theft, host reconnaissance, and remote-control capabilities. BlackTech has distributed Windows variants through malicious Excel documents containing VBA macros, including campaigns observed in 2018 and 2020.

On Windows, TSCookie can decrypt, load, and execute DLL payloads and their resources, inject code into Windows service-host, desktop-shell, and browser processes, enumerate running processes, and identify the infected host's IP address. It can steal passwords saved in Internet Explorer, Microsoft Edge, Firefox, and Chrome. Windows variants support HTTP, HTTPS, and a custom communication protocol, encrypt network communications with RC4, and can use ICMP to receive destination-server information.

The Linux variant, known as ELF_TSCookie, shares substantial code with the Windows version but uses a smaller configuration and supports only a custom communication protocol. It incorporates built-in functionality rather than relying on downloaded modules, allowing operators to execute arbitrary shell commands, launch a remote shell, list and manipulate files, and upload or download files. Both platform variants use RC4 to encrypt payloads. A May 2019 update corrected a Windows configuration-decoding bug and an associated problem that prevented reliable reconnection to command-and-control infrastructure.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

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.

CVE-2022-1388via jpcert blogExploited in the wildF5 BIG-IP iControl REST Authentication Bypass and Remote Code ExecutionAround May 2022, JPCERT/CC confirmed an attack activity against Japanese organizations that exploited F5 BIG-IP vulnerability (CVE-2022-1388). The targeted organizations have confirmed that data in BIG-IP has been compromised.View vulnerability →Source ↗
Threat actors

Associated threat actors

3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details →
BlackTech

(Citation: JPCert TSCookie March 2018)

via mitre attack structuredgithub.com
Huapi

Adversary Profile: HUAPI ... Malware: TSCOOKIE, KIVARS, CAPGELD, DBGPRINT

via jsac jpcertjsac.jpcert.or.jp
Earth Hundun

Uncover ELF version of PLEAD / TSCookie by JPCERT ... TSCookie and BUSYICE shared their C&C server in April 2021

via jsac jpcertjsac.jpcert.or.jp
MITRE ATT&CK

Techniques & procedures

32 distinct techniques documented for this family, organized by ATT&CK tactic.

Resource Development

1 technique
T1584.001DomainsEvidence1

A sophisticated hacking group tied to the government of China is exploiting routers in attacks on a variety of organizations... The group specifically targets “branch routers” — smaller appliances used at more remote branch offices to connect to a corporate headquarters.

Initial Access

3 techniques
T1190Exploit Public-Facing ApplicationEvidence1

Around May 2022, JPCERT/CC confirmed an attack activity against Japanese organizations that exploited F5 BIG-IP vulnerability (CVE-2022-1388).

T1566.001Spearphishing AttachmentEvidence1

Spearphishing email / BlackTech sends an email to the target, spoofing the address of a legitimate company. Delivery / Malicious Excel document

T1566.002Spearphishing LinkEvidence1

"reports on the social media about malicious emails purporting to be from Ministry of Education... This email contains a URL leading to a malware called 'TSCookie'."

Execution

6 techniques
T1059Command and Scripting InterpreterEvidence1

Several entries refer generically to command-line interfaces, shell commands, scripting engines, or script execution without always specifying the exact interpreter.

T1059.003Windows Command ShellEvidence6

[TSCookie](https://attack.mitre.org/software/S0436) has the ability to execute shell commands on the infected host.(Citation: JPCert TSCookie March 2018)

T1059.004Unix ShellEvidence1

The Linux version has the following functions by default... Execute arbitrary shell command ... Table C: Commands Value Contents 0x7200AC03 Launch remote shell ... 0x7200AC04 Send a command to remote shell ... 0x7200AC10 Execute command

T1059.005Visual BasicEvidence1

VBA macros / Macros concatenate a decimal-encoded array and decode it to a PE payload, then drop it in the Startup folder.

T1204.001Malicious LinkEvidence3

[TSCookie](https://attack.mitre.org/software/S0436) has been executed via malicious links embedded in e-mails spoofing the Ministries of Education, Culture, Sports, Science and Technology of Japan.(Citation: JPCert TSCookie March 2018)

T1204.002Malicious FileEvidence1

The Excel file is protected with a password, and asks the user to “Enable content” to view the page.

Persistence

1 technique
T1556Modify Authentication ProcessEvidence1

Specifically, upon gaining an initial foothold into a target network and gaining administrator access to network edge devices, BlackTech cyber actors often modify the firmware to hide their activity across the edge devices to further maintain persistence in the network.

Privilege Escalation

1 technique
T1055Process InjectionEvidence8

[TSCookie](https://attack.mitre.org/software/S0436) has the ability to inject code into the svchost.exe, iexplorer.exe, explorer.exe, and default browser processes.(Citation: JPCert BlackTech Malware September 2019)

Stealth

5 techniques
T1027Obfuscated Files or InformationEvidence1

The payload itself is RC4-encrypted in both versions... Up to offset 0x1C, the contents are encrypted with the RC4 key and random data in the configuration.

T1055Process InjectionEvidence8

[TSCookie](https://attack.mitre.org/software/S0436) has the ability to inject code into the svchost.exe, iexplorer.exe, explorer.exe, and default browser processes.(Citation: JPCert BlackTech Malware September 2019)

T1070.004File DeletionEvidence1

Table C: Commands ... 0x7200AC16 Delete file

T1140Deobfuscate/Decode Files or InformationEvidence10

[TSCookie](https://attack.mitre.org/software/S0436) has the ability to decrypt, load, and execute a DLL and its resources.(Citation: JPCert TSCookie March 2018)

T1620Reflective Code LoadingEvidence1

"Downloaded modules only runs on memory." / "the DLL file is loaded and executed on memory."

Defense Impairment

1 technique
T1556Modify Authentication ProcessEvidence1

Specifically, upon gaining an initial foothold into a target network and gaining administrator access to network edge devices, BlackTech cyber actors often modify the firmware to hide their activity across the edge devices to further maintain persistence in the network.

Credential Access

4 techniques
T1555Credentials from Password StoresEvidence1

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

T1555.003Credentials from Web BrowsersEvidence10

[TSCookie](https://attack.mitre.org/software/S0436) has the ability to steal saved passwords from the Internet Explorer, Edge, Firefox, and Chrome browsers.(Citation: JPCert TSCookie March 2018)

T1556Modify Authentication ProcessEvidence1

Specifically, upon gaining an initial foothold into a target network and gaining administrator access to network edge devices, BlackTech cyber actors often modify the firmware to hide their activity across the edge devices to further maintain persistence in the network.

T1649Steal or Forge Authentication CertificatesEvidence1

BlackTech steals digital certificates from D-Link and other TW tech organisations

Discovery

3 techniques
T1016System Network Configuration DiscoveryEvidence8

[TSCookie](https://attack.mitre.org/software/S0436) has the ability to identify the IP of the infected host.(Citation: JPCert TSCookie March 2018)

T1057Process DiscoveryEvidence7

[TSCookie](https://attack.mitre.org/software/S0436) has the ability to list processes on the infected host.(Citation: JPCert TSCookie March 2018)

T1083File and Directory DiscoveryEvidence8

[TSCookie](https://attack.mitre.org/software/S0436) has the ability to discover drive information on the infected host.(Citation: JPCert TSCookie March 2018)

Command and Control

10 techniques
T1001Data ObfuscationEvidence1

For encryption, RC4 is still used, but the key is generated differently.

T1071Application Layer ProtocolEvidence3

This update has also fixed the issue where the malware fails to reconnect to a C&C server for a few days.

T1071.001Web ProtocolsEvidence9

[TSCookie](https://attack.mitre.org/software/S0436) can multiple protocols including HTTP and HTTPS in communication with command and control (C2) servers.(Citation: JPCert BlackTech Malware September 2019)(Citation: JPCert TSCookie March 2018)

T1090ProxyEvidence4

[TSCookie](https://attack.mitre.org/software/S0436) has the ability to proxy communications with command and control (C2) servers.(Citation: JPCert BlackTech Malware September 2019)

T1090.001Internal ProxyEvidence3

"APT41 used a tool called CLASSFON to covertly proxy network communications." / "BADCALL functions as a proxy server between the victim and C2 server." / "Sandworm Team's BCS-server tool can create an internal proxy server to redirect traffic..."

T1095Non-Application Layer ProtocolEvidence4

[TSCookie](https://attack.mitre.org/software/S0436) can use ICMP to receive information on the destination server.(Citation: JPCert BlackTech Malware September 2019)

T1105Ingress Tool TransferEvidence6

[TSCookie](https://attack.mitre.org/software/S0436) has the ability to upload and download files to and from the infected host.(Citation: JPCert TSCookie March 2018)

T1568Dynamic ResolutionEvidence2

Appendix B: List of C&C servers www.google.com.dns-report.com microsoft.com.appstore.dynamicdns.co.uk cartview.viamisoftware.com

T1573Encrypted ChannelEvidence2

The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.

T1573.001Symmetric CryptographyEvidence4

[TSCookie](https://attack.mitre.org/software/S0436) has encrypted network communications with RC4.(Citation: JPCert TSCookie March 2018)

Indicators of compromise

Observables

74 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching74Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors3Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities1CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping32Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.